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

ITSC-2214 Quiz 2

Quiz
•
Computers
•
University
•
Easy
Idk Anymore
Used 6+ times
FREE Resource
31 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Similar Resources on Quizizz
32 questions
Stack and Its Applications Quiz

Quiz
•
University
31 questions
Chapt 14

Quiz
•
University
30 questions
Binary Trees and Traversals Quiz

Quiz
•
University
28 questions
Computer Science quiz

Quiz
•
11th Grade - University
30 questions
DSAquiz1FinL5

Quiz
•
University
27 questions
React - Introdução

Quiz
•
12th Grade - University
30 questions
COS 301 (Data Structures) CA

Quiz
•
University
27 questions
Comp 210 MT2 Review

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade