Misc Flashcards

1
Q

Roughly how many string methods are there according to the MDN Web docs?

A

20+

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

Roughly how many array methods are there according to the MDN Web docs?

A

38+

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

What three-letter acronym should you always include in your Google search about a JavaScript method or CSS property?

A

MDN

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

What is “abstraction”?

A

Taking complex things and making them simpler to work with

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

What does API stand for?

A

application programming interface

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

What is the purpose of an API?

A

defines interactions between multiple software intermediaries. It defines the kinds of calls or requests that can be made, how to make them, the data formats that should be used, the conventions to follow, etc.

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

What is a client?

A

Hardware/software that requests a service from a server

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

What is a server?

A

Runs server programs that share their resources with clients

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

What is a CLI?

A

Stands for command-line interface,

Used by developers and processes commands to a computer program using text

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

What is a GUI?

A

Stands for graphical user interface,
Used primarily by the end user and is a form of user interface that allows users to interact with electronic devices through graphical icons

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

Give at least one use case for each of the commands listed in this exercise.

A
Man: shows a manual for a command
Cat: concatenate txt files
Ls: list contents of a directory
Pwd: print the working directory
Echo: create a text line
Touch: create timestamps
Mkdir: make directories
Mv: rename file
Rm: delete file
Cp: copy and rename files
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the three virtues of a great programmer?

A

Laziness, hubris, impatience

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

What is a computer process?

A

The instance of a program that’s being executed by one or many threads.
Execution of instructions provided by programs after they are loaded from the computer’s drive into memory

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

Roughly how many computer processes are running on your host operating system (Task Manager or Activity Monitor)?

A

450

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

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

A

To ensure that the programs they write work efficiently and don’t require too many processes to run

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

What is different between “blocking” and “non-blocking” with respect to how code is executed?

A

Non-blocking is more efficient because it allows longer processes to happen in the background while other code is being executed, whereas blocking blocks the rest of the code from running until that longer process finishes.
Blocking – things are clogging stack.
Non-blocking – things are also in task queue

17
Q

What is a directory?

A

A collection of files or other directories

18
Q

What is a relative file path?

A

A file path relative to the currently accessed file

19
Q

What is an absolute file path?

A

The complete path to a file starting from the root

20
Q

What is a client?

A

A program that requests a service from servers (i.e. web browser)

21
Q

What is a server?

A

Piece of software that shares its resources with clients

22
Q

What is NPM?

A
  • A public software registry which allows users to share and borrow packages
  • Consists of three components: the website, the command line interface, and the registry
23
Q

What is a package?

A

A file or directory with one or more files including a package.json file

24
Q

How can you create a package.json with npm?

A

Navigate to the root directory of the package, use the command npm init

25
Q

What is a dependency and how to you add one to a package?

A
  • A package required by an application to run

- Can be added after the npm install command

26
Q

What happens when you add a dependency to a package with npm?

A

It appears in the package.json file under a dependencies property

27
Q

What is “syntactic sugar”?

A

Syntax that makes code easier to read or use