
Teste de Algoritmos e Instruções em Python
Quiz
•
Computers
•
12th Grade
•
Hard
Joana Rocha
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a principal estrutura de dados em Python para armazenar múltiplos elementos?
tuple
set
list
dictionary
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Como você define um loop que executa um bloco de código enquanto uma condição específica é verdadeira em Python?
if condition:
for condition:
while condition:
until condition:
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a palavra-chave usada em Python para executar diferentes blocos de código com base em diferentes condições?
if-then
if-else
case-switch
when-otherwise
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Como você pode inverter uma string em Python?
string.reverse(1)
string[::-1]
string.reverse
string.reverse()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é o operador usado em Python para verificar se um elemento está presente em uma sequência?
at
on
to
in
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explique a diferença entre 'for' e 'while' loops em Python.
A diferença entre 'for' e 'while' loops em Python é que o 'for' loop é usado para iterar sobre uma sequência (como uma lista, tupla, dicionário, conjunto ou string) ou qualquer objeto iterável, enquanto o 'while' loop é usado para repetir um bloco de código enquanto a condição especificada for verdadeira.
O 'for' loop não pode ser utilizado para iterar sobre dicionários, apenas o 'while' loop pode fazer isso.
O 'for' loop é exclusivo para strings, enquanto o 'while' loop é exclusivo para listas.
O 'for' loop é usado para repetir um bloco de código enquanto a condição especificada for verdadeira, enquanto o 'while' loop é usado para iterar sobre uma sequência.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Como você pode verificar se uma string contém apenas dígitos numéricos em Python?
string.isnumeric()
string.isdigit()
string.isnumeric
string.isdigit
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
PYTHON
Quiz
•
9th - 12th Grade
10 questions
Prova Análise de Sistemas - AV2
Quiz
•
9th - 12th Grade
10 questions
JavaScript 3 baco med
Quiz
•
12th Grade
10 questions
Arduino X-3
Quiz
•
9th - 12th Grade
10 questions
หน่วยที่ 4 Python
Quiz
•
12th Grade
12 questions
Evaluación Diagnóstica de Computación
Quiz
•
6th Grade - University
10 questions
LOOPS IN C++
Quiz
•
10th Grade - University
10 questions
Tin học 11 - KTtx số 2 - HK I
Quiz
•
11th Grade - University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
Discover more resources for Computers
8 questions
Veterans Day Quiz
Quiz
•
12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
19 questions
Explore Triangle Congruence and Proofs
Quiz
•
9th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
DNA Replication Concepts and Mechanisms
Interactive video
•
7th - 12th Grade
20 questions
Food Chains and Food Webs
Quiz
•
7th - 12th Grade
15 questions
Identify Triangle Congruence Criteria
Quiz
•
9th - 12th Grade
23 questions
Similar Figures
Quiz
•
9th - 12th Grade
