C Language Mcqs
Q.1: C99 standard guarantees uniqueness of ____ characters for internal names.I
A. 63
B. 14
C. 12
D. 31
Q.2: In C ....
A. Strings are surrounded with double quotes, and Character with single-quotes.L
B. Strings and chars can be surrounded with double quotes or single-quotes.H
C. No Option
D. No Option
Q.3: Which function is a System Call?
A. fopen
B. close
C. No Option
D. No Option
Q.4: memmove() is safer than memcpy() when it comes to the location of its arguments.P
A. False
B. True
C. No Option
D. No Option
Q.5: What is the output of the Program : int main() { int i,j; i=1,2,3; j=(1,2,3); printf("%d %d",i,j); return 0; }
A. 0 0
B. 1 1
C. 1 3
D. Garbage Values of i & j
Q.6: For a pointer to a 3 dimensional array (*foo)[2][3][4], how many calls to malloc do you need at least to allocate its contents?
A. 24
B. 2
C. 1
D. 1
Q.7: The operator used to get value at address stored in a pointer "p" is :G
A. *p
B. &p
C. *p
D. **(p)
Q.8: What does malloc(0) return?
A. NULL
B. The program segfault
C. The behavior is implementation-defined&
D. A unique pointer
Q.9: Which one is not a bitwise operator ?%
A. ~
B. ^
C. !
D. !
Q.10: The main() function can be called recursively..
A. True
B. False
C. No Option
D. No Option

Related Mcqs

All Subject Mcqs