
Mastering Python Basics
Authored by Ержан Ауезов
Computers
10th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the main data types in Python?
integer, decimal, string, map
char, byte, string, array
The main data types in Python are: int, float, str, list, tuple, dict, set, and bool.
float, double, list, object
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a variable in Python?
let variable_name = value
var variable_name = value
variable_name : value
You declare a variable in Python by using the syntax: variable_name = value.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function is used to get user input in Python?
input()
getInput()
readInput()
fetchInput()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you print a variable's value in Python?
Use echo(variable_name) to display a variable's value.
display(variable_name) to print the value of a variable.
print.value(variable_name) to show the variable's content.
Use print(variable_name) to print a variable's value.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of print(2 + 3) in Python?
4
5
7
6
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of 10 % 3 in Python?
3
10
0
1
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you convert a string input to an integer in Python?
Use str(int) to convert an integer to a string.
Use int(string) to convert a string to an integer.
Use eval(string) to evaluate the string as an expression.
Apply float(string) to convert a string to a float.
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?