
Introduction to Python
Authored by Tim Miller
Computers
KG - University
Used 750+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What kind of programming language is Python?
High Level & Object Orientated
Low Level & Object Orientated
High Level & Procedural
Low Level & Procedural
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
How would would you print a text string?
output "Hello!"
print "Hello!"
print (Hello!)
output (Hello!)
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
How would you assign an integer to a variable?
new_var = 4
new_var == 4
new_var = "4"
new var "4"
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What are the 4 main datatypes used in python?
Text, Image, Boolean & Number
Number, String, Text & Boolean
String, Integer, Float & Boolean
Text, String, Integer & Float
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Changing the value of a variable e.g. from new_var = 5 to new_var = 10 is called?
Reassignment
Switching
Initiating
Re-initiating
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
The variable new_var = 7. To print the value of new_var, which statement would you use?
output "new_var"
print new_var
print "new_var"
output "7"
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Your code will not work unless you indent and format code properly. Another word used for indenting is..?
whitespace
alignment
assignment
initiation
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?