wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

C++ Programming

Total questions: 22

Worksheet time: 11mins

Name
Class
Date
1.

c++ is an _____________ , developed by ______________ , and is an extension of c language

a)

object oriented program , Bjarane

b)

class and data

c)

complier, interpreter

d)

functions comments

2.

an object is a /an instance of _______________

a)

class

b)

C++

c)

object

d)

iostream.h

3.

the wrapping up of data and functions together is called as _______________________

a)

class

b)

encapsulation

c)

integer

d)

syntax

4.

computers work on instructions given to them in a specific language which is known as __________

a)

programming language

b)

bitcode

5.

a program written in a high language is called a ____________

a)

object

b)

source code

c)

variable

d)

constant

6.

___________ is mostly first piece of code In c++

a)

Preprocessor

b)

compiler

c)

true

d)

false

7.

______________ allocates memory nad ecides what can be stored the treserved memory

a)

variable

b)

boolen

c)

operating system

d)

float

8.

_________ are fixed values used by a program

a)

constant

b)

variable

c)

boolean

d)

float

9.

we need to write the c++ code using binary numbers

a)

true

b)

false

c)

maybe

10.

once we compile the C++ code and the .exe is generated,

we can run the program from DOS prompt

a)

maybe

b)

no

c)

true

d)

false

11.

The assignment operator is used to assign a data type to a variable

a)

True

b)

False

12.

_____ is an object oriented language

a)

c++

b)

compiler

c)

programming

13.

_________ in programming come into use when we need to repeatedly execute a block of statements.

a)

nested for loop

b)

none

c)

for loop

d)

loop

14.

the <iostream .h> provides the basic INPUT and output fundamentales

a)

true

b)

false

c)

maybe

15.

in the _________, c++ only evaluates what is necessary from left to right to come up with the combined relational result.

a)

arithmetic operartor

b)

relational operator

c)

none

d)

Logical opeartor

16.

3==6!=7 is an example for associative operator

a)

True

b)

False

c)

None

17.

When using the ______________,C++ only evaluates what is necessary from left to right to come up with combined reational results,.

a)

logical operaters

b)

compound assignment

c)

associative

18.

the five arithmetic operators supported by c++

a)

+,-,*,/,%

b)

()$%

c)

{<>}

19.

Two expressions can be compared using ___________ operator.

a)

Logical

b)

Relational

c)

Arithmetic

20.

1. && and || refers to _________operator.

a)

and/or

b)

or/equal

c)

equal to

21.

______ is used to input value from the user.

a)

cin>>

b)

cin<<

c)

<cin>

22.

what is the storage size of char

a)

1 byte

b)

10 bytes

c)

2 bytes

d)

8 bytes