Python-Code Right or Wrong
Quiz
•
Computers
•
7th - 8th Grade
•
Medium
Timothy Whiting
Used 26+ times
FREE Resource
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
Similar Resources on Wayground
10 questions
Python
Quiz
•
8th Grade
10 questions
Y9 Intro to Python
Quiz
•
8th Grade
12 questions
Programming - Output
Quiz
•
KG - 12th Grade
13 questions
Test
Quiz
•
7th Grade
10 questions
Python Programming Class Work
Quiz
•
7th Grade
8 questions
Quiz- Grade 7 & 8- Python (2nd term)
Quiz
•
7th Grade
12 questions
Python
Quiz
•
7th - 8th Grade
10 questions
Python. Урок-01. Знакомство
Quiz
•
6th - 7th 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
18 questions
Company Logos
Quiz
•
6th - 8th 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
25 questions
How to Email a Teacher- https://youtu.be/NioeNhfpVfI
Quiz
•
6th - 8th Grade
20 questions
Computer Hardware
Quiz
•
6th - 8th Grade
21 questions
Gear Ratio Practice
Quiz
•
6th - 8th Grade
