500+ C Language Programming MCQ | C Programming Questions and Answers Pdf | C Programming Interview Questions and Qnswers Pdf

C Programming Multiple Choice Questions and Answers for Freshers Free Download, C Language MCQ Questions and Answers, C Language Questions and Answers for Interview, C Programming Interview Questions.

01. Who is the father of C language?

A) Rasmus Lerdorf

B) Steve Jobs

C) Dennis Ritchie

D) James Gosling

Ans. Dennis Ritchie

02. which year was C language developed?

A) 1971

B) 1970

C) 1973

D) 1972

Ans. 1972

 

03. C Language is a successor to which language?

A) BASIC

B) D Language

C) B Language

D) FORTRAN

Ans. B Language

04. All keywords in C are in ____________ ?

A) CamelCase letters

B) LowerCase letters

C) UpperCase letters

D) None of the mentioned

Ans. LowerCase letters

05. Low level language is?

A) language with big program size.

B) language with small program size.

C) Difficult to understand and readability is questionable.

D) Human readable like language.

Ans. Difficult to understand and readability is questionable.

06. High level language is a?

A) language with big program size.

B) language with small program size.

C) Difficult to understand and readability is questionable.

D) Human readable like language.

Ans. Human readable like language.

07. Which of the following is true for variable names in C?

A) Variable can be of any length

B) Variable names cannot start with a digit.

C) It is not an error to declare a variable to be one of the keywords(like goto, static)

D) They can contain alphanumeric characters as well as special characters

Ans. Variable names cannot start with a digit.

08. How many keywords are there in C language?

A) 32

B) 34

C) 35

D) 36

Ans. 32

09. C is _______ type of programming language?

A) Bit level language

B) Functional

C) Object Oriented

D) Procedural

Ans. Procedural

10. Which is valid C expression?

A) int my_num = 100,000;

B) int my_num = 100001;

C) int my_num = 100000;

D) int my_num = 100002;

Ans. int my_num = 100000;

11. What are the new features of C11 or ISO IEC 9899 2011 standard?

A) Bounds Checking Interfaces, Anonymous Strurctures

B) Multi Threading, Anonymous Unions, quick_exit

C) Type generic Macros, Static Assertions

D) All Options

Ans. All Options

12. Which of the following cannot be a variable name in C?

A) export

B) true

C) friend

D) volatile

Ans. volatile

13. C language is a __ ?

A) Structured programming.

B) General purpose programming language.

C) Procedural oriented programming language.

D) All of the above

Ans. All of the above

14. C language was invented in which laboratories?

A) IBM Labs

B) AT&T Bell Labs

C) Uniliver Labs

D) Verizon Labs

Ans. AT&T Bell Labs

 

15. Which of the following declaration is not supported by C language?

A) char *str;

B) float str = 3e2;

C) Both “String str;” and “float str = 3e2;”

D) String str;

Ans. String str;

16. Which is not a valid keyword in C language?

A) while

B) do-while

C) for

D) switch

Ans. do-while

17. BCPL Language is also called?

A) C Language

B) D Language

C) B Language

D) All

Ans. All

18. Which keyword is used to prevent any changes in the variable within a C program?

A) const

B) immutable

C) mutable

D) volatile

Ans. const

19. What is an identifier in C language?

A) An identifier is a combination of alphanumeric characters used for conditional and control statements

B) An identifier is a combination of alphanumeric characters used for any variable, function, label name

C) Both A and B

D) None of the above

Ans. An identifier is a combination of alphanumeric characters used for any variable, function, label name

20. C language was invented to develop which Operating System?

A) Ubuntu

B) Linux

C) Unix

D) Android

Ans. Unix

21. What is the result of logical or relational expression in C?

A) 0 or 1

B) True or False

C) 0 if an expression is false and any positive number if an expression is true

D) All

Ans. 0 or 1

 

22. Can we place comments between the statement to comments a part of the code?

A) No

B) Yes

C) All

Ans. Yes

23. C language is used in the development of?

A) Graphic applications

B) Word Processors

C) Databases

D) All

Ans. All

24. Which of the following typecasting is accepted by C language?

A) Widening & Narrowing conversions

B) Narrowing conversions

C) Widening conversions

D) All

Ans. Widening & Narrowing conversions

