CppBuzz.com
  
Home C C++ Java Python Perl PHP SQL Javascript Linux Forum

You are here : Home » C++ » C++ Objective Questions for Experts

C++ Objective Questions for Experts : 48


Question: 1

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

Compiler DiscussOnForum
Expert 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 DiscussOnForum
Expert 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 DiscussOnForum
Expert vtable[Posted by: Admin | Chicago, USA]



Question: 4

(A) No
(B) Yes

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



Question: 5

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

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



Question: 6

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

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



Question: 7

(A) Yes
(B) No

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



Question: 8

(A) Yes
(B) No

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



Question: 9

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

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



Question: 10

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

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



Question: 11

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

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



Question: 12

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

Compiler DiscussOnForum
Expert 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 DiscussOnForum
Expert other[Posted by: Admin | Chicago, USA]



Question: 14

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

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



Question: 15

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

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



Question: 16

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

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



Question: 17

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

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



Question: 18

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

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



Question: 19

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

Compiler DiscussOnForum
Expert 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 DiscussOnForum
Expert 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 DiscussOnForum
Expert function[Posted by: Admin | Chicago, USA]



Question: 22

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

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



Question: 23

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

Compiler DiscussOnForum
Expert 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 DiscussOnForum
Expert cpp11[Posted by: Admin | Chicago, USA]



Question: 25

(A) Yes
(B) No

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



Question: 26

(A) t.foo template<U>(u);
(B) t.foo<typename U>(u);
(C) t.template foo<U>(u);
(D) typename t.foo<U>(u);

Compiler DiscussOnForum
Expert other[Posted by: | Chicago, USA]



Question: 27

(A) g++ -std=c++-11 -o output.out source.cpp
(B) g++ -std=c++11 -o output.out source.cpp
(C) g++ -std=c++ 11 -o output.out source.cpp
(D) g++ -std=cpp11 -o output.out source.cpp

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



Question: 28

(A) Filename
(B) First argument
(C) Last argument
(D) NULL pointer

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



Question: 29

(A) nmake -f myfile option
(B) nmake -f opiton myfile
(C) nmake option -f myfile
(D) nmake option -fname myfile

Compiler DiscussOnForum
Expert gcc_g++[Posted by: Admin | Chicago, USA]



Question: 30

(A) 4
(B) 6
(C) 8
(D) 12

Compiler DiscussOnForum
Expert structure[Posted by: Admin | Chicago, USA]



Question: 31

(A) 4
(B) 6
(C) 8
(D) 12

Compiler DiscussOnForum
Expert structure[Posted by: Admin | Chicago, USA]



Question: 32

(A) 4
(B) 6
(C) 8
(D) 12

Compiler DiscussOnForum
Expert structure[Posted by: Admin | Chicago, USA]



Question: 33

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

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



Question: 34

(A) Yes
(B) No

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



Question: 35

(A) ios::out | ios::in
(B) ios::out, ios::in
(C) ios::out || ios::in
(D) ios::out & ios::in

Compiler DiscussOnForum
Expert filehandling[Posted by: Admin | Chicago, USA]



Question: 36

(A) g++ -o <filename>
(B) g++ -c <filename>
(C) g++ <filename>
(D) g++ -f <filename>

Compiler DiscussOnForum
Expert gcc_g++[Posted by: Admin | Chicago, USA]



Question: 37

(A) Normal Data Section
(B) Un initialized data section
(C) Initialized data section
(D) None of the above

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



Question: 38

(A) std::variant
(B) std::optional
(C) std::string_view
(D) None of the above

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



Question: 39

(A) Yes
(B) No

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



Question: 40

(A) Yes
(B) No

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



Question: 41

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

Compiler DiscussOnForum
Expert cpp14[Posted by: Admin | Chicago, USA]



Question: 42

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

Compiler DiscussOnForum
Expert cpp20[Posted by: Admin | Chicago, USA]



Question: 43

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

Compiler DiscussOnForum
Expert cpp20[Posted by: Admin | Chicago, USA]



Question: 44

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

Compiler DiscussOnForum
Expert cpp20[Posted by: Admin | Chicago, USA]



Question: 45

(A) std::thread threadObj(thread_function);
(B) std::thread threadObj(&thread_function);
(C) std::thread threadObj((void *)thread_function);
(D) std::thread threadObj(thread_function());

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



Question: 46

(A) TRUE
(B) FALSE

Compiler DiscussOnForum
Expert filehandling[Posted by: Andrew | New Jersey]



Question: 47

(A) True
(B) False

Compiler DiscussOnForum
Expert exceptions[Posted by: Admin | Chicago, USA]



Question: 48

(A) 100
(B) 0
(C) Compilation Error
(D) Garbage Value is printed

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


Compile C++ code here Upload your Questions

Browse C++ Categories

Loops Conditional Functions Operators Structure Enum Storage Classes Union FileHandling Data Types Inheritance Pointers Classes & Objects Vtable Type Casting New & Delete Namespaces Reference Variables Static Cast Dynamic Cast Reinterpret Cast Const Cast Virtual Functions Abstract Class STL Singleton Class C++ 11 C++ 14 C++ 17 C++ 20 gcc/g++ others

Switch to C Questions