
Week 16 - CP1
Authored by Rafael Araujo
Computers
12th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following loops print the numbers from 0 to 5?
int i=0;
while (i<5) {
System.out.println(i);
i++;}
int i=0;
while (i<7) {
System.out.println(i);
i++;}
int i=0;
while (i<6) {
System.out.println(i);
i++;}
int i=0;
while (i<=6) {
System.out.println(i);
i++;}
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why do we use loops?
To never end programming
To show off what you know
To avoid repeating the same instruction more than one time
To make it more complex
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When given:
int i=0;
while (i<5) {
System.out.println(i);
i++;}
Then i=0; means that
None
The first number to be printed is 0
It is the first natrual number
That it is a binary number
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When given:
int i=0;
while (i<5) {
System.out.println(i);
i++;}
The condition (i<5) means that:
All of them
The loop will continue occurring until the value of "i" becomes greater than or equal to 5
The loop will continue occurring until the value of "i" becomes less than or equal to 5
The loop will continue occurring indefinitely
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When given:
int i=0;
while (i<5) {
System.out.println(i);
i++;}
The instruction i++ means that:
I every iteration the value of "i" decreases by 2
I every iteration the value of "i" increases by 1
I every iteration the value of "i" increases by 2
I every iteration the value of "i" decreases by 1
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When given:
for (int i=0; i<5; i++) {
System.out.println(i);}
Then i=0; means that
The last value to be printed is 0
The first value to be printed is 0
Every time I write a loop I need to make "i" equal to 0
All of them
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When given:
for (int i=0; i<4; i++) {
System.out.println(i);}
The condition (i<4) means that:
All of them
The loop will continue occurring until the value of "i" becomes greater than or equal to 4
The loop will continue occurring until the value of "i" becomes less than or equal to 4
The loop will continue occurring indefinitely
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
10 questions
Python with DataScience
Quiz
•
7th Grade - University
14 questions
Kiểm tra kiến thức tìm kiếm thông tin
Quiz
•
5th Grade - University
10 questions
Impresa e siti web
Quiz
•
8th - 12th Grade
10 questions
Podstawy Pythona
Quiz
•
9th - 12th Grade
10 questions
Sistemi e reti: CPU, von neumann
Quiz
•
12th Grade
10 questions
IT Quiz
Quiz
•
11th - 12th Grade
10 questions
حاسب2 / اختبار الوحدة الثالثة
Quiz
•
10th - 12th Grade
10 questions
Pengenalan Perwakilan Data
Quiz
•
12th 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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade