
Preboard Revision
Quiz
•
Computers
•
10th Grade
•
Practice Problem
•
Medium
Roopa Pulapaka
Used 2+ times
FREE Resource
Enhance your content in a minute
21 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what kind of error does this code snippet lead to -
int y = 0;
int x = 15/y;
logical
syntax
runtime
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what kind of error will this lead to?
int a[] = new int[5];
for (int i=0; i<6;i++) {
System.out.println(a[i]);
}
logical
runtime
syntax
no error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what kind of error is this?
double x = 5.5;
short y = x;
logical
syntax
runtime
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of error?
int Sum = 0
int x = sum;
logical
syntax
runtime
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what is the type of error?
String s = "catch the error";
System.out.println(s)
logical
syntax
runtime
no error
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In a program to find the maximum of 3 numbers, what is the type of error in the following code snippet?
int a = 2, b = 8, c = 6;
if (a > b && a > c)
System.out.println( a + " is the smallest Number");
else if (b > a && b > c)
System.out.println( b + " is the smallest Number")
else
System.out.println(c + " is the largest Number");
logical
syntax
runtime
no error
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
public static void main(String[] args) {
int num = 789; nt reversednum = 0; int remainder = 0;
while (num != 0) {
remainder = num / 10;
reversednum = reversednum * 10 + remainder;
num /= 10;
}
System.out.println("Reversed number is " + reversednum);
}
logical
syntax
runtime
no error
Answer explanation
to get the last digit
num %= 10;
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
21 questions
حاسب 1 نظري
Quiz
•
10th Grade
20 questions
Pemrograman Dasar
Quiz
•
10th Grade
18 questions
Bilgisayar Bilimi - 2
Quiz
•
9th - 12th Grade
20 questions
Data Representation
Quiz
•
9th Grade - University
17 questions
CP M.6 Assessment Review
Quiz
•
9th - 12th Grade
20 questions
Informatica
Quiz
•
1st Grade - University
20 questions
EVALUACION 1P GRADO DECIMO 2024
Quiz
•
10th Grade
20 questions
การเขียนโปรแกรม
Quiz
•
10th - 11th 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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade
