Home » C++ » MCQs
Showing Page 9 (161 - 180)
Question: 161
(A) g++ -o <filename>
(B) g++ -c <filename>
(C) g++ <filename>
(D) g++ -f <filename>
Question: 162
(A) The GNU C compiler
(B) GNU C compiler
(C) Generic C compiler
(D) GDB C Compiler
Question: 163
(A) Normal Data Section
(B) Un initialized data section
(C) Initialized data section
(D) None of the above
Question: 164
Question: 165
Question: 166
(A) std::variant
(B) std::optional
(C) std::string_view
(D) None of the above
Question: 167
Question: 168
Question: 169
Question: 170
Question: 171
Question: 172
Question: 173
(A) std::vector<integer> vecOfInts;
(B) std::vector int <vecOfInts>
(C) std::vector(int) vecOfInts;
(D) std::vector<int> vecOfInts;
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
Question: 175
Question: 176
Question: 177
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
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());
Question: 180
C++ Online Test
Compile C++ code here