C++ Multiple Choice Questions for Practitioners

Home » C++ » MCQs for Practitioners

Showing 76 - 100 of 124


Question: 76

(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: 77

(A) Yes
(B) No



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

Question: 78

(A) Yes
(B) No



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

Question: 79

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



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

Question: 80

(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: 81

(A) file.open(“c:filename.txt”);
(B) open(afile) = link(anObject);
(C) linkstream(“filenemae.txt”)
(D) link(open(filename.txt);



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

Question: 82

(A) TRUE
(B) FALSE



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

Question: 83

(A) At the end of the file
(B) At the beginning of the file
(C) Nonexistent until the program declares it
(D) There is no read position



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

Question: 84

(A) The programs runs with no output
(B) 77
(C) Hello!
(D) Hello!



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

Question: 85

(A) True
(B) False



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

Question: 86

(A) #include
(B) #guard
(C) #ifndef
(D) endif



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

Question: 87

(A) True
(B) False



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

Question: 88

(A) re-assigned
(B) reformatted
(C) constructed
(D) overloaded



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

Question: 89

(A) True
(B) False



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

Question: 90

(A) True
(B) False



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

Question: 91

(A) static
(B) auto
(C) exterb
(D) register



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

Question: 92

(A) Static function
(B) constructor
(C) destructor
(D) friend



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

Question: 93

(A) Any time you read or write to the file
(B) Never
(C) Only when reading from the file
(D) When opening the file stream



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

Question: 94

(A) True
(B) False



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

Question: 95

(A) True
(B) False



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

Question: 96

(A) True
(B) False



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

Question: 97

(A) Polymorphism
(B) Inheritance
(C) Function overloading
(D) None of these



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

Question: 98

(A) virtual
(B) private
(C) public
(D) protected



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

Question: 99

(A) True
(B) False



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

Question: 100

(A) True
(B) False



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