Hello students welcome to CSE Study247
This page provides C PROGRAMMING MCQ SET-1 that is very useful for Computer science students for preparation for many exams Like ( ISRO, DRDO,Semester, Interview, Railway & other Government Sectors)

C programming is the basic language of programming that helps to learn another language. So this MCQ is very useful for you.
C PROGRAMMING MCQ SET-1
Q.1 Who is the father of C language?
Dennis Ritchie
Charles Babbage
Robert
None of these
Explanation
Dennis Ritchie developed the C programming language at Bell Labs in 1972.
Q.2 In which year was the C language developed?
1979
1972
1919
1979
Explanation
C was developed in 1972 at AT&T Bell Laboratories.
Q.3 What does the prototype of a function mean?
Name of the function
Declaration of function
Parameter of function
All
Explanation
A function prototype provides the compiler with the function name, return type, and parameters.
Q.4 Which of the following is a keyword in C?
short
long
extern
All of these
Explanation
C has 32 reserved keywords, including short, long, and extern, which have predefined meanings.
Q.5 What is the memory size of the integer data type (in 16-bit systems)?
1 byte
2 byte
3 byte
None of these
Explanation
In traditional 16-bit C compilers, an integer occupies 2 bytes of memory.
Q.6 What is the format specifier for the integer data type?
%f
%lf
%d
None of these
Explanation
The %d format specifier is used to input or output signed decimal integers.
Q.7 What is the decimal range of a 16-bit signed integer?
-32768 to 32767
-128 to 127
32768 to -32767
None of these
Explanation
A signed 16-bit integer ranges from -32,768 to 32,767.
Q.8 What is the range of an unsigned integer data type?
-32768 to 32767
-128 to 127
32768 to -32767
0 to 65535
Explanation
An unsigned 16-bit integer cannot store negative values and ranges from 0 to 65,535.
Q.9 What is the memory size of the char data type?
1 byte
3 byte
2 byte
None of these
Explanation
The character (char) data type always occupies exactly 1 byte of memory.
Q.10 1 Byte is equal to how many bits?
16 bit
8 bit
2 bit
None of these
Explanation
A byte is a unit of data that is 8 binary digits (bits) long.
Q.11 Which of the following is a correct comment syntax in C?
*/ comment */
comment
/ comment /
None of these
Explanation
Multi-line comments in C begin with / and end with */.
Q.12 Which of the following is a valid C keyword?
short
longt
singd
None of these
Explanation
short’ is a reserved keyword in C used for declaring short integers.
Q.13 Any Program can be defined as an?
Algorithm
Process
Function
None of these
Explanation
An algorithm is a logical step-by-step procedure used to solve a problem, which is implemented via a program.
Q.14 C is generally considered a?
Low level language
High level language
Middle level language
None of these
Explanation
C is officially a High-level language, though it is often called ‘middle-level’ because it allows low-level memory manipulation.
Q.15 What is the format specifier for the float data type?
%d
%f
%lf
None of these
Explanation
The %f specifier is used to display or read floating-point values.
Q.16 The keyword 'else' is used with which statement?
while
do
if
None of these
Explanation
The ‘else’ block provides an alternative execution path when the ‘if’ condition is false.
Q.17 Which of the following is a unary arithmetic operator action?
Increment
Decrement
Both
None of these
Explanation
Unary operators like ++ (increment) and — (decrement) operate on a single operand.
Q.18 What is the primary role of a Compiler?
HLL TO LLL
HLL TO machine
LLL TO HLL
None of these
Explanation
A compiler translates high-level language (HLL) into low-level language (LLL) or machine code all at once.
Q.19 What is the primary role of an Interpreter?
HLL TO LLL
HLL TO machine
LLL TO HLL
None of these
Explanation
An interpreter translates high-level instructions into low-level code line by line.
Q.20 The printf() function is defined in which header file?
math.h
conio.h
stdio.h
None of these
Explanation
Standard Input Output functions like printf() and scanf() are defined in the stdio.h header file.
Related C PROGRAMMING MCQs
| SETS | MCQs | ✡ VISIT ✡ |
| 1 | 1 To 20 | CLICK |
| 2 | 21 To 40 | CLICK |
| 3 | 41 To 60 | CLICK |
| 4 | 61 To 80 | CLICK |
| 5 | 81 To100 | CLICK |
| 6 | 101 To 120 | CLICK |
| 7 | 121 To 140 | CLICK |
| 8 | 141 To 160 | CLICK |
| 9 | 161 To 180 | CLICK |
| 10 | 181 To 200 | CLICK |
| 1. Official Telegram | Click Here |
| 2. Telegram For CSE MCQs | Click Here |
| 3. You Tube | Click Here |