Home

C Programming MCQ Question with Answer

C Programming MCQ with detailed explanation for interview, entrance and competitive exams. Explanation are given for understanding.

Download C Programming MCQ Question Answer PDF

Question No : 8
A C variable cannot start with

An alphabet
A number
A special symbol other than underscore
both (b) and (c)

Question No : 9
Which of the following is allowed in a C Arithmetic instruction

[]
{}
()
None of the above

Question No : 10
Which of the following shows the correct hierarchy of arithmetic operations in C

/ + *
* / +
+ / *
* / + -

Question No : 11
What is an array?

An array is a collection of variables that are of the dissimilar data type.
An array is a collection of variables that are of the same data type.
An array is not a collection of variables that are of the same data type.
None of the above.

Question No : 12
What is right way to Initialization array?

int num[6] = { 2, 4, 12, 5, 45, 5 } ;
int n{} = { 2, 4, 12, 5, 45, 5 } ;
int n{6} = { 2< 4< 12 } ;
int n(6) = { 2, 4, 12, 5, 45, 5 } ;

Question No : 13
An array elements are always stored in _________ memory locations.

Sequential
Random
Sequential and Random
None of the above

Question No : 14
What is the right way to access value of structure variable book{ price, page }?

printf("%d%d", book.price, book.page);
printf("%d%d", price.book, page.book);
printf("%d%d"< price::book< page::book);
printf("%d%d", price>book, page>book);