click below
click below
Normal Size Small Size show me how
Python Module 1 Test
Cybersecurity 2 (Python Essentials 1) Module 1 Test 2023-2024
| Question | Answer |
|---|---|
| What is machine code? | 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? | An alphabet, a lexis, a syntax, and semantics |
| What do you call a file containing a program written in a high-level programming language? | A source file |
| What is true about compilation? (Select two answers) | The code is converted directly into machine code executable by the processor It tends to be faster than interpretation |
| What is the best definition of a script? | It's a text file that contains instructions which make up a Python program |
| Select the true statements. (Select two answers) | Python is free, open-source, and multiplatform Python is a good choice for creating and executing tests for applications |
| What is CPython? | |
| What do you call a command-line interpreter which lets you interact with your OS and execute Python commands and scripts? | A console |
| What is the expected behavior of the following program? print("Hello!") | The program will output Hello! to the screen |
| What is the expected behavior of the following program? prin("Goodbye!") | The program will generate an error message on the screen |