Python Programming Test 2

Quiz
•
Computers
•
7th Grade
•
Easy
Oluwadamilare Alonge
Used 1+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which of the following is NOT a Python data type?
Integer
String
Function
Boolean
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What will be the output of print(10 % 3)?
0
1
2
3
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which function is used to get input from the user in Python?
output()
get_input()
input()
ask()
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is the correct way to write a comment in Python?
// This is a comment
/* This is a comment */
# This is a comment
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is the output of print(2 ** 3)?
5
6
8
9
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which keyword is used to create a loop that iterates over a sequence?
for
loop
repeat
while
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is the output of the following code? if 5 > 3: print("Yes")
Yes
No
Error
Nothing
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
GCSE J277 - Programming Fundamentals Keyword Quiz

Quiz
•
7th Grade
25 questions
7.5 Final MCQ Assessment 2022

Quiz
•
7th Grade
25 questions
Programming and Logic Lesson 1

Quiz
•
6th - 8th Grade
30 questions
CodeHS Tracy the Turtle Final Test

Quiz
•
6th - 10th Grade
30 questions
DigLit - CH06: Multiple Choice

Quiz
•
6th - 8th Grade
31 questions
Python Course Selection

Quiz
•
7th - 11th Grade
32 questions
Python Unit 14 - PyGame Basics

Quiz
•
6th - 8th Grade
25 questions
Web Design Essentials

Quiz
•
6th - 7th Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade