Loops Python

Quiz
•
Computers
•
9th Grade
•
Medium
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
nothing
"HELLO WORLD"
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
Python Basics

Quiz
•
7th Grade
16 questions
Variables, Inputs and Concatenation

Quiz
•
9th Grade
11 questions
Python Boolean

Quiz
•
11th - 12th Grade
17 questions
Python Review

Quiz
•
7th - 8th Grade
15 questions
Basic Python Coding

Quiz
•
11th - 12th Grade
10 questions
Python

Quiz
•
7th Grade
10 questions
Python Variables

Quiz
•
6th Grade
10 questions
Introduction to Python Turtle

Quiz
•
7th - 8th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade