PrelimExam-DSA-FCPC

PrelimExam-DSA-FCPC

University

30 Qs

quiz-placeholder

Similar activities

USM TALLER DE INVESTIGACIÓN DE MERCADO

USM TALLER DE INVESTIGACIÓN DE MERCADO

University

30 Qs

A1.2 (W11.1)

A1.2 (W11.1)

University

30 Qs

GeoQuiz 2

GeoQuiz 2

University

25 Qs

HVACR Technical Quiz

HVACR Technical Quiz

University

25 Qs

livro de Marcos (kadosh 24)

livro de Marcos (kadosh 24)

University

25 Qs

Желилик 125-150

Желилик 125-150

University

25 Qs

A2.1 (W7. C-E)

A2.1 (W7. C-E)

University

29 Qs

Intervención en Crisis - Primer Parcial

Intervención en Crisis - Primer Parcial

University

30 Qs

PrelimExam-DSA-FCPC

PrelimExam-DSA-FCPC

Assessment

Quiz

Others

University

Practice Problem

Hard

Created by

ALVIN CERTEZA

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?