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?
Which basic type in TypeScript is typically used as the return type for functions that do not return a value?
Every valid JavaScript code is also valid TypeScript code because TypeScript is a superset of JavaScript.
Which of the following best describes TypeScript's relationship to JavaScript?
What is the primary purpose of encapsulation in object-oriented programming?
Which type of class in C# cannot be instantiated and is meant specifically to be inherited from?
In C#, the 'finally' block in a try-catch-finally statement executes even if no exception is thrown.
Which phase of Garbage Collection identifies which objects in the heap are still in use?
In C#, where are Value Types typically stored in memory?
What distinguishes managed code from unmanaged code in .NET?
What is the primary role of the Common Language Runtime (CLR)?
What is .NET?
Which data structure is most suitable for frequent insertions/deletions in the middle, but has slow (O(n)) access time?
A Doubly Linked List requires less memory per node than a Singly Linked List because it allows bi-directional traversal.
Using basic character counting compression, what would the string 'aabbccc' become?
Binary search can be performed on both sorted and unsorted arrays with O(log n) complexity.
What is the time complexity of accessing an element by its index in a standard array?
Which of the following describes an 'in-place' algorithm for reversing an array?
Double curly braces {{ }} are used in Angular templates for interpolation, a one-way data binding from component to view.
What is the difference between a Component and a Directive in terms of templates?