Preboard Revision

Preboard Revision

10th Grade

21 Qs

quiz-placeholder

Similar activities

Java Base

Java Base

9th - 12th Grade

19 Qs

การเขียนโปรแกรมโดยใช้เครื่องมือกราฟิกโหมด ทดสอบปลายภาค V1

การเขียนโปรแกรมโดยใช้เครื่องมือกราฟิกโหมด ทดสอบปลายภาค V1

10th - 12th Grade

20 Qs

Arrays in Java

Arrays in Java

9th - 12th Grade

20 Qs

Python Year 9 Quiz

Python Year 9 Quiz

8th - 10th Grade

19 Qs

JAVA FUNDAMENTALS

JAVA FUNDAMENTALS

9th - 12th Grade

20 Qs

Data Encryption

Data Encryption

10th - 11th Grade

19 Qs

terstruktur

terstruktur

10th Grade

20 Qs

Excel Basic Quiz

Excel Basic Quiz

10th - 11th Grade

18 Qs

Preboard Revision

Preboard Revision

Assessment

Quiz

Computers

10th Grade

Practice Problem

Medium

Created by

Roopa Pulapaka

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?