C++ Multiple Choice Questions Page 8 of 14

Home » C++ » Objective Questions

Showing Page 8 (141 - 160)

Question: 141

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

Compiler
Level: Practitioner Category: enum

Question: 142

(A) data
(B) members
(C) objects
(D) none of these

Compiler
Level: Beginner Category: structure

Question: 143

(A) 128
(B) 256
(C) 1024
(D) None of the above

Compiler
Level: Practitioner Category: structure

Question: 144

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

Compiler
Level: Beginner Category: structure

Question: 145

(A) int
(B) float
(C) class
(D) enum

Compiler
Level: Practitioner Category: structure

Question: 146

(A) Yes
(B) No

Compiler
Level: Practitioner Category: structure

Question: 147

(A) Yes
(B) No

Compiler
Level: Practitioner Category: structure

Question: 148

(A) :?
(B) ::
(C) ->
(D) .

Compiler
Level: Practitioner Category: namespace

Question: 149

(A) namespace::a
(B) namesspace.a
(C) namespace->a
(D) namespace:a

Compiler
Level: Practitioner Category: namespace

Question: 150

(A) <iostream>
(B) <ofstream>
(C) <ifstream>
(D) <fstream>

Compiler
Level: Beginner Category: filehandling

Question: 151

(A) <ofstream>
(B) <outstream>
(C) <iofstream>
(D) <ostream>

Compiler
Level: Beginner Category: filehandling

Question: 152

(A) <ofstream>
(B) <ifstream>
(C) <fstream>
(D) <iostream>

Compiler
Level: Beginner Category: filehandling

Question: 153

(A) ios :: out
(B) ios :: app
(C) ios :: in
(D) ios::end

Compiler
Level: Practitioner Category: filehandling

Question: 154

(A) ios::out | ios::in
(B) ios::out, ios::in
(C) ios::out || ios::in
(D) ios::out & ios::in

Compiler
Level: Expert Category: filehandling

Question: 155

(A) Moves get pointer (input) to a specified location
(B) Moves put pointer (output) to a specified location
(C) Gives the current position of the get pointer
(D) Gives the current position of the put pointer

Compiler
Level: Practitioner Category: filehandling

Question: 156

(A) Moves get pointer (input) to a specified location
(B) Moves put pointer (output) to a specified location
(C) Gives the current position of the get pointer
(D) Gives the current position of the put pointer

Compiler
Level: Practitioner Category: filehandling

Question: 157

(A) Moves get pointer (input) to a specified location
(B) Moves put pointer (output) to a specified location
(C) Gives the current position of the get pointer
(D) Gives the current position of the put pointer

Compiler
Level: Practitioner Category: loops

Question: 158

(A) Gives the current position of the put pointer
(B) Gives the current position of the get pointer
(C) Moves put pointer (output) to a specified location
(D) Moves get pointer (input) to a specified location

Compiler
Level: Practitioner Category: filehandling

Question: 159

(A) For
(B) Do…While
(C) If
(D) While

Compiler
Level: Beginner Category: loops

Question: 160

(A) Branching
(B) Looping
(C) Rekursif
(D) Algorithm

Compiler
Level: Beginner Category: loops

Question: 161

(A) QT
(B) SDL
(C) WxWidget
(D) Bootstrap

Compiler
Level: Practitioner Category: other

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.