Loops Python

Loops Python

9th Grade

13 Qs

quiz-placeholder

Similar activities

Python Basics

Python Basics

1st - 5th Grade

15 Qs

9.2 Further programming

9.2 Further programming

9th Grade

12 Qs

Mansi MCQs Assessment

Mansi MCQs Assessment

7th Grade

10 Qs

Python Basics Review

Python Basics Review

10th Grade

18 Qs

Python

Python

8th Grade

13 Qs

Python Lesson 3

Python Lesson 3

8th - 11th Grade

18 Qs

Python Gaddis

Python Gaddis

7th - 8th Grade

10 Qs

Python Boolean

Python Boolean

11th - 12th 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?