Programmer Certification Study Guide
Exam.
Syntax - CORRECT ANSWER 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.
Semantics - CORRECT ANSWER A set of rules determining if a certain phrase makes sense.
*Semantically-the program has to make sense.
Lexis - CORRECT ANSWER (Aka Dictionary) as set of words the language offers its users.
*Lexically-each programming language has its dictionary and you need to master it.
Interpreting - CORRECT ANSWER you can translate the source program each time it has to be run; the
program performing this kind of transformation is called an interpreter. As it interprets the code every
time it is intended to be executed; it also means that you cannot just distribute the source code as-is,
because the end-user needs the interpreter to execute it.
*Python is an interpreted Language
Interpreter - CORRECT ANSWER 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 - CORRECT ANSWER 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 - CORRECT ANSWER The program that performs the translation is called a compiler or
translator.
Python keywords - CORRECT ANSWER Keywords are the reserved words in Python
*True, False, is, if, in, elif, etc.
Indenting - CORRECT ANSWER 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 - CORRECT ANSWER A literal is data whose values are determined by the literal itself.
*[123] is a literal, and [C] is not.
Boolean - CORRECT ANSWER 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.