Interview Questions on C C++

Home  |  About Us  |  Contact
View Questions Contribute Training Misc..

You are here : Home » Objective Questions on C++ Programming

C++ Objective Questions (MCQs) - 235 Questions


Question: 1

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

[Posted by: Admin | Location: Chicago, USA]



Question: 2

(A) Hi
(B) Bye
(C) HiBye
(D) Compilation Error

[Posted by: Admin | Location: Chicago, USA]



Question: 3

(A) Scope Resolution Operator
(B) Conditional Operator
(C) Ternary Operator
(D) if else o/p

[Posted by: Admin | Location: Chicago, USA]



Question: 4

(A) 2 Bytes
(B) 4 Bytes
(C) 1 Byte
(D) Depends on Compilor

[Posted by: Admin | Location: Chicago, USA]



Question: 5

(A) +
(B) -
(C) *
(D) ::

[Posted by: Admin | Location: Chicago, USA]



Question: 6

(A) +
(B) -
(C) ++
(D) *

[Posted by: Admin | Location: Chicago, USA]



Question: 7

(A) 11
(B) 10
(C) Error
(D) 0

[Posted by: Admin | Location: Chicago, USA]



Question: 8

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

[Posted by: Admin | Location: Chicago, USA]



Question: 9

(A) for(initialization;condition; increment/decrement)
(B) for(increment/decrement; initialization; condition)
(C) for(initialization, condition, increment/decrement
(D) None of These

[Posted by: Admin | Location: Chicago, USA]



Question: 10

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

[Posted by: Admin | Location: Chicago, USA]



Question: 11

(A) Yes
(B) No
(C) Compilation Error
(D) Runtime Error

[Posted by: Admin | Location: Chicago, USA]



Question: 12

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

[Posted by: Admin | Location: Chicago, USA]



Question: 13

(A) 10
(B) 11
(C) Compilation Error
(D) Linking Error

[Posted by: Admin | Location: Chicago, USA]



Question: 14

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

[Posted by: Admin | Location: Chicago, USA]



Question: 15

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

[Posted by: Admin | Location: Chicago, USA]



Question: 16

(A) ()
(B) =
(C) *
(D) ++

[Posted by: Admin | Location: Chicago, USA]



Question: 17

(A) 4.5
(B) 4.0
(C) 4
(D) Compilation Error

[Posted by: Admin | Location: Chicago, USA]



Question: 18

(A) Dcon DDest
(B) Dcon DDest BCon BDest
(C) BCon DCon DDest BDest
(D) BCon DCon BDes DDest

[Posted by: Admin | Location: Chicago, USA]



Question: 19

(A) 10
(B) 11
(C) 12
(D) Not defined

[Posted by: Admin | Location: Chicago, USA]



Question: 20

(A) object oriented programming
(B) oriented object programming
(C) office oriented programming
(D) office objective programming

[Posted by: Admin | Location: Chicago, USA]



Question: 21

(A) 101111
(B) 111111
(C) 101011
(D) 101010

[Posted by: Admin | Location: Chicago, USA]



Question: 22

(A) No
(B) Yes
(C) Compilation Error
(D) Runtime Error

[Posted by: Admin | Location: Chicago, USA]



Question: 23

(A) Yes
(B) No
(C) Compilation Error
(D) Run

[Posted by: Admin | Location: Chicago, USA]



Question: 24

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

[Posted by: Admin | Location: Chicago, USA]



Question: 25

(A) Yes
(B) No
(C) Compilation Error
(D) Runtime Error

[Posted by: Admin | Location: Chicago, USA]



Question: 26

(A) Compilation Error
(B) Runtime Error
(C) CppBuzz
(D) CppBuzz;;;;

[Posted by: Admin | Location: Chicago, USA]



Question: 27

(A) new is: -10
(B) new is: 10
(C) Compilation Error
(D) new is: 0

[Posted by: Admin | Location: Chicago, USA]



Question: 28

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

[Posted by: Admin | Location: Chicago, USA]



Question: 29

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

[Posted by: Admin | Location: Chicago, USA]



Question: 30

(A) BASIC
(B) VB
(C) PASCAL
(D) C

[Posted by: Admin | Location: Chicago, USA]



Question: 31

(A) Constructor
(B) 0
(C) Compilation Error
(D) Runtime Error

[Posted by: Admin | Location: Chicago, USA]



Question: 32

(A) Compilation Error - Constructor Missing
(B) Nothing would be printed
(C) Undefined
(D) In constructor

[Posted by: Admin | Location: Chicago, USA]



Question: 33

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

[Posted by: Admin | Location: Chicago, USA]



Question: 34

(A) Compilation Error
(B) 0
(C) 3
(D) -3

[Posted by: Admin | Location: Chicago, USA]



Question: 35

(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

[Posted by: Admin | Location: Chicago, USA]



Question: 36

(A) 1
(B) 5
(C) There is no limit
(D) 256

[Posted by: Admin | Location: Chicago, USA]



Question: 37

(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

[Posted by: Admin | Location: Chicago, USA]



Question: 38

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

[Posted by: Admin | Location: Chicago, USA]



Question: 39

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 40

(A) No
(B) Yes

[Posted by: Admin | Location: Chicago, USA]



Question: 41

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 42

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

[Posted by: Admin | Location: Chicago, USA]



Question: 43

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 44

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

[Posted by: Admin | Location: Chicago, USA]



Question: 45

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

[Posted by: Admin | Location: Chicago, USA]



Question: 46

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 47

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 48

(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

[Posted by: Admin | Location: Chicago, USA]



Question: 49

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 50

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 51

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 52

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 53

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 54

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 55

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 56

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 57

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

[Posted by: Admin | Location: Chicago, USA]



Question: 58

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 59

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

[Posted by: Admin | Location: Chicago, USA]



Question: 60

(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

[Posted by: Admin | Location: Chicago, USA]



Question: 61

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 62

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

[Posted by: Admin | Location: Chicago, USA]



Question: 63

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 64

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 65

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

[Posted by: Admin | Location: Chicago, USA]



Question: 66

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 67

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 68

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 69

(A) AVL Tree
(B) Binary Tree
(C) Balance Binary Tree
(D) None of these

[Posted by: Admin | Location: Chicago, USA]



Question: 70

(A) Vector
(B) Deque
(C) Stack
(D) List

[Posted by: Admin | Location: Chicago, USA]



Question: 71

(A) We can create n number of object
(B) We can create max 256 objects
(C) We can create 1 object
(D) We cant create object

[Posted by: Admin | Location: Chicago, USA]



Question: 72

(A) A
(B) B
(C) Both has are same
(D) Depends on Compiler

[Posted by: Admin | Location: Chicago, USA]



Question: 73

(A) Structure which contains pointers
(B) Structure which has pointer to itself
(C) Structure which contains another structure
(D) None of these

[Posted by: Admin | Location: Chicago, USA]



Question: 74

(A) *
(B) ++
(C) +
(D) -

[Posted by: Admin | Location: Chicago, USA]



Question: 75

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 76

(A) Hello
(B) Bye
(C) Undefined
(D) Compilation Error

[Posted by: Admin | Location: Chicago, USA]



Question: 77

(A) 01
(B) 012
(C) 0
(D) 0123

[Posted by: Admin | Location: Chicago, USA]



Question: 78

(A) FiveSix
(B) Five
(C) Six
(D) None of these

[Posted by: Admin | Location: Chicago, USA]



Question: 79

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

[Posted by: Admin | Location: Chicago, USA]



Question: 80

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

[Posted by: Admin | Location: Chicago, USA]



Question: 81

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

[Posted by: Admin | Location: Chicago, USA]



Question: 82

(A) c1=-7,c2=-4
(B) c1=-7,c2=-3
(C) c1=-4,c1=b-3
(D) c1=-6,c2=-6

[Posted by: Admin | Location: Chicago, USA]



Question: 83

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

[Posted by: Admin | Location: Chicago, USA]



Question: 84

(A) 1@2@
(B) 1@2@1@
(C) 1@1@2@
(D) 1@2@2@

[Posted by: Admin | Location: Chicago, USA]



Question: 85

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

[Posted by: Admin | Location: Chicago, USA]



Question: 86

(A) std::bad_typeid
(B) std::logic_error
(C) std::runtime_error
(D) std::bad_cast

[Posted by: Admin | Location: Chicago, USA]



Question: 87

(A) std::bad_exception
(B) std::logic_error
(C) std::exception
(D) std::runtime_error

[Posted by: Admin | Location: Chicago, USA]



Question: 88

(A) .exe
(B) .out
(C) .lib
(D) .a

[Posted by: Admin | Location: Chicago, USA]



Question: 89

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

[Posted by: Admin | Location: Chicago, USA]



Question: 90

(A) IS-A relation
(B) HAS-A relation
(C) None of these

[Posted by: Admin | Location: Chicago, USA]



Question: 91

(A) Yes
(B) No
(C) Depends on compiler
(D) None of these

[Posted by: Admin | Location: Chicago, USA]



Question: 92

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

[Posted by: Admin | Location: Chicago, USA]



Question: 93

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

[Posted by: Admin | Location: Chicago, USA]



Question: 94

(A) <
(B) <<
(C) ->
(D) >>

[Posted by: Admin | Location: Chicago, USA]



Question: 95

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

[Posted by: Admin | Location: Chicago, USA]



Question: 96

(A) ASM
(B) asm
(C) Not possible
(D) Compiler specific

[Posted by: Admin | Location: Chicago, USA]



Question: 97

(A) Hey..
(B) CppBuzz.com
(C) Compilation Error
(D) None of these

[Posted by: Admin | Location: Chicago, USA]



Question: 98

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

[Posted by: Admin | Location: Chicago, USA]



Question: 99

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

[Posted by: Admin | Location: Chicago, USA]



Question: 100

(A) 1 Million +
(B) 2 Million +
(C) 3 Million +
(D) 4 Million +

[Posted by: Admin | Location: Chicago, USA]



Question: 101

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

[Posted by: Admin | Location: 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

[Posted by: Admin | Location: Chicago, USA]



Question: 103

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

[Posted by: Admin | Location: Chicago, USA]



Question: 104

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

[Posted by: Admin | Location: 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

[Posted by: Admin | Location: 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

[Posted by: Admin | Location: Chicago, USA]



Question: 107

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

[Posted by: Admin | Location: Chicago, USA]



Question: 108

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

[Posted by: Admin | Location: 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}

[Posted by: Admin | Location: Chicago, USA]



Question: 110

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



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

[Posted by: Admin | Location: 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

[Posted by: | Location: Chicago, USA]



Question: 113

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

[Posted by: | Location: Chicago, USA]



Question: 114

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

[Posted by: | Location: Chicago, USA]



Question: 115

(A) True
(B) False

[Posted by: | Location: Chicago, USA]



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);

[Posted by: | Location: Chicago, USA]



Question: 117

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

[Posted by: Admin | Location: Chicago, USA]



Question: 118

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

[Posted by: Admin | Location: 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

[Posted by: Admin | Location: 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

[Posted by: Admin | Location: Chicago, USA]



Question: 121

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 122

(A) It is volatile because it can change at any time
(B) It is const because our C program must not try to modify it
(C) Change value outside by means outside our C program
(D) All of these

[Posted by: Admin | Location: Chicago, USA]



Question: 123

(A) It saves memory
(B) It releases memory once it go out of scope
(C) It inrease execution time of program
(D) None of these

[Posted by: Admin | Location: Chicago, USA]



Question: 124

(A) Pass by Value
(B) Pass by reference
(C) Pass by pointer/address
(D) Depends on Compiler

[Posted by: Admin | Location: Chicago, USA]



Question: 125

(A) ios::trunc
(B) ios::ate
(C) ios::app
(D) ios::tellg

[Posted by: Admin | Location: Chicago, USA]



Question: 126

(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

[Posted by: Admin | Location: Chicago, USA]



Question: 127

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

[Posted by: Admin | Location: Chicago, USA]



Question: 128

(A) We can create link using structre only
(B) We can create link list using class only
(C) We can create link list either by class or structure
(D) We should ignore implementation of link list using structure as it consume more memory

[Posted by: Admin | Location: Chicago, USA]



Question: 129

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

[Posted by: Admin | Location: Chicago, USA]



Question: 130

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

[Posted by: Admin | Location: Chicago, USA]



Question: 131

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

[Posted by: Admin | Location: Chicago, USA]



Question: 132

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

[Posted by: Admin | Location: Chicago, USA]



Question: 133

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

[Posted by: Admin | Location: Chicago, USA]



Question: 134

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 135

(A) blue
(B) 2
(C) 1
(D) None of these

[Posted by: Admin | Location: Chicago, USA]



Question: 136

(A) blue
(B) Compilation Error
(C) 1
(D) 2

[Posted by: Admin | Location: Chicago, USA]



Question: 137

(A) yellow
(B) black
(C) Compilation Error
(D) 3

[Posted by: Admin | Location: Chicago, USA]



Question: 138

(A) black
(B) 0
(C) -1
(D) Some Garbage Value

[Posted by: Admin | Location: Chicago, USA]



Question: 139

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

[Posted by: Admin | Location: Chicago, USA]



Question: 140

(A) Compilation Error
(B) 0
(C) 1
(D) -4

[Posted by: Admin | Location: Chicago, USA]



Question: 141

(A) datas
(B) members
(C) objects
(D) none of these

[Posted by: Admin | Location: Chicago, USA]



Question: 142

(A) 128
(B) 256
(C) 1024
(D) None of the above

[Posted by: Admin | Location: Chicago, USA]



Question: 143

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

[Posted by: Admin | Location: Chicago, USA]



Question: 144

(A) int
(B) float
(C) class
(D) enum

[Posted by: Admin | Location: Chicago, USA]



Question: 145

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 146

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 147

(A) :?
(B) ::
(C) ->
(D) .

[Posted by: Admin | Location: Chicago, USA]



Question: 148

(A) namespace::a
(B) namesspace.a
(C) namespace->a
(D) namespace:a

[Posted by: Admin | Location: Chicago, USA]



Question: 149

(A) <iostream>
(B) <ofstream>
(C) <ifstream>
(D) <fstream>

[Posted by: Admin | Location: Chicago, USA]



Question: 150

(A) <ofstream>
(B) <outstream>
(C) <ofstream>
(D) <ostream>

[Posted by: Admin | Location: Chicago, USA]



Question: 151

(A) <ofstream>
(B) <ifstream>
(C) <fstream>
(D) <iostream>

[Posted by: Admin | Location: Chicago, USA]



Question: 152

(A) ios :: out
(B) ios :: app
(C) ios :: in
(D) ios::end

[Posted by: Admin | Location: Chicago, USA]



Question: 153

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

[Posted by: Admin | Location: Chicago, USA]



Question: 154

(A) Moves get pointer (input) to a specified location
(B) Moves put pointer (output) to a specified location
(C) Gives the current position of the get pointer
(D) Gives the current position of the put pointer

[Posted by: Admin | Location: Chicago, USA]



Question: 155

(A) Moves get pointer (input) to a specified location
(B) Moves put pointer (output) to a specified location
(C) Gives the current position of the get pointer
(D) Gives the current position of the put pointer

[Posted by: Admin | Location: Chicago, USA]



Question: 156

(A) Moves get pointer (input) to a specified location
(B) Moves put pointer (output) to a specified location
(C) Gives the current position of the get pointer
(D) Gives the current position of the put pointer

[Posted by: Admin | Location: Chicago, USA]



Question: 157

(A) Gives the current position of the put pointer
(B) Gives the current position of the get pointer
(C) Moves put pointer (output) to a specified location
(D) Moves get pointer (input) to a specified location

[Posted by: Admin | Location: Chicago, USA]



Question: 158

(A) For
(B) Do…While
(C) If
(D) While

[Posted by: Jeffry Azhari Rosman | Location: Indonesia]



Question: 159

(A) Branching
(B) Looping
(C) Rekursif
(D) Algoritma

[Posted by: Jeffry Azhari Rosman | Location: Indonesia]



Question: 160

(A) QT
(B) SDL
(C) WxWidget
(D) Bootstrap

[Posted by: Admin | Location: Chicago, USA]



Question: 161

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

[Posted by: Admin | Location: Chicago, USA]



Question: 162

(A) The GNU C compiler
(B) GNU C compiler
(C) Generic C compiler
(D) GDB C Compiler

[Posted by: Admin | Location: Chicago, USA]



Question: 163

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

[Posted by: Admin | Location: Chicago, USA]



Question: 164

(A) 9876543210
(B) 987654321
(C) 9
(D) 0

[Posted by: Admin | Location: Chicago, USA]



Question: 165

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

[Posted by: Rohit Iparkar | Location: Pune]



Question: 166

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

[Posted by: Admin | Location: Chicago, USA]



Question: 167

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 168

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 169

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

[Posted by: Admin | Location: Chicago, USA]



Question: 170

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

[Posted by: Admin | Location: Chicago, USA]



Question: 171

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

[Posted by: Admin | Location: Chicago, USA]



Question: 172

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

[Posted by: Admin | Location: Chicago, USA]



Question: 173

(A) std::vector<integer> vecOfInts;
(B) std::vector int <vecOfInts>
(C) std::vector(int) vecOfInts;
(D) std::vector<int> vecOfInts;

[Posted by: Admin | Location: Chicago, USA]



Question: 174

(A) Initialize a Vector with 5 int & all default value is 0
(B) Initialize a Vector with 5 int
(C) Initialize a Vector with 5 int & all default values will be garbage
(D) Initialize a Vector with 5 int & All default value with be -1

[Posted by: Admin | Location: Chicago, USA]



Question: 175

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 176

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 177

(A) 1 2 3 4
(B) 1234
(C) 12340
(D) 01234

[Posted by: Admin | Location: Chicago, USA]



Question: 178

(A) Initialize vect to 5 string with value "Hi"
(B) Initialize vect's first element to a string with value "Hi" & prints them
(C) Initialize vect to 1 string with value "Hi" & prints only one
(D) Initialize vect to 5 string with value "Hi" & prints them

[Posted by: Admin | Location: Chicago, USA]



Question: 179

(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());

[Posted by: Admin | Location: Chicago, USA]



Question: 180

(A) TRUE
(B) FALSE

[Posted by: Andrew | Location: New Jersey]



Question: 181

(A) TRUE
(B) FALSE

[Posted by: Andrew | Location: New Jersey]



Question: 182

(A) TRUE
(B) FALSE

[Posted by: Andrew | Location: New Jersey]



Question: 183

(A) a member
(B) an array
(C) a tag
(D) None of these

[Posted by: Andrew | Location: New Jersey]



Question: 184

(A) employee[2] -> hourlyWage = 50.00;
(B) employee2.hourlyWage = 7.50;
(C) hourlyWage[2].employee = 29.75;
(D) employee[2].hourlyWage = 75.00;

[Posted by: Andrew | Location: New Jersey]



Question: 185

(A) cout << student1.gpa;
(B) cout << firstStudent.gpa;
(C) cout << student[1].gpa;
(D) cout << student1 ->gpa;

[Posted by: Andrew | Location: New Jersey]



Question: 186

(A) “MAPLE”
(B) 2
(C) ‘M’
(D) 1

[Posted by: Andrew | Location: New Jersey]



Question: 187

(A) TRUE
(B) FALSE

[Posted by: Andrew | Location: New Jersey]



Question: 188

(A) TRUE
(B) FALSE

[Posted by: Andrew | Location: New Jersey]



Question: 189

(A) TRUE
(B) FALSE

[Posted by: Andrew | Location: New Jersey]



Question: 190

(A) file.open(“c:filename.txt”);
(B) open(afile) = link(anObject);
(C) linkstream(“filenemae.txt”)
(D) link(open(filename.txt);

[Posted by: Andrew | Location: New Jersey]



Question: 191

(A) TRUE
(B) FALSE

[Posted by: Andrew | Location: New Jersey]



Question: 192

(A) get
(B) write
(C) put
(D) insert

[Posted by: Andrew | Location: New Jersey]



Question: 193

(A) TRUE
(B) FALSE

[Posted by: Andrew | Location: New Jersey]



Question: 194

(A) TRUE
(B) FALSE

[Posted by: Andrew | Location: New Jersey]



Question: 195

(A) At the end of the file
(B) At the beginning of the file
(C) Nonexistent until the program declares it
(D) There is no read position

[Posted by: Andrew | Location: New Jersey]



Question: 196

(A) TRUE
(B) FALSE

[Posted by: Andrew | Location: New Jersey]



Question: 197

(A) TRUE
(B) FALSE

[Posted by: Andrew | Location: New Jersey]



Question: 198

(A) True
(B) False

[Posted by: Andrew | Location: New Jersey]



Question: 199

(A) True
(B) False

[Posted by: Andrew | Location: New Jersey]



Question: 200

(A) Honda->run;
(B) Honda.run();
(C) run()
(D) Honda()

[Posted by: Andrew | Location: New Jersey]



Question: 201

(A) The programs runs with no output
(B) 77
(C) Hello!
(D) Hello!

[Posted by: Andrew | Location: New Jersey]



Question: 202

(A) True
(B) False

[Posted by: Andrew | Location: New Jersey]



Question: 203

(A) static function
(B) utility function
(C) constructor
(D) destructor

[Posted by: Andrew | Location: New Jersey]



Question: 204

(A) True
(B) False

[Posted by: Andrew | Location: New Jersey]



Question: 205

(A) first variable name
(B) first function
(C) class name
(D) object name

[Posted by: Andrew | Location: New Jersey]



Question: 206

(A) True
(B) False

[Posted by: Andrew | Location: New Jersey]



Question: 207

(A) True
(B) False

[Posted by: Andrew | Location: New Jersey]



Question: 208

(A) TRUE
(B) FALSE

[Posted by: Andrew | Location: New Jersey]



Question: 209

(A) True
(B) False

[Posted by: Andrew | Location: New Jersey]



Question: 210

(A) #include
(B) #guard
(C) #ifndef
(D) endif

[Posted by: Andrew | Location: New Jersey]



Question: 211

(A) True
(B) False

[Posted by: Andrew | Location: New Jersey]



Question: 212

(A) re-assigned
(B) reformatted
(C) constructed
(D) overloaded

[Posted by: Andrew | Location: New Jersey]



Question: 213

(A) True
(B) False

[Posted by: Andrew | Location: New Jersey]



Question: 214

(A) True
(B) False

[Posted by: Andrew | Location: New Jersey]



Question: 215

(A) static
(B) auto
(C) exterb
(D) register

[Posted by: Andrew | Location: New Jersey]



Question: 216

(A) Static function
(B) constructor
(C) destructor
(D) friend

[Posted by: Andrew | Location: New Jersey]



Question: 217

(A) Any time you read or write to the file
(B) Never
(C) Only when reading from the file
(D) When opening the file stream

[Posted by: Andrew | Location: New Jersey]



Question: 218

(A) True
(B) False

[Posted by: Andrew | Location: New Jersey]



Question: 219

(A) True
(B) False

[Posted by: Andrew | Location: New Jersey]



Question: 220

(A) True
(B) False

[Posted by: Andrew | Location: New Jersey]



Question: 221

(A) Polymorphism
(B) Inheritance
(C) Function overloading
(D) None of these

[Posted by: Andrew | Location: New Jersey]



Question: 222

(A) True
(B) False

[Posted by: Andrew | Location: New Jersey]



Question: 223

(A) never
(B) must
(C) may
(D) None

[Posted by: Andrew | Location: New Jersey]



Question: 224

(A) True
(B) False

[Posted by: Andrew | Location: New Jersey]



Question: 225

(A) virtual
(B) private
(C) public
(D) protected

[Posted by: Andrew | Location: New Jersey]



Question: 226

(A) Car
(B) Vehicle
(C) protected
(D) None

[Posted by: Andrew | Location: New Jersey]



Question: 227

(A) True
(B) False

[Posted by: Andrew | Location: New Jersey]



Question: 228

(A) True
(B) False

[Posted by: Andrew | Location: New Jersey]



Question: 229

(A) True
(B) False

[Posted by: Admin | Location: Chicago, USA]



Question: 230

(A) True
(B) False

[Posted by: Admin | Location: Chicago, USA]



Question: 231

(A) True
(B) False

[Posted by: Admin | Location: Chicago, USA]



Question: 232

(A) True
(B) False

[Posted by: Admin | Location: Chicago, USA]



Question: 233

(A) True
(B) False

[Posted by: Admin | Location: Chicago, USA]



Question: 234

(A) True
(B) False

[Posted by: Admin | Location: Chicago, USA]



Question: 235

(A) True
(B) False

[Posted by: Admin | Location: Chicago, USA]