
HiTech Quiz 5
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Hard
Venkatesh iGen
FREE Resource
Enhance your content in a minute
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
_________________ is a collection of elements used to store the same type of data.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
public class Test {
public static void main(String[] args) {
for (int i = 0; i < 5; i++) {
if (i == 3) break;
System.out.print(i + " ");
}
}
}
0 1 2 3 4
0 1 2 3
0 1 2
Compilation Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
public class Test {
public static void main(String[] args) {
for (int i = 0; i < 5; i++) {
if (i == 2) continue;
System.out.print(i + " ");
}
}
}
0 1 2 3 4
0 1 3 4
1 2 3 4
0 1 3
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
public class Test {
public static void main(String[] args) {
int i = 0, j = 0;
while (i < 3) {
while (j < 3) {
System.out.print(i + "" + j + " ");
j++;
}
i++;
}
}
}
00 01 02 10 11 12 20 21 22
00 01 02
Infinite loop
Compilation error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
public class Test {
public static void main(String[] args) {
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
if (i == j) continue;
System.out.print(i + "" + j + " ");
}
}
}
}
01 02 10 12 20 21
00 01 02 10 11 12 20 21 22
00 11 22
01 02 10 12 20 21 22
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of this Java program?
public class Test {
public static void main(String[] args) {
int i = 1;
while (i <= 5) {
System.out.print(i + " ");
i += 2;
}
}
}
1 2 3 4 5
Compilation Error
1 3 5 7
1 3 5
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following Java code?
public class Test {
public static void main(String[] args) {
String str = "12345";
int sum = 0;
for (int i = 0; i < str.length(); i++) {
sum += str.charAt(i) - '0';
}
System.out.println(sum);
}
}
10
12345
Compilation Error
15
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
Android Basics - Pre Requisite
Quiz
•
10th Grade - Professi...
11 questions
Types of Mass Media
Quiz
•
10th Grade - Professi...
11 questions
Co już wiemy ? Python
Quiz
•
12th Grade - Professi...
10 questions
Technical Fault Diagnosis
Quiz
•
Professional Development
11 questions
Technology Morning Tea Quiz
Quiz
•
KG - Professional Dev...
10 questions
Systemy operacyjne
Quiz
•
6th Grade - Professio...
11 questions
Послеолимпиадный квиз!
Quiz
•
Professional Development
13 questions
História do Java
Quiz
•
Professional Development
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
Discover more resources for Computers
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
100 questions
Screening Test Customer Service
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
10 questions
Reading a ruler in Inches
Quiz
•
4th Grade - Professio...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development
