ITSC-2214 Quiz 2

ITSC-2214 Quiz 2

University

31 Qs

quiz-placeholder

Similar activities

Remedial UTS Analgo 2020

Remedial UTS Analgo 2020

University

31 Qs

Roll-a-coaster

Roll-a-coaster

University

30 Qs

MCA-101 QUIZ

MCA-101 QUIZ

University

30 Qs

Data Structures and Algorithm

Data Structures and Algorithm

11th Grade - Professional Development

30 Qs

BUG-OFF

BUG-OFF

University

30 Qs

Algorithms Data

Algorithms Data

11th Grade - Professional Development

30 Qs

Battle With DSA

Battle With DSA

University

30 Qs

Data Structures and Algorithms Quiz

Data Structures and Algorithms Quiz

University

30 Qs

ITSC-2214 Quiz 2

ITSC-2214 Quiz 2

Assessment

Quiz

Computers

University

Easy

Created by

Idk Anymore

Used 6+ times

FREE Resource

31 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the Big O of inserting an element at the beginning of an array?

O(1)

O(n)

O(log n)

O(n log n)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following data structures allows duplicates?

Set

Bag

Stack

Queue

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In an ArrayList-based stack implementation, which of the following operations is used to remove an element?

add()

remove()

pop()

push()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the Big O of finding the maximum element in an unsorted array?

O(1)

O(n)

O(log n)

O(n log n)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the Big O of finding the maximum element in an unsorted array?

O(1)

O(n)

O(log n)

O(n log n)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A set allows duplicate elements.

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A stack allows removal of any element, not just the top one.

True

False

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?