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

Home » C++ » C++ Objective Questions for Experts

C++ Objective Questions for Experts: 25

Showing 1 - 25 of 50


Question: 1

(A) 2 Bytes
(B) 4 Bytes
(C) Undefined
(D) 0

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


Question: 2

(A) XY~X~Y
(B) XY~Y~X
(C) X~XY~Y
(D) X~X~YY

Compiler
Level: Expert Category: inheritance
[Posted by: Admin | Chicago, USA]


Question: 3

(A) Every Class has VTable
(B) Class inherited from other Class
(C) When a Class Overrides the function of Base class
(D) Class has atleast one Virtual Function

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


Question: 4

(A) No
(B) Yes

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


Question: 5

(A) Compilation Time
(B) Run Time
(C) Linking Time
(D) No

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


Question: 6

(A) GC++
(B) KDevelop
(C) GIT
(D) Valgrind

Compiler
Level: Expert Category: new_delete
[Posted by: Admin | Chicago, USA]


Question: 7

(A) Yes
(B) No

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


Question: 8

(A) Yes
(B) No

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


Question: 9

(A) 5
(B) 1
(C) 0
(D) Depends on Compiler

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


Question: 10

(A) 1234567899
(B) 12345678910
(C) 123455
(D) 12344

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


Question: 11

(A) 1
(B) 2
(C) 0
(D) Infinite Times

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


Question: 12

(A) *pp@*uzz
(B) CPP@BUZZ
(C) cpp@buzz
(D) Dp@*Czz

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


Question: 13

(A) std::exception
(B) std::bad_alloc
(C) std::runtime_error
(D) std::out_of_range

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


Question: 14

(A) Heap
(B) Stack
(C) Address Space
(D) Depends on Compiler

Compiler
Level: Expert Category: new_delete
[Posted by: Admin | Chicago, USA]


Question: 15

(A) C++ 03
(B) C++ 11
(C) C++ 14
(D) C++ 17

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


Question: 16

(A) C++ 03
(B) C++ 98
(C) C++ 0X
(D) C++ 03

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


Question: 17

(A) static_cast
(B) const_cast
(C) reinterpret_cast
(D) dynamic_cast

Compiler
Level: Expert Category: typecasting
[Posted by: Admin | Chicago, USA]


Question: 18

(A) C++ 0x
(B) C++ 98
(C) C++ 1z
(D) C++ 11

Compiler
Level: Expert Category: cpp17
[Posted by: Admin | Chicago, USA]


Question: 19

(A) C++0x
(B) C++11
(C) C++1z
(D) C++20

Compiler
Level: Expert Category: keyword
[Posted by: Admin | Chicago, USA]


Question: 20

(A) char *intStr = itoa(a); string str = string(intStr);
(B) std::string s = std::to_string(42);
(C) char stringNum[20]; int num=100; sprintf(stringNum,"%d",num);
(D) None of the above

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


Question: 21

(A) Arguments are placed in registers
(B) Arguments are placed in stack
(C) Arguments are placed in Heap
(D) None of the above

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


Question: 22

(A) cdecl
(B) syscall
(C) pascal
(D) register

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


Question: 23

(A) ELF
(B) DLLs
(C) PE
(D) None of the above

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


Question: 24

(A) [capture](parameters)->return-type {body}
(B) [parameters](capture)->return-type {body}
(C) [capture][parameters]->return-type {body}
(D) (capture)(parameters)->return-type {body}

Compiler
Level: Expert Category: cpp11
[Posted by: Admin | Chicago, USA]


Question: 25

(A) Yes
(B) No

Compiler
Level: Expert Category: cpp11
[Posted by: Admin | Chicago, USA]


Showing 1 - 25 of 50

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 gcc/g++ others

Switch to C Questions