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

Home » C++ » C++ Objective Questions for Beginners

C++ Objective Questions for Beginners : 91


Question: 1

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

Compiler Forum
Beginner loops[Posted by: Admin | Chicago, USA]



Question: 2

(A) Hi
(B) Bye
(C) HiBye
(D) Compilation Error

Compiler Forum
Beginner conditional[Posted by: Admin | Chicago, USA]



Question: 3

(A) Scope Resolution Operator
(B) Conditional Operator
(C) Ternary Operator
(D) if else o/p

Compiler Forum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 4

(A) 2 Bytes
(B) 4 Bytes
(C) 1 Byte
(D) Depends on Compiler

Compiler Forum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 5

(A) +
(B) -
(C) *
(D) ::

Compiler Forum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 6

(A) +
(B) -
(C) ++
(D) *

Compiler Forum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 7

(A) 11
(B) 10
(C) Error
(D) 0

Compiler Forum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 8

(A) for(initialization;condition; increment/decrement)
(B) for(increment/decrement; initialization; condition)
(C) for(initialization, condition, increment/decrement
(D) None of These

Compiler Forum
Beginner loops[Posted by: Admin | Chicago, USA]



Question: 9

(A) Yes
(B) No
(C) Compilation Error
(D) Runtime Error

Compiler Forum
Beginner function[Posted by: Admin | Chicago, USA]



Question: 10

(A) 10
(B) 11
(C) Compilation Error
(D) Linking Error

Compiler Forum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 11

(A) ()
(B) =
(C) *
(D) ++

Compiler Forum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 12

(A) 4.5
(B) 4.0
(C) 4
(D) Compilation Error

Compiler Forum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 13

(A) Dcon DDest
(B) Dcon DDest BCon BDest
(C) BCon DCon DDest BDest
(D) BCon DCon BDes DDest

Compiler Forum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 14

(A) 10
(B) 11
(C) 12
(D) Not defined

Compiler Forum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 15

(A) Object oriented programming
(B) Oriented object programming
(C) Office oriented programming
(D) office objective programming

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



Question: 16

(A) 111011
(B) 111111
(C) 101011
(D) 101010

Compiler Forum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 17

(A) No
(B) Yes
(C) Compilation Error
(D) Runtime Error

Compiler Forum
Beginner loops[Posted by: Admin | Chicago, USA]



Question: 18

(A) Yes
(B) No
(C) Compilation Error
(D) Runtime Error

Compiler Forum
Beginner structure[Posted by: Admin | Chicago, USA]



Question: 19

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

Compiler Forum
Beginner datatype[Posted by: Admin | Chicago, USA]



Question: 20

(A) Yes
(B) No
(C) Compilation Error
(D) Runtime Error

Compiler Forum
Beginner function[Posted by: Admin | Chicago, USA]



Question: 21

(A) Compilation Error
(B) Runtime Error
(C) CppBuzz
(D) CppBuzz;;;;

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



Question: 22

(A) new is: -10
(B) new is: 10
(C) Compilation Error
(D) new is: 0

Compiler Forum
Beginner loops[Posted by: Admin | Chicago, USA]



Question: 23

(A) BASIC
(B) VB
(C) PASCAL
(D) C

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



Question: 24

(A) Constructor
(B) 0
(C) Compilation Error
(D) Runtime Error

Compiler Forum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 25

(A) Compilation Error - Constructor Missing
(B) Nothing would be printed
(C) Undefined
(D) In constructor

Compiler Forum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 26

(A) Compilation Error
(B) 0
(C) 3
(D) -3

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



Question: 27

(A) 1
(B) 5
(C) There is no limit
(D) 256

Compiler Forum
Beginner datatype[Posted by: Admin | Chicago, USA]



Question: 28

(A) Yes
(B) No

Compiler Forum
Beginner datatype[Posted by: Admin | Chicago, USA]



Question: 29

(A) Yes
(B) No

Compiler Forum
Beginner function[Posted by: Admin | Chicago, USA]



Question: 30

(A) Yes
(B) No

Compiler Forum
Beginner datatype[Posted by: Admin | Chicago, USA]



Question: 31

(A) Yes
(B) No

Compiler Forum
Beginner pointers[Posted by: Admin | Chicago, USA]



Question: 32

(A) Yes
(B) No

Compiler Forum
Beginner datatype[Posted by: Admin | Chicago, USA]



Question: 33

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

Compiler Forum
Beginner inheritance[Posted by: Admin | Chicago, USA]



Question: 34

(A) *
(B) ++
(C) +
(D) -

Compiler Forum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 35

(A) Yes
(B) No

Compiler Forum
Beginner loops[Posted by: Admin | Chicago, USA]



Question: 36

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

Compiler Forum
Beginner loops[Posted by: Admin | Chicago, USA]



Question: 37

(A) <
(B) <<
(C) ->
(D) >>

Compiler Forum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 38

(A) VB.NET
(B) VB 6
(C) C++
(D) C#

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



Question: 39

(A) Uses buttons, menus, and icons
(B) Should be easy for a user to manipulate
(C) Stands for Graphic Use Interaction
(D) Both A and B

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



Question: 40

(A) Single
(B) Byte
(C) Short
(D) Integer

Compiler Forum
Beginner datatype[Posted by: Admin | Chicago, USA]



Question: 41

(A) class
(B) field
(C) function
(D) property

Compiler Forum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 42

(A) It instruct the compiler to set default value to any variable
(B) It instruct the compiler to set default return value to any function
(C) It instruct the compiler to set default argument values for any function
(D) It instruct the compiler to generate the default implementation

Compiler Forum
Beginner loops[Posted by: Admin | Chicago, USA]



Question: 43

(A) Checking the Grammar
(B) Finding the type of names and expressions
(C) Making up tokens from characters
(D) None of these

Compiler Forum
Beginner cpp11[Posted by: | Chicago, USA]



Question: 44

(A) long
(B) long int
(C) longs long
(D) long long

Compiler Forum
Beginner cpp11[Posted by: | Chicago, USA]



Question: 45

(A) final
(B) static
(C) stop
(D) friend

Compiler Forum
Beginner cpp11[Posted by: | Chicago, USA]



Question: 46

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

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



Question: 47

(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 Forum
Beginner other[Posted by: Admin | Chicago, USA]



Question: 48

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

Compiler Forum
Beginner structure[Posted by: Admin | Chicago, USA]



Question: 49

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

Compiler Forum
Beginner structure[Posted by: Admin | Chicago, USA]



Question: 50

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

Compiler Forum
Beginner filehandling[Posted by: Admin | Chicago, USA]



Question: 51

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

Compiler Forum
Beginner filehandling[Posted by: Admin | Chicago, USA]



Question: 52

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

Compiler Forum
Beginner filehandling[Posted by: Admin | Chicago, USA]



Question: 53

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

Compiler Forum
Beginner loops[Posted by: Jeffry Azhari Rosman | Indonesia]



Question: 54

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

Compiler Forum
Beginner loops[Posted by: Jeffry Azhari Rosman | Indonesia]



Question: 55

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

Compiler Forum
Beginner gcc_g++[Posted by: Admin | Chicago, USA]



Question: 56

(A) TRUE
(B) FALSE

Compiler Forum
Beginner structure[Posted by: Andrew | New Jersey]



Question: 57

(A) TRUE
(B) FALSE

Compiler Forum
Beginner structure[Posted by: Andrew | New Jersey]



Question: 58

(A) TRUE
(B) FALSE

Compiler Forum
Beginner union[Posted by: Andrew | New Jersey]



Question: 59

(A) a member
(B) an array
(C) a tag
(D) None of these

Compiler Forum
Beginner structure[Posted by: Andrew | New Jersey]



Question: 60

(A) employee[2] -> hourlyWage = 50.00;
(B) employee2.hourlyWage = 7.50;
(C) hourlyWage[2].employee = 29.75;
(D) employee[2].hourlyWage = 75.00;

Compiler Forum
Beginner structure[Posted by: Andrew | New Jersey]



Question: 61

(A) cout << student1.gpa;
(B) cout << firstStudent.gpa;
(C) cout << student[1].gpa;
(D) cout << student1 ->gpa;

Compiler Forum
Beginner structure[Posted by: Andrew | New Jersey]



Question: 62

(A) “MAPLE”
(B) 2
(C) ‘M’
(D) 1

Compiler Forum
Beginner enum[Posted by: Andrew | New Jersey]



Question: 63

(A) TRUE
(B) FALSE

Compiler Forum
Beginner other[Posted by: Andrew | New Jersey]



Question: 64

(A) TRUE
(B) FALSE

Compiler Forum
Beginner datatype[Posted by: Andrew | New Jersey]



Question: 65

(A) TRUE
(B) FALSE

Compiler Forum
Beginner filehandling[Posted by: Andrew | New Jersey]



Question: 66

(A) TRUE
(B) FALSE

Compiler Forum
Beginner filehandling[Posted by: Andrew | New Jersey]



Question: 67

(A) get
(B) write
(C) put
(D) insert

Compiler Forum
Beginner filehandling[Posted by: Andrew | New Jersey]



Question: 68

(A) TRUE
(B) FALSE

Compiler Forum
Beginner classesAndobjects[Posted by: Andrew | New Jersey]



Question: 69

(A) TRUE
(B) FALSE

Compiler Forum
Beginner inheritance[Posted by: Andrew | New Jersey]



Question: 70

(A) True
(B) False

Compiler Forum
Beginner classesAndobjects[Posted by: Andrew | New Jersey]



Question: 71

(A) True
(B) False

Compiler Forum
Beginner classesAndobjects[Posted by: Andrew | New Jersey]



Question: 72

(A) Honda->run;
(B) Honda.run();
(C) run()
(D) Honda()

Compiler Forum
Beginner classesAndobjects[Posted by: Andrew | New Jersey]



Question: 73

(A) True
(B) False

Compiler Forum
Beginner classesAndobjects[Posted by: Andrew | New Jersey]



Question: 74

(A) static function
(B) utility function
(C) constructor
(D) destructor

Compiler Forum
Beginner classesAndobjects[Posted by: Andrew | New Jersey]



Question: 75

(A) True
(B) False

Compiler Forum
Beginner classesAndobjects[Posted by: Andrew | New Jersey]



Question: 76

(A) first variable name
(B) first function
(C) class name
(D) object name

Compiler Forum
Beginner classesAndobjects[Posted by: Andrew | New Jersey]



Question: 77

(A) True
(B) False

Compiler Forum
Beginner classesAndobjects[Posted by: Andrew | New Jersey]



Question: 78

(A) TRUE
(B) FALSE

Compiler Forum
Beginner classesAndobjects[Posted by: Andrew | New Jersey]



Question: 79

(A) True
(B) False

Compiler Forum
Beginner classesAndobjects[Posted by: Andrew | New Jersey]



Question: 80

(A) True
(B) False

Compiler Forum
Beginner inheritance[Posted by: Andrew | New Jersey]



Question: 81

(A) never
(B) must
(C) may
(D) None

Compiler Forum
Beginner classesAndobjects[Posted by: Andrew | New Jersey]



Question: 82

(A) True
(B) False

Compiler Forum
Beginner inheritance[Posted by: Andrew | New Jersey]



Question: 83

(A) Car
(B) Vehicle
(C) protected
(D) None

Compiler Forum
Beginner inheritance[Posted by: Andrew | New Jersey]



Question: 84

(A) True
(B) False

Compiler Forum
Beginner exceptions[Posted by: Admin | Chicago, USA]



Question: 85

(A) True
(B) False

Compiler Forum
Beginner loops[Posted by: Admin | Chicago, USA]



Question: 86

(A) Yes
(B) No

Compiler Forum
Beginner namespace[Posted by: Admin | Chicago, USA]



Question: 87

(A) Before all #include
(B) After #include<iostream>
(C) In middle of #includes
(D) After all #inludes

Compiler Forum
Beginner namespace[Posted by: Admin | Chicago, USA]



Question: 88

(A) Using the entire namespace, using only single name from namespace
(B) There is no difference
(C) We can't use only cout from std namespace

Compiler Forum
Beginner namespace[Posted by: Admin | Chicago, USA]



Question: 89

(A) Runtime Error
(B) Compilation Erro
(C) Nothing is printed
(D) CppBuzz.com

Compiler Forum
Beginner namespace[Posted by: Admin | Chicago, USA]



Question: 90

(A) Address of memory allocated | Garbage Value
(B) Address of memory allocated | 0
(C) Address of ptr | 0
(D) Address of ptr | Garbage Value

Compiler Forum
Beginner new_delete[Posted by: Admin | Chicago, USA]



Question: 91

(A) Program runs without any error
(B) Compilation Error
(C) Runtime error (Segmentation fault)
(D) None of the above

Compiler Forum
Beginner new_delete[Posted by: Admin | Chicago, USA]


Compile C++ code here Upload your Questions

Browse C++ Categories

Loops Conditional Functions Operators Structure Enum FileHandling Data Types Inheritance Pointers Classes & Objects Vtable Type Casting New & Delete Namespaces Reference Variables Virtual Functions Abstract Class STL Singleton Class Exceptions C++ 11 C++ 14 C++ 17 gcc/g++ others

Switch to C Questions