NEW
Font size
WorksheetsComputer Pretest1(Python Grade7_t1)
Total questions: 30
Worksheet time: 15mins
What will be the output?
name = "Dave"
print (name)
Dave
'Dave'
name
(name)
Python correct naming convention for variables is?
new_user25
NewUser25
25_new_user
25NewUser
NEWUSER25
What result will display in the shell if 15 and 20 is entered by the user?
"num1 + num2"
1520
35
What would this print?
What will the output be from the following Python code?
print(9/3)
3
3.0
9/3
SyntaxError
What will the output be from the following Python code?
print(Hello world!)
Hello world!
SyntaxError
Hello world
print(Hello world!)
What is the Python built-in function to converts a number to a string?
str()
int()
parseInt()
convert
What is the missing instruction?
(print)
"Print"
holds whole numbers
holds a decimal point in a number
The requirements for printing a string in Python are:
( ) , ! and " "
( ) and !
( ) and " "
" " and !
My_name = "Awesome"
My_name in this string is...
a variable
syntax
my name
prompt
