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?

MEDIUM
SINGLE CHOICE
35s
Web Security
by Mohamed

What is HTTP Public Key Pinning (HPKP)?

MEDIUM
SINGLE CHOICE
40s
Web Security
by Mohamed

What is Failure to Restrict URL Access?

MEDIUM
SINGLE CHOICE
35s
Web Security
by Mohamed

How can applications protect against Forced Browsing attacks?

MEDIUM
SINGLE CHOICE
35s
Web Security
by Mohamed

What is the purpose of certificate pinning?

MEDIUM
SINGLE CHOICE
40s
Web Security
by Mohamed

Which HTTP security header prevents content type sniffing?

MEDIUM
SINGLE CHOICE
30s
Web Security
by Mohamed

Discuss _Abstract classes_ and their purposes in _TypeScript_.

MEDIUM
SINGLE CHOICE
30s
TypeScript
by Mohamed

What are _access modifiers_ and how do they work in _TypeScript_?

MEDIUM
SINGLE CHOICE
30s
TypeScript
by Mohamed

TypeScript interfaces can include both optional properties and readonly properties.

MEDIUM
TRUE FALSE
25s
TypeScript
by Mohamed

TypeScript's type inference automatically determines variable types from their values, eliminating the need for explicit type annotations in many cases.

MEDIUM
TRUE FALSE
25s
TypeScript
by Mohamed

Function overloading in TypeScript allows you to define multiple function signatures with different parameter types for the same function name.

MEDIUM
TRUE FALSE
30s
TypeScript
by Mohamed

In TypeScript, declaring a variable with `const` prevents any modifications to the variable, including changes to object properties or array elements.

MEDIUM
TRUE FALSE
30s
TypeScript
by Mohamed

TypeScript interfaces can define index signatures to specify that an object can have any number of properties of a certain type.

MEDIUM
TRUE FALSE
30s
TypeScript
by Mohamed

In TypeScript, you must explicitly call the parent class constructor using `super()` before accessing `this` in a derived class constructor.

MEDIUM
TRUE FALSE
30s
TypeScript
by Mohamed

Which of the following are valid basic types in TypeScript? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
40s
TypeScript
by Mohamed

Which of the following are features unique to TypeScript classes compared to ES6 classes? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
45s
TypeScript
by Mohamed

Which of the following are valid ways to declare arrays in TypeScript? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
40s
TypeScript
by Mohamed

Which of the following statements about TypeScript enums are correct? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
40s
TypeScript
by Mohamed

What are accessor functions (`get` and `set`) used for in TypeScript?

MEDIUM
SINGLE CHOICE
30s
TypeScript
by Mohamed

What is the return type of a function that doesn't return any value in TypeScript?

MEDIUM
SINGLE CHOICE
25s
TypeScript
by Mohamed
PreviousPage 54 of 95Next