
PCEP Practice Test - Python
Authored by Prakash Ash
Computers
Professional Development
Used 13+ 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 SELECT QUESTION
1 min • 1 pt
Which of the following expressions evaluate to a non-zero result ? (Select two answers)
4 / 2 - 2 ** 1
4 / 2 + 2 ** 1
1 // 2 + 3 * 4
1 ** 2 - 4 // 3
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which one of the following asks the user for a string value and assigns it to the variable password ?
input = password ("Enter password")
password = input(Enter password)
password = input("Enter password")
password = str("Enter password")
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Refer to code image. Which one of the following code snippets prints the width and height variables separated by a multiplication sign (*) ?
print(width, height, *)
print(width, *, height)
print(width, height, sep='*')
print(width, height, multiply() )
Answer explanation
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Given the literal "False", identify the correct data type.
Boolean
String
Integer
Float
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Given the literal True, identify the correct data type.
Boolean
String
Integer
Float
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A process in which the source code is immediately executed without translating into machine code is called
linking
compilation
interpretation
debugging.
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Identify the operation that has the highest priority according to the operator precedence table in python.
Exponentiation
Multiplication
Subtraction
Floor Division
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
NETWORKS
Quiz
•
Professional Development
25 questions
PAT ROBOTIC Elektronika Dasar 2019-2020
Quiz
•
KG - Professional Dev...
25 questions
TEST DE ESTILOS DE APRENDIZAJE HABILIDADES DIGITALESI
Quiz
•
Professional Development
25 questions
Quiz Básico de Java
Quiz
•
7th Grade - Professio...
25 questions
Kuis Bimtek Tata Naskah dan Kearsipan 2023
Quiz
•
Professional Development
26 questions
Entrepreneurship
Quiz
•
4th Grade - Professio...
32 questions
HISTORY OF COMPUTERS AND COMPUTER BASICS
Quiz
•
3rd Grade - Professio...
25 questions
HTML
Quiz
•
5th Grade - Professio...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...