Both can occur multiple times, but a declaration must occur first.
A definition occurs once, but a declaration may occur many times.
Both can occur multiple times, but a definition must occur first.
A declaration occurs once, but a definition may occur many times.
Compiler
Interpreter
Assembler
None of These
char
int
float
double
results in a syntax error
output Infomax7
outputs garbage
outputs infomax and terminates abruptly
&
&&
||
!
<
=
>=
<=
4 Bytes
8 Bytes
Depends on the system/compiler
Cannot be determined
getchar()
gets()
scanf()
cin.get()
4
8
16
1
*
%
#
What is the output of the following code?
int a = 10, b = 5;printf("%d", a / b);
5
2
0.5
15
2 bytes
4 bytes
8 bytes
1 byte
They execute programs faster than compilers
They translate the entire program at once
They translate and execute code line by line
They are not used in modern programming
Decimal
Binary
Octal
Hexadecimal
Either True or False
is less than or is more than
is equal or less or more
All of the above
Input data
The program does not require any function.
Output data
The program must have at least one function.
print("Hello World");
echo("Hello World");
printf("Hello World");
None of these
2.5
2.000000
2.500000
int number;
float rate;
int variable_count;
int $main;
System programming language
General purpose language
Data processing language
None of the above
N=m=0
Value+=10
mySize=x<y?9:11
Value=+=10
It returns the size of the variable in bits
It returns the size of the variable in bytes
It returns the size of the variable in kilobytes
It returns the number of elements in an array
Binary operator
Unary operator
Ternary operator
Logical Operator
Conditional Operator
typecast
Ternary
3
“programming Trick”
“programming"
‘programming'
$ programming $
A number
A special symbol other than underscore
Both of the above
An alphabet
signed short
unsigned short
long
Depends on the system
What will be the output of the following code segment?
int x = 24, y = 39, z = 45;z = x + y;y = z - y;x = z - y;printf("\n%d %d %d", x, y, z);
24 39 63
39 24 63
24 39 45
39 24 45
void
endl
switch
Algorithm
Flow-Charts
Procedural
Object Oriented
float_int, keyword, A1
ANSI, ascii, cpu
valid, variable, name
_infomax
3infomax
infomax_ica
infomax123
//
/
/*
Addition, Division, Modulus
Addition, Modulus, Division
Multiplication, Substration, Modulus
Modulus, Multiplication, Substration
Id_No
ID_NO
IdNo
Id No
10
20
0
None
Assignment Relational Arithmetic
Arithmetic Relational Assignment
Relational Arithmetic Assignment
Assignment Arithmetic Relational
int a = 5;printf("%d", a == 5);
Undefined
world
addition23
test-name
factorial
float, double
short int, double, long int
float, double, long double
double, long int, float
-4
-2.8
+2.8
+3
getch()
getche()
final
constant
const
static
| |
no of students
7th
myName
What is the output of the following code:
int x = 5;
printf("%d", x++);
6
include
real