C programming short Questions with Answers

Sports GK Questions and Answers 2024 (Latest Updated)

Awards & Honours GK Questions 2024 (Latest Updated)

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]

Random GK Questions

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

Assam Direct Recruitment Test Series

Computer Science Topics