Quiz
🐍💻 1.1 — Functions — Functions - Part 5
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this quiz (12)
1When the script runs, it prints out the steps of the omelette-making process.
- ATrue
- BFalse
2How can the resulting string stored in the variable “omelette” be displayed?
- ABy creating a new variable
- BBy using a print statement at the end of the script
- CBy restarting Codespaces
- DBy editing the interpreter settings
3The variable “omelette” automatically displays itself without needing a print statement.
- ATrue
- BFalse
4After adding the print statement and running the script again, what appears on the last line of output?
- AAn error message
- BThe tasty omelette description
- CThe cooking steps repeated twice
- DA blank line
5What problem arises when Olivia also wants an omelette?
- APython cannot create multiple variables
- BThe script must repeat all the cooking steps again
- CThe editor crashes
- DThe string object disappears
6Which actions are required to see the final omelette output?
- ARun the script using the “Run All” button
- BAdd a print statement for the variable “omelette”
- CDelete the previous print statements
- DRun the script again after adding the print statement
7What is one way the instructor suggests creating a second omelette in the script?
- AImporting a new library
- BTyping all the steps again or using copy-paste
- CRestarting the interpreter
- DCreating a loop immediately
8The instructor chooses to manually rewrite every step instead of using copy-paste.
- ATrue
- BFalse
9Why are the variables renamed to “omelette1” and “omelette2”?
- ATo improve performance
- BTo distinguish between the two omelettes
- CTo follow Python syntax rules
- DTo reduce memory usage
10What modifications are made after duplicating the code?
- AVariable names are changed to “omelette1” and “omelette2”
- BThe original steps are deleted
- CThe first print statement displays “omelette1”
- DA second print statement is added for “omelette2”
11After these changes, the script executes the omelette-making steps twice.
- ATrue
- BFalse
12What is shown at the end of the script after running it?
- AOnly one omelette description
- BTwo final print statements showing two omelettes
- CAn error due to duplicate code
- DNo visible output
Information
- Description
- Beginner Programming (Programming Concepts for Python) Quiz on 🐍💻 1.1 — Functions — Functions - Part 5, created by Amein Saidi on 27/02/2026.
- Author
- Amein Saidi
- Language
- English
- Views
- 0
- Tags
- Rating
- No ratings yet Rate this quiz
More on Functions and Procedures