Search Header Logo

ALTSCHOOL QUIZ 13/9/25

Authored by adediji lekan

Information Technology (IT)

Professional Development

Used 1+ times

ALTSCHOOL QUIZ 13/9/25
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax for an if-elif-else block?

if - elif - else

when - otherwise

do - if - end

switch - case - end

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to remove the last item in a list?

remove()

pop()

delete()

clear()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of my_list = [1, 2, 3]; print(my_list[1])?

1

2

3

Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to retrieve all keys in a dictionary?

get()

items()

keys()

values()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to create a dictionary in Python?

my_dict = []

my_dict = ()

my_dict = {}

my_dict = <>

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following defines a function with two parameters?

def myFunc[]:

def myFunc(x, y):

myFunc def(x y):

D. def myFunc:

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does a function return if there is no return statement?

0

False

None

Null

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?