Wipro PRP - 15th June

Wipro PRP - 15th June

University

13 Qs

quiz-placeholder

Similar activities

BCSC0006 - Quiz 1 - Arrays

BCSC0006 - Quiz 1 - Arrays

University

10 Qs

[WPL][D3PJJFG] Evaluasi Pertemuan 1

[WPL][D3PJJFG] Evaluasi Pertemuan 1

University

10 Qs

Cyber security- Quiz Component

Cyber security- Quiz Component

University

14 Qs

JavaScript Fundamentals

JavaScript Fundamentals

9th Grade - Professional Development

10 Qs

JAVA I/O

JAVA I/O

University

10 Qs

Website Design

Website Design

KG - University

10 Qs

Unit-I- Java-Basics-MCQ

Unit-I- Java-Basics-MCQ

University

15 Qs

Technical Quiz - Round 2

Technical Quiz - Round 2

University

15 Qs

Wipro PRP - 15th June

Wipro PRP - 15th June

Assessment

Quiz

Computers

University

Hard

Created by

Kavitha Murugan

Used 5+ times

FREE Resource

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which does autoboxing or unboxing in Java?

Compiler

Runtime

Third party tools

JDK

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which system property stores installation directory of JRE?

user.home

java.class.path

java.home

user.dir

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Java version introduced the feature Autoboxing and Unboxing?

Java 4

Java 5

Java 6

Java 7

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the need for Autoboxing and Unboxing in Java?

Reduces code to be written by developers to convert from Wrapper to Primitive vice versa

Compile time is reduced due to fixed methods followed to automatically convert Objects and Primitives

Auto-unboxing improves memory efficiency by converting Wrapper to Primitive and process when object version is not needed

All the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the right statement which does autoboxing in Java?

Integer temperature1 = 100;
int temperature2 = 101;
Integer temperature1 = 100;
int temperature2 = 101;
Double temperature1 = 100;
int temperature2 = 101;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the below java code with autoboxing?

public class AutoBoxingTest2
{
  static void show(int reading)
  {
    System.out.println("Reading: " + reading);
  }
  public static void main(String[] args)
  {
    Integer a = Integer.valueOf(10);
    show(a);
  }
}

Reading: 0

Reading: 10

Compiler error

None

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the components of a marker interface?

Fields and methods

No fields, only methods

Fields, no methods

No fields, No methods

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?