Quiz
🐍💻 1.1 — Functions — Functions - Part 5
Erstelle ein kostenloses Konto, um dieses Quiz zu beenden
Speichere deinen Fortschritt und sieh dir dein Endergebnis an.
oder mit deiner E-Mail registrieren
Schon ein Konto? Anmelden
Fragen in diesem Quiz (12)
1When the script runs, it prints out the steps of the omelette-making process.
- ARichtig
- BFalsch
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.
- ARichtig
- BFalsch
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.
- ARichtig
- BFalsch
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.
- ARichtig
- BFalsch
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
Informationen
- Beschreibung
- Beginner Programming (Programming Concepts for Python) Quiz am 🐍💻 1.1 — Functions — Functions - Part 5, erstellt von Amein Saidi am 27/02/2026.
- Autor
- Amein Saidi
- Sprache
- English
- Aufrufe
- 2
- Schlagwörter
- Bewertung
- Noch keine Bewertungen Bewerte dieses Quiz
Mehr zu Functions and Procedures