A estrutura de repetição FOR é usada quando não se sabe exatamente quantas repetições (iterações) serão realizadas.
LC - Aula 04

Quiz
•
Professional Development
•
Professional Development
•
Medium
Hugo Brendow
Used 4+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
falso
verdadeiro
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Qual instrução usar para imprimir:
1 2 3 4 5 6 7 8 9
int n = 10;
for(int i; i < n;i=i+1)
{
System.out.print("\t"+i);
}
int n = 10;
for(int i=1; i < n;i=i+1)
{
System.out.print("\t"+i);
}
int n = 9;
for(int i; i < n;i=i+1)
{
System.out.println("\t"+i);
}
int n = 9;
for(int i; i <= n;i=i+1)
{
System.out.println("\t"+i);
}
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
for (int i = 0; i < 5;) {
System.out.println("BEM-VINDO");
i++;
}
Qual a saída deste código?
BEM-VINDO
BEM-VINDO
BEM-VINDO
BEM-VINDO
BEM-VINDO
BEM-VINDO
BEM-VINDO
BEM-VINDO
BEM-VINDO
BEM-VINDOBEMVINDO-BEM-VINDOBEM-VINDOBEM-VINDO
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Quais desses NÃO é uma estrutura de repetição válida para Java?
for
while
do...while
goto
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Qual dessas opções irá imprimir "olá, bem-vindo!" 4 vezes?
for(_____?) {
System.out.println("olá, bem-vindo!");
}
int i = 0; i < 3; i++;
int i = 1; i < 4; i++
int i = 1; i < 4; i--
int i = 1; i < 5; i++
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
int i = 0;
while (i < 5) {
System.out.println(i);
i++;
}
0
1
2
3
4
5
0
1
2
3
4
1
2
3
4
5
5
4
3
2
1
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Um uma estrutura WHILE (ENQUANTO), o comando CONTINUE interrompe o laço de iterações
Falso
Verdadeiro
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Recursia

Quiz
•
Professional Development
10 questions
pemrograman dasar

Quiz
•
Professional Development
10 questions
CPR Quiz_chapter 5_structure

Quiz
•
Professional Development
10 questions
Day4_Quiz_NBKR

Quiz
•
Professional Development
15 questions
CPR_Quiz_Chapter4_function

Quiz
•
Professional Development
10 questions
Introducción al lenguaje Python

Quiz
•
Professional Development
10 questions
Integração de Aplicações - Quiz 3

Quiz
•
Professional Development
15 questions
Công nghệ Java_Test1

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade