Final Quiz

Final Quiz

University

20 Qs

quiz-placeholder

Similar activities

Java Programming

Java Programming

University

20 Qs

ADVANCE JAVA

ADVANCE JAVA

University

20 Qs

MODULE 4

MODULE 4

University

22 Qs

Threads and Process

Threads and Process

University

20 Qs

Quiz Harian Gdevelop MPK

Quiz Harian Gdevelop MPK

University

20 Qs

5-mavzu

5-mavzu

University

17 Qs

Android Lecture 4 Button and Clickable images

Android Lecture 4 Button and Clickable images

University

15 Qs

JavaScript Basics

JavaScript Basics

12th Grade - University

15 Qs

Final Quiz

Final Quiz

Assessment

Quiz

Computers

University

Hard

Created by

SRINIVASARAO 22PHD7042

Used 3+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When does Exceptions in Java arises in code sequence?

Compile Time

Run Time

can occur any time

None

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these keywords is not a part of exception handling?

try

finally

thrown

catch

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

class exception_handling

{

public static void main(String args[])

{

try

{

System.out.print("Hello" + " " + 1 / 0);

}

catch(ArithmeticException e)

{

System.out.print("World");

}

}

}

Hello

World

Hello World

HelloWorld

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these keywords must be used to monitor for exceptions?

try

finally

throw

catch

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these classes is not part of Java’s collection framework?

Maps

Arrays

Stack

Queue

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is Collection in Java?

A group of objects

A group of Classes

A group of Inerfaces

None

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

import java.util.*;

class Array

{

public static void main(String args[])

{

int array[] = new int [5];

for (int i = 5; i > 0; i--)

array[5-i] = i;

Arrays.fill(array, 1, 4, 8);

for (int i = 0; i < 5 ; i++)

System.out.print(array[i]);

}

}

12885

12845

58881

54881

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?