Home C C++ Java Python Perl PHP SQL JavaScript Linux Selenium QT Online Test

Home » C++ » C++ Objective Questions (Page-9)

C++ Objective Questions - Page-9

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++
[Posted by: Admin | Chicago, USA]


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++
[Posted by: Admin | Chicago, USA]


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
[Posted by: Admin | Chicago, USA]


Question: 164

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

Compiler
Level: Practitioner Category: loops
[Posted by: Admin | Chicago, USA]


Question: 165

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

Compiler
Level: Practitioner Category: classesAndobjects
[Posted by: Rohit Iparkar | Pune]


Question: 166

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

Compiler
Level: Expert Category: cpp17
[Posted by: Admin | Chicago, USA]


Question: 167

(A) Yes
(B) No

Compiler
Level: Expert Category: cpp17
[Posted by: Admin | Chicago, USA]


Question: 168

(A) Yes
(B) No

Compiler
Level: Expert Category: cpp17
[Posted by: Admin | Chicago, USA]


Question: 169

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

Compiler
Level: Expert Category: cpp14
[Posted by: Admin | Chicago, USA]


Question: 170

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

Compiler
Level: Expert Category: cpp20
[Posted by: Admin | Chicago, USA]


Question: 171

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

Compiler
Level: Expert Category: cpp20
[Posted by: Admin | Chicago, USA]


Question: 172

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

Compiler
Level: Expert Category: cpp20
[Posted by: Admin | Chicago, USA]


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

Compiler
Level: Practitioner Category: stl
[Posted by: Admin | Chicago, USA]


Question: 175

(A) Yes
(B) No

Compiler
Level: Practitioner Category: stl
[Posted by: Admin | Chicago, USA]


Question: 176

(A) Yes
(B) No

Compiler
Level: Practitioner Category: stl
[Posted by: Admin | Chicago, USA]


Question: 177

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

Compiler
Level: Practitioner Category: stl
[Posted by: Admin | 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

Compiler
Level: Practitioner Category: stl
[Posted by: Admin | 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());

Compiler
Level: Expert Category: cpp11
[Posted by: Admin | Chicago, USA]


Question: 180

(A) TRUE
(B) FALSE

Compiler
Level: Beginner Category: structure
[Posted by: Andrew | New Jersey]