Search Header Logo

Grade 9 first quiz

Authored by Amani Musleh

Computers

8th Grade

Used 8+ times

Grade 9 first quiz
AI

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

1 min • 1 pt

What is the correct way to declare a list in Python?

Use square brackets []

Use parentheses ()

Use angle brackets <>

Use curly brackets {}

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

my_list = ['apple','orange','melon','papaya']

print(my_list[2])

What is the output?

apple

orange

melon

papaya

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

student_list = ['Ahmad','Kareem','Omar','Tariq')

print(student_list[-1])

What is the output? ​  

Ahmad

Kareem

Omar

Tariq

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the output of program below?

students_list=["Ahmad","kareem","Omar","Tariq"]

students_list.append("Zayed")

print(students_list)

['Ahmad', 'kareem', 'Omar', 'Tariq', 'Zayed']

[ 'Zayed','Ahmad', 'kareem', 'Omar', 'Tariq',]

zayed

Syntax error

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the output of program below?

students_list=['Ahmad','kareem', 'Omar', 'Tariq']

students_list.remove("Ahmad")

print(students_list)

['kareem', 'Omar', 'Tariq']

Ahmad

Syntax Error

['kareem', 'Omar', 'Tariq','Ahmad']

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Debug this


Missing a square bracket

in line 1?

Missing a semicolon in line 2

Extra indent in line 2

Missing a colon in line 1

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is debugging in Python?

A process of writing code

A process of identifying and fixing errors in code

A process of optimizing code performance

A process of documenting code

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?