C Programming MCQ
C Programming MCQ
com
C Programming MCQ
A. Yes
B. No
A. Array
B. Function
C. Another structure
D. None of the Above
A. James Gosling
B. Dennis Ritchie
C. Rasmus Lerdorf
D. None of the Above
A. float rate;
B. int $main;
C. int number;
D. None of the Above
Q5. Which of the following declaration is not supported by C language?
A. char *str;
B. float str = 3e2;
C. String str;
D. None of the Above
Q6. ............... keyword is used to prevent any changes in the variable within a C program.
A. const
B. volatile
C. mutable
D. immutable
A. Compilation error
B. 1 2 3 4 5
C. Segmentation fault
D. None of the Above
A. True
B. False
A. ” ”
B. &
C. $
D. #
A. Infinite loop
B. In while loop 3
C. In while loop 2
D. In while loop in while loop 3
A. An integer
B. Pointer to an integer
C. Pointer to a FILE Object
D. None of the above
A. sizeof(a)
B. sizeof(a[0])
C. sizeof(a) * sizeof(a[0])
D. sizeof(a) / sizeof(a[0])
A. 4
B. 8
C. 12
D. 16
Q16. Directives are translated by the ....................
A. Linker
B. Editor
C. Compiler
D. Pre-processor
A. Forward iterator
B. Random access iterator
C. Bi-directional iterator
D. All of the Above
Q19. Which of the following is the first operating system designed using C programming
language?
A. Mac
B. DOS
C. Windows
D. Unix
A. float
B. int
C. real
D. double
A. Trees
B. Stack
C. Deque
D. Queue
A. static
B. extern
C. volatile
D. None of the above
A. C
B. Java
C. Python
D. C#
A. int **val
B. int *val
C. int *&val
D. None of the above
A. #define II
B. #define long long
C. #define II long long
D. None of the above