PrelimExam-DSA-FCPC

PrelimExam-DSA-FCPC

University

30 Qs

quiz-placeholder

Similar activities

Edafología - Clasificación de Suelos (Parte 1)

Edafología - Clasificación de Suelos (Parte 1)

University

34 Qs

Evalua tu relación con Dios✍🏻

Evalua tu relación con Dios✍🏻

University

30 Qs

OnRamps Chemistry 301 Unit 0 Part 1 - Exam 1

OnRamps Chemistry 301 Unit 0 Part 1 - Exam 1

University

25 Qs

Robótica - SeLiga - 3 Tri - 2024

Robótica - SeLiga - 3 Tri - 2024

University

34 Qs

Aromatic Hydrocarbons

Aromatic Hydrocarbons

University

28 Qs

EXAMEN FINAL

EXAMEN FINAL

University

30 Qs

Muscular System

Muscular System

University

25 Qs

Examen de 2o trimestre Segundo Año

Examen de 2o trimestre Segundo Año

University

26 Qs

PrelimExam-DSA-FCPC

PrelimExam-DSA-FCPC

Assessment

Quiz

Others

University

Hard

Created by

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

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?