9 Weeks Test

9 Weeks Test

9th - 12th Grade

16 Qs

quiz-placeholder

Similar activities

Algoritma Pemrograman

Algoritma Pemrograman

10th Grade - University

20 Qs

Configurazione di base di un router

Configurazione di base di un router

9th Grade

15 Qs

DPK Elemen 6 Bacaan

DPK Elemen 6 Bacaan

10th Grade

20 Qs

12 TKJ Hosting, Domain & Jenis Layanan Hosting

12 TKJ Hosting, Domain & Jenis Layanan Hosting

12th Grade

20 Qs

kuis kabel dan nirkabel

kuis kabel dan nirkabel

11th Grade - University

12 Qs

LATIHAN PRA BAB MANAJEMEN KONTEN DIGITAL

LATIHAN PRA BAB MANAJEMEN KONTEN DIGITAL

10th Grade

20 Qs

Quiz 4 - Informatika

Quiz 4 - Informatika

12th Grade

17 Qs

Uji Pemahaman Algoritma dan Pemrograman

Uji Pemahaman Algoritma dan Pemrograman

9th Grade

20 Qs

9 Weeks Test

9 Weeks Test

Assessment

Quiz

Information Technology (IT)

9th - 12th Grade

Practice Problem

Medium

DOK Level 1: Recall

Standards-aligned

Created by

Adrian Portillo

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the primary purpose of the `pickStudent` function?

To select a random student from all three lists

To allow the user to manually pick a student

To randomly select a student from a given list until the user stops

To sort the names in alphabetical order

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

How does the program determine which class list to use?

It randomly picks one of the three lists

The user inputs a number corresponding to a class

The program assigns a default class

The user types the full name of the class

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What will happen if the user enters an invalid input in `pickClass()`?

The program will terminate

The program will ask the user to try again

The program will default to `SIMS3`

The program will print an error message

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which module is used to select a random student?

`math`

`random`

`randomize`

`choice`

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What happens when the user types `'end'` in `pickStudent`?

The program terminates immediately

The program stops picking students and returns to `pickClass()`

The program prints "End" and continues

The program ignores the input and continues picking

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Why does `pickStudent` use a `while True` loop?

To continuously allow the user to pick students until they type `'end'`

To run the function only once

To prevent errors from invalid input

To avoid calling the function again

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following is a potential issue with the `DINO_BADDIES` list?

The names are not in alphabetical order

The last name entry `'day''drian'` might not be handled correctly

The list contains duplicate names

The list is too short

Create a free account and access millions of resources

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?