C++ Objective Questions - Page-6
Page 6 (101 - 120)
Question: 101
(A) VB.NET
(B) VB 6
(C) C++
(D) C#
Compiler
Level: Beginner Category: other
[Posted by: Admin | Chicago, USA]
Question: 102
(A) Uses buttons, menus, and icons
(B) Should be easy for a user to manipulate
(C) Stands for Graphic Use Interaction
(D) Both A and B
Compiler
Level: Beginner Category: other
[Posted by: Admin | Chicago, USA]
Question: 103
(A) Single
(B) Byte
(C) Short
(D) Integer
Compiler
Level: Beginner Category: datatype
[Posted by: Admin | Chicago, USA]
Question: 104
(A) class
(B) field
(C) function
(D) property
Compiler
Level: Beginner Category: classesAndobjects
[Posted by: Admin | Chicago, USA]
Question: 105
(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: 106
(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: 107
(A) cdecl
(B) syscall
(C) pascal
(D) register
Compiler
Level: Expert Category: function
[Posted by: Admin | Chicago, USA]
Question: 108
(A) ELF
(B) DLLs
(C) PE
(D) None of the above
Compiler
Level: Expert Category: other
[Posted by: Admin | Chicago, USA]
Question: 109
(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: 110
Question: 111
(A) It instruct the compiler to set default value to any variable
(B) It instruct the compiler to set default return value to any function
(C) It instruct the compiler to set default argument values for any function
(D) It instruct the compiler to generate the default implementation
Compiler
Level: Beginner Category: loops
[Posted by: Admin | Chicago, USA]
Question: 112
(A) Checking the Grammar
(B) Finding the type of names and expressions
(C) Making up tokens from characters
(D) None of these
Compiler
Level: Beginner Category: cpp11
[Posted by: | Chicago, USA]
Question: 113
(A) long
(B) long int
(C) longs long
(D) long long
Compiler
Level: Beginner Category: cpp11
[Posted by: | Chicago, USA]
Question: 114
(A) final
(B) static
(C) stop
(D) friend
Compiler
Level: Beginner Category: cpp11
[Posted by: | Chicago, USA]
Question: 115
Question: 116
(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
Level: Expert Category: other
[Posted by: | Chicago, USA]
Question: 117
(A) do
(B) sizeof()
(C) goto
(D) sqrt()
Compiler
Level: Practitioner Category: keyword
[Posted by: Admin | Chicago, USA]
Question: 118
(A) pragma
(B) override
(C) wchar_t
(D) mutable
Compiler
Level: Practitioner Category: cpp11
[Posted by: Admin | Chicago, USA]
Question: 119
(A) It makes variable constant
(B) There is no such keyword in C++
(C) It allows a class data member to be modified even though it is the data member of a const object
(D) None of these
Compiler
Level: Practitioner Category: keyword
[Posted by: Admin | Chicago, USA]
Question: 120
(A) It saves the memory
(B) It runs code faster by allocating varibales in CPU register
(C) It takes extra bytes of memory
(D) Register variable are used with high configuration machines
Compiler
Level: Practitioner Category: keyword
[Posted by: Admin | Chicago, USA]
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 othersSwitch to C Questions