Flashcard sobre Funções em Python

Flashcard sobre Funções em Python

Assessment

Flashcard

Other

11th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

7 questions

Show all answers

1.

FLASHCARD QUESTION

Front

O que são parâmetros em uma função Python?

Back

Valores que são passados para a função quando ela é chamada.

2.

FLASHCARD QUESTION

Front

Qual é a diferença entre parâmetros e argumentos em Python?

Back

Parâmetros são definidos na declaração da função, enquanto argumentos são os valores passados para a função.

3.

FLASHCARD QUESTION

Front

Qual é a sintaxe correta para definir uma função em Python que aceita dois parâmetros?

Back

`def minha_funcao(param1, param2):`

4.

FLASHCARD QUESTION

Front

O que significa o retorno de valores em uma função Python?

Back

A função devolve um valor para o local onde foi chamada.

5.

FLASHCARD QUESTION

Front

Qual é a palavra-chave usada para retornar um valor de uma função em Python?

Back

`return`

6.

FLASHCARD QUESTION

Front

Qual é a saída da função abaixo?
```python
def soma(a, b):
return a + b
resultado = soma(3, 4)
```

Back

`7`

7.

FLASHCARD QUESTION

Front

O que são funções anônimas em Python?

Back

Funções que não têm um nome definido.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?