1) ‘C’ Programming Language was developed and written by
A) Martin Richards
B) Dennis Ritchie
C) Ken Thompson
D) Herman Hellorith
2) Which of the following is false in ‘C’ Programming Language
A) Keywords can be used as variable names
B) Variable names can contain digits
C) Variable names do not contain blank spaces
D) Capital letters can be used in variable names.
3) What will be the output of the following ‘C’ program
printf(“a and b are equal”);
printf(“a and b are different”);
A) a and b are equal
B) a and b are different
D) None of the above
4) What will be the output of the following ‘C’ program?
printf(“I will certainly pass”);
printf(“I am not so sure about the result”);
A) I will certainly pass
B) I am not so sure about the result
D) None of the above
5) What will be the output of the following program?
D) Unpredictable Value
6) A ‘C’ expression contains relational, assignment and arithmetic operators. There are no parentheses used. They will be evaluated in which of the following order
A) Assignment Relational Arithmetic
B) Arithmetic Relational Assignment
C) Relational Arithmetic Assignment
D) Assignment Arithmetic Relational
7) Prototype of function named ‘fun’ is: int fun(int a, float b) Which of the following is true about function ‘fun’:
A) It takes two inputs, one integer type and the other float type but returns nothing
B) It takes two inputs, one integer type and the other float type but returns 0
C) It takes two inputs, one integer type and the other float type but returns an integer
D) It takes two inputs, one integer type and the other integer type but returns float
8) What will happen if an element is assigned a value to an element of an array whose subscript exceeds the size of the array
A) It will not be allowed, but no error message will be generated
B) Compiler will generate an error message suggesting the same
C) The element will be assigned NULL VALUE.
D) Some other data may be overwritten
9) In the following ‘C’ code
FILE *f = fopen( fileName, "r");
puts(“End of file reached”);
Which one of the following can replace the ???? in the code above to determine if the end of a file has been reached?
A) f == EOF
B) feof( f )
C) eof( f )
D) f == NULL
10) With every use of a memory allocation function, what function should be used to release allocated memory which is no longer needed?