ACTUAL Exam Questions and CORRECT
Answers
What is CPython? - CORRECT ANSWER It's the default, reference implementation of
Python, written in the C language
What do you call a file containing a program written in a high-level programming language? -
CORRECT ANSWER A source file
What is the expected behavior of the following program?
print("Hello!") - CORRECT ANSWER The program will output: Hello!
to the screen
What is machine code? - CORRECT ANSWER A low-level programming language
consisting of binary digits/bits that the computer reads and understands
What are the four fundamental elements that make a language? - CORRECT
ANSWER An alphabet, a lexis, phonetics, and semantics
What is true about compilation? - CORRECT ANSWER - It tends to be faster than
interpretation
- The code is converted directly into machine code executable
What is the best definition of a script? - CORRECT 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!") - CORRECT ANSWER The program will generate an error message on
the screen
Select the true statements:
- Python it free, open-source, and multiplatform
- Python 3 is backwards compatible with Python 2
- Python is a good choice for creating and executing tests for applications
- Python is a good choice for low-level programming, e.g., when you want to implement an
effective driver - CORRECT ANSWER - Python it free, open-source, and multiplatform
- Python is a good choice for creating and executing tests for applications
What do you call a command-line interpreter which lets you interact with your OS and execute
Python commands and scripts? - CORRECT ANSWER A console
Python is an example of: - CORRECT ANSWER High-level programming language
A complete set of known commands is called: - CORRECT ANSWER an instruction list
What is a source code? - CORRECT ANSWER A program written in a high-level
programming language
What do you call a computer program which directly executes instructions written in a
programming language? - CORRECT ANSWER An interpreter
What Python version is covered in this course? - CORRECT ANSWER Python 3
What is CPython (Quiz)? - CORRECT ANSWER The default implementation of the
Python programming language
, What is IDLE? - CORRECT ANSWER An acronym that stands for Integrated
Development and Learning Environment for Python
What do you call a tool that lets you launch your code step-by-step and inspect it at each moment
of execution? - CORRECT ANSWER A debugger
How did Python, the programming language, get its name? - CORRECT ANSWER Guido
van Rossum named it to honor Monty Python's Flying Circus, a BBC comedy series popular in
the 1970s
Which one of the following is an example of a Python file extension? - CORRECT
ANSWER py
The escape character owes its name to the fact that it: - CORRECT ANSWER changes the
meaning of the character next to it
The meaning of the positional parameter is determined by its: - CORRECT
ANSWER position
The most important difference between integer and floating-point numbers lies in the fact that: -
CORRECT ANSWER they are stored differently in the computer memory
The 0x prefix means that the number after it is denoted as - CORRECT ANSWER a
hexadecimal
The // operator - CORRECT ANSWER performs integer division
The result of the following addition:
123 + 0.0 - CORRECT ANSWER is equal to 123.0