Search Header Logo

Worksheet 1-Library Class

Authored by Namrata Boob

others

Used 1+ times

Worksheet 1-Library Class
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1. Which of the following is a composite data type?

a. int
b. String
c. char
d. float

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2. Which of the following is not a wrapper class?

a. Byte
b. Int
c. Long
d. Float

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

3. If s=“123”, which among the following will convert it to an int?

a. int a=Integer(s);
b. int a=(int)s;
c. int a=parseInt(s);
d. int a=Integer.parseInt(a);

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

4. What package is a part of the wrapper class which is imported by default into all Java programs?

a. java.util
b. java.lang
c. java.awt
d. None of these

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5. What is, converting a primitive value into an object of the corresponding wrapper class called?

a. Autoboxing
b. Unboxing
c. Type Casting
d. All of these

6.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

6. Name the wrapper classes of char type.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

7. Wrapper classes are not used to convert any data type into an object.

True
False

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?