Search Header Logo

ITSC-2214 Quiz 2

Authored by Idk Anymore

Computers

University

Used 6+ times

ITSC-2214 Quiz 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

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

Already have an account?