C/C MCQ Quiz Hub

C Programming MCQ Part 1

Choose a topic to test your knowledge and improve your C/C skills

The execution of a C program start from _____.





✅ Correct Answer: 3

The C supports _____ basic data types





✅ Correct Answer: 4

The C program is converted to machine language using________.





✅ Correct Answer: 2

The C was developed in the year____





✅ Correct Answer: 2

C language has been developed at_________.





✅ Correct Answer: 1

The C language is an offspring of ______





✅ Correct Answer: 1

The programs should be written only in_______





✅ Correct Answer: 1

The role of a compiler is to translate source program statements to_________.





✅ Correct Answer: 1

he extension for C program files by default is_________.





✅ Correct Answer: 1

An escape sequence commences with _____________.





✅ Correct Answer: 1

The C language is closely associated with _________.





✅ Correct Answer: 3

The C program is highly case sensitive





✅ Correct Answer: 2

Each instruction in C program is terminated by__________.





✅ Correct Answer: 3

Which of the following declaration is not supported by C?





✅ Correct Answer: 1

ANSI committee was setup in the summer of___________.





✅ Correct Answer: 4

A declaration float a, b; occupies ___ of memory. .





✅ Correct Answer: 3

Identify the wrong statement.





✅ Correct Answer: 3

An interpreter reads the source code of a program__





✅ Correct Answer: 1

A compiler compiles the source code_______





✅ Correct Answer: 1

A character variable can store only___________.





✅ Correct Answer: 1

C variable cannot start with_________.





✅ Correct Answer: 1

A short integer variable occupies memory_________.





✅ Correct Answer: 1

According to __________ C keywords are reserved words.





✅ Correct Answer: 1

The declaration of C variable can be done____





✅ Correct Answer: 2

In C one statement can declare_________.





✅ Correct Answer: 4

The word char is a_______





✅ Correct Answer: 1

The variables are initialized using_________.





✅ Correct Answer: 2

An unsigned integer variable contains values________.





✅ Correct Answer: 1

The keyword const keeps the value of a variable_________.





✅ Correct Answer: 1

The keyword const keeps the value of a variable_________.





✅ Correct Answer: 1

In C every variable has_______.





✅ Correct Answer: 1

The range of character data type is_________.





✅ Correct Answer: 1

The keyword volatile keeps the value of variable__________.





✅ Correct Answer: 1

Which is the incorrect variable name__________.





✅ Correct Answer: 1

How many keywords are there in ANSI C?





✅ Correct Answer: 1

How many variables can be initialized at a time?





✅ Correct Answer: 1

Which of the following statement is valid?





✅ Correct Answer: 1

__________ refers to the accuracy of the calculations.





✅ Correct Answer: 1

The variable name can be started with__________. A.





✅ Correct Answer: 1

What is the value of sizeof(char)?





✅ Correct Answer: 1

______ decides which operator is to be used first.





✅ Correct Answer: 4

The & operator displays________.





✅ Correct Answer: 1

Addition of two numbers is performed using _________.





✅ Correct Answer: 1

What is the value of 10%8?





✅ Correct Answer: 2

What is the result of the expression (10/3)*3+5%3?





✅ Correct Answer: 1

What is the result of the expression (23*2) % (int) 5.5?





✅ Correct Answer: 2

What is the result of 5/2?





✅ Correct Answer: 3

What is the result of 5&&2?





✅ Correct Answer: 2

Which function is appropriate for accepting a string?





✅ Correct Answer: 1

What is the ASCII range for 0 to 9 digits?





✅ Correct Answer: 3