Typescript, node, nextjs, tailwind questions for a staff software engineering interview Flashcards

(27 cards)

1
Q

Define TypeScript.

A

A typed superset of JavaScript that compiles to plain JavaScript.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the purpose of Node.js?

A

To run JavaScript on the server side, enabling backend development.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

True or false: Next.js supports server-side rendering.

A

TRUE

Next.js allows rendering pages on the server for better performance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Fill in the blank: Tailwind CSS is a _______ utility-first CSS framework.

A

Responsive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does tsconfig.json configure?

A

It configures the TypeScript compiler options for a project.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Define middleware in Node.js.

A

Functions that have access to the request and response objects.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a Next.js API route?

A

A serverless function that handles HTTP requests in a Next.js app.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

True or false: Tailwind CSS requires a preprocessor.

A

FALSE

Tailwind CSS can be used directly without a preprocessor.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is Type Inference in TypeScript?

A

The ability of TypeScript to automatically deduce types.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Fill in the blank: Node.js uses _______ for asynchronous programming.

A

Event-driven architecture

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does SSR stand for in Next.js?

A

Server-Side Rendering

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Define props in React.

A

Short for properties, they are inputs to React components.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the purpose of npm?

A

To manage packages and dependencies in JavaScript projects.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

True or false: TypeScript can only be used with React.

A

FALSE

TypeScript can be used with any JavaScript framework.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is a Tailwind CSS component?

A

A reusable UI element styled using Tailwind’s utility classes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Fill in the blank: Next.js uses _______ for static site generation.

A

getStaticProps

17
Q

What is the useEffect hook in React?

A

A hook that allows side effects in functional components.

18
Q

Define asynchronous programming.

A

A programming paradigm that allows operations to run concurrently.

19
Q

What is TypeScript’s main advantage?

A

It provides static typing, enhancing code quality and maintainability.

20
Q

True or false: Node.js is single-threaded.

A

TRUE

Node.js uses a single-threaded model with event looping.

21
Q

What does getServerSideProps do in Next.js?

A

Fetches data on each request for server-side rendering.

22
Q

Fill in the blank: Tailwind CSS promotes _______ design.

A

Utility-first

23
Q

What is a TypeScript interface?

A

A structure that defines the shape of an object.

24
Q

What is the purpose of Express.js?

A

To simplify building web applications and APIs in Node.js.

25
Define **static site generation**.
The process of generating HTML at build time for faster load.
26
What is a **React component**?
A reusable piece of UI that can manage its own state.
27
True or false: **Tailwind CSS** requires custom CSS for styling.
FALSE ## Footnote Tailwind provides all necessary styles through utility classes.