
PCEP Practice Test - Python

Quiz
•
Computers
•
Professional Development
•
Medium
Prakash Ash
Used 8+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
C Language Test 3

Quiz
•
Professional Development
25 questions
Computer Internal Components Study Guide

Quiz
•
KG - Professional Dev...
26 questions
Digital Marketer Revision Quiz 2

Quiz
•
Professional Development
30 questions
DIRECT DISTRIBUTION (BRANCH)

Quiz
•
Professional Development
25 questions
Sify Security Quiz

Quiz
•
Professional Development
25 questions
COCAT - DAA

Quiz
•
University - Professi...
25 questions
Review MySQL

Quiz
•
Professional Development
25 questions
C Language Test - 2

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade