Loops Python

Loops Python

9th Grade

13 Qs

quiz-placeholder

Similar activities

Quiz on List and Tuples

Quiz on List and Tuples

University

16 Qs

conditional constructs in Java

conditional constructs in Java

10th Grade

10 Qs

KS3_Data Representations (from clay to silicon)

KS3_Data Representations (from clay to silicon)

1st - 3rd Grade

15 Qs

First step to Internet 5B1

First step to Internet 5B1

5th Grade

10 Qs

Internet

Internet

7th - 10th Grade

10 Qs

CHAPTER 5 ONLINE QUIZ

CHAPTER 5 ONLINE QUIZ

University

9 Qs

Term 1 Revision - Year 5

Term 1 Revision - Year 5

4th Grade

18 Qs

Gr3-Scratch - Revision

Gr3-Scratch - Revision

3rd - 5th Grade

11 Qs

Loops Python

Loops Python

Assessment

Quiz

Computers

9th Grade

Practice Problem

Medium

Created by

Sarbagya Malla

Used 372+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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"

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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?