part1 Flashcards

1
Q

what is the difference between a compiler and an interpreter?

A

A compiler translates the entire code of a program into machine language before running it, so the program runs faster, but you have to wait for the whole translation to finish first. An interpreter translates the code line by line as the program runs, so you can start seeing results right away, but it generally runs slower.

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

what are dependencies?

A

Dependencies are things that a program needs to work properly. Just like a recipe needs certain ingredients to make a dish, a program needs certain pieces of code or software to run correctly.

  • example npm for nodejs
    pip for python
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what is JDK (java development kit)

A

it is a toolkit you use to DEVELOPE BUILD and RUN programs in the Java programming language. It includes tools like a compiler (to translate your code) and a runtime environment (to run your code).

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

what is a java runtime environment (JRE)

A

It is what is needed to run a java application. This is included when you install JDK

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

what is a war file?

A

A WAR file (Web Application Archive) is like a zip file for a web application. It packages all the files needed for a web app, such as HTML, JavaScript, images, and Java code, into a single file. This makes it easy to deploy the app to a web server

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

what are the steps that form a build process in java?

A

develop the code
compile the code
package the code
note that many other steps can be added.

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

what is the use of a build tool in a java application?

A

A build tool in a Java application automates tasks like compiling code, packaging it into files (like JARs or WARs), running tests, and deploying the application

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

name some build tools you know.

A

Maven Gradle Ant

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

when using maven in what file can you find the build instructions?

A

pom.xml

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

what is nodejs?

A

Node.js is a runtime environment that allows you to run JavaScript code outside of a web browser.

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

what is Node Package Manager (npm) ?

A

npm (Node Package Manager) is a package manager for Node.js. It’s a tool that comes bundled with Node.js installation and allows you to easily manage and install libraries (packages) written in JavaScript.

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

which file in nodejs contain dependencies needed by the application?

A

package.json

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