
PCEP Practice Exam 3
Authored by Henry Vo
Religious Studies
10th Grade
Used 18+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output after running the following code?
func1
func3
func3
func3
func3
func1
func1
func2
func3
func3
func2
func1
Answer explanation
Here we are looking at nested functions. The function func1 will call the second function func2 , which in turn calls the third function func3.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output after running the following code?
[7, 2]
[7, 6, 5, 4, 3, 2]
[7, 3]
SyntaxError
Answer explanation
The data from the list is accessed in reverse and includes every 5th element starting from the back of the list.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output after running the following code?
Yes
True
error
No
Answer explanation
The range function generate a series of numbers within a given range, in this case between 10 and 12, with a step of 2. In the first iteration, i is equal to 10, so 10 % 2 != 1 evaluates to True, hence the program prints No
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output when the following program is run?
5,4,'Earth'
[5,4]
[5, 4, 'Earth']
{5,4,'Earth'}
Answer explanation
The list() function will convert the tuple 5,4,"Earth" into a list object.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code:
<class 'tuple'>
<class 'list'><class 'int'>
<class 'list'>
error
Answer explanation
The *val declaration means that the functions expects multiple arguments. When calling myprint function, one can pass in any number of arguments. Arguments will be passed to the function as a tuple and printed.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the output be after executing this code?
True True False
False False True
False True False
False False False
Answer explanation
When bool() is provided an empty list, an empty string or the value 0 as an argument, it returns False. The expression will evaluate to True when bool () is given any other value, including negative numbers.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following print statement ?
False
True
SyntaxError
10
Answer explanation
The is operator is an identity operator, it checks whether both the operands refer to the same object or not. The p and q have equal values, stored in the same memory location, hence p and q are same. You can use id() function to check if the variables are same: print(id(p)) print(id(q)) which will indicate the same ID for both variables.
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
After Curfew Quiz Race
Quiz
•
7th Grade - University
25 questions
The Financial Free Zone Law
Quiz
•
KG - Professional Dev...
25 questions
DAV IT Quiz
Quiz
•
9th - 12th Grade
25 questions
Sura Fatiha
Quiz
•
2nd Grade - University
25 questions
Salah & Wudhu Quiz
Quiz
•
5th - 11th Grade
25 questions
Yr8 End of Topic Quiz - Relationships
Quiz
•
1st - 12th Grade
25 questions
YDS Bal Sabha Parents Quiz
Quiz
•
KG - Professional Dev...
25 questions
Mathew 6 to 10
Quiz
•
6th - 10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Religious Studies
15 questions
Making Inferences
Quiz
•
7th - 12th Grade
23 questions
TSI Math Vocabulary
Quiz
•
10th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Cell Organelles and Their Functions
Interactive video
•
6th - 10th Grade
10 questions
Plotting Points on a Coordinate Plane: Quadrant 1 Essentials
Interactive video
•
6th - 10th Grade
10 questions
Exploring Abiotic and Biotic Factors in Ecosystems
Interactive video
•
6th - 10th Grade
20 questions
SSS/SAS
Quiz
•
9th - 12th Grade
20 questions
Figurative Language Review
Quiz
•
10th Grade