Search Header Logo

Python Exam 1

Authored by Dr Mohsin

Computers

University

Used 1+ times

Python Exam 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

97 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A ____-controlled loop uses a true/false condition to control the number of times it repeats.

Boolean

condition

decision

count

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A _____-controlled loop repeats a specific number of times.

count

condition

Boolean

decision

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Each repetition of a loop is known as a(n)

cycle

orbit

revolution

iteration

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

a WHILE loop is...

condition controlled

count controlled

loops forever

never loops

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The -= operator is an example of a(n) operator.

relational

augmented assignment

complex assignment

reverse assignment

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A(n) ____ variable keeps a running total.

sentinal

sum

total

accumulator

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A(n) ____ is a special value that signals when there are no more items from a list of items to be processed.

sentinel

flag

signal

accumulator

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?