Docsity

PCEP Certified Entry-Level Python Programmer Certification rated A, Exams of Programming Languages

Toggle sidebar
bg1
PCEP Certified Entry-Level Python
Programmer Certification rated A
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
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download PCEP Certified Entry-Level Python Programmer Certification rated A and more Exams Programming Languages in PDF only on Docsity!

Programmer Certification rated A

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

Programmer Certification rated A

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.

Programmer Certification rated A

Scientific Notations - correct answer ✅Python 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. Strings - correct answer ✅Are used when you need to process text. (Strings need "quotes"). It is not intended to be executed, and should be taken as is. Comments - correct answer ✅A comment is a piece of text that begins with [#] (hash) sign and extends to the end of the line. [print()] - correct answer ✅is a function that prints the specified message to the screen, or other standard output device. [input()] - correct answer ✅The [inpout()] function is able to read data entered by the user and to return the same data to the running program. The program can manipulate the data, making the code truly interactive. *The function will switch the console to input mode. *The result of the [input()] function is also a string.

Programmer Certification rated A

[0b] - correct answer ✅binary [0o] - correct answer ✅Octal: 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. [0x] - correct answer ✅Hexadecimal Numeric Operators - correct answer ✅Symbols in programming language, which are able to operate on the values. Example: + , - , * , / , // , % , ** [] - correct answer ✅A double asterisk sign is an exponentiation (power) operator. The left argument is the base, its right, the exponent. Example: [23] [*] - correct answer ✅An asterisk is multiplication [/] - correct answer ✅A slash is division

Programmer Certification rated A

[\n] - correct answer ✅new line character causes a break where placed so output starts on a new line. []-the escape character [n]-newline ["James"3] - correct answer ✅"JamesJamesJames" The asterisk sign, when applied to a string and a number becomes a replication operator. [3"an"] = "ananan" [str()] - correct answer ✅the [str()] function converts the specific value into a string. Lists - correct answer ✅A type of data structure. An ordered sequence of objects. [10,"hello",200.3] Dictionaries - correct answer ✅Unordered key:value pairs {"mykey":"value", "name":"Frank"}

Programmer Certification rated A

Tuples - correct answer ✅Ordered immutable sequences of objects. AKA you cannot edit them. (10,"hello",200.3) Sets - correct answer ✅Unordered collection of unique objects. {"a","b"} [type()] - correct answer ✅Is used to check the type of object a variable is a= type(a) int [len()] - correct answer ✅Checks the length of the input len("hello") 5 list1 = [1,2,3] - correct answer ✅Lists can be changed dict1 = {'key1': 'value1'} - correct answer ✅dictionary can be changed