wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

PLTW CSE Final Review Part -1

Total questions: 10

Worksheet time: 6mins

Name
Class
Date
1.

Which of the following is NOT an input device?

a)

mouse

b)

printer

c)

scanner

d)

microphone

2.

What is input?

a)

Displaying information on the screen.

b)

Storing data in main memory

c)

Putting information into the computer

d)

Converting code to machine language

3.

Which of the following about computers is NOT true?

a)

Computing devices are electronic.

b)

The CPU processes commands

c)

The memory uses binary numbers.

d)

Computing devices translate digital to analog information in order to process the information.

4.

Which line of code outputs the decimal portion of a float stored in the variable x?

a)

print (x / 1000)

b)

print (x - int(x))

c)

print (x)

d)

print (x % 1000)

5.

Which of the following numbers might this code generate: random.randint(1,9) ?

a)

10

b)

1

c)

11

d)

0

6.

When do you use an else statement?

a)

To tell what will happen when an if-statement is false

b)

To end an IF statement

c)

To handle string values

d)

To Input a variable

7.

When should you use an ELIF statement?

a)

To repeat sections of code

b)

To repeat sections of code

c)

To count user actions

d)

To get user input

8.

Write the code to test if the word “BASIC” is stored in the variable text1

a)

if (text1 == str("BASIC")):

b)

if (text1 == "BASIC"):

c)

if (int(text1) == BASIC):

d)

if (text1 == BASIC):

9.

Mark all the mistakes in the following code:

IF (name1 = "sue") :

a)

“sue” should not have quotes

b)

IF should be if

c)

There should not be ( )

d)

= should be ==

10.

Information sent to a function is a?

a)

Sum

b)

Loop Control Variable

c)

Range

d)

Parameter