JOIN ADRE 2.0 Telegram Group

C Language Multiple Choice Questions with Answers

Questions
21 Choose the option that contains only Unary operators of C:
A sizeof, (type conversion)
B short hand operator, &
C increment(++), >=, !
D ==, !=

Answer: Option [A]

The sizeof() operator is used to calculate the size of a variable. This works in single operand.

22 Maximum value of an unsigned integer is
A 65535
B 32767
C -32767
D -65535

Answer: Option [A]
Advertisement
ADRE 2.0 Mock Test - 5 Start Test
ADRE 2.0 Mock Test - 5 Start Test

DOWNLOAD CURRENT AFFAIRS PDF FROM APP

23 The keyword typedef is used to
A create a type of function
B define the type of function
C define the type of a variable
D create a new datatype name

Answer: Option [D]

The existing name in C program can be changed by using typedef keyword.

24 What will happen if an element is assigned a value to an element of an array whose subscript exceeds the size of the array?
A It will not be allowed, but no error message will be generated
B Compiler will generate an error message suggesting the name
C The element will be assigned NULL VALUE
D Some other data may be overwritten

Answer: Option [D]
25 By default a real number is treated as a
A float
B double
C long double
D integer

Answer: Option [A]

ADRE 2.0 MOCK TEST

Take Mock Tests

Government Schemes Mock Test Start Test!
Political Science Mock Test – 42 Start Test
History Test – 190 Start Test
Quantitative Aptitude Test Start Test!
Trigonometry - Mock Test Start Test!
Data Interpretation - Mock Test Start Test!
General Awareness - Mock Test Start Test!
Reasoning Ability - Mock Test Start Test!
Englist(Antonyms) Mock Test 1 Start Test!
Quantitative Aptitude (Percentage) Mock Test Start Test!
Economy Mock Test 1 Unlock Test!
Books & Authors - Test 2 Unlock Test!

Chapters

Advertisement