Aula 10
Quiz
•
Information Technology (IT)
•
9th - 12th Grade
•
Practice Problem
•
Hard
Raul Silva
Used 2+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 20 pts
Qual o valor da variável soma após a execução do código?
5
10
15
20
Answer explanation
O laço for adiciona os valores de i (1, 2, 3, 4, 5) à variável soma. No final, soma é 15 (1 + 2 + 3 + 4 + 5).
2.
MULTIPLE CHOICE QUESTION
45 sec • 20 pts
Quantas vezes o código imprime "Loop" no console?
2
3
4
5
Answer explanation
A variável count começa com 1 e o laço while é executado enquanto count <= 3. Assim, "Loop" será impresso 3 vezes.
3.
MULTIPLE CHOICE QUESTION
45 sec • 20 pts
O que acontece ao executar esse código?
O código imprime "Repetição" três vezes.
O código imprime "Repetição" infinitamente.
O código não imprime nada.
O código gera um erro.
Answer explanation
A variável x nunca é incrementada dentro do laço. Isso faz com que a condição x < 3 seja sempre verdadeira, resultando em um laço infinito.
4.
MULTIPLE CHOICE QUESTION
45 sec • 20 pts
Qual a saída do código a seguir?
5
4
5
4
3
2
1
5
4
3
Nenhuma saída
Answer explanation
O comando break interrompe o laço quando i === 3. Portanto, apenas os valores 5 e 4 são impressos antes do break.
5.
MULTIPLE CHOICE QUESTION
45 sec • 20 pts
Qual a saída do código ao lado?
0
1
0
1
2
1
2
3
Nenhuma saída
Answer explanation
O laço do...while executa o bloco ao menos uma vez antes de verificar a condição. Neste caso, n começa em 0 e o laço imprime 0, 1 e 2 antes de terminar.
6.
MULTIPLE CHOICE QUESTION
45 sec • 20 pts
Qual a saída do código a seguir?
Nenhuma saída
0,0 | 0,1 | 1,0 | 1,1 | 2,0 | 2,1
0,0 | 1,0 | 2,0 | 0,1 | 1,1 | 2,1
0,1 | 1,0 | 1,1 | 2,0 | 2,1
Answer explanation
Este é um exemplo de laço aninhado. Para cada valor de i, o laço interno executa todos os valores de j. Isso resulta em 6 combinações.
7.
MULTIPLE CHOICE QUESTION
45 sec • 20 pts
O que acontece ao executar esse código?
O código imprime 10, 7, 4, 1.
O código imprime 10, 8, 6, 4, 2.
O código imprime 10, 7, 4, 0.
O código gera um erro.
Answer explanation
A variável num é decrementada em 3 a cada iteração. O loop termina quando num <= 0.
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
Tin 9 Bài 8. Hàm SUMIF
Quiz
•
9th Grade - University
10 questions
BÀI 21. CẬP NHẬT VÀ TRUY XUẤT DỮ LIỆU CÁC BẢNG
Quiz
•
12th Grade
10 questions
KUIS IP ADDRESS
Quiz
•
11th Grade
10 questions
Recuperação Pensamento computacional 9º ano
Quiz
•
9th Grade
10 questions
Hardware specificatii
Quiz
•
9th Grade
10 questions
Quiz sobre la instalación de Windows 10
Quiz
•
9th Grade
10 questions
Quiz di Coding su Python
Quiz
•
9th - 12th Grade
10 questions
Uji Pemahaman BAB 1
Quiz
•
9th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
15 questions
Meiosis vs mitosis
Quiz
•
9th Grade
10 questions
Exploring the Origins of Veterans Day
Interactive video
•
6th - 10th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
16 questions
Ethos, Pathos, Logos Practice
Quiz
•
9th Grade
15 questions
Two Step Equations
Quiz
•
9th Grade
