How many stars are printed?
for(int i=3;i<7;i++){
System.out.print("*");
}
0100100101-2
Quiz
•
Computers
•
Professional Development
•
Hard
Michi koh
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
45 sec • 2 pts
How many stars are printed?
for(int i=3;i<7;i++){
System.out.print("*");
}
2.
FILL IN THE BLANK QUESTION
45 sec • 2 pts
How many stars are printed?
3.
FILL IN THE BLANK QUESTION
45 sec • 2 pts
Consider the following code segment:
What is printed as a result of executing the code segment?
4.
FILL IN THE BLANK QUESTION
45 sec • 2 pts
What does the following program segment output?
5.
FILL IN THE BLANK QUESTION
45 sec • 2 pts
If m = 9, then after n = m++, the value of n is ____________.
6.
FILL IN THE BLANK QUESTION
45 sec • 2 pts
If g = 5, then after h = ++g, the value of h is ____________.
7.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
What are the values of var1 and var2 when the code finishes executing?
var1 = 1, var2 = 1
var1 = 3, var2 = -1
var1 = 2 , var2 = 0
var1 = 0, var2 = 2
The loop will cause a run-time error for division by zero
14 questions
Network Fundamentals-Physical layer
Quiz
•
9th Grade - Professio...
10 questions
Jetpack Compose
Quiz
•
Professional Development
11 questions
Java Fundamentals
Quiz
•
Professional Development
12 questions
DECI - Week 6 - round
Quiz
•
Professional Development
10 questions
Python Lesson 1
Quiz
•
Professional Development
10 questions
python
Quiz
•
Professional Development
9 questions
HTML Basics
Quiz
•
9th Grade - Professio...
15 questions
Linked List
Quiz
•
Professional Development
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