Question Bank
1899 approved questions from the community
What happens when an application takes user-inserted data and sends it to a web browser without proper validation and escaping?
What is HTTP Public Key Pinning (HPKP)?
What is Failure to Restrict URL Access?
How can applications protect against Forced Browsing attacks?
What is the purpose of certificate pinning?
Which HTTP security header prevents content type sniffing?
Discuss _Abstract classes_ and their purposes in _TypeScript_.
What are _access modifiers_ and how do they work in _TypeScript_?
TypeScript interfaces can include both optional properties and readonly properties.
TypeScript's type inference automatically determines variable types from their values, eliminating the need for explicit type annotations in many cases.
Function overloading in TypeScript allows you to define multiple function signatures with different parameter types for the same function name.
In TypeScript, declaring a variable with `const` prevents any modifications to the variable, including changes to object properties or array elements.
TypeScript interfaces can define index signatures to specify that an object can have any number of properties of a certain type.
In TypeScript, you must explicitly call the parent class constructor using `super()` before accessing `this` in a derived class constructor.
Which of the following are valid basic types in TypeScript? (Select all that apply)
Which of the following are features unique to TypeScript classes compared to ES6 classes? (Select all that apply)
Which of the following are valid ways to declare arrays in TypeScript? (Select all that apply)
Which of the following statements about TypeScript enums are correct? (Select all that apply)
What are accessor functions (`get` and `set`) used for in TypeScript?
What is the return type of a function that doesn't return any value in TypeScript?