Search Header Logo

3.6 Activate the menu choices

Authored by F BINYUSOFF

English

7th Grade

3.6 Activate the menu choices
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

24 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the role of the choice variable in the menu program?

  • Store user input

  • Perform calculations

  • Sort the list

  • Append items

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does an if structure begin with?

  • Variable declaration

  • Logical test

  • Input command

  • While loop

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What happens if choice == "A"?

  • The list is printed

  • A name is appended

  • The program exits

  • The list is sorted

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which Python command prints the list?

  • teamlist.sort()

  • print(teamlist)

  • teamlist.append()

  • input(teamlist)

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

  • What does the teamlist.sort() command do?

  • Adds items to the list

  • Deletes elements

  • Sorts the list

  • Blocks bad input

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is "nesting" in programming?

  • Indenting commands

  • A program structure inside another

  • Sorting a list

  • A syntax error

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What type of error occurs if an index is out of bounds?

  • Syntax error

  • Index error

  • Logical error

  • Runtime error

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?