Funções e Variáveis
Quiz
•
Instructional Technology
•
12th Grade
•
Practice Problem
•
Hard
Ryan Castro
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a saída da função abaixo quando chamada com o argumento 5? ```python def f(x): return x * 2 print(f(5)) ```
10
5
25
2
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é o valor da variável `y` após a execução do código abaixo? ```python def add(a, b): return a + b y = add(3, 4) ```
3
4
7
12
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
O que a função `square` retorna quando chamada com o argumento 3? ```python def square(n): return n ** 2 print(square(3)) ```
6
9
3
27
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a saída do seguinte código? ```python def multiply(a, b): return a * b result = multiply(2, 3) print(result) ```
5
6
8
9
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
O que a função `subtract` retorna quando chamada com os argumentos 10 e 4? ```python def subtract(a, b): return a - b print(subtract(10, 4)) ```
6
14
4
-6
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a saída do seguinte código? ```python def divide(a, b): return a / b result = divide(8, 2) print(result) ```
4.0
4
2
16
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é o valor da variável `z` após a execução do código abaixo? ```python def mod(a, b): return a % b z = mod(10, 3) ```
1
3
7
10
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Media and Information Literacy Pre-Test
Quiz
•
12th Grade
12 questions
PTS INFORMATIKA FASE F TP 2023/2024
Quiz
•
12th Grade
10 questions
DL Refresher
Quiz
•
KG - Professional Dev...
7 questions
Types of Media (Print Media)
Quiz
•
12th Grade
15 questions
MIL Quiz 3: Lesson 4 & 5
Quiz
•
12th Grade
11 questions
Ciência de Dados
Quiz
•
12th Grade
15 questions
Cloud Services and Incident Management Quiz
Quiz
•
12th Grade
10 questions
Examen Parcial 2do y 3ro básico
Quiz
•
8th Grade - University
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
Discover more resources for Instructional Technology
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
25 questions
Preterito regular
Quiz
•
10th - 12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
10 questions
hands washing
Quiz
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
5 questions
Triangle Congruence Theorems
Interactive video
•
9th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade
14 questions
Model and Solve Linear Equations
Quiz
•
9th - 12th Grade
