C Programming MCQ Online Test

  1. Can we declare function inside structure of c programming?
  2. Which of the following cannot be a structure member?
  3. ............. is the father of C language
  4. Which of the following is not a valid variable name in C Programming?
  5. Which of the following declaration is not supported by C language?
  6. ............... keyword is used to prevent any changes in the variable within a C program.
  7. What is the output of the following C code?
  8. What is the output of the following C function?
  9. scanf() is a predefined function in stdio. h header file.
  10. The C-preprocessors are specified with ...............
  11. What is the output of following C Code?
  12. Which of the following is an array initialized in C language?
  13. What is the return type of the fopen() function in C?
  14. How to find the length of an array in C?
C Programming MCQ

C is a structured-oriented programming language and is used to write various applications. It was developed by Dennis Ritchie at Bell laboratories in 1972. C is considered one of the most popular programming languages as it is simple, flexible, and powerful. It has both low-level and high-level features that allow programmers to achieve complex tasks in a quicker manner.

Finally, Practice C Programming Multiple Choice Questions to test your final preparation for your exams or interviews.

  • Yes
  • No
View Answer
  • Array
  • Function
  • Another structure
  • None of the Above
View Answer
  • James Gosling
  • Dennis Ritchie
  • Rasmus Lerdorf
  • None of the Above
View Answer
  • float rate;
  • int $main;
  • int number;
  • None of the Above
View Answer
  • char *str;
  • float str = 3e2;
  • String str;
  • None of the Above
Download Free : C Programming MCQ PDF
View Answer
  • const
  • volatile
  • mutable
  • immutable
View Answer
  • Conaxweb.com is printed infinite times
  • No Output
  • Conaxweb.com
  • Error because function name cannot be preceded by const
View Answer
  • ” ”
  • &
  • $
  • #
View Answer
  • int a = {1, 2, 3};
  • int a[3] = {1, 2, 3};
  • int a[ ] = new int [3]
  • None of the Above
View Answer
  • An integer
  • Pointer to an integer
  • Pointer to a FILE Object
  • None of the above
View Answer
  • sizeof(a)
  • sizeof(a[0])
  • sizeof(a) * sizeof(a[0])
  • sizeof(a) / sizeof(a[0])
View Answer
  • Linker
  • Editor
  • Compiler
  • Pre-processor
View Answer
  • Forward iterator
  • Random access iterator
  • Bi-directional iterator
  • All of the Above
View Answer
  • int my num = 1000;
  • int my num == 10000;
  • int my_num = 100,000;
  • int my_num = 100000;
View Answer
  • Mac
  • DOS
  • Windows
  • Unix
View Answer
  • float
  • int
  • real
  • double
View Answer
  • No data hinding
  • Constructors are not allowed inside structs.
  • Functions are not allowed inside structs.
  • None of the above
View Answer
  • Trees
  • Stack
  • Deque
  • Queue
View Answer
  • static
  • extern
  • volatile
  • None of the above
View Answer
  • C
  • Java
  • Python
  • C#
View Answer
  • int **val
  • int *val
  • int *&val
  • None of the above
View Answer
  • #define II
  • #define long long
  • #define II long long
  • None of the above
View Answer