WorksheetsProject-Stem Unit 1 python coding
Total questions: 12
Worksheet time: 6mins
Which of the following is not an input device?
mouse
speaker
camera
microphone
Which of the following is false about main and secondary memory
Secondary memory is not lost when the device's power is turned off
Main Memory is faster than secondary memory
Main memory is more permanent and secondary is short term.
Which of the following controls computer memory?
operating system
cpu
compiler
input
What is input?
Putting information into the computer
compiling code
storing data in secondary memory
Audio played from a speaker
Which of the following is a legal variable name?
21
7counter
my var
first_name
What are the two basic categories of variable data types?
output and input
Strings and numbers
numbers and words
Decimals and integers
What command is used to change a string into a number?
num( )
char ( )
int ( )
str ( )
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)
Values: 39
Values: 12
12
39
Consider the following code:
x = input ("What year is it?")
print(x)
The Value stored in x is:
a string
an int
stored in secondary memory
a program
What will print with the following code?
print("python" + "program")
python program
python program
pythonprogram
nothing
What is the symbol used to create a comment?
-
#
/
%
What is one downside of converting analog information to a digital format?
When the power is turned off the information is lost
Some information may be lost during the conversion process
Limits the technology available
It takes up too much space
