
Revisão de lógica de programação
Authored by Gustavo Deus
Instructional Technology
9th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a maneira correta de ler uma entrada inteira do usuário em Java?
`int numero = System.in.read();`
`Scanner scanner = new Scanner(System.in); int numero = scanner.nextInt();`
`int numero = Console.readInt();`
`int numero = Input.readInt();`
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual das seguintes é uma declaração válida de uma variável em Java?
`int 1numero;`
`int numero1;`
`int numero-1;`
`int numero um;`
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual será a saída do seguinte trecho de código? ```java int a = 5; int b = 10; System.out.println(a + b); ```
`15`
`510`
`5 + 10`
`Erro`
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual das seguintes é uma sintaxe correta para um loop `for` em Java?
`for (int i = 0; i < 10; i++) { }`
`for (int i = 0; i < 10; i--) { }`
`for (int i = 0; i < 10) { }`
`for (int i = 0; i++) { }`
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a saída do seguinte código? ```java int x = 5; if (x > 3) { System.out.println("Maior"); } else { System.out.println("Menor"); } ```
`Maior`
`Menor`
`Erro`
`Sem saída`
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual tipo de dado é usado para criar uma variável que deve armazenar texto em Java?
`int`
`String`
`char`
`boolean`
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual será a saída do seguinte trecho de código? ```java int x = 10; int y = 20; int z = x + y; System.out.println(z); ```
`30`
`1020`
`10 + 20`
`Erro`
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
Informática básica - Aulas 6 a 8
Quiz
•
9th Grade
15 questions
R6_2.N_Lógica Computacional - Java
Quiz
•
2nd Grade - University
15 questions
Impacto das Compras Online
Quiz
•
8th Grade - University
19 questions
INTRODUÇÃO A INFORMÁTICA
Quiz
•
1st - 12th Grade
20 questions
Aplicaciones de IA para estudiantes
Quiz
•
9th Grade
15 questions
Programação Web - HTML 3
Quiz
•
7th Grade - Professio...
15 questions
JavaScript Quiz
Quiz
•
9th Grade
17 questions
CodeCombat
Quiz
•
9th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Instructional Technology
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
20 questions
El Verbo IR Practice
Quiz
•
9th Grade
10 questions
Cell Organelles and Their Functions
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
20 questions
Combining Sentences
Lesson
•
9th Grade
22 questions
El Imperfecto
Quiz
•
9th - 12th Grade
20 questions
Box and Whisker Plots
Quiz
•
9th Grade
18 questions
Exponential Growth and Decay
Quiz
•
9th Grade