
Preboard Revision

Quiz
•
Computers
•
10th Grade
•
Medium
Roopa Pulapaka
Used 2+ times
FREE Resource
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;
Create a free account and access millions of resources
Similar Resources on Wayground
18 questions
AP Computer Science A Post Unit 2 Check

Quiz
•
10th Grade - University
16 questions
Loops

Quiz
•
5th - 12th Grade
20 questions
APCSA Arrays

Quiz
•
9th - 12th Grade
16 questions
Loops Quiz

Quiz
•
9th - 12th Grade
20 questions
Basic JavaScript Review

Quiz
•
9th - 12th Grade
20 questions
קלט פלט משתנים והוראות השמה

Quiz
•
7th Grade - University
19 questions
Grade 10 - Final Exam practice quiz

Quiz
•
10th Grade
20 questions
Java Arrays

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade