
Python - Revisão P2

Quiz
•
Information Technology (IT)
•
University
•
Easy

CRISTINA CO
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a saída do seguinte código Python? ```python x = 10 if x > 5: print("Maior que 5") else: print("Menor ou igual a 5") ```
Menor ou igual a 5
Maior que 5
Nenhuma das anteriores
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a função correta para calcular o comprimento de uma lista em Python?
length(lista)
count(lista)
len(lista)
size(lista)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a saída do seguinte código Python? ```python for i in range(3): print(i) ```
0 1 2
1 2 3
0 1 2 3
1 2
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a sintaxe correta para definir uma função em Python?
def nome_funcao():
function nome_funcao():
func nome_funcao():
define nome_funcao():
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a saída do seguinte código Python? ```python lista = [1, 2, 3, 4] print(lista[2]) ```
1
2
3
4
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a função usada para ler a entrada do usuário em Python 3?
input()
read()
scan()
get()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a saída do seguinte código Python? ```python x = 0 while x < 3: print(x) x += 1 ```
0 1 2
1 2 3
0 1 2 3
1 2
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Quiz sobre Pontos de Função

Quiz
•
University
18 questions
¡Pasando Lista!

Quiz
•
University
20 questions
Introduction to C# Programming

Quiz
•
10th Grade - University
15 questions
Motherboard Functionality Quiz

Quiz
•
8th Grade - University
12 questions
Computação Básica, Hardware e Software

Quiz
•
12th Grade - University
10 questions
Comandos SQL

Quiz
•
University
14 questions
Elementos da Programação em Quiz

Quiz
•
12th Grade - University
10 questions
Memória Principal do Computador

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade