Programmer (PCEP): Module 1
What are the four fundamental elements that make a language? - Answer- An
alphabet, a lexis, a syntax, and semantics
What is CPython? - Answer- It's the default, reference implementation of Python,
written in the C language.
What is true about compilation? (Select two answers) - Answer- (1) It tends to be
faster than interpretation.
(2) The code is converted directly into machine code executable by the processor.
Select the true statements? (Select two answers) - Answer- (1) Python is free, open-
source, and multiplatform.
(2) Python is a good choice for creating and executing tests for applications.
What is the expected behavior of the following program?
print("Hello!") - Answer- The program will output Hello! to the screen.
What do you call a file containing a program written in a high-level programming
language? - Answer- A source file
What do you call a command-line interpreter which lets you interact with your OS
and execute Python commands and scripts? - Answer- A console
What is the best definition of a script? - Answer- It's a text file that contains
instructions which make up a Python program.
What is the expected behavior of the following program?
prin("Goodbye!") - Answer- The program will generate an error message on the
screen.
What is machine code? - Answer- A low-level programming language consisting of
binary digits/bits that the computer reads and understands.