
python EOT for grade 6
Authored by Alijon Kuvondikov
Computers
6th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What are the main data types in Python?
boolean, character, array
string, number, object
int, float, str, list
float, string, array
2.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Which is valid syntax of for loop in Python?
for (variable : iterable) {
foreach <variable> in sequense:
for <variable> in iterable():
for <variable> in sequense:
3.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is the output of the following code: print(type(5))?
5
float
string
int
4.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is the purpose of indentation in Python?
To separate comments from code.
The purpose of indentation in Python is to define code blocks and improve readability.
To define variable types in Python.
To increase the execution speed of the code.
5.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
How do you create a list in Python?
You create a list in Python using parentheses, e.g., my_list = (1, 2, 3).
You create a list in Python using curly braces, e.g., my_list = {1, 2, 3}.
You create a list in Python using square brackets, e.g., my_list = [1, 2, 3].
You create a list in Python by using the array() function without any arguments.
6.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What will be the output of this code: for i in range(-1, 3): print(i)?
0
1
2
-1
0
1
2
-1
3
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
How do you add the item to the end of the list in Python
Use the insert() method, e.g., my_list.insert(index, item).
Use the append() method, e.g., my_list.append(item).
Add items using the extend() method, e.g., my_list.extend([item]).
Use the add() function, e.g., my_list.add(item).
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
Already have an account?