JOIN ADRE 2.0 Telegram Group

C++ Short Questions & Answers | C Plus Plus Programming Language Quiz

Questions
25. The class which derives the property from other is called as ________.
  • [A] super
  • [B} derived
  • [C} subordinarte
  • [A] base

Answer: Option [B]

26. The other name for derived class is __________
  • [A] subclass
  • [B} super class
  • [C} subordinate class
  • [A] base class

Answer: Option [A]

Advertisement
Article and Schedule Quiz Start Test!

DOWNLOAD CURRENT AFFAIRS PDF FROM APP

27. What does your class can hold?
  • [A] data
  • [B} functions
  • [C} both a & b
  • [A] none of the mentioned

Answer: Option [C]

28. ___________ is an entry controlled looping statement.
  • [A] for
  • [B} repeat
  • [C} until
  • [A] do..while

Answer: Option [A]

29. Which of the following is an exit controlled looping statement
  • [A] for
  • [B} while
  • [C} do..while
  • [A] repeat

Answer: Option [C]

30. What is the index number of the last element of an array with 9 elements?
  • [A] 9
  • [B} 8
  • [C} 0
  • [A] Programmer-defined

Answer: Option [B]

31. Which of the following accesses the seventh element stored in array?
  • [A] array[6];
  • [B} array[7];
  • [C} array(7);
  • [A] array;

Answer: Option [A]

32. When a class A inhereits its properties from class B and class C, then the inheritance is said to be ___________ inheritance
  • [A] multiple
  • [B} multilevel
  • [C} single
  • [A] hybrid

Answer: Option [A]

33. Polymorphism is not implemented through ____________.
  • [A] function overloading
  • [B} operator overloading
  • [C} operator overloading
  • [A] contructors and destructors

Answer: Option [D]

34. ____________ function specifies the required number of fields to be used while displaying the output value
  • [A] with()
  • [B} width()
  • [C} fill()
  • [A] setf()

Answer: Option [B]

35. ____________ function clears the flags.
  • [A] width()
  • [B} precision()
  • [C} unsetf()
  • [A] setf()

Answer: Option [C]

36. The primary difference between float and double is in the ____ of the value they hold.
  • [A] address.
  • [B} magnitude.
  • [C} sign.
  • [A] decimal point.

Answer: Option [B]

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!
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