Home > UGC NET > Computer Science > Page 2
Q 11.

int main()
{
extern int i;
i = 20;
printf(“%d”, sizeof(i));
return 0;
}

 

A)  20
B)  0
C)  Undefined reference to i
D)  Linking Error
Q 12.

Is it true that a function may have several declaration, but only one definition ?

A)  True
B)  False
C) 
D) 
Q 13.

What is sizeof() in C ?

A)  Operator
B)  Function
C)  Macro
D)  None of these
Q 14.

How many main() function we can have in our project ?

A)  1
B)  2
C)  No Limit
D)  Depends on Compiler
Q 15.

Is it possible to run program without main() function?

A)  Yes
B)  No
C) 
D) 
Q 16.

x-=y+1; means

A)  x=x-y+1
B)  x=-x-y-1
C)  x=-x+y+1
D)  x=x-y-1
Q 17.

If we arrange the operators ., ||, <, =, in an ascending order of precedence, which of the following is the correct choice ?

A)  ., ||, <, =
B)  =, <, ||, .
C)  =, ||, <, .
D)  <, ||, =, .
Q 18.

From the following, choose the correct statements

A)  Constant expressions are evaluated at compile time
B)  String constants can be concatenated at compile time
C)  Size of array must be known at compile time
D)  All of the above
Q 19.

From the following, choose the correct statements

A)  An identifier may start with an underscore
B)  An identifier may end with an underscore
C)  IF is a valid identifier
D)  The number of significant characters in an identifier is implementation dependent
E)  All of the above
Q 20.

The following statements are about EOF. Which of them are true ?

A)  Its value is defined with stdio.h
B)  Its value is implementation dependent
C)  Its value can be negative
D)  Its value should not equal the integer equivalent of any character
E)  All of the above