JOIN ADRE 2.0 Telegram Group

C programming MCQs with Answers for competition

Questions
31 If 'a' is an integer variable, then a=5/2 will return a value
A 2.5
B 2
C 2.000000
D 2.500000

Answer: Option [B]

a = 5/2 = 2.5

Though 'a' is an integer variable so the outcome will be 2

32 Which of the following is not a basic data type in 'C' language?
A double
B float
C char
D array

Answer: Option [D]
Advertisement
Article and Schedule Quiz Start Test!

DOWNLOAD CURRENT AFFAIRS PDF FROM APP

33 If a=8, b=3 and c=-5 are integers, then value of a*b/c is
A -4
B -2.8
C +2.8
D +3

Answer: Option [A]

a*b/c

=8*3/-5

=-4.8

=-4[Though it is integer]

34 Which of the following is a valid identifier?
A Ireturn
B returnI
C return
D $return_I

Answer: Option [C]
35 Which of the following is a valid string constant?
A "programming"
B "programming
C 'programming
D $programming$

Answer: Option [A]

ADRE 2.0 FULL LENGTH MOCK TEST

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

Advertisement