
Funções e Variáveis
Authored by Ryan Castro
Instructional Technology
12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
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
9 questions
Neural Networks Strcutures
Quiz
•
12th Grade
15 questions
Quiz de Programação Front End
Quiz
•
12th Grade - University
11 questions
THE AUTOMOBILE LIQUID COOLING SYSTEM
Quiz
•
12th Grade
10 questions
Vex VR Session 4
Quiz
•
5th Grade - University
10 questions
Parcial -Quinto Diversificado - Tercer Bloque
Quiz
•
12th Grade
12 questions
Top Notch 1 - U5 - L0
Quiz
•
2nd Grade - Professio...
12 questions
Basic Engine Parts Entry Quiz
Quiz
•
10th - 12th Grade
15 questions
Python Functions and Method
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade