A. AT & T’s Bell Laboratories of USA in 1972
B. AT & T’s Bell Laboratories of USA in 1970
C. Sun Microsystems in 1973
D. Cambridge University in 1972
2. C programs are converted into machine language with the help of
A. An EditorB. A compiler
C. An operating system
D. None of the above
3. Which of the following is allowed in a C Arithmetic instruction
A. []B. {}
C. ()
D. None of the above
4. What is an array?
A. An array is a collection of variables that are of the dissimilar data type.
B. An array is a collection of variables that are of the same data type.
C. An array is not a collection of variables that are of the same data type.
D. None of the above.
5. What is right way to Initialization array?
A. int num[6] = { 2, 4, 12, 5, 45, 5 } ;
B. int n{} = { 2, 4, 12, 5, 45, 5 } ;
C. int n{6} = { 2, 4, 12 } ;
D. int n(6) = { 2, 4, 12, 5, 45, 5 } ;
6. An array elements are always stored in _________ memory locations.
A. Sequential
B. Random
C. Sequential and Random
D. None of the above
7. perror( ) function used to ?
A. Work same as printf()
B. prints the error message specified by the compiler
C. prints the garbage value assigned by the compiler
D. None of the above
8. perror( ) function used to ?
A. Work same as printf()
B. prints the error message specified by the compiler
C. prints the garbage value assigned by the compiler
D. None of the above
9. Which operators are known as Ternary Operator?
A. ::, ?
B. ?, :
C. ?, ;;
D. None of the avobe
10. What is the work of break keyword?
A. Halt execution of program
B. Restart execution of program
C. Exit from loop or switch statement
D. None of the avobe
Post a Comment