Java Introduction Flashcards

1
Q

What is the set of commands understood by a computer?

A

Machine Code

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

What is the component of a computer that executes the commands in a program.

A

Processor

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

How is information stored in the memory of a computer?

A

Binary, as 1s and 0s

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

What translates a programming language into machine code that a computer can understand?

A

A compiler

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

What is bytecode?

A

The compiler translates the Java program into bytecode, which is then interpreted by the JVM.

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

What is the name of the Java compiler and the java interpreter in Terminal/Command

A

javac, java

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

How is a Java program executed?

A

First user writes code in .java file. Then, the compiler (javac) translates this code into Java Bytecode (.class). The Java Virtual machine (java) then executes this program.

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