Hello students welcome to CSE Study247
This page provide 20 Multiple choice question with Answer that is very useful of Computer science students like preparation of many exam Like ( ISRO,DRDO ,Semester, Interview , Railway & another Government Sector)
C programming is the basic language of programming that help to learn another language. So this MCQ is very useful for you.

C is a general purpose ,high level language that originally developed by Dennis Ritchie to develop the UNIX operating system at Bell labs.
Q.41 By default, a function in the C language returns a value of which type?
Int
Char
Void
None of these
Explanation
In older C standards (like C89), if the return type of a function is not explicitly specified, the compiler assumes it returns an ‘int’ by default.
Q.42 What is the term for a set of instructions provided to a computer system to perform a specific task?
Program
Operator
Hardware
None of these
Explanation
A program is a sequence of coded instructions that a computer follows to process data and perform desired operations.
Q.43 The '#' sign of a compiler directive (preprocessor) must appear at the ________ of a line.
Beginning
Middle
End
None of these
Explanation
Preprocessor directives like #include and #define must always start at the very beginning of a line to be recognized by the compiler.
Q.44 Which of the following is formulated as a step-by-step logical procedure to solve a problem?
Flow chart
Algorithm
Pseudocode
None of these
Explanation
An algorithm is a finite set of well-defined, computer-implementable instructions, typically to solve a class of specific problems or to perform a computation.
Q.45 Which function is used to release memory that was previously allotted through dynamic memory allocation?
Malloc ( )
Free ( )
Calloc ( )
None of these
Explanation
The free() function in C is used to deallocate or release the memory blocks that were previously allocated using malloc(), calloc(), or realloc().
Q.46 The reserved words in the C language that have predefined meanings are called?
Keyword
Secure word
Private word
None of these
Explanation
Keywords are reserved words in C (like ‘int’, ‘while’, ‘if’) that have special meaning to the compiler and cannot be used as identifiers.
Q.47 Which statement causes a loop to be terminated immediately?
Exit
Break
Default
None of these
Explanation
The ‘break’ statement is used to exit from a loop (for, while, do-while) or a switch statement as soon as it is encountered.
Q.48 In the C language, a character type constant is delimited using which symbols?
Single quotes
Double quotes
Parenthesis
#
Explanation
In C, character constants are enclosed in single quotes (e.g., ‘A’), whereas string constants are enclosed in double quotes (e.g., ‘Hello’).
Q.49 Which of the following is a logical operator in C?
&&
!=
I
All of the above
Explanation
The ‘&&’ symbol represents the Logical AND operator, used to combine two boolean expressions.
Q.50 Which of the following symbols is used as the inequality (not equal to) operator?
==
!=
—
All of the above
Explanation
The ‘!=’ operator is a relational operator in C that returns true if the two operands are not equal.
Q.51 If 'a' is an integer variable, what will be the value of 'a' after executing 'a = 5 / 2;'?
2.5
3
2
0
Explanation
In integer division in C, the fractional part is truncated (discarded). Therefore, 5 divided by 2 results in 2.
Q.52 What does operator precedence determine in an expression?
Which operator is evaluated first
Which operator is more important
Which operator is faster
None of these
Explanation
Precedence rules define the order in which operators are applied when an expression contains multiple operators.
Q.53 Which of the following statements is FALSE regarding C variable naming rules?
Capital letters can be used
Variable names can contain a digit
Variable names cannot contain a blank space
Keywords can be used as variable names
Explanation
Keywords are reserved by the language and cannot be used as variable names or any other user-defined identifiers.
Q.54 The two operators '&&' and '||' are categorized as?
Arithmetic operators
Equality operators
Logical operators
Relational operator
Explanation
&&’ (Logical AND) and ‘||’ (Logical OR) are logical operators used to perform logical operations on boolean values.
Q.56 In the C language, which of the following operators has the highest precedence?
+ (unary)
None of these
Explanation
Unary operators (like unary plus, unary minus, or increment) generally have higher precedence than relational operators like ”.
Q.57 Which of the following is the correct way to declare a pointer to a float variable?
Float ptr ;
Float *ptr ;
Float ptr ;
None of these
Explanation
In C, a pointer is declared by placing an asterisk () between the data type and the variable name.
Q.58 C is generally categorized as which type of programming language?
Low level
High Level
Both Low and High Level
None of these
Explanation
C is often called a ‘Middle-Level’ language because it combines the features of a high-level language with the low-level capabilities of manipulating memory addresses.
Q.59 Which of the following is required to write and run a C program?
Operating system
Text editor
Compiler
All of above
Explanation
To develop a C program, you need an editor to write code, a compiler to translate it, and an OS to manage the hardware execution.
Q.60 Which organization or committee standardized the 'C' programming language?
ANSI
W3C
ISO
TRAI
Explanation
The American National Standards Institute (ANSI) published the first standard for C, known as ANSI C, in 1989.
Related MCQ
| 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 |