
Algorithms
Authored by MrywmAlr MrywmAlr
Computers
University

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
4 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output ?
for (int i = 3; i <= 12; i++) {
System.out.print(i + " ");
}
5 6 7 8 9
3 4 5 6 7 8 9 10 11 12
4 5 6 7 8 9 10 11 12
3 5 7 9 11
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How many times does the following method print a * ?
for (int i = 3; i < 9; i++) {
System.out.print("*");
}
5
8
11
6
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is count’s value after running this code segment ?
int count = 1;
while (count <= 10) {
count *= 2;
}
count = count - 10;
6
11
3
9
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Is this a infinite loop ?
for ( int i = 0; i <= 20; i * 2 )
Yes .
No .
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?