Loops Python

Quiz
•
Computers
•
9th Grade
•
Medium
Sarbagya Malla
Used 347+ 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
15 questions
Python Made Easy

Quiz
•
KG - University
15 questions
Grade 8 End of Unit Revision

Quiz
•
8th Grade - University
10 questions
Python syntax

Quiz
•
4th - 8th Grade
10 questions
I. C. T 2ND CONTINOUS ASSESSMENT FOR YEAR FIVE ACHIEVERS

Quiz
•
5th Grade
10 questions
Programming in Java

Quiz
•
8th Grade
9 questions
untitled

Quiz
•
9th Grade
16 questions
Python

Quiz
•
11th Grade
16 questions
Python Review

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade