Python While Loops

Python While Loops

9th Grade

25 Qs

quiz-placeholder

Similar activities

Fundamentals in RobotC

Fundamentals in RobotC

9th - 12th Grade

25 Qs

Invitation to Computer Science Review

Invitation to Computer Science Review

9th - 12th Grade

20 Qs

Cyber Robotics 101 Sessions 1-7

Cyber Robotics 101 Sessions 1-7

8th - 12th Grade

25 Qs

Robotics Challenge 2020 SMKTU2

Robotics Challenge 2020 SMKTU2

7th Grade - University

20 Qs

Python Fundamentals-01

Python Fundamentals-01

5th - 10th Grade

30 Qs

PK-Test1

PK-Test1

1st Grade - University

30 Qs

General Technology Semester Exam

General Technology Semester Exam

9th Grade

20 Qs

Lego EV3

Lego EV3

9th - 12th Grade

20 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?