18 Basic Types questions from the TypeScript bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.
Free to start: the 2-minute IT readiness check — six questions and a result.
A.a type that opts out of type checking — assignable to and from any other type, disabling safety
B.the type of values that never occur, such as a function that always throws or an exhausted union
C.the absence of a return value — the type of a function that returns nothing
D.an array type with a fixed length and a known type at each position
Answer + AI explanation with Pro
2. Which term means: "a type that opts out of type checking — assignable to and from any other type, disabling safety"?
Junior
A.tuple
B.never
C.unknown
D.any
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.any — a type-safe counterpart to any: you must narrow it before you can use the value
B.any — a named set of constant values, numeric by default, compiled to a real runtime object
C.any — a type that opts out of type checking — assignable to and from any other type, disabling safety
D.any — the absence of a return value — the type of a function that returns nothing
Answer + AI explanation with Pro
4. What is unknown?
Mid
A.an array type with a fixed length and a known type at each position
B.a type-safe counterpart to any: you must narrow it before you can use the value
C.a type that opts out of type checking — assignable to and from any other type, disabling safety
D.the absence of a return value — the type of a function that returns nothing
Answer + AI explanation with Pro
5. Which term means: "a type-safe counterpart to any: you must narrow it before you can use the value"?
Mid
A.tuple
B.enum
C.never
D.unknown
Answer + AI explanation with Pro
6. Which statement is correct?
Mid
A.unknown — a named set of constant values, numeric by default, compiled to a real runtime object
B.unknown — a type that opts out of type checking — assignable to and from any other type, disabling safety
C.unknown — an array type with a fixed length and a known type at each position
D.unknown — a type-safe counterpart to any: you must narrow it before you can use the value
Answer + AI explanation with Pro
7. What is never?
Mid
A.the type of values that never occur, such as a function that always throws or an exhausted union
B.a named set of constant values, numeric by default, compiled to a real runtime object
C.a type that opts out of type checking — assignable to and from any other type, disabling safety
D.an array type with a fixed length and a known type at each position
Answer + AI explanation with Pro
8. Which term means: "the type of values that never occur, such as a function that always throws or an exhausted union"?
Mid
A.any
B.tuple
C.never
D.unknown
Answer + AI explanation with Pro
9. Which statement is correct?
Mid
A.never — a type that opts out of type checking — assignable to and from any other type, disabling safety
B.never — an array type with a fixed length and a known type at each position
C.never — the absence of a return value — the type of a function that returns nothing
D.never — the type of values that never occur, such as a function that always throws or an exhausted union
Answer + AI explanation with Pro
10. What is void?
Junior
A.a type that opts out of type checking — assignable to and from any other type, disabling safety
B.an array type with a fixed length and a known type at each position
C.a type-safe counterpart to any: you must narrow it before you can use the value
D.the absence of a return value — the type of a function that returns nothing
Answer + AI explanation with Pro
11. Which term means: "the absence of a return value — the type of a function that returns nothing"?
Junior
A.void
B.any
C.tuple
D.never
Answer + AI explanation with Pro
12. Which statement is correct?
Junior
A.void — the absence of a return value — the type of a function that returns nothing
B.void — a type-safe counterpart to any: you must narrow it before you can use the value
C.void — a named set of constant values, numeric by default, compiled to a real runtime object
D.void — the type of values that never occur, such as a function that always throws or an exhausted union
Answer + AI explanation with Pro
13. What is tuple?
Junior
A.a type-safe counterpart to any: you must narrow it before you can use the value
B.a type that opts out of type checking — assignable to and from any other type, disabling safety
C.an array type with a fixed length and a known type at each position
D.the absence of a return value — the type of a function that returns nothing
Answer + AI explanation with Pro
14. Which term means: "an array type with a fixed length and a known type at each position"?
Junior
A.any
B.never
C.unknown
D.tuple
Answer + AI explanation with Pro
15. Which statement is correct?
Junior
A.tuple — an array type with a fixed length and a known type at each position
B.tuple — the type of values that never occur, such as a function that always throws or an exhausted union
C.tuple — a type that opts out of type checking — assignable to and from any other type, disabling safety
D.tuple — a type-safe counterpart to any: you must narrow it before you can use the value
Answer + AI explanation with Pro
16. What is enum?
Junior
A.the type of values that never occur, such as a function that always throws or an exhausted union
B.a named set of constant values, numeric by default, compiled to a real runtime object
C.a type that opts out of type checking — assignable to and from any other type, disabling safety
D.an array type with a fixed length and a known type at each position
Answer + AI explanation with Pro
17. Which term means: "a named set of constant values, numeric by default, compiled to a real runtime object"?
Junior
A.enum
B.tuple
C.unknown
D.never
Answer + AI explanation with Pro
18. Which statement is correct?
Junior
A.enum — the absence of a return value — the type of a function that returns nothing
B.enum — a named set of constant values, numeric by default, compiled to a real runtime object
C.enum — a type-safe counterpart to any: you must narrow it before you can use the value
D.enum — an array type with a fixed length and a known type at each position
Answer + AI explanation with Pro
Free to start
Start with a free readiness check
Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Basic Types question come with Pro.