Computer Science Workshop Quiz

Computer Science Workshop Quiz

University

10 Qs

quiz-placeholder

Similar activities

C Language Fundamentals

C Language Fundamentals

University

10 Qs

OOP_1

OOP_1

University

10 Qs

BugBlitz

BugBlitz

University

15 Qs

Applied Digital Logic Design Assessment II

Applied Digital Logic Design Assessment II

University

8 Qs

engineers day

engineers day

University

10 Qs

Datascience - 8

Datascience - 8

University

12 Qs

Repaso teórico

Repaso teórico

University

15 Qs

Remedial 1

Remedial 1

University

10 Qs

Computer Science Workshop Quiz

Computer Science Workshop Quiz

Assessment

Quiz

Engineering

University

Medium

Created by

Sankarsan Sahoo

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a type of polymorphism in Java?

Method overloading

Operator overloading

Operator overriding

Method overriding

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which feature of OOPS described the reusability of code?

Abstraction

Encapsulation

Polymorphism

Inheritance

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which collection does not allow duplicate elements?

List

Set

Map

All of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which collection allows you to retrieve elements in the order they were inserted?

HashSet

TreeMap

LinkedHashMap

PriorityQueue

5.

OPEN ENDED QUESTION

3 mins • 1 pt

What is the Output of following Java Program? import java.util.*; class Demo { public static void main(String[] args) { ArrayList arr = new ArrayList(); arr.add(11); arr.add(2); arr.add(3); arr.add(5); arr.add(7); arr.remove(new Integer(7)); arr.remove(2); for (int i = 0; i < arr.size(); i++) System.out.print(arr.get(i) + " "); } }

Evaluate responses using AI:

OFF

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is an correct way of defining generic method?

name(T1, T2, …, Tn) { /* … */ }

public name { /* … */ }

class name[T1, T2, …, Tn] { /* … */ }

name{T1, T2, …, Tn} { /* … */ }

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following collections is sorted by its natural ordering?

HashMap

TreeMap

LinkedHashMap

Hashtable

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?