TypeScript (Coding) Quiz
TypeScript's type system and the tooling it adds on top of JavaScript for safer, larger codebases.
This category currently has 86 questions in the SERVBG quiz bank. Below are a few sample questions — the full interactive quiz shuffles through the whole set with instant scoring.
Sample questions
Which file extension does TypeScript use?
- .tps
- .ts
- .typescript
- .js
- .tsx (JSX only)
Which compiler converts TS to JS?
- tsc
- ts2js
- tsbuild
- tscompile
- typec
How do you annotate a number variable?
- let x as Number
- let<number> x
- number x
- let x = number
- let x: number
Which type allows any value?
- mixed
- object
- auto
- any
- all
Which type is type-safe but unrestricted?
- unknown
- any
- never
- object
- auto
Related categories
Python (Coding)
Python syntax, standard-library usage, and the language idioms that come up in day-to-day scripting and application work.
JavaScript (Coding)
Core JavaScript language behavior, async patterns, and the quirks that trip up both beginners and experienced developers.
Linux
Linux command-line usage, file permissions, process management, and the everyday admin tasks every sysadmin and developer needs.
Security
General information security concepts — threats, defenses, and the fundamentals every IT professional should know.
Hardware
Computer hardware components, how they interact, and the troubleshooting knowledge behind keeping systems running.