Skip to main content
Q.1. _______ Language is also called programming language.
A. Low Level
B. Operator
C. Machine
D. High Level ✅
❖ High-level languages are commonly called programming languages because they
allow programmers to write instructions in a human-readable form.
★ Coal - 2020
Q.2. What is the output of following program?
#include<stdio.h>
int main()
{
int a = 20;
;
;
printf("%d", a);
;
return 0;
}
★ TCS - 2026
A. 20
B. 23
C. 15
D. 25
Q.3. What will be printed by the following code?
char ch = 'A';
printf("%c", ch);
A. 65
B. ‘A’
C. “A”
D. A ✅
❖ The format specifier '%c' is used to print a single character.
❖ The character 'A' will be printed.
★ Computer Science - 2025
Q.4. On a typical 64-bit system, the size of an int in C is :
A. 8 Bytes
B. 4 Bytes ✅
C. 1 Bytes
D. 2 Bytes
❖ On a typical 64-bit system, the size of an int in C is 4 bytes (32 bits).
❖ While the underlying hardware uses 64-bit registers, standard C compilers maintain a 32-bit int for
backward compatibility, memory efficiency, and data model consistency across common platforms.
★ CDAC CCAT - 2025
Q.5. Which of the following storage classes have global
visibility in C/C++ ?
A. Auto
B. Register
C. Extern ✅
D. Static
❖ The extern storage class has global visibility (program-wide scope) in C/C++.
❖ Reason: The extern keyword tells the compiler that a variable or function is defined outside the current
block or even in another file. This grants it global visibility, allowing it to be accessed across multiple
files throughout the entire execution of the program.
★ UGC NET - 2017
Q.6. The code which uses 7 bits to represent a character is ?
A. BCD
B. ASCII ✅
C. Gray Code
D. Binary Code
❖ ASCII (American Standard Code for Information Interchange) is the coding scheme that uses 7 bits
to represent characters.
❖ This 7-bit standard allows for the representation of exactly (2^7 = 128) unique characters, which include
uppercase and lowercase English letters, numbers (0-9), punctuation marks, and control codes.
★ ISRO - 2015
Q.7. Which storage class specifier cannot be used with local
variables ?
A. Register
B. Extern ✅
C. Auto
D. Static
❖ The `extern` keyword is used to declare a variable that is defined in another file or is a global
variable.
❖ Using `extern` for local variables doesn't make sense because local variables are only supposed to
★ Computer Science - 2023
Q.8. In C language, FILE is of which data type ?
A. Int
B. Char
C. Struct ✅
D. None of Above
❖ In C language, FILE is a user-defined data type that is implemented internally as a struct
(structure).
❖ FILE is a structure type defined in the stdio.h header file. It acts as an opaque data type used to represent a
stream of input/output operations.
★ UPLT - 2026
Q.9. In the expression a = b + c * d, which operator is
evaluated first according to precedence rules?
A. +
B. * ✅
C. =
D. None of above
❖ In the expression a = b + c * d, the multiplication operator (*) is evaluated first.
❖ Multiplication and division have a higher precedence than addition and subtraction. Once
c * d is calculated, the addition (+) is performed, and finally, the assignment operator (=)
stores the result in a.
★ Computer Science - 2025
Q.10. Which of the following is not a white space character ?
A. BLANK
B. SEMI COLON✅
C. TAB
D. NEW LINE
❖ Provide an explanation of whitespace characters and identify the non-whitespace
option.
❖ Any visible letter, number, or punctuation mark (such as a dot ., the letter A, or the number 5)
is not a whitespace character.
★ TPSC - 2026
PYQ - 4 |Comprehensive C Programming Language Quiz with Explanations