JOIN ADRE 2.0 Telegram Group

C programming short Questions with Answers

Questions
41 Choose the option that contains only valid hexadecimal integers.
A 0x9F, 0xbcd, 0x1
B 037, 00x, 01000
C 0x561u, 0x9h, 0xdd
D H9F, HFF, HAA

Answer: Option [D]

The base of Hexadecimal number system is 16. It contains 0 to 9 and A,B,C.D,E,F to represent zero to fifteen.

42 Which of the following is not valid variable names in 'C'?
A float_int, keyword, A1
B ANSI, ascii, cpu
C valid, variable, name
D None of these

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

DOWNLOAD CURRENT AFFAIRS PDF FROM APP

43 The result of a relational operator is always
A either True or False
B is less than or is more than
C is equal or less or more
D All of these

Answer: Option [A]

The relational operators in 'C' are ==, !=, >, <, >=, <=. They always results in either True or False.

44 Which of the following cannot be used as identifiers?
A Letters
B Digits
C Underscores
D Spaces

Answer: Option [D]

Variable name, function name, structure name etc. are called identifiers. Spaces are not used in names.

45 What is the return type of ftell function?
A double
B int
C long
D float

Answer: Option [C]

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
Assam Direct Recruitment Test Series

Latest Test Series

ssc cgl test series

SSC CGL

Start Test 1000+ Tests Latest patternView Course
delhi policesi test series

DELHI POLICE SI

Start Test 1000+ Tests Latest patternView Course
west bengal psc test series

WEST BENGAL PSC

Start Test 1000+ Tests Latest patternView Course
cisf head constable test series

CISF CONSTABLE

Start Test 1000+ Tests Latest patternView Course
Junior Associate of the Indian Institute of Bankers(JAIIB) test series

JAIIB

Start Test 30 Full Length Tests View Course
adre 2024 test series

ADRE 2024

Start Test 25000+ QUESTIONS SOLUTIONSView Course
RRB RRC GROUP D test series

RRB RRC GROUP D

Start Test 15000+ QUESTIONS Latest patternView Course
UP POLICE SI test series

UP POLICE SI

Start Test 16000+ QUESTIONS Latest patternView Course
CLICK HERE TO VIEW ALL COURSES