void main()
{
int z, a = 5, b = 3; z = a * 2 + 26 % 3;
printf("%d", z); }
10
0
12
None of the above
C. 12
True
False
void main()
{
int a = 20;
printf("%d\t%d
", ++a, a);
}
21 21
20 21
21 20
20 20
True
False
Storage
Virtual
Friend
Wrapper
True
False
The smallest individual units of c program
The basic element recognized by the compiler
The largest individual units of program
A & B Both
True
False
void main()
{
static int a = 1, b, c;
if (a>=2) b=2; c=3;
printf("%d\t%d", b,c);
}
2 3
0 3
0 0
2 0
Positive value
Zero
Negative value
None of these
a = 5
a += 5
a = b = c
a = b
[]
{}
()
None of the above
?,-
?,:
++<--
none of the above
void main()
{
int a = 0;
while (a<=50) for(;;) if(++a % 50==0) break;
printf("a = %d", a);
}
a = 100
a = 50
compilation error
runtime error
True
False
An array is a collection of variables that are of the dissimilar data type.
An array is a collection of variables that are of the same data type.
An array is not a collection of variables that are of the same data type.
None of the above.
True
False
main()
{
void msg()
{
printf("HELLO WORLD");
}
}
HELLO WORLD
Error
None of the above
Null
True
False
.
?
;
none of the above
main()
{
unsigned int a = 10;
while (a>=10)
{
int a; a-- ;
}
printf("%i", a);
}
Infinite loop
9
0
None
Simple Template Library
Standard Template Library
Static Type Library
Single Type-based Library
Keywords have some predefine meanings and these meanings can be changed.
Keywords have some unknown meanings and these meanings cannot be changed.
Keywords have some predefine meanings and these meanings cannot be changed.
None of the above
35
45
55
40
1 byte
4 bytes
8 bytes
16 bytes
Type definitions (typedefs)
Class definitions
Function definitions
Template definitions
91
88
90
89
True
False
3
4
5
infinite
main()
{
int k, num = 30;
k = (num > 5 ? (num <= 10 ? 100 : 200) : 500);
printf("
%d", num);
}
200
500
30
Unpredictable
Statically typed language
Dynamically typed language
Both Statically and dynamically typed language
Type-less language