PCEP Practice Exam 1
Quiz
•
Religious Studies
•
10th Grade
•
Practice Problem
•
Medium
Henry Vo
Used 58+ times
FREE Resource
Enhance your content in a minute
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will the output be after executing the following code snippet?
3
9
1
18
Answer explanation
The ** operator is used to raise the number on the left to the power of the exponent of the right. The expression is evaluated from the right to left, and therefore it results in 9**0, which is 9.
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will the output be, if we run the following code?
Monday, Tuesday, Wednesday, Thursday
Friday
None
AttributeError: 'tuple' object has no attribute 'append'
Answer explanation
Tuples are immutable and cannot be amended once created.
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How many times will it print "#"?
1
2
3
4
Answer explanation
The program will print '#' 3 times. The outer most if statement is false, so the if block is ignored, and the else block (print ("#"*3)) is executed.
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of this code when "robert" is entered by the user when prompted?
True
error
Robert
False
Answer explanation
The == operator compares two values. Python is case-sensitive. The value robert is not the same as Robert.
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What would be printed to the console after the following code is executed?
Hello
"Hello", World
Hello World
Hello, World
Answer explanation
The loop will print Hello once before entering into else clause, after i has is incremented by 1.
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will the output be after executing the following code?
('Python', 'Tuple')
[Python, Tuple]
['Python', 'Tuple']
(Python, Tuple)
Answer explanation
The answer is ('Python', 'Tuple') because the tuple() coverts the list to type tuple, keeping the same list elements.
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output when the following code snippet is run:
Error
None
Let's enjoy a bowl of cereals
Groceries trip pending
Answer explanation
If the value of a variable is non-zero or non-empty, bool(non_empty_variable) will evaluate to True. Hence the if clause is passed ( bool ("None") = True ) and 'Groceries trip pending' is printed to the console.
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
25 questions
SUNDAY SCHOOL - PRIMARY - TEST 1
Quiz
•
KG - 10th Grade
25 questions
Famous Bible Stories: Jonah
Quiz
•
KG - Professional Dev...
25 questions
Philosophy Quiz Reviewer
Quiz
•
10th Grade
25 questions
Doctrinal Mastery Review, Doctrine and Covenants
Quiz
•
9th - 12th Grade
25 questions
Church Government
Quiz
•
KG - Professional Dev...
25 questions
General bible Quiz
Quiz
•
KG - University
25 questions
Year 4 Revision Term 1
Quiz
•
2nd Grade - University
25 questions
Hinduism key ideas
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Religious Studies
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
20 questions
Cell organelles and functions
Quiz
•
10th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
10 questions
Exploring the Energy Cycle: Photosynthesis and Cellular Respiration
Interactive video
•
6th - 10th Grade
10 questions
Guess the Christmas Movie by the Scene Challenge
Interactive video
•
6th - 10th Grade
