Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Project-Stem Unit 1 python coding

Total questions: 12

Worksheet time: 6mins

Name
Class
Date
1.

Which of the following is not an input device?

a)

mouse

b)

speaker

c)

camera

d)

microphone

2.

Which of the following is false about main and secondary memory

a)

Secondary memory is not lost when the device's power is turned off

b)

Main Memory is faster than secondary memory

c)

Main memory is more permanent and secondary is short term.

3.

Which of the following controls computer memory?

a)

operating system

b)

cpu

c)

compiler

d)

input

4.

What is input?

a)

Putting information into the computer

b)

compiling code

c)

storing data in secondary memory

d)

Audio played from a speaker

5.

Which of the following is a legal variable name?

a)

21

b)

7counter

c)

my var

d)

first_name

6.

What are the two basic categories of variable data types?

a)

output and input

b)

Strings and numbers

c)

numbers and words

d)

Decimals and integers

7.

What command is used to change a string into a number?

a)

num( )

b)

char ( )

c)

int ( )

d)

str ( )

8.

What is output by the following? Assume the user enters 3 and 9

a = input("Enter a number: ")

b = input ("Enter a number: ")

print ("Values: " + a + b)

a)

Values: 39

b)

Values: 12

c)

12

d)

39

9.

Consider the following code:

x = input ("What year is it?")

print(x)

The Value stored in x is:

a)

a string

b)

an int

c)

stored in secondary memory

d)

a program

10.

What will print with the following code?

print("python" + "program")

a)

python program

b)

python program

c)

pythonprogram

d)

nothing

11.

What is the symbol used to create a comment?

a)

-

b)

#

c)

/

d)

%

12.

What is one downside of converting analog information to a digital format?

a)

When the power is turned off the information is lost

b)

Some information may be lost during the conversion process

c)

Limits the technology available

d)

It takes up too much space