Python Functions

Python Functions

9th - 12th Grade

16 Qs

quiz-placeholder

Similar activities

Energía Electrica

Energía Electrica

10th Grade

20 Qs

9 GRADO TIPOS DE CABLES DE RED  2024

9 GRADO TIPOS DE CABLES DE RED 2024

9th Grade

15 Qs

Informática: cierre del curso

Informática: cierre del curso

10th Grade

20 Qs

LOS MATERIALES

LOS MATERIALES

9th Grade

12 Qs

Materiales de Construcción

Materiales de Construcción

9th Grade - University

12 Qs

Robótica y Emprendimiento 3°

Robótica y Emprendimiento 3°

3rd Grade - University

16 Qs

4ESOTIC Seguridad y Vacaciones

4ESOTIC Seguridad y Vacaciones

9th Grade

12 Qs

codehs: Unit 2 Lessons 13 to 19

codehs: Unit 2 Lessons 13 to 19

9th - 12th Grade

15 Qs

Python Functions

Python Functions

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Mr Elson

Used 11+ times

FREE Resource

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

Which of the names below follow all naming rules? / ¿Cuál de los siguientes nombres sigue todas las reglas de nomenclatura?
make_two_squares
2_squares
Make 2 Squares
special_function

2.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

True of False? Functions are a way to group a set of commands so they can be called with one line of code. / ¿Verdadero o falso? Las funciones son una forma de agrupar un conjunto de comandos para que puedan llamarse con una línea de código.
True
False

3.

MULTIPLE CHOICE QUESTION

45 sec • 10 pts

Sara will study for a test if it is scheduled for tomorrow or if it covers difficult material. Otherwise, she will relax and watch TV instead of studying. In which of the following scenarios will Sara relax and watch TV instead of studying? / Sara estudiará para un examen si está programado para mañana o si cubre material difícil. De lo contrario, se relajará y mirará televisión en lugar de estudiar. ¿En cuál de los siguientes escenarios Sara se relajará y verá televisión en lugar de estudiar?
The test is 3 days away and covers easy material. / Faltan 3 días para la prueba y cubre material fácil.
The test is tomorrow but covers easy material. / El examen es mañana pero cubre material fácil.
The test is in 2 days and covers difficult material. / La prueba es en 2 días y cubre material difícil.
The test is tomorrow and covers difficult material. / La prueba es mañana y cubre material difícil.

4.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

Which of the names below follow all naming rules? / ¿Cuál de los siguientes nombres sigue todas las reglas de nomenclatura?
Draw Four Circles
4_circles
my_function
make_four_circles

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

John will go for a run if it is sunny or if he has free time. Otherwise, he will stay at home and read a book. In which of the following scenarios will John stay at home and read a book? / John irá a correr si hace sol o si tiene tiempo libre. De lo contrario, se quedará en casa y leerá un libro. ¿En cuál de los siguientes escenarios John se quedará en casa y leerá un libro?

It is raining and John is busy. / Está lloviendo y John está ocupado.

It is sunny but John is busy. / Hace sol pero John está ocupado.

It is cloudy and John has free time. / Está nublado y John tiene tiempo libre.

It is sunny and John has free time. / Hace sol y John tiene tiempo libre.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the names below follow all naming rules? / ¿Cuál de los siguientes nombres sigue todas las reglas de nomenclatura?

draw_five_triangles

5_triangles

Draw 5 Triangles

special_function_2

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When defining a function, the definition must occur before it is called. / Al definir una función, la definición debe ocurrir antes de que se llame.

True

False

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?