C++ Multiple Choice Questions Page 9 of 14

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>



Level: Expert
Category of MCQ: gcc_g++ in C++

Question: 162

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



Level: Beginner
Category of MCQ: gcc_g++ in C++

Question: 163

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



Level: Expert
Category of MCQ: other in C++

Question: 164

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



Level: Practitioner
Category of MCQ: loops in C++

Question: 165

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



Level: Practitioner
Category of MCQ: classesAndobjects in C++

Question: 166

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



Level: Expert
Category of MCQ: cpp17 in C++

Question: 167

(A) Yes
(B) No



Level: Expert
Category of MCQ: cpp17 in C++

Question: 168

(A) Yes
(B) No



Level: Expert
Category of MCQ: cpp17 in C++

Question: 169

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



Level: Expert
Category of MCQ: cpp14 in C++

Question: 170

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



Level: Expert
Category of MCQ: cpp20 in C++

Question: 171

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



Level: Expert
Category of MCQ: cpp20 in C++

Question: 172

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



Level: Expert
Category of MCQ: cpp20 in C++

Question: 173

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



Level: Practitioner
Category of MCQ: stl in C++

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



Level: Practitioner
Category of MCQ: stl in C++

Question: 175

(A) Yes
(B) No



Level: Practitioner
Category of MCQ: stl in C++

Question: 176

(A) Yes
(B) No



Level: Practitioner
Category of MCQ: stl in C++

Question: 177

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



Level: Practitioner
Category of MCQ: stl in C++

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



Level: Practitioner
Category of MCQ: stl in C++

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



Level: Expert
Category of MCQ: cpp11 in C++

Question: 180

(A) TRUE
(B) FALSE



Level: Beginner
Category of MCQ: structure in C++

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.