Hello students welcome to CSE Study247
This page provide C PROGRAMMING MCQs-4 (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.61 Every c program consists of ——- function?
only two
only one
one or many
None of these
Explanation
A C program must have at least one function, which is the main() function, but it can contain many other user-defined functions to perform various tasks.
Q.62 C compiler traps
Logical errors
Syntax errors
Both A & B
None of these
Explanation
A compiler primarily identifies syntax errors. While logical errors are usually found during runtime, the compiler can often identify certain semantic issues that lead to logical failures.
Q.63 Which of the following is related to machine language ?
Difficult to learn
Machine dependent
First generation language
All of these
Explanation
Machine language consists of binary code (0s and 1s), making it extremely difficult for humans to read. It is specific to the hardware architecture (machine dependent) and was the first level of programming.
Q.64 A program that converts a high level language program to a set of instructions that can run on a computer is called a :
Compiler
Debugger
Editor
None of the above
Explanation
A compiler translates the entire source code written in a high-level language into machine code or an executable file that the computer’s processor can understand.
Q.65 Which of the following is logical AND operator?
!
&&
||
None of the above
Explanation
In C, ‘&&’ is the logical AND operator, used to combine two conditions where both must be true for the whole expression to be true.
Q.66 ASCII value of A is
48
97
32
None of the above
Explanation
The standard ASCII value for the uppercase letter ‘A’ is 65. Note: 48 is for ‘0’, 97 is for ‘a’, and 32 is for a space character.
Q.67 The errors that can be pointed out by the compiler are :
Syntax errors
Semantic errors
Logical errors
None of the above
Explanation
Syntax errors are violations of the language’s grammatical rules (like missing semicolons), which are detected by the compiler during the translation process.
Q.68 The sign '#' of the compiler directive must appear at the ______ of a line
Beginning
Middle
End
None of the above
Explanation
Preprocessor directives, such as #include or #define, must always start with the hash symbol (#) at the very beginning of the line to be recognized.
Q.69 Printf() and scanf() function define in which header file?
conio.h
stdio.h
math.h
None of the above
Explanation
The stdio.h (Standard Input Output) header file contains the declarations for basic input/output functions like printf for output and scanf for input.
Q.70 Strlen() function define in which header file?
conio.h
stdio.h
string.h
None of the above
Explanation
The string.h header file contains functions used for manipulating strings, such as strlen() which is used to calculate the length of a string.
Q.71 Which committee standardize 'C' programming language?
ANSI
ISO
W3C
None of the above
Explanation
The American National Standards Institute (ANSI) established the first formal standard for the C language in 1989, commonly referred to as ANSI C.
Q.72 Which header file is designed for basic mathematical operations ?
Math.h
Stdio.h
Conio.h
None of the above
Explanation
The math.h header file provides various mathematical functions to perform operations like square root, power, and trigonometric calculations.
Q.73 EXP() function define in which header file?
Math.h
Stdio.h
Conio.h
None of the above
Explanation
The exp() function, which returns the base-e exponential value of a number, is part of the standard C math library (math.h).
Q.74 log() function define in which header file?
Math.h
Stdio.h
Conio.h
None of the above
Explanation
The log() function calculates the natural logarithm (base e) of a given number and is defined within the math.h header file.
Q.75 SQRT () function define in which header file?
Math.h
Stdio.h
Conio.h
None of the above
Explanation
The sqrt() function is used to compute the square root of a non-negative number and requires the math.h header file.
Q.76 asin() function define in which header file?
Math.h
Stdio.h
Conio.h
None of the above
Explanation
The asin() function, which calculates the arc sine (inverse sine) of a value, is defined in the math.h library.
Q.77 Such a variable which define outside the main() is called
main()
gobal variable
local variable
None of the above
Explanation
Variables declared outside of any function are called global variables; they are accessible from any part of the program during its execution.
Q.78 Such a variable which define inside the main() is called
main()
gobal variable
local variable
None of the above
Explanation
Variables declared inside a function or a block are called local variables and can only be accessed within that specific function or block.
Q.79 Which header file should be included to use function like malloc(), calloc()?
stdlib.h
string.h
memory.h
dos.h
Explanation
The stdlib.h (Standard Library) header file contains functions for dynamic memory allocation, such as malloc(), calloc(), and free().