ITSC-2214 Quiz 2

ITSC-2214 Quiz 2

University

31 Qs

quiz-placeholder

Similar activities

Roll-a-coaster

Roll-a-coaster

University

30 Qs

Array and Linked List ADT

Array and Linked List ADT

University

30 Qs

Analysis Algorithms Introduction

Analysis Algorithms Introduction

University

26 Qs

Basic programming

Basic programming

University

30 Qs

Data Structures and  Its Applications

Data Structures and Its Applications

University

30 Qs

Searching Algorithms

Searching Algorithms

University

26 Qs

Stack and Its Applications Quiz

Stack and Its Applications Quiz

University

32 Qs

Binary Trees and Traversals Quiz

Binary Trees and Traversals 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?