
Python Institute Practice exam 3
Authored by Carla Gehlhausen
Computers
11th Grade
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
28 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
What does the following code do?
counter= 1
While counter< 11:
print(counter)
It prints numbers from1 to 11
ll prints numbers from1 to 10
It immediately shows an error
It prints the number 1 infinitely.
2.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
What will be printed to the output after the following code?
for a in range(1, 6):
for bin range(1, 10):
if (a==b):
print(a)
1
2
3
4
5
6
1
2
3
4
5
6
7
8
9
10
Python will show an error because there's a loop inside a loop, which is not allowed
1
2
3
4
5
3.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
What will be the output of the following code?
tup = (7, 14, 21)
tl = tup + (28, )
t2 = tup * 3
print(tl, t2)
Error
(7. 14. 21,28.) (7·3,14•,21•3)
(7, 14, 21)(21, 42, 63)
(7, 14, 21, 28) (7, 14, 21, 7, 14, 21, 7, 14, 21)
4.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
What is the output of the code snippet, if the user provides the input as "Coding" when prompted?
inp = input()
print(inp * 4)
Coding * 4
CodingCodingCodingCoding
Coding4
coding coding coding coding
5.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
Which of the following is a valid variable name in Python?
1do
do+1
A, C and E
None of these answers
do it
6.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
What do you call a program that can directly execute instructions from a programming language ?
Interpreter
Translator
Assembler
Compiler
7.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
Select the correct output of the below code:
print(17%3}
print(14%3.5)
5
4.0
2
0.0
5.66
4.0
6
4.0
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
25 questions
HTML
Quiz
•
11th Grade
24 questions
2.5 Programming Languages and IDEs
Quiz
•
11th Grade
23 questions
free tes PAS PBO PPLG
Quiz
•
9th - 12th Grade
23 questions
2_OSI Layer
Quiz
•
11th Grade
23 questions
VEŠTAČKA INTELIGENCIJA - KVIZ 2
Quiz
•
11th Grade
25 questions
PTS Informatika
Quiz
•
11th Grade
24 questions
Vocabulary #7 Quiz
Quiz
•
11th Grade - University
24 questions
AI (artificial intelligence)
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Computers
8 questions
2 Step Word Problems
Quiz
•
KG - University
10 questions
Martin Luther King, Jr. For Kids
Interactive video
•
1st - 12th Grade
10 questions
Dr. King's Speech and Its Impact
Interactive video
•
7th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Los mandatos y las recetas
Lesson
•
11th Grade
7 questions
Anti-Bullying ARS 15-341
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
15 questions
TSI Math Practice Questions
Quiz
•
8th - 12th Grade