Qual é a maneira correta de declarar uma variável em Python?

Quiz de Programação em Python

Quiz
•
Computers
•
2nd Grade
•
Hard
Joao Aires
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
`var = 10`
`int var = 10`
`10 = var`
`variable: int = 10`
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual das seguintes opções é uma estrutura de controle em Python?
`if`
`print`
`input`
`def`
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Como você define uma função em Python?
`function myFunction():`
`def myFunction():`
`create myFunction():`
`define myFunction():`
4.
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`
`Erro`
`Nenhuma das anteriores`
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual das seguintes opções é um loop em Python?
`for`
`while`
`do-while`
`A e B`
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Como você lê a entrada do usuário em Python?
`input()`
`read()`
`scan()`
`get()`
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a saída do seguinte código? ```python for i in range(3): print(i) ```
`0 1 2`
`1 2 3`
`0 1 2 3`
`1 2`
Create a free account and access millions of resources
Similar Resources on Wayground
19 questions
JavaScript

Quiz
•
2nd Grade
10 questions
P2 - 3ºTEC - 3ºTRI - Prog.Des.Sistemas - Trevisan

Quiz
•
2nd Grade
14 questions
JavaScrip - DSI

Quiz
•
1st Grade - University
15 questions
AV1/R1 1TEC_IP_Introdução à Programação - Aula 01 a 06

Quiz
•
1st Grade - University
15 questions
Jogos Eletrônicos

Quiz
•
1st - 12th Grade
15 questions
Python Series

Quiz
•
1st - 5th Grade
15 questions
ASK F2 -KOD ARAHAN (PYTHON)

Quiz
•
1st Grade - University
10 questions
Avaliação Pensamento Computacional - Prático

Quiz
•
1st Grade - Professio...
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade