wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CSNP-04103 - Chapter 3 - C++ Basics

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

In C++ the function sqrt() is part of which library

a)

<c++math>

b)

<cmath>

c)

<pmath>

d)

The C standard library

2.

The abstraction feature of C++ hides the complexity of the objects, what you need to know about an abstract object in order to be able to use it? (multiple-choice).

a)

How do I call it.

b)

The memory address.

c)

What do I send to it.

d)

What I receive from it.

e)

None of the above

3.

Top down design is used during what stage of the traditional development life cycle?

a)

Analysis

b)

Implementation

c)

Design

d)

Maintenance

4.

Top down design is used during what stage of the traditional development life cycle?

a)

Analysis

b)

Implementation

c)

Design

d)

Maintenance

5.

Structure charts

a)

Provide a graphical representation of the relationship of a problem with sub-problems.

b)

Helps you create shapes of houses and female figures.

c)

Gives structure to your abstract objects.

d)

Created a Gantt chart in the screen.

6.

int mexicoInc (char); is a

a)

Function Definition

b)

Function Body

c)

Function Header

d)

Function Prototype

7.

The function above is

a)

Void with no arguments

b)

Int with no arguments

c)

Void with arguments

d)

Int with arguments

8.

The function above is

a)

Void with arguments

b)

Int with arguments

c)

Void with no arguments

d)

Int with no arguments

9.

Global variables are defined?.

a)

Inside the function.

b)

Inside the main.

c)

Below the compiler directives and above the main.

d)

Same place as constants.

10.

How C++ knows what to do with the operations above?

a)

It doesn't you can't add string data types, only numbers.

b)

It is an operator overloading operation and it uses the data type

c)

It translates the letter values to ASCII and adds then on

d)

It is abstract, it figures it out or produces an error