ITSC-2214 Quiz 2

ITSC-2214 Quiz 2

University

31 Qs

quiz-placeholder

Similar activities

Understanding Data Structures

Understanding Data Structures

University

33 Qs

Quiz Informatika 7

Quiz Informatika 7

7th Grade - University

30 Qs

JavaScript Quiz

JavaScript Quiz

University

30 Qs

Latihan Algotima

Latihan Algotima

University

30 Qs

UTS SO A1

UTS SO A1

University

30 Qs

Data Structures Midterm Exam WRI

Data Structures Midterm Exam WRI

University

27 Qs

Algoritma dan Pemrogaman Dasar

Algoritma dan Pemrogaman Dasar

10th Grade - University

30 Qs

MLQMB school quizz

MLQMB school quizz

University

35 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?