Mile Stone 1

Mile Stone 1

University

15 Qs

quiz-placeholder

Similar activities

SAINS KOMPUTER 1.3

SAINS KOMPUTER 1.3

University

11 Qs

Java - Nivelamento

Java - Nivelamento

University

15 Qs

Quiz 2 PBO

Quiz 2 PBO

University

20 Qs

TALENT-NEXT-JAVA-QUIZ1

TALENT-NEXT-JAVA-QUIZ1

University

20 Qs

Quiz PBO SIA

Quiz PBO SIA

University

20 Qs

Methods

Methods

University

11 Qs

JAVA Basics Quiz

JAVA Basics Quiz

University

20 Qs

Round 4 - Harvest

Round 4 - Harvest

University

15 Qs

Mile Stone 1

Mile Stone 1

Assessment

Quiz

Computers

University

Hard

Created by

Rahul Avulapati

Used 8+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 20 pts

Finally block is attached to?

  1. Try-catch block

class block

method block

All of these

2.

MULTIPLE CHOICE QUESTION

30 sec • 20 pts

What is garbage collection in java?

  1. Method to manage memory in java

  1. Create new garbage values

  1. Delete all values

All of these

3.

MULTIPLE CHOICE QUESTION

30 sec • 20 pts

Which is/are valid method(s) of math library in java?

  1. max()

  1. cbrt()

log10()

All of these

4.

MULTIPLE CHOICE QUESTION

30 sec • 20 pts

class Test {

    public static void main(String[] args) {

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

      {

          System.out.println("Hello");

          break;

      }

    }

Hello

Empty output

Compiler error

Runtime error

5.

MULTIPLE CHOICE QUESTION

30 sec • 20 pts

Which of these is a super class of all errors and exceptions in the Java language?

RunTimeExceptions

Throwable

Catchable

None of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 20 pts

  1. public class Test2 {  

  2.     public static void main(String[] args) {  

  3.         StringBuffer s1 = new StringBuffer("Complete");  

  4.         s1.setCharAt(1,'i');  

  5.         s1.setCharAt(7,'d');  

  6.         System.out.println(s1);  

  7.      }  

  8.  }  

Complete

  1. Iomplede

  1. Cimpletd

  1. Coipletd

7.

MULTIPLE CHOICE QUESTION

30 sec • 20 pts

If a thread goes to sleep?

  1. It releases all the locks it has.

  1. It does not release any locks.

  1. It releases half of its locks.

  1. It releases all of its lock except one.

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?