Preboard Revision

Preboard Revision

10th Grade

21 Qs

quiz-placeholder

Similar activities

Tinkercad 2020

Tinkercad 2020

10th - 12th Grade

17 Qs

Tin học 11 chương I

Tin học 11 chương I

1st - 12th Grade

20 Qs

Excel - Funciones de Estadística

Excel - Funciones de Estadística

10th - 12th Grade

20 Qs

С++ Основные понятия

С++ Основные понятия

10th Grade

20 Qs

Conditionals

Conditionals

9th - 12th Grade

18 Qs

Timers y SysTick

Timers y SysTick

9th - 12th Grade

20 Qs

c# Diziler

c# Diziler

10th Grade

20 Qs

Javascript 2

Javascript 2

10th Grade

20 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?