Home C C++ Java Python Perl PHP SQL JavaScript Linux Selenium QT Online Test

Home » C++ » C++ Objective Questions (Page-7)

C++ Objective Questions - Page-7

Page 7 (121 - 140)

Question: 121

(A) Yes
(B) No

Compiler
Level: Practitioner Category: keyword
[Posted by: Admin | Chicago, USA]


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

Compiler
Level: Practitioner Category: keyword
[Posted by: Admin | Chicago, USA]


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

Compiler
Level: Practitioner Category: other
[Posted by: Admin | Chicago, USA]


Question: 124

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

Compiler
Level: Beginner Category: other
[Posted by: Admin | Chicago, USA]


Question: 125

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

Compiler
Level: Practitioner Category: other
[Posted by: Admin | Chicago, USA]


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

Compiler
Level: Expert Category: cpp11
[Posted by: Admin | Chicago, USA]


Question: 127

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

Compiler
Level: Expert Category: other
[Posted by: Admin | Chicago, USA]


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

Compiler
Level: Beginner Category: other
[Posted by: Admin | Chicago, USA]


Question: 129

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

Compiler
Level: Expert Category: gcc_g++
[Posted by: Admin | Chicago, USA]


Question: 130

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

Compiler
Level: Expert Category: structure
[Posted by: Admin | Chicago, USA]


Question: 131

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

Compiler
Level: Expert Category: structure
[Posted by: Admin | Chicago, USA]


Question: 132

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

Compiler
Level: Expert Category: structure
[Posted by: Admin | Chicago, USA]


Question: 133

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

Compiler
Level: Expert Category: cpp11
[Posted by: Admin | Chicago, USA]


Question: 134

(A) Yes
(B) No

Compiler
Level: Expert Category: cpp11
[Posted by: Admin | Chicago, USA]


Question: 135

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

Compiler
Level: Practitioner Category: enum
[Posted by: Admin | Chicago, USA]


Question: 136

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

Compiler
Level: Practitioner Category: enum
[Posted by: Admin | Chicago, USA]


Question: 137

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

Compiler
Level: Practitioner Category: enum
[Posted by: Admin | Chicago, USA]


Question: 138

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

Compiler
Level: Practitioner Category: enum
[Posted by: Admin | Chicago, USA]


Question: 139

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

Compiler
Level: Practitioner Category: enum
[Posted by: Admin | Chicago, USA]


Question: 140

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

Compiler
Level: Practitioner Category: enum
[Posted by: Admin | Chicago, USA]