Inputs Python

Quiz
•
Computers
•
12th Grade
•
Medium
CLEYTON PINHEIRO
Used 4+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a função utilizada em Python para capturar a entrada de dados do usuário?
output()
input()
print()
read()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a saída do seguinte código Python? ```python print("Olá, Mundo!") ```
Olá, Mundo!
"Olá, Mundo!"
print("Olá, Mundo!")
Nenhuma das anteriores
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Dado o código abaixo, qual será a saída se o usuário digitar "5"? ```python numero = input("Digite um número: ") if int(numero) > 10: print("Maior que 10") else: print("Menor ou igual a 10") ```
Maior que 10
Menor ou igual a 10
Erro de execução
Nenhuma saída
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a função do comando `elif` em uma estrutura condicional?
Finalizar o programa
Executar um bloco de código se a condição anterior for verdadeira
Verificar uma nova condição se a anterior for falsa
Repetir um bloco de código
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual das opções abaixo representa uma condição composta correta em Python?
if x > 5 and < 10:
if x > 5 and x < 10:
if (x > 5) or (x < 10)
if x > 5, x < 10:
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Considere o seguinte código. Qual será a saída se o usuário digitar "15"? ```python idade = int(input("Digite sua idade: ")) if idade < 12: print("Criança") elif idade < 18: print("Adolescente") else: print("Adulto") ```
Criança
Adolescente
Adulto
Nenhuma saída
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a maneira correta de validar se a entrada do usuário é um número inteiro em Python?
if type(input()) == int:
if isinstance(input(), int):
if input().isdigit():
if int(input()):
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Problem Solving using Python and R - UNIT II - Dictionary

Quiz
•
12th Grade
9 questions
Quiz sobre a aula passada!

Quiz
•
9th - 12th Grade
10 questions
Exploring Python: Input and Output Essentials

Quiz
•
9th Grade - University
11 questions
Python Quiz

Quiz
•
12th Grade
10 questions
Unit 1 Post Test: Basic Python

Quiz
•
9th - 12th Grade
15 questions
Python Quiz

Quiz
•
12th Grade
14 questions
Python (I)

Quiz
•
12th Grade
10 questions
Programación Básica

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade