Quiz de Python: Decisão e Repetição

Quiz de Python: Decisão e Repetição

Professional Development

30 Qs

quiz-placeholder

Similar activities

CEPAC - Diagnóstico Informática

CEPAC - Diagnóstico Informática

Professional Development

25 Qs

Struktogramme

Struktogramme

Professional Development

25 Qs

6 ÔT GHK 1 - TIN HỌC

6 ÔT GHK 1 - TIN HỌC

Professional Development

33 Qs

fundamentos de javascript

fundamentos de javascript

Professional Development

25 Qs

Quiz - I

Quiz - I

University - Professional Development

25 Qs

Parts of a Computer #2 - Cables and Ports

Parts of a Computer #2 - Cables and Ports

6th Grade - Professional Development

25 Qs

10th_1st Quarter Examination

10th_1st Quarter Examination

Professional Development

25 Qs

SDdbC#_Final Quiz

SDdbC#_Final Quiz

Professional Development

25 Qs

Quiz de Python: Decisão e Repetição

Quiz de Python: Decisão e Repetição

Assessment

Quiz

Computers

Professional Development

Practice Problem

Hard

Created by

Felipe Porcino

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual das alternativas abaixo representa corretamente uma estrutura condicional em Python?

if x == 10 then print("Dez")

if x == 10: print("Dez")

if (x == 10) { print("Dez") }

if x = 10: print("Dez")

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a saída do seguinte código? ```python x = 5 if x > 3: print("Maior que 3") else: print("Menor ou igual a 3") ```

Menor ou igual a 3

Maior que 3

5

Nenhuma saída

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual das opções abaixo representa corretamente um laço de repetição usando while em Python?

while (x < 10) { x += 1 }

while x < 10: x += 1

while x < 10 then x += 1

while x < 10 do x += 1

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

O que acontece se a condição do while nunca for falsa?

O laço executa apenas uma vez

O laço nunca executa

O laço executa infinitamente

O programa é encerrado imediatamente

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

0

2

3

4

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual das alternativas abaixo é usada para validar a entrada do usuário em Python?

if input == int

input("Digite um número: ")

int(input("Digite um número: "))

validate(input)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

O que o seguinte código imprime? ```python contador = 1 while contador <= 3: print(contador) contador += 1 ```

1 2 3

0 1 2

1 2 3 4

2 3 4

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?