Search Header Logo

Primeiro Quizz

Authored by Programação 1.0

Other

University

Used 21+ times

Primeiro Quizz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Seu programa deve receber um valor inteiro e armazená-lo em uma variável cujo nome é “x”. Qual linha de comando a seguir representa corretamente esta tarefa?

x = input(int())

x = int(input())

x = input()

x = int().input()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual o tipo de uma variável cujo valor, foi inserido pelo usuário ?

string

int

float

bool

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Para se exibir o valor de uma variável denominada “num” com duas casas decimais, qual das opções a seguir está correta?

print(f"Numero: {num:2f}")

print(f"Numero: {num:2.f}")

print(f"Numero: {num:.2f}")

print("Numero: {num:.2f}")

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

O operador matemático **, na linguagem Python, está associado a qual operação? 

Multiplicação

Divisão

Soma

Exponenciação

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual o valor da variável x após execução da operação: x = 5%2

1

2.5

0

2

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Para que duas variáveis “x” e “y” do tipo inteiro recebam seus respectivos valores com uma única linha de entrada, qual das alternativas a seguir executa corretamente esta ação?    

x,y = input().split()

x,y = int(input().split())

x,y = input().split()

x,y = int(x), int(y)

x, y = input().split()

x , y = int

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

O trecho de código a seguir está correto ?

altura = input()

print("A minha altura e { altura: .2f }")

VERDADEIRO

FALSO

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?