Module 1: Introduction into Programming Flashcards

1
Q

What is Programming?

A

A series of instructions for a computer to follow

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

What is code?

A

Human readable instructions that a computer can understand (interpret)

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

What is a command?

A

Often referred to as a statement or singular instruction, the list of commands we would give our compiler.

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

What type of programming is Java?

A

Object-oriented

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

Is Java a high-level language, or a low-level level language?

A

High-level programming language

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

What does it mean to be object-oriented?

A

That it has the constructs of classes and objects built into the language

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

Is Java a loosely-typed or strongly-typed programming language?

A

Strongly-typed

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

What does it mean to be a strongly-typed programming language?

A

Our variables and method types must be declared in advanced.

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

What is the Java virtual machine (JVM)?

A

A special program that knows how to execute the programs that you write in Java.

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

What is JRE (Java Runtime Environment)?

A

A set of components to create and run Java applications. It contains all the runtime libraries that your code will be calling and using.

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

What is JDK (Java Development Kit)?

A

A software development environment used for developing Java applications. It provides developer tools like a compiler, debugger, documentation tools (javadoc) and other command-line utilities.

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

What is an integrated development environment (IDE)?

A

Used for programming and Java; many also provide functionality for other languages. IDEs is typically provide a code editor, a compiler or interpreter, and a debugger that the developer accesses through a unified graphical user interface (GUI). Examples: Eclipse, Netbeans, and Intellij, etc.

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

How does Java work?

A

Step 1: the developer would write the source code in which the JDK would compile and turn the source code into bytecode.
Step 2: the JRE then uses the JVM to run the code and processes the bytecode line by line using the JIT. (source code—> bytecode)
Step 3: Finally, the JIT compiler turns the bytecode into machine code, basically line by line.

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

What is Compile Time?

A

When source code is converted at one time to bytecode.

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

What is Runtime?

A

When Java uses the JIT, the bytecode that the developer wrote is then turned into instructions for the machine to execute.

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

What is a package?

A

A collection of classes and interfaces that provides a high-level layer of access protection and name space management.

17
Q

Where should the package declaration be in my code?

A

The package declaration must ALWAYS be in the first line (non-commented) line in a .java file