Home » C++ » Objective Questions
Showing Page 9 (161 - 180)
Question: 161
(A) g++ -o <filename>
(B) g++ -c <filename>
(C) g++ <filename>
(D) g++ -f <filename>
Compiler
Level: Expert Category: gcc_g++
Question: 162
(A) The GNU C compiler
(B) GNU C compiler
(C) Generic C compiler
(D) GDB C Compiler
Compiler
Level: Beginner Category: gcc_g++
Question: 163
(A) Normal Data Section
(B) Un initialized data section
(C) Initialized data section
(D) None of the above
Compiler
Level: Expert Category: other
Question: 164
Question: 165
Question: 166
(A) std::variant
(B) std::optional
(C) std::string_view
(D) None of the above
Compiler
Level: Expert Category: cpp17
Question: 167
(A) Yes
(B) No
Compiler
Level: Expert Category: cpp17
Question: 168
(A) Yes
(B) No
Compiler
Level: Expert Category: cpp17
Question: 169
(A) C++11
(B) C++14
(C) C++ 17
(D) C++20
Compiler
Level: Expert Category: cpp14
Question: 170
Question: 171
(A) C++11
(B) C++14
(C) C++17
(D) C++20
Compiler
Level: Expert Category: cpp20
Question: 172
(A) C++11
(B) C++14
(C) C++17
(D) C++20
Compiler
Level: Expert Category: cpp20
Question: 173
(A) std::vector<integer> vecOfInts;
(B) std::vector int <vecOfInts>
(C) std::vector(int) vecOfInts;
(D) std::vector<int> vecOfInts;
Compiler
Level: Practitioner Category: stl
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
Compiler
Level: Practitioner Category: stl
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
Compiler
Level: Practitioner Category: stl
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());
Compiler
Level: Expert Category: cpp11
Question: 180
C++ Online Test
Compile C++ code here