Loops Python

Loops Python

9th Grade

13 Qs

quiz-placeholder

Similar activities

Python

Python

4th - 12th Grade

9 Qs

Python I/O

Python I/O

9th - 12th Grade

15 Qs

Quiz 1

Quiz 1

University

10 Qs

Python

Python

7th - 8th Grade

10 Qs

Python Basics

Python Basics

6th - 7th Grade

15 Qs

Python quiz 2

Python quiz 2

7th Grade

10 Qs

Python

Python

8th Grade

12 Qs

Python lesson 3

Python lesson 3

8th Grade

11 Qs

Loops Python

Loops Python

Assessment

Quiz

Computers

9th Grade

Medium

Created by

Sarbagya Malla

Used 337+ times

FREE Resource

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

A while loop can be used in which of the following situations?

Repeat a set of statements till a condition remains True.

Repeat a set of statements a finite or an infinite number of times.

Iterate through a string, list, and tuple.

All of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable?

a type of graphics

A box(memory location) where you store values

Data type

a type of memory

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What symbol is used in python to assign values to a variable?

equals =

plus +

minus -

asterisk *

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output?

name = "Dave"

print (name)

(name)

Dave

name

Nothing

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A syntax error means your code has a 'grammar' mistake or you used symbols/operations incorrectly

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement correctly assigns the string "Tanner" to the variable name?

name  = print( "Tanner")

input("Tanner")

name= "Tanner"

name = input("Tanner")

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output from the following code?

print ("hello world")

hello world

print

nothing

"HELLO WORLD"

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?