Get the FREE certificate on C, C++, Java, Python, Perl, PHP, SQL, Linux & Javascript!  

CppBuzz.com
  
Home C C++ Java Python Perl PHP Spring SQL Javascript Linux

You are here : Home » C++ Objective Questions for Beginners

C++ Objective Questions for Beginners (MCQ for freshers) : 85 Questions


Question: 1

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

Beginner loops Compile it[Posted by: Admin | Chicago, USA]



Question: 2

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

Beginner conditional Compile it[Posted by: Admin | Chicago, USA]



Question: 3

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

Beginner operators Compile it[Posted by: Admin | Chicago, USA]



Question: 4

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

Beginner operators Compile it[Posted by: Admin | Chicago, USA]



Question: 5

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

Beginner operators Compile it[Posted by: Admin | Chicago, USA]



Question: 6

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

Beginner operators Compile it[Posted by: Admin | Chicago, USA]



Question: 7

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

Beginner operators Compile it[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

Beginner loops Compile it[Posted by: Admin | Chicago, USA]



Question: 9

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

Beginner function Compile it[Posted by: Admin | Chicago, USA]



Question: 10

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

Beginner operators Compile it[Posted by: Admin | Chicago, USA]



Question: 11

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

Beginner operators Compile it[Posted by: Admin | Chicago, USA]



Question: 12

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

Beginner operators Compile it[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

Beginner classesAndobjects Compile it[Posted by: Admin | Chicago, USA]



Question: 14

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

Beginner operators Compile it[Posted by: Admin | Chicago, USA]



Question: 15

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

Beginner other Compile it[Posted by: Admin | Chicago, USA]



Question: 16

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

Beginner operators Compile it[Posted by: Admin | Chicago, USA]



Question: 17

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

Beginner loops Compile it[Posted by: Admin | Chicago, USA]



Question: 18

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

Beginner structure Compile it[Posted by: Admin | Chicago, USA]



Question: 19

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

Beginner datatype Compile it[Posted by: Admin | Chicago, USA]



Question: 20

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

Beginner function Compile it[Posted by: Admin | Chicago, USA]



Question: 21

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

Beginner other Compile it[Posted by: Admin | Chicago, USA]



Question: 22

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

Beginner loops Compile it[Posted by: Admin | Chicago, USA]



Question: 23

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

Beginner other Compile it[Posted by: Admin | Chicago, USA]



Question: 24

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

Beginner classesAndobjects Compile it[Posted by: Admin | Chicago, USA]



Question: 25

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

Beginner classesAndobjects Compile it[Posted by: Admin | Chicago, USA]



Question: 26

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

Beginner other Compile it[Posted by: Admin | Chicago, USA]



Question: 27

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

Beginner datatype Compile it[Posted by: Admin | Chicago, USA]



Question: 28

(A) Yes
(B) No

Beginner datatype Compile it[Posted by: Admin | Chicago, USA]



Question: 29

(A) Yes
(B) No

Beginner function Compile it[Posted by: Admin | Chicago, USA]



Question: 30

(A) Yes
(B) No

Beginner datatype Compile it[Posted by: Admin | Chicago, USA]



Question: 31

(A) Yes
(B) No

Beginner pointers Compile it[Posted by: Admin | Chicago, USA]



Question: 32

(A) Yes
(B) No

Beginner datatype Compile it[Posted by: Admin | Chicago, USA]



Question: 33

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

Beginner inheritance Compile it[Posted by: Admin | Chicago, USA]



Question: 34

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

Beginner operators Compile it[Posted by: Admin | Chicago, USA]



Question: 35

(A) Yes
(B) No

Beginner loops Compile it[Posted by: Admin | Chicago, USA]



Question: 36

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

Beginner loops Compile it[Posted by: Admin | Chicago, USA]



Question: 37

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

Beginner operators Compile it[Posted by: Admin | Chicago, USA]



Question: 38

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

Beginner other Compile it[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

Beginner other Compile it[Posted by: Admin | Chicago, USA]



Question: 40

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

Beginner datatype Compile it[Posted by: Admin | Chicago, USA]



Question: 41

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

Beginner classesAndobjects Compile it[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

Beginner loops Compile it[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

Beginner cpp11 Compile it[Posted by: | Chicago, USA]



Question: 44

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

Beginner cpp11 Compile it[Posted by: | Chicago, USA]



Question: 45

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

Beginner cpp11 Compile it[Posted by: | Chicago, USA]



Question: 46

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

Beginner other Compile it[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

Beginner other Compile it[Posted by: Admin | Chicago, USA]



Question: 48

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

Beginner structure Compile it[Posted by: Admin | Chicago, USA]



Question: 49

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

Beginner structure Compile it[Posted by: Admin | Chicago, USA]



Question: 50

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

Beginner filehandling Compile it[Posted by: Admin | Chicago, USA]



Question: 51

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

Beginner filehandling Compile it[Posted by: Admin | Chicago, USA]



Question: 52

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

Beginner filehandling Compile it[Posted by: Admin | Chicago, USA]



Question: 53

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

Beginner loops Compile it[Posted by: Jeffry Azhari Rosman | Indonesia]



Question: 54

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

Beginner loops Compile it[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

Beginner gcc_g++ Compile it[Posted by: Admin | Chicago, USA]



Question: 56

(A) TRUE
(B) FALSE

Beginner structure Compile it[Posted by: Andrew | New Jersey]



Question: 57

(A) TRUE
(B) FALSE

Beginner structure Compile it[Posted by: Andrew | New Jersey]



Question: 58

(A) TRUE
(B) FALSE

Beginner union Compile it[Posted by: Andrew | New Jersey]



Question: 59

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

Beginner structure Compile it[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;

Beginner structure Compile it[Posted by: Andrew | New Jersey]



Question: 61

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

Beginner structure Compile it[Posted by: Andrew | New Jersey]



Question: 62

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

Beginner enum Compile it[Posted by: Andrew | New Jersey]



Question: 63

(A) TRUE
(B) FALSE

Beginner other Compile it[Posted by: Andrew | New Jersey]



Question: 64

(A) TRUE
(B) FALSE

Beginner datatype Compile it[Posted by: Andrew | New Jersey]



Question: 65

(A) TRUE
(B) FALSE

Beginner filehandling Compile it[Posted by: Andrew | New Jersey]



Question: 66

(A) TRUE
(B) FALSE

Beginner filehandling Compile it[Posted by: Andrew | New Jersey]



Question: 67

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

Beginner filehandling Compile it[Posted by: Andrew | New Jersey]



Question: 68

(A) TRUE
(B) FALSE

Beginner classesAndobjects Compile it[Posted by: Andrew | New Jersey]



Question: 69

(A) TRUE
(B) FALSE

Beginner inheritance Compile it[Posted by: Andrew | New Jersey]



Question: 70

(A) True
(B) False

Beginner classesAndobjects Compile it[Posted by: Andrew | New Jersey]



Question: 71

(A) True
(B) False

Beginner classesAndobjects Compile it[Posted by: Andrew | New Jersey]



Question: 72

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

Beginner classesAndobjects Compile it[Posted by: Andrew | New Jersey]



Question: 73

(A) True
(B) False

Beginner classesAndobjects Compile it[Posted by: Andrew | New Jersey]



Question: 74

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

Beginner classesAndobjects Compile it[Posted by: Andrew | New Jersey]



Question: 75

(A) True
(B) False

Beginner classesAndobjects Compile it[Posted by: Andrew | New Jersey]



Question: 76

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

Beginner classesAndobjects Compile it[Posted by: Andrew | New Jersey]



Question: 77

(A) True
(B) False

Beginner classesAndobjects Compile it[Posted by: Andrew | New Jersey]



Question: 78

(A) TRUE
(B) FALSE

Beginner classesAndobjects Compile it[Posted by: Andrew | New Jersey]



Question: 79

(A) True
(B) False

Beginner classesAndobjects Compile it[Posted by: Andrew | New Jersey]



Question: 80

(A) True
(B) False

Beginner inheritance Compile it[Posted by: Andrew | New Jersey]



Question: 81

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

Beginner classesAndobjects Compile it[Posted by: Andrew | New Jersey]



Question: 82

(A) True
(B) False

Beginner inheritance Compile it[Posted by: Andrew | New Jersey]



Question: 83

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

Beginner inheritance Compile it[Posted by: Andrew | New Jersey]



Question: 84

(A) True
(B) False

Beginner exceptions Compile it[Posted by: Admin | Chicago, USA]



Question: 85

(A) True
(B) False

Beginner loops Compile it[Posted by: Admin | Chicago, USA]


Compile C++ code here  |  Upload your Questions

C++ Objective Questions By Different Categories:-
Loops | Conditional | Functions | Operators | Structure | Enum | Storage Classes | Union | FileHandling | Data Types | Inheritance | Pointers | Classes & Objects | Vtable | Type Casting | New & Delete | Namespaces | Reference Variables | Static Cast | Dynamic Cast | Reinterpret Cast | Const Cast | Virtual Functions | Abstract Class | STL | Singleton Class | C++ 11 | C++ 14 | C++ 17 | C++ 20 | gcc/g++ | others

Switch to C Questions