
PrelimExam-DSA-FCPC

Quiz
•
Others
•
University
•
Hard
ALVIN CERTEZA
Used 3+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the time complexity of accessing an element in a Python list by index?
O(1)
O(n)
O(log n)
O(n²)
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the average time complexity of searching for an element in an unsorted linked list?
O(1)
O(n)
O(log n)
O(n log n)
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The time complexity of appending an element to a Python list (average case) is:
O(1)
O(n)
O(log n)
O(n²)
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which operation on a singly linked list requires O(n) time?
Traversal
Access by index
Searching
All of the above
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is the best case time complexity of inserting at the head of a linked list?
O(n)
O(log n)
O(1)
O(n²)
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the space complexity of storing a string of length n in Python?
O(1)
O(n)
O(n²)
O(log n)
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which operation in Python strings has O(n) complexity?
Indexing
Concatenation
Slicing
Both b and c
Create a free account and access millions of resources
Similar Resources on Wayground
30 questions
EXAMEN FINAL

Quiz
•
University
34 questions
Edafología - Clasificación de Suelos (Parte 1)

Quiz
•
University
30 questions
Quiz de Conhecimentos Específicos

Quiz
•
University
25 questions
Soil Properties MCQ Quiz

Quiz
•
University
27 questions
Chương 5 phần 2

Quiz
•
University
30 questions
Kuis tentang Air dan Kesehatan Tubuh

Quiz
•
University
32 questions
bq tema 2 Estructura de Proteínas

Quiz
•
University
25 questions
OnRamps Chemistry 301 Unit 0 Part 1 - Exam 1

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Others
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University