Docsity

PCEP-CERTIFIED ENTRY-LEVEL PYTHON PROGRAMMER CERTIFICATION -COMPLETE LATEST FINAL EXAM UP, Exams of Programming Languages

Toggle sidebar
bg1
PCEP-CERTIFIED ENTRY-LEVEL PYTHON PROGRAMMER
CERTIFICATION -COMPLETE LATEST FINAL EXAM UPDATED FOR 2025-
2026 ACTUAL QUESTIONS WITH 100% CERTIFIED, ELABORATED &
VERIFIED SOLUTIONS- TOP SCOREโœ“โœ“โœ“ ACE YOUR EXAMS
Syntax
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
A set of rules determining if a certain phrase makes sense.
*Semantically-the program has to make sense.
Lexis
(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
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
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.
pf3
pf4
pf5

Partial preview of the text

Download PCEP-CERTIFIED ENTRY-LEVEL PYTHON PROGRAMMER CERTIFICATION -COMPLETE LATEST FINAL EXAM UP and more Exams Programming Languages in PDF only on Docsity!

PCEP-CERTIFIED ENTRY-LEVEL PYTHON PROGRAMMER

CERTIFICATION - COMPLETE LATEST FINAL EXAM UPDATED FOR 2025-

2026 ACTUAL QUESTIONS WITH 100% CERTIFIED, ELABORATED &

VERIFIED SOLUTIONS- TOP SCORE โœ“โœ“โœ“ ACE YOUR EXAMS

Syntax 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 A set of rules determining if a certain phrase makes sense. *Semantically-the program has to make sense. Lexis (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 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 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 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 The program that performs the translation is called a compiler or translator. Python keywords Keywords are the reserved words in Python *True, False, is, if, in, elif, etc. Indenting 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 A literal is data whose values are determined by the literal itself. *[123] is a literal, and [C] is not. Boolean 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 Those #'s that are devoid of the fractional part Whole numbers: Ex. 17 Floating-Point Numbers

Hexadecimal Numeric Operators Symbols in programming language, which are able to operate on the values. Example: + , - , , / , // , % , * [] A double asterisk sign is an exponentiation (power) operator. The left argument is the base, its right, the exponent. Example: [23] [*] An asterisk is multiplication [/] A slash is division Note: The result produced by the division operator is always a float [%] A [%] (percent sign) is a reminder (modulo), aka remainder left after the integer division. Example: [14%4] = 4+4+4=12 14/12= [//} A [//] (double slash) sign is an integer divisional operator. NOTE: NOT FLOAT!! The answer is rounded to the lesser integer. Example: 2.7=2 2.3= [+] Addition [-] Subtraction

Assignments Operators Assignment operators are used in Python to assign values to variables. (a=5) is a simple assignment operator that assigns the value 5 on the right to the variable a on the left. There are various compound operators in Python like a+=5 that adds to the variable and later assigns the same. [\n] New line character causes a break where placed so output starts on a new line. []-the escape character [n]-newline ["James"3] "jamesjamesjames" The asterisk sign, when applied to a string and a number becomes a replication operator. [3"an"] = "ananan" [str()] The [str()] function converts the specific value into a string. Lists A type of data structure. An ordered sequence of objects. [10,"hello",200.3] Dictionaries Unordered key:value pairs {"mykey":"value", "name":"Frank"} Tuples Ordered immutable sequences of objects. AKA you cannot edit them. (10,"hello",200.3)