C++ Multiple Choice Questions Page 6 of 14

Home » C++ » Objective Questions

Showing Page 6 (101 - 120)

Question: 101

(A) VB.NET
(B) VB 6
(C) C++
(D) C#

Compiler
Level: Beginner Category: other

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

Question: 103

(A) Single
(B) Byte
(C) Short
(D) Integer

Compiler
Level: Beginner Category: datatype

Question: 104

(A) class
(B) field
(C) function
(D) property

Compiler
Level: Beginner Category: classesAndobjects

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

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

Question: 107

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

Compiler
Level: Expert Category: function

Question: 108

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

Compiler
Level: Expert Category: other

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

Question: 110

(A) Yes
(B) No

Compiler
Level: Expert Category: cpp11

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

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

Question: 113

(A) long
(B) long int
(C) longs long
(D) long long

Compiler
Level: Beginner Category: cpp11

Question: 114

(A) final
(B) static
(C) stop
(D) friend

Compiler
Level: Beginner Category: cpp11

Question: 115

(A) True
(B) False

Compiler
Level: Practitioner Category: other

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

Question: 117

(A) do
(B) sizeof()
(C) goto
(D) sqrt()

Compiler
Level: Practitioner Category: keyword

Question: 118

(A) pragma
(B) override
(C) wchar_t
(D) mutable

Compiler
Level: Practitioner Category: cpp11

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

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

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 C++20 Time & Space Complexity others

Switch to C Questions

MCQs

About Us | Contact Us | Privacy Policy | Career  | Online Training
Youtube   LinkedIn   Facebook   Twitter   Instagram  
Copyright©CppBuzz.com
Like many websites, we use cookies to ensure best browsing experience on our website. While using this website, you acknowledge to have read and accepted our cookie and privacy policy.