wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

quiz 2

Total questions: 21

Worksheet time: 10mins

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.

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

a)

class

b)

encapsulation

c)

integer

d)

syntax

3.

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

a)

programming language

b)

bitcode

4.

a program written in a high language is called a ____________

a)

object

b)

source code

c)

variable

d)

constant

5.

___________ is mostly first piece of code In c++

a)

Preprocessor

b)

compiler

c)

true

d)

false

6.

_________ are fixed values used by a program

a)

constant

b)

variable

c)

boolean

d)

float

7.

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

a)

true

b)

false

c)

maybe

8.

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

9.

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

a)

True

b)

False

10.

_____ is an object oriented language

a)

c++

b)

compiler

c)

programming

11.

_________ 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

12.

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

a)

true

b)

false

c)

maybe

13.

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

14.

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

15.

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

a)

True

b)

False

c)

None

16.

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

17.

the five arithmetic operators supported by c++

a)

+,-,*,/,%

b)

()$%

c)

{<>}

18.

Two expressions can be compared using ___________ operator.

a)

Logical

b)

Relational

c)

Arithmetic

19.

1. && and || refers to _________operator.

a)

and/or

b)

or/equal

c)

equal to

20.

______ is used to input value from the user.

a)

cin>>

b)

cin<<

c)

<cin>

21.

what is the storage size of char

a)

1 byte

b)

10 bytes

c)

2 bytes

d)

8 bytes