Chapter 1 slides Flashcards

1
Q

what is memory ordered in?

A

sequences of bytes

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

how much does a byte of memory hold?

A

8 bits

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

true or false, a memory byte is never empty

A

true

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

machine language

A

set of primitive instructions built into every computer

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

machine language characteristics

A

in the form of binary, difficult to read, tedious process to program

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

assembly language

A

developed to make programming easier; uses an assembler to convert assembly language programs into machine code

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

high-level language characteristics

A

English-like, easy to learn and program. Ex. Java, C++

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

source program/source code

A

a program written in a high-level language

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

what must be done for a computer to execute a source program?

A

run through an interpreter/compiler, which reads one statement from the source code, translated it to machine code, then executes it

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

true or false, a word processor or other program can run without an operating system?

A

false

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

why Java?

A

Java is the internet programming language, general purpose programming language, and enables the user to develop and deploy applications on the internet

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

what can be made with Java?

A

standalone applications; apps running from a browser, for handheld devices, or for web servers

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

Java characteristics

A

simple, distributed, robust, secure, portable, dynamic, interpreted, architecture-neutral…

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

what is Java modeled on?

A

C++, but with more functionality and fewer negative aspects; sometimes called C++–

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

What does it mean by Java is interpreted?

A

Java contains the Java Virtual Machine code called bytecode, which compiles programs into the JVM. bytecode is machine-independent, and runs on any machine with a Java interpreter

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

What does it mean by Java is Architercute-neutral?

A

with JVM, you can write one program that will run on any platform

17
Q

how much should you indent?

A

2 spaces

18
Q

syntax errors

A

detected by the compiler

19
Q

runtime errors

A

causes the program to abort

20
Q

logic errors

A

produces incorrect result