PCEP Certified Entry-Level Exam
Questions & Answers7
*Python is an interpreted Language
Interpreter - ANSWERS-An interpreter is a program that reads and executes code
-An interpreter will:
1. Check if all subsequent lines are correct
2. if an error is found d the interpreter stops and an error message is made.
3. the interpreter lets you know where the error is located and what caused it.
4. If the line is good the interpreter tries to execute it.
*Each line is usually executed separately.
Compilation - ANSWERS-The source program is translated once (however, this act must be
repeated each time you modify the source code) by getting a file (e.g. an .exe if the code is
intended to be run under windows) containing the machine code; now you can distribute the
file worldwide.
Compiler - ANSWERS-The program that performs the translation is called a compiler or
translator.
Python keywords - ANSWERS-Keywords are the reserved words in Python
, *True, False, is, if, in, elif, etc.
Indenting - ANSWERS-Leading white-space (spaces or tabs) at the beginning of a logical line is
used to compute the indentation level of the line, which in turn is used to determine the
grouping of statements.
Literals - ANSWERS-A literal is data whose values are determined by the literal itself.
*[123] is a literal, and [C] is not.
Boolean - ANSWERS-A Boolean expression (or logical expression) evaluates to one of two states,
True or False.
Python provides the Boolean type that can be either False or True. Many functions and
operations return Boolean objects. The not keywords can also be used to inverse a Boolean
type.
Integer - ANSWERS-Those #'s that are devoid of the fractional part
Whole numbers: Ex. 17
Floating-Point Numbers - ANSWERS-(or simply floats), that contain (or are able to contain) the
fractional part.
Syntax - ANSWERS-A set of rules used to determine if a certain string of words form a valid
sentence.
*Syntactically-each language has its rules and they must be obeyed.