Loops Python
Quiz
•
Computers
•
9th Grade
•
Practice Problem
•
Medium
Sarbagya Malla
Used 372+ times
FREE Resource
Enhance your content in a minute
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"
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
GRADE 4 ICT
Quiz
•
4th Grade
15 questions
S2 Databases
Quiz
•
2nd Grade
10 questions
ICT as Social Change
Quiz
•
12th Grade
15 questions
Chapter 2 & 3 (P3)
Quiz
•
3rd Grade
13 questions
Контрольная Программирование 8 класс
Quiz
•
8th Grade
10 questions
EVALUASI EMAIL
Quiz
•
1st Grade
15 questions
Computer and it's parts
Quiz
•
1st Grade
15 questions
Cyber Security Homework 1
Quiz
•
7th - 9th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
