4

# In the expression - 'x + y + 3z =20'

x + y' is a keyword

3 and 20 are constants

3z is a constant

y is a variable and z is a constant

B. 3 and 20 are constants

4

do-while

if-else

goto

for

4

True

False

4

# The output of the following code is: void main(){int z, a = 5, b = 3; z = a * 2 + 26 % 3;printf("%d", z); }

10

0

12

None of the above

4

# What's wrong? (x = 4 && y = 5) ? (a = 5) ; (b = 6);

the question mark should be an equal sign

the first semicolon should be a colon

there are too many variables in the statement

the conditional operator is only used with apstrings

4

#if

#elseif

#undef

#pragma

4

True

False

4

# ------ is the ternary operator

?,-

?,:

++<--

none of the above

4

# What is right way to Initialization array?

int num[6] = { 2, 4, 12, 5, 45, 5 } ;

int n{} = { 2, 4, 12, 5, 45, 5 } ;

int n{6} = { 2< 4< 12 } ;

int n(6) = { 2, 4, 12, 5, 45, 5 } ;

4

break

continue

exit

All of the above

4

True

False

4

True

False

4

2

1

100

0

4

4

True

False

4

# A function to be called must be ended with a----------------

.

?

;

none of the above

4

True

False

4

True

False

4

# char *s[10] defines an array of ------------------------

pointers to strings

string to pointer

both

4

# In the expression - 'x + y + 3z =20'

x + y' is a keyword

3 and 20 are constants

3z is a constant

y is a variable and z is a constant

4

True

False

4

B

b

bca

bc

4

# The output of the following code is: main() {int a = 5, b = 6; (a == b? printf("%d", a)); }

0

5

Error

None of the above

4

1 byte

4 bytes

8 bytes

16 bytes

4

Explicit

Public

Implicit

Private

4

# continue statement is used

to go to the next iteration in a loop

come out of a loop

restarts iterations from beginning of loop

4

True

False

4

3.4e38 to 3.4e38

32767 to 32768

32768 to 32767

32668 to 32667

4

# What is Keywords?

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

4

# The output of the following code is: main() { int sub[50]; for(i=0; i<=48;i++) { sub[i]=i; printf("%d", sub[i]);}}

0 to 48 will be displayed

48

49

Compilation Error