Test
🐍💻 1.1 — Functions — Functions - Part 5
Crea una cuenta gratis para terminar este test
Guarda tu progreso y consulta tu resultado final.
¿Ya tienes cuenta? Inicia sesión
Preguntas del test (12)
1When the script runs, it prints out the steps of the omelette-making process.
- AVerdadero
- BFalso
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.
- AVerdadero
- BFalso
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.
- AVerdadero
- BFalso
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.
- AVerdadero
- BFalso
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
Información
- Descripción
- Beginner (Programming Concepts for Python) Programming Test sobre 🐍💻 1.1 — Functions — Functions - Part 5, creado por Amein Saidi el 27/02/2026.
- Autor
- Amein Saidi
- Idioma
- English
- Visitas
- 2
- Etiquetas
- Valoración
- Aún sin valoraciones Valora este test
Más sobre Functions and Procedures