wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

AlgoProg-Week2

Total questions: 6

Worksheet time: 3mins

Name
Class
Date
1.

Program execution begins at main() and executes statements surrounded by which symbols?

a)

()

b)

{}

c)

""

2.

The statement int wage; creates a variable named wage that is used to _____ the value 20.

a)

Input

b)

Output

c)

Hold

3.

Would the following order of statements work the same as above?

wage = 20;

int wage;

a)

Yes

b)

No

4.

Each statement ends with what symbol?

a)

Semicolon ;

b)

Period .

c)

Colon :

5.

The expression wage * 40 * 52 resulted in what value?

a)

20

b)

41600

c)

20 * 40 * 52

6.

Each printf() statement outputs items to _____.

a)

a file named output.txt

b)

the keyboard

c)

the screen