C++ Objective Questions Page 9 of 14

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

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

Compiler
Level: Practitioner Category: loops

Question: 165

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

Compiler
Level: Practitioner Category: classesAndobjects

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

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

Compiler
Level: Expert Category: cpp20

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

(A) Yes
(B) No

Compiler
Level: Practitioner Category: stl

Question: 176

(A) Yes
(B) No

Compiler
Level: Practitioner Category: stl

Question: 177

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

Compiler
Level: Practitioner Category: stl

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

(A) TRUE
(B) FALSE

Compiler
Level: Beginner Category: structure

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.