25. ___ is an informal name for ISO/IEC 9899:1999, a past version of the C programming language standard?

A) C87

B) C80

C) C99

D) C89

Ans. C99

26. A C program is a combination of?

A) Functions

B) Statements

C) Statements

D) All

Ans. All

27. Where in C the order of precedence of operators do not exist?

A) Within while, do-while

B) Within a macro definition

C) Within conditional statements, if, else

D) All

Ans. All

28. The C source file is processed by the __?

A) Assembler

B) Pdf

C) Interpreter

D) Compiler

Ans. Compiler

29. Correct way of commenting a single line is?

A) /*printf(“Hello C..”);

printf(“How are you.”);*/

 

B)  /printf(“Hello C..”);/

printf(“How are you.”);

 

C)  //printf(“Hello C..”);

printf(“How are you.”);

 

D) *printf(“Hello C..”);

printf(“How are you.”);

 

Ans.  //printf(“Hello C..”);

printf(“How are you.”);

30. Which of the following is NOT possible with any 2 operators in C?

A) Same precedence, different associativity

B) Different precedence, different associativity

C) Different precedence, same associativity

D) All

Ans. Same precedence, different associativity

31. How many whitespace characters are allowed in C language?

A) 4

B) 5

C) 6

D) 7

Ans. 5

32. Single Line Comment // is also called?

A) PHP Style Comment

B) C++ Style Comment

C) Java Style Comment

D) All

Ans. All

33. Single Line Comment // is also called?

A) PHP Style Comment

B) C++ Style Comment

C) Java Style Comment

D) All

Ans. All

34. What is an example of iteration in C?

A) while

B) for

C) do-while

D) All

Ans. All

35. How many punctuation characters are allowed in C language?

A) 28

B) 29

C) 30

D) 31

Ans. 29

36. What is an Identifier in C Language?

A) Name of a Macros

B) Name of a Function or Variable

C) Name of Structure or Union

D) All

Ans. All

37. Functions can return enumeration constants in C?

A) false

B) true

C) depends on the standard

D) depends on the compiler

Ans. true

38. What is the extension of a C language header file?

A) .h

B) .c99

C) .cpp

D) .c

Ans. .h

39. An Identifier may contain?

A) Underscore _ symbol

B) Numbers 0 to 9 Unicode Numbers in other languages

C) Letters a-z, A-Z in Basic character set. Unicode alphabet characters other languages

D) All

Ans. All

40. Functions in C Language are always _________?

A) External and Internal are not valid terms for functions

B) Other

C) External

D) Internal

Ans. External

41. Does C language support object-oriented approach?

A) No

B) Yes

C) All

Ans. No

42. What is the number of characters used to distinguish Identifier or Names of Functions and Global variables?

A) 30

B) 31

C) 32

D) 33

Ans. 31

 

43. Which of following is not accepted in C?

A) static static int a; //a static variable prefixed with static

B) static a = 10; //static as

C) static int func (int); //parameter as static

D) All

Ans. static static int a; //a static variable prefixed with static

44. Which is/are the disadvantage(s) of C language?

A) Inefficient Memory Management & No Garbage Collection

B) Low level of abstraction

C) static int func (int); //parameter as static

D) All

Ans. All

45. What is length of an Identifier that is unique for Non Global Variables and Non Function Names?

A) 60

B) 61

C) 62

D) 63

Ans. 63

46. Property which allows to produce different executable for different platforms in C is called?

A) Recursive macros

B) Selective inclusion

C) Conditional compilation

D) File inclusion

Ans. Conditional compilation

47. Which are the fundamental data types in C?

A) float

B) int

C) char

D) All

Ans. All

48. An Identifier can start with?

A) Any character that can be typed on a keyboard

B) Alphabet

C) Underscore ( _ ) sign

D) Option A & Option B

Ans. Option B & Option C

49. AWhat is #include <stdio.h>?

A) Depends on the standard

B) File inclusion directive

C) Inclusion directive

D) Preprocessor directive

Ans. Preprocessor directive

50. How many byte(s) does a char type take in C?

A) 1

B) 2

C) 3

D) 4

Ans. 1

51 to 100 C Language Programming MCQ (Click Here)

Rate this post

Share This Post

Recent Posts

Leave a Comment