GINCANA PYTHON

GINCANA PYTHON

Professional Development

11 Qs

quiz-placeholder

Similar activities

Python Quiz

Python Quiz

Professional Development

10 Qs

Python Test 1

Python Test 1

Professional Development

10 Qs

Greeting in English

Greeting in English

Professional Development

14 Qs

Libras Básico

Libras Básico

Professional Development

10 Qs

CodeMonkey Platform Management & Resources

CodeMonkey Platform Management & Resources

Professional Development

10 Qs

Python Intermediate Quiz - 1

Python Intermediate Quiz - 1

8th Grade - Professional Development

13 Qs

Python quiz

Python quiz

KG - Professional Development

10 Qs

Python Turtle

Python Turtle

KG - Professional Development

11 Qs

GINCANA PYTHON

GINCANA PYTHON

Assessment

Quiz

Education

Professional Development

Hard

Created by

GABRIEL ALVES

Used 1+ times

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Como você declara uma função em Python que não recebe parâmetros e não retorna nada?

`def minha_funcao():`

`function minha_funcao()`

`def minha_funcao:`

`minha_funcao()`

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual das seguintes opções é a maneira correta de declarar uma variável em Python?

`var x = 10`

`x := 10`

`x = 10`

`int x = 10`

3.

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") ```

`Maior que 3`

`Menor ou igual a 3`

`Erro de sintaxe`

`Nenhuma saída`

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Como você imprime a mensagem "Olá, Mundo!" em Python?

`echo "Olá, Mundo!"`

`print("Olá, Mundo!")`

`printf("Olá, Mundo!")`

`System.out.println("Olá, Mundo!")`

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a função do comando `time.sleep()` em Python?

Pausar a execução do programa por um tempo especificado

Encerrar a execução do programa

Reiniciar a execução do programa

Nenhuma das anteriores

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual das seguintes opções é a sintaxe correta para usar `time.sleep` para pausar o programa por 2 segundos?

`time.sleep(2)`

`sleep(2)`

`time.sleep(2.0)`

`time(2).sleep()`

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Como você cria um loop `while` que continua executando enquanto a variável `x` for menor que 10?

`while x < 10:`

`while (x < 10)`

`while x <= 10:`

`while (x <= 10)`

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?