What is CPython? - 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? - answer-A
source file
What is the expected behavior of the following program?
print("Hello!") - answer-The program will output: Hello!
to the screen
What is machine code? - 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? - answer-An alphabet, a lexis,
phonetics, and semantics
What is true about compilation? - 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? - 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
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 - 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? - answer-A console
Python is an example of: - answer-High-level programming language
A complete set of known commands is called: - answer-an instruction list
What is a source code? - 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? - answer-An interpreter
, What Python version is covered in this course? - answer-Python 3
What is CPython (Quiz)? - answer-The default implementation of the Python programming language
What is IDLE? - 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? - answer-A debugger
How did Python, the programming language, get its name? - 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? - answer-py
The escape character owes its name to the fact that it: - answer-changes the meaning of the character
next to it
The meaning of the positional parameter is determined by its: - answer-position
The most important difference between integer and floating-point numbers lies in the fact that: -
answer-they are stored differently in the computer memory
The 0x prefix means that the number after it is denoted as - answer-a hexadecimal
The // operator - answer-performs integer division
The result of the following addition:
123 + 0.0 - answer-is equal to 123.0
Only one of the following statements is true:
- addition precedes multiplication
- multiplication precedes addition
- neither statement can be evaluated - answer-multiplication precedes addition
Right-sided binding means that the following expression:
1 ** 2 ** 3
will be evaluated: - answer-from right to left
A keyword is a word that (select two):
- is the most important word in the whole program
- cannot be used a as a variable name
- cannot be used as a function name - answer-- cannot be used a as a variable name
- cannot be used as a function name
A value returned by the input() function is: - answer-a string
Which of the following variable names are illegal? (select two)