java-collections(part-I)-vlits

java-collections(part-I)-vlits

1st Grade

30 Qs

quiz-placeholder

Similar activities

Latihan-PWPB-XI RPL 1

Latihan-PWPB-XI RPL 1

1st - 10th Grade

25 Qs

COMPUTER UNIT - 2 EXAM

COMPUTER UNIT - 2 EXAM

1st Grade

25 Qs

PRETES  PKP INFORMATIKA SMP Kab. Maros

PRETES PKP INFORMATIKA SMP Kab. Maros

1st Grade

25 Qs

ADVERB OF MANNER

ADVERB OF MANNER

1st Grade

25 Qs

Graphic design NSDA level 3

Graphic design NSDA level 3

1st Grade

25 Qs

class 1 uses of computer

class 1 uses of computer

1st Grade

25 Qs

Computer Slip Test

Computer Slip Test

1st Grade

25 Qs

Kuiz ICT Pengaturcaraan

Kuiz ICT Pengaturcaraan

1st - 12th Grade

25 Qs

java-collections(part-I)-vlits

java-collections(part-I)-vlits

Assessment

Quiz

Computers

1st Grade

Hard

Created by

kolla vivek

Used 29+ times

FREE Resource

AI

Enhance your content

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of these packages contain all the collection classes?

java.lang

java.util

java.net

java.awt

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

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

Maps

Array

Stack

Queue

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of this interface is not a part of Java’s collection framework?

List

Set

SortedMap

SortedList

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of these methods deletes all the elements from invoking collection?

clear()

reset()

delete()

refresh()

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is Collection in Java?

A group of objects

A group of classes

A group of interfaces

None of the mentioned

6.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

What is the output of this program?

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

7.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

What is the output of this program?

import java.util.*;

class Bitset

{

public static void main(String args[]){

BitSet obj = new BitSet(5);

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

obj.set(i);

obj.clear(2);

System.out.print(obj);

}

}

{0, 1, 3, 4}

{0, 1, 2, 4}

{0, 1, 2, 3, 4}

{0, 0, 0, 3, 4}

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?