PE1 Module 1 Test - Hsanokklis/2023-2024-Tech-journal GitHub Wiki
1. What is the best definition of a script?
- It's a text file that contains instructions which make up a Python program
2. What do you call a command-line interpreter which lets you interact with your OS and execute Python commands and scripts?
- A console
3. Select the true statements (there are 2 answers)
- Python is free, open-source and multiplatform
- Python is a good choice for creating and executing tests for applications
4. What is the expected behavior of the following program?
- The program will generate an error message on the screen
5. What is CPython
- It's the default reference implementation of Python, written in the C language
6. What is true about compilation (select 2 answers)
- It tends to be faster than interpretation
- The code is converted directly into machine code executable by the processor
7. What is the expected behavior of the following program?
- The program will output
Hello
to the screen
8. What is machine code?
- A low-level programming language consisting of binary digits/buts that the computer reads and understands
9. What are the four fundamental elements that make a language?
- An alphabet, a lexis, phonetics and semantics (incorrect go back)
10. What do you call a file containing a program written in a high-level programming language?
- A source file