Search Header Logo

Python Level 3 - Lesson 2

Authored by Coding Bot

Computers

10th Grade

Python Level 3 - Lesson 2
AI

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 • 5 pts

Which function is responsible for saving tasks to a file?

add_task

delete_task

clear_tasks

save_tasks

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What happens if the 'load_tasks' function cannot find the 'tasks.txt' file?

It raises a FileNotFoundError

It passes without doing anything

It displays a warning message

It creates a new 'tasks.txt' file

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which widget is used to display the list of tasks?

Label

Entry

Button

Listbox

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Information stored on a storage device with a specific name is called a _______________

tuple

array

dictionary

file

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

It provides a scrollbar to the use so that the use can scroll the window up and down.

Scrollbar()

Spinbox()

Menu()

Entry()

6.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

What is the output of Following code?

List = ['spam', 2.0, 5, [10, 20]]

print(List[2])

20

2.20

5

[10,20]

7.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

window.geometry("300x200") is to change the size of the GUI window into .

500 Height x 200 Width

300 Height x 800 Width

300 Height x 200 Width

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers