Funções e Variáveis em Python

Funções e Variáveis em Python

11th Grade

20 Qs

quiz-placeholder

Similar activities

Prove It 5 Review

Prove It 5 Review

8th - 12th Grade

18 Qs

Sequences of Transformations Rigid Motions

Sequences of Transformations Rigid Motions

9th Grade - University

15 Qs

Geometry Practice

Geometry Practice

10th Grade - University

15 Qs

Angle Proofs Warm-Up

Angle Proofs Warm-Up

9th - 12th Grade

21 Qs

Geometry Similar and Congruent Triangles Review

Geometry Similar and Congruent Triangles Review

11th Grade - University

19 Qs

Scale factor

Scale factor

9th - 12th Grade

16 Qs

4.6: Congruence in Overlapping Triangles

4.6: Congruence in Overlapping Triangles

9th - 12th Grade

15 Qs

Geometry Unit Test

Geometry Unit Test

10th Grade - University

20 Qs

Funções e Variáveis em Python

Funções e Variáveis em Python

Assessment

Quiz

Mathematics

11th Grade

Hard

Used 1+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a palavra-chave utilizada para definir uma função em Python?

function

def

func

define

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual das opções abaixo representa uma variável do tipo string em Python?

nome = 10

nome = "Python"

nome = True

nome = 3.14

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

O que acontece se você tentar acessar uma variável que não foi definida em Python?

O valor será zero

O programa ignora a variável

Ocorre um erro do tipo NameError

O valor será None

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int

str

float

bool

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Considere a função abaixo: ```python def soma(a, b): return a + b ``` Qual é o nome dos parâmetros dessa função?

soma e a

a e b

return e soma

def e return

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual das opções abaixo é uma chamada correta para a função definida como `def saudacao(nome):`?

saudacao()

saudacao

saudacao("Maria")

saudacao[Maria]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual das opções abaixo NÃO é um tipo de dado primitivo em Python?

int

float

bool

list

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?