Python-Code Right or Wrong
Quiz
•
Computers
•
7th - 8th Grade
•
Practice Problem
•
Medium
Timothy Whiting
Used 26+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following Python code is correct?
age = input ("What is your age? ")
age=input ("What is your age? ")
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following Python code is correct?
if age>=18
print(You are old enough to vote)
if age>=18:
print("You are old enough to vote")
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following Python code is correct?
age=int(input("How old are you? "))
age=int(input("How old are you? ")
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following Python code is correct?
if age>=18:
print("Congrats! You are old enough to vote!!")
else:
print("You are NOT old enough to vote. Sorry Charlie")
else:
print("You are NOT old enough to vote. Sorry Charlie")
if age>=18:
print("Congrats! You are old enough to vote!!")
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following Python code is correct?
ans1=input What is the capital of Texas?
ans1=input("What is the capital of Texas? ")
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following Python code is correct?
while ans1!="Austin":
print("No, try...try again")
ans1=input("What is the capital of Texas? ")
while ans1!="Austin":
print("No, try...try again")
ans1 ("What is the capital of Texas? ")
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following Python code is correct?
while counter<13:
product = counter * 9
print(str(counter) + " x 9 = " + str(product))
while counter<13:
product = counter * 9
print(counter) + " x 9 = " +(product))
Create a free account and access millions of resources
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
Internet
Quiz
•
7th - 10th Grade
10 questions
Quick Revision Term3
Quiz
•
7th Grade
10 questions
สอบปลายภาคชั้นม.2
Quiz
•
8th Grade
10 questions
ม.2 แบบทดสอบก่อนเรียน หน่วย 2
Quiz
•
6th - 8th Grade
12 questions
Основные понятия языка программирования PYTHON
Quiz
•
7th Grade
10 questions
Computer Systems
Quiz
•
8th Grade
10 questions
Word basics
Quiz
•
8th - 12th Grade
15 questions
Systems Architecture
Quiz
•
KG - 9th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
