PCEP Numeric Types and Arithmetic Flashcards
6 cards from real PCEP practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.
Read the first 6 PCEP Numeric Types and Arithmetic flashcards as text
What is the output of `max(3, 1, 4, 1, 5, 9)`?
Answer: 9
`max()` returns the largest value among its arguments, which is 9 in this case.
What type does Python assign to the literal `0b1010`?
Answer: int
Binary literals prefixed with `0b` are stored as `int` in Python; their type is `int`.
What is the result of `-7 % 3` in Python?
Answer: 2
Python's modulo follows floor division; `-7 // 3` is `-3`, and `-7 - (-3 * 3)` = 2.
What does `min(5, 3, 8, 1, 9)` return?
Answer: 1
`min()` returns the smallest value among its arguments, which is 1 here.
What is the value of `0xFF` in decimal?
Answer: 255
`0xFF` is a hexadecimal literal; F=15 and 0xFF = 15*16 + 15 = 255 in decimal.
What is the result of `pow(2, 10)`?
Answer: 1024
`pow(2, 10)` computes 2 raised to the 10th power, which equals 1024.
How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. Exam facts are checked against the official sources listed below. Not reviewed by a subject-matter expert. Editorial policy
Sources & references
Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy
- pythoninstitute.org — Fees, exam format, passing score, retake fee, score release, time limit, score validity, test delivery, eligibility, retake policy · verified Oct 2026