Home C C++ Java Python Perl PHP SQL JavaScript Linux Selenium QT Online Test

Home » C++ » C++ Objective Questions for Practitioners

C++ Objective Questions for Practitioners : 25

Showing 1 - 25 of 124


Question: 1

(A) Yes
(B) No
(C) Undefined
(D) Depends on Compiler

Compiler
Level: Practitioner Category: datatype
[Posted by: Admin | Chicago, USA]


Question: 2

(A) 5020--5020--
(B) 5020--7012020--12020--
(C) 5020--70120200--5020
(D) 5020--7050200--5020--

Compiler
Level: Practitioner Category: function
[Posted by: Admin | Chicago, USA]


Question: 3

(A) Error
(B) 5 times
(C) 4 times
(D) 6 times

Compiler
Level: Practitioner Category: loops
[Posted by: Admin | Chicago, USA]


Question: 4

(A) read()
(B) write()
(C) both A and B
(D) without read()

Compiler
Level: Practitioner Category: operators
[Posted by: Admin | Chicago, USA]


Question: 5

(A) *
(B) /
(C) %
(D) all have same precedence

Compiler
Level: Practitioner Category: operators
[Posted by: Admin | Chicago, USA]


Question: 6

(A) One
(B) Compilation Error
(C) Default
(D) OneTwoThree

Compiler
Level: Practitioner Category: conditional
[Posted by: Admin | Chicago, USA]


Question: 7

(A) A class with abstract keyword
(B) A class with no functions in it
(C) A class with atleast one pure virtual function
(D) Empty Class

Compiler
Level: Practitioner Category: polymorphism
[Posted by: Admin | Chicago, USA]


Question: 8

(A) 0
(B) 1
(C) 2
(D) 4

Compiler
Level: Practitioner Category: datatype
[Posted by: Admin | Chicago, USA]


Question: 9

(A) Yes
(B) No

Compiler
Level: Practitioner Category: datatype
[Posted by: Admin | Chicago, USA]


Question: 10

(A) Yes
(B) No

Compiler
Level: Practitioner Category: datatype
[Posted by: Admin | Chicago, USA]


Question: 11

(A) We cant have
(B) In different work space
(C) Can have but in different file
(D) We can have in any scenario

Compiler
Level: Practitioner Category: datatype
[Posted by: Admin | Chicago, USA]


Question: 12

(A) Yes
(B) No

Compiler
Level: Practitioner Category: other
[Posted by: Admin | Chicago, USA]


Question: 13

(A) It is not possible
(B) It is possible only with C code
(C) By using extern "C" keyword
(D) By Converting C++ code to C

Compiler
Level: Practitioner Category: function
[Posted by: Admin | Chicago, USA]


Question: 14

(A) Yes
(B) No

Compiler
Level: Practitioner Category: abstract_class
[Posted by: Admin | Chicago, USA]


Question: 15

(A) Yes
(B) No

Compiler
Level: Practitioner Category: loops
[Posted by: Admin | Chicago, USA]


Question: 16

(A) Yes
(B) No

Compiler
Level: Practitioner Category: abstract_class
[Posted by: Admin | Chicago, USA]


Question: 17

(A) Yes
(B) No

Compiler
Level: Practitioner Category: classesAndobjects
[Posted by: Admin | Chicago, USA]


Question: 18

(A) It contains VPTR
(B) It contains address of Virtual function
(C) It cotains address of Object
(D) None of these

Compiler
Level: Practitioner Category: vtable
[Posted by: Admin | Chicago, USA]


Question: 19

(A) Yes
(B) No

Compiler
Level: Practitioner Category: classesAndobjects
[Posted by: Admin | Chicago, USA]


Question: 20

(A) A pointer pointing to NULL
(B) Pointer pointing to memory location which has been freed
(C) Pointer which is pointing to new location
(D) None of these

Compiler
Level: Practitioner Category: pointers
[Posted by: Admin | Chicago, USA]


Question: 21

(A) Yes
(B) No

Compiler
Level: Practitioner Category: virtual_func
[Posted by: Admin | Chicago, USA]


Question: 22

(A) Yes
(B) No
(C) Depends on compiler

Compiler
Level: Practitioner Category: virtual_func
[Posted by: Admin | Chicago, USA]


Question: 23

(A) Yes
(B) No

Compiler
Level: Practitioner Category: virtual_func
[Posted by: Admin | Chicago, USA]


Question: 24

(A) Yes
(B) No

Compiler
Level: Practitioner Category: virtual_func
[Posted by: Admin | Chicago, USA]


Question: 25

(A) Yes
(B) No

Compiler
Level: Practitioner Category: virtual_func
[Posted by: Admin | Chicago, USA]


Showing 1 - 25 of 124

C++ Online Test
Compile C++ code here

Browse C++ Categories

Loops Conditional Functions Operators Structure Enum Data Types Inheritance Pointers Classes & Objects Vtable Type Casting New & Delete Namespaces Virtual Functions Abstract Class STL Singleton Class Exceptions C++ 11 C++ 17 Time & Space Complexity others

Switch to C Questions