Question Bank

98 approved questions from the community

In TypeScript, which keyword is recommended for declaring variables within a block scope to ensure predictability and avoid hoisting issues?

EASY
MULTIPLE CHOICE
30s
TypeScript
by Mohamed

Which basic type in TypeScript is typically used as the return type for functions that do not return a value?

EASY
MULTIPLE CHOICE
30s
TypeScript
by Mohamed

Every valid JavaScript code is also valid TypeScript code because TypeScript is a superset of JavaScript.

EASY
TRUE FALSE
20s
TypeScript
by Mohamed

Which of the following best describes TypeScript's relationship to JavaScript?

EASY
MULTIPLE CHOICE
30s
TypeScript
by Mohamed

What is the primary purpose of encapsulation in object-oriented programming?

EASY
MULTIPLE CHOICE
30s
.net
by Mohamed

Which type of class in C# cannot be instantiated and is meant specifically to be inherited from?

EASY
MULTIPLE CHOICE
30s
.net
by Mohamed

In C#, the 'finally' block in a try-catch-finally statement executes even if no exception is thrown.

EASY
TRUE FALSE
20s
.net
by Mohamed

Which phase of Garbage Collection identifies which objects in the heap are still in use?

EASY
MULTIPLE CHOICE
30s
.net
by Mohamed

In C#, where are Value Types typically stored in memory?

EASY
MULTIPLE CHOICE
30s
.net
by Mohamed

What distinguishes managed code from unmanaged code in .NET?

EASY
MULTIPLE CHOICE
30s
.net
by Mohamed

What is the primary role of the Common Language Runtime (CLR)?

EASY
MULTIPLE CHOICE
30s
.net
by Mohamed

What is .NET?

EASY
MULTIPLE CHOICE
30s
.net
by Mohamed

Which data structure is most suitable for frequent insertions/deletions in the middle, but has slow (O(n)) access time?

EASY
MULTIPLE CHOICE
30s
DSA
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
DSA
by Mohamed

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

EASY
MULTIPLE CHOICE
30s
DSA
by Mohamed

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

EASY
TRUE FALSE
20s
DSA
by Mohamed

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

EASY
MULTIPLE CHOICE
30s
DSA
by Mohamed

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

EASY
MULTIPLE CHOICE
30s
DSA
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
Angular
by Mohamed

What is the difference between a Component and a Directive in terms of templates?

EASY
MULTIPLE CHOICE
30s
Angular
by Mohamed
PreviousPage 3 of 5Next