
python lvl 1
Authored by Ebn Yousry
Computers
University
Used 8+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the data type of this value: "25"
integer
float
string
boolean
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How to convert user input to an integer?
int = input()
input(int)
int(input())
input().int()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which variable name is invalid?
my_value
2value
value_2
_temp
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will this code print?
name = "Ali"
print(name)
name
"Ali"
Ali
Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this print?
my_list = [10, 20, 30,40]
print(my_list[2])
10
20
30
40
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of if in Python?
Repeat code
Define functions
Make decisions
Create variables
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is printed?
x = 7
if x > 5:
print("Big")
Big
7
error
nothing
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 Microsoft
or continue with
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?