22nd
Nov
C Programming MCQ

C Programming MCQ

  • Admin
  • 22nd Nov, 2022
  • 402 Followers

C Programming MCQ

Following are mostly asked C programming MCQ test that are designed for professionals like you to crack you interviews. You can take this C programming online test before appearing to you real interview. This C programming quiz there are around 30+ multiple choice questions on C programming with four options.

1) What is the C programming language?

  • A. C is a high-level, Scripting Programming Language.
  • B. A general-purpose, high-level, free-text, Procedural programming language.
  • C. C is a use low-level, free-text, Object-Oriented programming language.
  • D. None of these

2) Who created C?

  • A. Guido van Rossum
  • B. James Gosling
  • C. Dennis Ritchie
  • D. Ken Thompson

3) What is a compiler in C?

  • A. A compiler converts instructions to machine code.
  • B. That converts machine language to high-level language
  • C. A compiler writes instructions to perform
  • D. Both a & b

4) How to create an array, select a right formula

  • A. int Num[] = {25, 50, 75, 100};
  • B. int num() = {25, 50, 75, 100};
  • C. int num{} = {25, 50, 75, 100};
  • D. int num{0} = {25, 50, 75, 100};

5) What are the advantages of using C language?

  • A. Built-in functions
  • B. Quality to extend itself
  • C. Dynamic memory allocation
  • D. All of above
Download Free : C Programming MCQ PDF

6) What is short int c programming?

  • A. “short” is the qualifier
  • B. “int” is the basic datatype.
  • C. The basic data type of C Qualifier
  • D. Both a & b

7) Which is the only function all C programs must contain?

  • A. printf()
  • B. system()
  • C. start()
  • D. main()

8) Standard ANSI C recognizes ______ number of keywords?

  • A. 28
  • B. 32
  • C. 30
  • D. 34

9) Which header file supports the functions - malloc() and calloc()?

  • A. memory.h
  • B. math.h
  • C. stdio.h
  • D. stdlib.h

10) Array is a _________ data structure.

  • A. Data type
  • B. Primary
  • C. linear
  • D. Non-linear

11) Which is valid C expression?

  • A. int my_num = 100000;
  • B. int my num = 1000;
  • C. int my_num = 100,000;
  • D. int $my_num = 10000;

12) Which of the following declaration is not supported by C language?

  • A. float str = 3e2;
  • B. char *str;
  • C. String str;
  • D. Both a & b

13) Which of the following is executed by Preprocess?

  • A. void main(int argc , char ** argv)
  • B. return 0
  • C. #include<stdio.h>
  • D. None of these

14) A global variable is declared __________.

  • A. With the function
  • B. Inside of the function
  • C. Outside of the function
  • D. Anywhere in the program

15) What is the sizeof(char) in a 32-bit C compiler?

  • A. 2 Bits
  • B. 2 Bytes
  • C. 1 Bit
  • D. 1 Byte

16) How do you initialize an array in C?

  • A. int arr(3) = (1,2,3);
  • B. int arr[3] = {1,2,3};
  • C. int arr(3) = {1,2,3};
  • D. int arr[3] = (1,2,3);

17) How is the 3rd element in an array accessed based on pointer notation?

  • A. *(*a + 3)
  • B. *(a + 3)
  • C. &(a + 3)
  • D. All of above

18) Which of the following is an exit controlled loop in c?

  • A. For loop.
  • B. While loop.
  • C. do-while loop.
  • D. None of these

19) Which of the following return-type cannot be used for a function in C?

  • A. void
  • B. struct
  • C. char *
  • D. None of these

20) In C Programming a function can return:

  • A. As many as values
  • B. Single value
  • C. Double value
  • D. None of these

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.

Related MCQ/Quiz

01st
Oct
Python MCQ
01st
Jun
IOT MCQ
01st
Jun
Matlab MCQ
01st
May
Tableau MCQ