Question Bank

3705 approved questions from the community

What is the time complexity of deleting the last node of a Singly Linked List (without a tail pointer)?

MEDIUM
SINGLE CHOICE
30s
Algorithms & Data Structures
by Mohamed

In Floyd's 'Tortoise and Hare' algorithm for cycle detection, if a cycle exists, what is guaranteed to happen?

HARD
SINGLE CHOICE
45s
Algorithms & Data Structures
by Mohamed

A Doubly Linked List requires less memory per node than a Singly Linked List because it allows bi-directional traversal.

EASY
TRUE FALSE
20s
Algorithms & Data Structures
by Mohamed

In the Quickselect algorithm, what is the expected (average) time complexity for finding the kth largest element?

MEDIUM
SINGLE CHOICE
40s
Algorithms & Data Structures
by Mohamed

Why is inserting an element at the beginning of a standard fixed-size array an O(n) operation?

MEDIUM
SINGLE CHOICE
30s
Algorithms & Data Structures
by Mohamed

Which of the following is NOT typically stored in the underlying implementation of an array slice?

MEDIUM
SINGLE CHOICE
30s
Algorithms & Data Structures
by Mohamed

Using basic character counting compression, what would the string 'aabbccc' become?

EASY
SINGLE CHOICE
30s
Algorithms & Data Structures
by Mohamed

What are the two common mathematical steps to rotate a 2D matrix by 90 degrees clockwise in-place?

MEDIUM
SINGLE CHOICE
40s
Algorithms & Data Structures
by Mohamed

Binary search can be performed on both sorted and unsorted arrays with O(log n) complexity.

EASY
TRUE FALSE
20s
Algorithms & Data Structures
by Mohamed

If you use the sorting approach to find duplicates in an array, what is the best possible average time complexity assuming an efficient sorting algorithm is used?

MEDIUM
SINGLE CHOICE
45s
Algorithms & Data Structures
by Mohamed

What is the time complexity of accessing an element by its index in a standard array?

EASY
SINGLE CHOICE
30s
Algorithms & Data Structures
by Mohamed

Which of the following describes an 'in-place' algorithm for reversing an array?

EASY
SINGLE CHOICE
30s
Algorithms & Data Structures
by Mohamed

What does Ahead-of-Time (AOT) compilation provide to an Angular application compared to Just-in-Time (JIT)?

HARD
SINGLE CHOICE
45s
by Mohamed

The async pipe automatically unsubscribes from Observables when a component is destroyed, preventing memory leaks.

MEDIUM
TRUE FALSE
25s
by Mohamed

What is the key difference between a 'pure' and an 'impure' pipe?

MEDIUM
SINGLE CHOICE
30s
by Mohamed

Which Angular Guard prevents a user from navigating away from a route (e.g., if they have unsaved form changes)?

MEDIUM
SINGLE CHOICE
30s
by Mohamed

What is the primary characteristic of a 'standalone' component introduced in Angular 14?

MEDIUM
SINGLE CHOICE
30s
by Mohamed

What mechanism allows you to project HTML content from a parent component into a child component?

MEDIUM
SINGLE CHOICE
30s
by Mohamed

Double curly braces {{ }} are used in Angular templates for interpolation, a one-way data binding from component to view.

EASY
TRUE FALSE
20s
by Mohamed

Which Angular primitive allows for fine-grained change detection and efficient UI updates without always relying on Zone.js?

HARD
SINGLE CHOICE
45s
by Mohamed
PreviousPage 182 of 186Next