Senior Side Flashcards

1
Q

What is Node.js?

A

asynchronous event-driven JS runtime. runtime implements an event loop and allows node to push intensive operations to a sep thread so only fast nonblocking operations on the main thread.

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

What can Node.js be used for?

A

APIs, client applications, server applications

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

What is a REPL?

A

read eval print loop - interactive programming environment, like browser console.

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

When was Node.js created?

A

2009

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

What back end languages have you heard of?

A

php

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

What is a computer process?

A

instance of a program, launch a program and starts a process.

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

Why should a full stack web developer know that computer processes exist?

A

To know how they communicate with one another. HTTP protocol is an example

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

What is the process object?

A

The process object is a global that provides information about, and control over, the current Node.js process.

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

How do you access the process object in a Node.js program?

A

global object

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

What is the data type of process.argv in Node.js?

A

Array

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

What is a directory?

A

file that holds information of other directories and files

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

What is a relative file path?

A

one path to another. How would you get to the path from where you are

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

What is an absolute file path?

A

path that starts from root

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

What module does Node.js include for manipulating the file system?

A

fs module

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

What is a client?

A

Client is a piece of computer hardware or software that accesses a service made available by a server

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

What is a server?

A

In computing, a server is a piece of computer hardware or software (computer program) that provides functionality for other programs or devices, called “clients”.
Servers can provide various functionalities, often called “services”, such as sharing data or resources among multiple clients, or performing computation for a client.

17
Q

Which HTTP method does a browser issue to a web server when you visit a URL?

A

Get request

18
Q

What is on the first line of an HTTP request message?

A

startline - verb, url, http version

19
Q

What is on the first line of an HTTP response message?

A

statusline - protocol version (http version), status code, status text

20
Q

What are HTTP headers?

A

HTTP headers let the client and the server pass additional information with an HTTP request or response. An HTTP header consists of its case-insensitive name followed by a colon (:), then by its value. Whitespace before the value is ignored. (meta data)

21
Q

Is a body required for a valid HTTP message?

A

it is optional