LC - Aula 04

LC - Aula 04

Professional Development

10 Qs

quiz-placeholder

Similar activities

CIE Invigilation Training

CIE Invigilation Training

Professional Development

10 Qs

1. Nakinig ka ba kahapon?

1. Nakinig ka ba kahapon?

Professional Development

10 Qs

quality assessment

quality assessment

Professional Development

11 Qs

Zawód: policjant

Zawód: policjant

Professional Development

12 Qs

Repaso Investigación Operaciones 2

Repaso Investigación Operaciones 2

University - Professional Development

10 Qs

Factory I/O quiz

Factory I/O quiz

Professional Development

10 Qs

Квиз по UDR

Квиз по UDR

Professional Development

14 Qs

SEMINAR NASIONAL AKUNTANSI 2022

SEMINAR NASIONAL AKUNTANSI 2022

Professional Development

15 Qs

LC - Aula 04

LC - Aula 04

Assessment

Quiz

Professional Development

Professional Development

Medium

Created by

Hugo Brendow

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

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

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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?