NEW
Font size
WorksheetsProject Stem Python Unit 1 Test Review
Total questions: 17
Worksheet time: 9mins
Which of the following is not an output device
Speaker
Monitor
Barcode Scanner
Plotter
Which of the following can be considered as both an input and an output device
Scanner
Keyboard
Headphones with mike
Speaker
Which of the following is an advantage of main memory over secondary memory in most computers
More memory available
Faster access time
Data is more permanent
Can be used to hold larger data files
Which is not an example of secondary memory
Hard disk drive
Flash drive
CD/DVD drive
RAM
Which software controls access to memory?
Operating System
Compiler
Application
None of the above
Which of the following is a valid variable name?
1stname
first name
first#name
firstName
Which of the following is not a data type in Python?
string
int
float
double
Which data type would you use to store 5.37?
int
float
string
double
What would be output by the following code:
print ("Three blind mice\nsee how they run.")
Three blind mice see how they run.
Three blind mice
see how they run.
Three blind mice see how they run.
Nothing, an error will occur
What is output by the following code (assume the user enters 1 and 5)?
num1 = int(input("Enter a number: "))
num2 = int(input("Enter another number: "))
print ("The sum is "+"num1"+"num2")
The sum is 1 5
The sum is 6
The sum is num1 num2
The sum is num1num2
Which print statement would correctly print the sum of two integer variables n1 and n2?
print (n1 + n2)
print ("n1 + n2")
print ("n1" + "n2")
none of the above
Consider the following code:
x = input ("Enter your age: ")
print ("Your age is " + x)
What is the data type of the variable x?
double
float
int
string
Which of the following print statements would correctly output:
He replied, "That is not how we do things here."
print ("He replied, That is not how we do things here.")
print ("He replied" + "That is not how we do things here.")
print ("He replied, \"That is not how we do things here."\")
print ("He replied, \"That is not how we do things here.\"")
Which of the following following could be stored in a string variable?
3
7.8
dog
All of the above
What is the decimal equivalent of 01101 binary?
1101
3
13
10
What is the binary equivalent of 9 decimal?
1101
1001
0101
0110
How many digits are there in the binary number system?
1
2
10
depends on the number
