
GINCANA PYTHON

Quiz
•
Education
•
Professional Development
•
Hard
GABRIEL ALVES
Used 1+ times
FREE Resource
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Como você declara uma função em Python que não recebe parâmetros e não retorna nada?
`def minha_funcao():`
`function minha_funcao()`
`def minha_funcao:`
`minha_funcao()`
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual das seguintes opções é a maneira correta de declarar uma variável em Python?
`var x = 10`
`x := 10`
`x = 10`
`int x = 10`
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a saída do seguinte código? ```python x = 5 if x > 3: print("Maior que 3") else: print("Menor ou igual a 3") ```
`Maior que 3`
`Menor ou igual a 3`
`Erro de sintaxe`
`Nenhuma saída`
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Como você imprime a mensagem "Olá, Mundo!" em Python?
`echo "Olá, Mundo!"`
`print("Olá, Mundo!")`
`printf("Olá, Mundo!")`
`System.out.println("Olá, Mundo!")`
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a função do comando `time.sleep()` em Python?
Pausar a execução do programa por um tempo especificado
Encerrar a execução do programa
Reiniciar a execução do programa
Nenhuma das anteriores
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual das seguintes opções é a sintaxe correta para usar `time.sleep` para pausar o programa por 2 segundos?
`time.sleep(2)`
`sleep(2)`
`time.sleep(2.0)`
`time(2).sleep()`
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Como você cria um loop `while` que continua executando enquanto a variável `x` for menor que 10?
`while x < 10:`
`while (x < 10)`
`while x <= 10:`
`while (x <= 10)`
Create a free account and access millions of resources
Similar Resources on Wayground
7 questions
Ôn HKII_L1

Quiz
•
Professional Development
10 questions
3D Printing Basic Quiz

Quiz
•
Professional Development
10 questions
CIS - Prompt Engineering Workshop

Quiz
•
Professional Development
10 questions
Python Function

Quiz
•
Professional Development
14 questions
FOH Quizz

Quiz
•
Professional Development
10 questions
ORGANIZATIONAL STRUCTURE OF AVIATION MAINTENANCE

Quiz
•
Professional Development
11 questions
AI Tech Trainee Module 1

Quiz
•
Professional Development
9 questions
day 5

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade