
Desafio de Python: Condições e Strings

Quiz
•
Computers
•
2nd Grade
•
Medium

Gabriel Lobo
Used 2+ 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
O que acontece quando o seguinte código é executado? ```python try: print(10 / 0) except ZeroDivisionError: print("Erro de divisão por zero") ```
O programa para com um erro
Imprime "Erro de divisão por zero"
Imprime "10 / 0"
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a saída do seguinte código? ```python s = "Python" print(s[0:3]) ```
Pyt
hon
Pyth
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a saída do seguinte código? ```python x = 5 y = 10 if x < y and y > 5: print("Condição verdadeira") else: print("Condição falsa") ```
Condição verdadeira
Condição falsa
Nenhuma das anteriores
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a saída do seguinte código? ```python try: int("abc") except ValueError: print("Erro de valor") ```
Erro de valor
abc
Nenhuma saída
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a saída do seguinte código? ```python s = "Olá, Mundo!" print(s.upper()) ```
olá, mundo!
OLÁ, MUNDO!
Olá, Mundo!
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a saída do seguinte código? ```python x = "123" if isinstance(x, str): print("É uma string") else: print("Não é uma string") ```
É uma string
Não é uma string
Nenhuma das anteriores
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Análise e Projeto de Sistemas - Nivelamento

Quiz
•
2nd Grade
19 questions
JavaScript

Quiz
•
2nd Grade
20 questions
BAB KOD ARAHAN TINGKATAN 2

Quiz
•
2nd Grade
14 questions
Python Functions and Flowcharts

Quiz
•
1st - 3rd Grade
10 questions
Python Quiz-1

Quiz
•
1st - 3rd Grade
14 questions
AV5 JOGOS DIGITAIS 3.TEC - 3.TRI - AVALIAÇÃO 3º TRIMESTRE_AV5

Quiz
•
2nd Grade
10 questions
Avaliação 3° trimestre - 2° ano - SENAC

Quiz
•
2nd Grade
10 questions
P2 - 3ºTEC - 3ºTRI - Prog.Des.Sistemas - Trevisan

Quiz
•
2nd Grade
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade