Python While Loops

Python While Loops

9th Grade

25 Qs

quiz-placeholder

Similar activities

Computer Science Unit 3 Quiz

Computer Science Unit 3 Quiz

8th - 10th Grade

27 Qs

Presentations Quiz

Presentations Quiz

6th - 12th Grade

20 Qs

Arduino BOE Bot MS

Arduino BOE Bot MS

9th - 12th Grade

25 Qs

Artificial intelligence

Artificial intelligence

9th - 10th Grade

20 Qs

Fingerprints--WK 1

Fingerprints--WK 1

9th - 12th Grade

25 Qs

8th grade CS exam

8th grade CS exam

7th - 9th Grade

20 Qs

Apparel I 3.03-Construction-Part 1

Apparel I 3.03-Construction-Part 1

9th - 12th Grade

25 Qs

AVD I - 1.02 Project Management Vocabulary

AVD I - 1.02 Project Management Vocabulary

9th Grade

26 Qs

Python While Loops

Python While Loops

Assessment

Quiz

Other

9th Grade

Hard

Created by

Katie Steingold

Used 3+ times

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to ask the user for input and store it as an integer in Python?

number1 = input("Enter a number: ")

number1 = int(input("Enter a number: ")

number1 = str(input("Enter a number: ")

number1 = float(input("Enter a number: ")

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you subtract the value of 'number2' from 'number1' and store the result in 'answer'?

answer = number1 + number2

answer = number1 * number2

answer = number1 - number2

answer = number2 - number1

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a loop in programming?

The type of data being used by the program

The place where inputs get stored by the program

A sequence of instructions that is continually repeated until a certain condition is reached

“Whole Number” data type

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an integer in programming?

Another name for a 'loop'

The type of data being used by the program

The place where inputs get stored by the program

“Whole Number” data type

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the term 'iteration' refer to in programming?

The type of data being used by the program

“Whole Number” data type

The place where inputs get stored by the program

Another name for a 'loop'

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in the context of programming?

“Whole Number” data type

The place where inputs get stored by the program

Another name for a 'loop'

The type of data being used by the program

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is iteration in programming?

The process of increasing the value of a variable

The process of doing something once and moving to the next step

The process of doing something again and again

The process of checking a condition once

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?