Desafio de Python: Condições e Strings

Desafio de Python: Condições e Strings

2nd Grade

15 Qs

quiz-placeholder

Similar activities

python

python

1st - 3rd Grade

13 Qs

Principles of Programming

Principles of Programming

KG - University

13 Qs

INFORMATION COMMUNICATION TECHNOLOGY

INFORMATION COMMUNICATION TECHNOLOGY

2nd Grade

20 Qs

Informática: Quem sabe mais?

Informática: Quem sabe mais?

KG - Professional Development

12 Qs

Phần mềm soạn thảo VB

Phần mềm soạn thảo VB

2nd Grade

20 Qs

JavaScript: Estruturas Condicionais 1 - IF...ELSE

JavaScript: Estruturas Condicionais 1 - IF...ELSE

2nd Grade

13 Qs

INFORMATICA TEST DI INGRESSO

INFORMATICA TEST DI INGRESSO

2nd Grade

10 Qs

LTP - 2018-2 (1 e 2 semestre)

LTP - 2018-2 (1 e 2 semestre)

1st - 10th Grade

13 Qs

Desafio de Python: Condições e Strings

Desafio de Python: Condições e Strings

Assessment

Quiz

Computers

2nd Grade

Practice Problem

Medium

Created by

Gabriel Lobo

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

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

Access all questions and much more by creating a free account

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

Already have an account?