PCEP|Certified Entry-Level Python Programmer Certification. Questions & Answers. Graded A, Exams of Computer Science

PCEP|Certified Entry-Level Python Programmer Certification. Questions & Correct Answers Latest 2026-2027. Graded A

Typology: Exams

2025/2026

Available from 04/21/2026

chit-bank
chit-bank 🇺🇸

2.6K documents

1 / 8

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1
PCEP|Certified Entry-Level Python
Programmer Certification. Questions
& Correct Answers Latest 2026-2027.
Graded A
[-] - ANSSubtraction
["James"*3] - ANS"JamesJamesJames"
The asterisk sign, when applied to a string and a number becomes a
replication operator.
[3*"an"] = "ananan"
[*] - ANSAn asterisk is multiplication
[**] - ANSA double asterisk sign is an exponentiation (power) operator. The
left argument is the base, its right, the exponent.
Example: [2**3]
[/] - ANSA slash is division
pf3
pf4
pf5
pf8

Partial preview of the text

Download PCEP|Certified Entry-Level Python Programmer Certification. Questions & Answers. Graded A and more Exams Computer Science in PDF only on Docsity!

PCEP|Certified Entry-Level Python

Programmer Certification. Questions

& Correct Answers Latest 2026-2027.

Graded A

[-] - ANSSubtraction ["James"3] - ANS"JamesJamesJames" The asterisk sign, when applied to a string and a number becomes a replication operator. [3"an"] = "ananan" [] - ANSAn asterisk is multiplication [] - ANSA double asterisk sign is an exponentiation (power) operator. The left argument is the base, its right, the exponent. Example: [2*3] [/] - ANSA slash is division

Note: The result produced by the division operator is always a float [//} - ANSA [//] (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= [\n] - ANSnew line character causes a break where placed so output starts on a new line. []-the escape character [n]-newline [%] - ANSA [%] (percent sign) is a reminder (modulo), aka remainder left after the integer division. Example: [14%4] = 4+4+4=12 14/12= [+] - ANSAddition [0b] - ANSbinary [0o] - ANSOctal: If an integer # is preceded by an [0o] prefix (zero - o) it will be treated as an octal value. This means that the # must contain digits taken from the {0.....7} range only.

Assignments Operators - ANSAssignment 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. Boolean - ANSA 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. Comments - ANSA comment is a piece of text that begins with [#] (hash) sign and extends to the end of the line. Compilation - ANSThe 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 - ANSThe program that performs the translation is called a compiler or translator. dict1 = {'key1': 'value1'} - ANSdictionary can be changed

Dictionaries - ANSUnordered key:value pairs {"mykey":"value", "name":"Frank"} Floating-Point Numbers - ANS(or simply floats), that contain (or are able to contain) the fractional part. Example 17. Indenting - ANSLeading 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. Integer - ANSThose #'s that are devoid of the fractional part Whole numbers: Ex. 17 Interpreter - ANSAn 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.

*[123] is a literal, and [C] is not. Numeric Operators - ANSSymbols in programming language, which are able to operate on the values. Example: + , - , * , / , // , % , ** Python keywords - ANSKeywords are the reserved words in Python *True, False, is, if, in, elif, etc. Scientific Notations - ANSPython uses special syntax to write #'s in scientific notation Example: 0.000000123 can be written as [1.23E-7] The letter E is called exponent and it doesn't matter whether you use e or E. Complex #'s are the #'s which we can't represent on a # line. Semantics - ANSA set of rules determining if a certain phrase makes sense. *Semantically-the program has to make sense.

Sets - ANSUnordered collection of unique objects. {"a","b"} Strings - ANSAre used when you need to process text. (Strings need "quotes"). It is not intended to be executed, and should be taken as is. Syntax - ANSA 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. tuple1 = (1,2,3) - ANSTuples cannot be changed Tuples - ANSOrdered immutable sequences of objects. AKA you cannot edit them. (10,"hello",200.3)