java-collections(part-I)-vlits

java-collections(part-I)-vlits

1st Grade

30 Qs

quiz-placeholder

Similar activities

Mwd theory practice

Mwd theory practice

1st - 12th Grade

32 Qs

Javascript

Javascript

1st - 5th Grade

25 Qs

AP CS Final Exam

AP CS Final Exam

KG - University

25 Qs

JavaScript Output

JavaScript Output

1st Grade

25 Qs

PORT_23

PORT_23

1st Grade

30 Qs

soal PTS Informatika Kelas 7 2024

soal PTS Informatika Kelas 7 2024

1st Grade

25 Qs

N5 Computer Systems Revision

N5 Computer Systems Revision

KG - 12th Grade

26 Qs

FE Big Quizz

FE Big Quizz

KG - 3rd Grade

30 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

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?