C Language Multiple Choice Questions with Answers

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

Comment

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

Comment

Answer: Option [A]

DOWNLOAD CURRENT AFFAIRS PDF FROM APP

Article and Schedule Quiz Start Test!
(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

Comment

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

Comment

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

Comment

Answer: Option [A]

Take Mock Tests

Missiles Mock Test Start Test!
SSC MTS Mock Test Start Test
IBPS CLERK MOCK TEST Start Test
SSC MTS 2022 JULY 26 Shift 1 (ENGLISH) Start Test!
SSC GD Previous Year Paper 2021 Nov 17 Shift - I (Hindi) Start Test!
SSC CGL Tier - 1 PYP 2022 April 21 Shift- 1 (ENGLISH) Start Test!
MPSC PAPER I MOCK TEST 1 (ENGLISH) Start Test!
IB Security Assistant Mock test 1 (english) Start Test!
UP POLICE CONSTABLE MOCK TEST 1 Start Test!
DELHI POLICE CONSTABLE MOCK TEST 1 (HINDI) Start Test!

Chapters