computer MCQs
12th • Chapter 09
50 Questions TextBook
1
The names used to represent variables, constants, types, and functions are called?
2
According to the text, how many types of identifiers are there in C?
3
Which of the following is given as an example of a standard identifier?
4
The fact that 'SQUARE_AREA' and 'Square_Area' are considered different identifiers means C is?
5
Words that have a predefined meaning in C and cannot be redefined are called?
6
How many words are defined as keywords in ANSI C?
7
Variables are named memory locations created in?
8
What is the process of assigning a value to a variable at the time of its declaration called?
9
A variable name can consist of letters, digits, and which other character?
10
What must be the first character of a variable name in C?
11
For many compilers like Turbo C++, what is the maximum number of significant characters in a variable name?
12
Which of the in the following is an invalid variable name in C?
13
A quantity whose value cannot be changed during program execution is a?
14
Which directive is used to define constant macros like #define PI 3.142857?
15
A single alphabet, digit, or symbol enclosed in apostrophes like 'A' is a?
16
What is the maximum length of a character constant in C?
17
'int', 'double', and 'char' are examples of what?
A
User-defined data types 18
How many bytes of memory does a standard 'int' variable typically occupy?
19
What is the range of values for a standard 'signed int' data type?
20
What is the range of values for an 'unsigned int' data type?
D
-2147483648 to 2147483647 21
How many bytes of memory does a 'long' data type occupy?
22
In scientific notation like 2.45634e5, the value 2.45634 is the?
23
Which data type provides the highest precision according to the table in the text?
24
How many bytes of memory does a 'float' variable occupy?
25
What is the precision in digits for a 'double' data type?
26
The 'char' data type variable occupies how many bytes in memory?
27
In C, characters are stored and manipulated in the form of?
28
When the result of a computation is too large to be represented, the phenomenon is called?
29
When a calculation result is too small to be represented accurately and is set to zero, it is called?
30
What is the symbol for the modulus operator in C?
31
The operator '==' is what type of operator?
32
What does the expression 'a != b' check for?
33
Which operator is the logical AND?
34
Which operator is used to reverse the result of a logical evaluation?
35
The '=' symbol in C represents which operator?
36
The '++' symbol is known as which operator?
37
If j = 10; and the statement is i = ++j;, what will be the final value of i?
38
If j = 10; and the statement is i = j++;, what will be the final value of i?
39
Increment and decrement operators are what type of operators?
40
The statement 'j -= 5;' is equivalent to which of the following?
41
Which of the following operators has the highest precedence according to the text?
42
Which of the following operators has the lowest precedence?
43
A combination of operators and operands is known as?
44
What is the result of the integer division 5 / 2 in C?
45
What is the result of the expression 5 % 2 in C?
46
When a double value like 2.5 is assigned to an int variable, what happens to the fractional part?
47
How do you start a single-line comment in C?
48
How must a multi-line comment be ended in C?
49
Comments in a C program are?
A
Executed by the compilerB
Ignored by the compilerC
Converted to machine code 50
The standard input/output library is represented as?