wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

C++ Chapter 1

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

A(n) __________ is a set of instructions that the computer follows to solve a problem.

a)

compiler

b)

linker

c)

program

d)

operator

e)

none of these

2.

At the heart of a computer is its central processing unit. The CPU's job is:

a)

To fetch instructions

b)

To carry out the operations commanded by the instructions

c)

To produce some outcome or resultant information

d)

All of these

e)

None of these

3.

The __________ decodes an instruction and generates an electronic signal.

a)

Arithmetic and Logic Unit

b)

Main memory

c)

BIOS

d)

Control Unit

e)

None of these

4.

During which stage does the central processing unit analyze the instruction and encode it in the form of a number, and then generate an electronic signal?

a)

fetch

b)

decode

c)

execute

d)

portability

5.

A volatile type of memory that is used for temporary storage is

a)

an address

b)

the ALU

c)

RAM

d)

a disk drive

e)

None of these

6.

In C++, key words are written in all lowercase letters.

a)

True

b)

False

7.

A CPU only understands machine language instructions.

a)

True

b)

False

8.

A set of well-defined steps for performing a task or solving a problem is known as a(n):

a)

hierarchy chart

b)

algorithm

c)

instruction set

d)

statement

e)

None of these

9.

________ are used to translate each source code instruction into the appropriate machine language instruction.

a)

modules

b)

runtime libraries

c)

compilers

d)

preprocessor directives

e)

None of these

10.

Characters or symbols that perform operations on one or more operands are:

a)

separators

b)

op codes

c)

operators

d)

key words

e)

None of these