C++ Multiple Choice Questions Page 7 of 14

Home » C++ » MCQs

Showing Page 7 (121 - 140)

Question: 121

(A) Yes
(B) No



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

Question: 122

(A) It is volatile because it can change at any time
(B) It is const because our C program must not try to modify it
(C) Change value outside by means outside our C program
(D) All of these



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

Question: 123

(A) It saves memory
(B) It releases memory once it go out of scope
(C) It inrease execution time of program
(D) None of these



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

Question: 124

(A) Pass by Value
(B) Pass by reference
(C) Pass by pointer/address
(D) Depends on Compiler



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

Question: 125

(A) ios::trunc
(B) ios::ate
(C) ios::app
(D) ios::tellg



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

Question: 126

(A) g++ -std=c++-11 -o output.out source.cpp
(B) g++ -std=c++11 -o output.out source.cpp
(C) g++ -std=c++ 11 -o output.out source.cpp
(D) g++ -std=cpp11 -o output.out source.cpp



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

Question: 127

(A) Filename
(B) First argument
(C) Last argument
(D) NULL pointer



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

Question: 128

(A) We can create link using structure only
(B) We can create link list using class only
(C) We can create link list either by class or structure
(D) We should ignore implementation of link list using structure as it consume more memory



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

Question: 129

(A) nmake -f myfile option
(B) nmake -f opiton myfile
(C) nmake option -f myfile
(D) nmake option -fname myfile



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

Question: 130

(A) 4
(B) 6
(C) 8
(D) 12



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

Question: 131

(A) 4
(B) 6
(C) 8
(D) 12



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

Question: 132

(A) 4
(B) 6
(C) 8
(D) 12



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

Question: 133

(A) Yes
(B) No
(C) Depends on Compiler



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

Question: 134

(A) Yes
(B) No



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

Question: 135

(A) blue
(B) 2
(C) 1
(D) None of these



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

Question: 136

(A) blue
(B) Compilation Error
(C) 1
(D) 2



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

Question: 137

(A) yellow
(B) black
(C) Compilation Error
(D) 3



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

Question: 138

(A) black
(B) 0
(C) -1
(D) Some Garbage Value



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

Question: 139

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



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

Question: 140

(A) Compilation Error
(B) 0
(C) 1
(D) -4



Level: Practitioner
Category of MCQ: enum 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.