Home
MCQs
C programming language MCQs
All MCQs
C programming language MCQs

C programming language MCQs - All MCQs

basics, Variables, Data Types

1. What is the range of long double data type in C Programming?

A. 0 to 4294967295

B. -3.4e38 to +3.4e38

C. -1.7e308 to +1.7e308

D. -1.7e4932 to +1.7e4932

Answer: D

2. What is variable in programming?

A. an entity that may change

B. an entity that does not have value

C. an entity that does not change

Answer: A

3. What will be result of following (5 / 2.0) in C programing language?

A. 2.5

B. 2

C. 3

D. 1

Answer: A

4. What is the range of short signed int data type in C Programming?

A. -128 to + 127

B. 0 to 255

C. -32768 to +32767

D. 0 to 65535

Answer: C

5. What is the range of signed char data type in C Programming?

A. 0 to 255

B. -128 to +127

C. -32768 to +32767

D. 0 to 65535

Answer: B

6. What is constant in programming?

A. an entity that may change

B. an entity that does not have value

C. an entity that does not change

Answer: C

7. How many byte(s) reserved by signed int in C programming?

A. 1 byte

B. 2 bytes

C. 4 bytes

D. 8 bytes

Answer: B

8. Where C language was developed ?

A. AT & T’s Bell Laboratories

B. Sun Microsystems

C. Netscape

Answer: A

9. Which type of result will be returned after performing an arithmetic operation between an integer and an integer?

A. Character

B. Integer

C. Real

D. Null

Answer: B

10. Which is the format modifier used for signed char in C programming?

A. %d

B. %c

C. %u

D. %ld

Answer: B