MCQ-4 CSE Q

MCQ-4 CSE Q

University

17 Qs

quiz-placeholder

Similar activities

Quiz-ECC-SHA

Quiz-ECC-SHA

University

18 Qs

DSQUIZ 2020-21

DSQUIZ 2020-21

University

18 Qs

Quiz PBO SIA

Quiz PBO SIA

University

20 Qs

U0. Dynamic Data Structures

U0. Dynamic Data Structures

University

12 Qs

J-Coll 2

J-Coll 2

University

15 Qs

Hashing and Collision

Hashing and Collision

University

21 Qs

Cryptography Basics

Cryptography Basics

University

20 Qs

ASD - Strutture dati

ASD - Strutture dati

University

20 Qs

MCQ-4 CSE Q

MCQ-4 CSE Q

Assessment

Quiz

Computers

University

Medium

Created by

Amit Mandal

Used 1+ times

FREE Resource

17 questions

Show all answers

1.

OPEN ENDED QUESTION

30 sec • Ungraded

Name

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

30 sec • Ungraded

Roll No

Evaluate responses using AI:

OFF

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image
Choose the correct option based on this program:
It prints the following: The list is: [10, 20]
It prints the following: The list is: [20, 10]
It results in a compiler error
It results in a runtime exception

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image
What is the output of the following program?
It prints the following: First type: class java.util.LinkedList Second type:class java.util.LinkedList
It prints the following: First type: class java.util.LinkedList
It results in a compiler error
It results in a runtime exception

5.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image
What is the output of the following program?
[1, 2, 3]
[1, 2]
[2, 1]
An exception occurs at runtime

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following options can throw a NullPointerException?
TreeSet s = new TreeSet<>(); s.add(null);
HashMap m = new HashMap<>(); m.put(null, null);
ArrayList arr = new ArrayList<>(); arr.add(null);
HashSet s = new HashSet(); s.add(null);

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

HashSet internally uses?
Set
HashMap
List
Collection

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?