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") ```

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
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 Quizizz
15 questions
Quiz sobre Hardware e Software

Quiz
•
2nd Grade - University
10 questions
Teste de revisão - Liguagem C

Quiz
•
University
20 questions
Python

Quiz
•
University
10 questions
Quiz sobre Hardware e Software

Quiz
•
University
10 questions
Understanding Computer Hardware Basics

Quiz
•
12th Grade - 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
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade