Midterm Study Guide Flashcards

1
Q

info stored in main memory is typically ____________

A

volatile

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

what does volatile mean

A

the information disappears when the computer is shut down

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

how are flash drives an example of auxiliary/secondary memory

A

the data stays even when turned off

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

What is RAM short for

A

random access memory

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

what is the smallest addressable unit of memory

A

byte

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

how many bits make up a byte

A

8 bits

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

What is a file

A

a group of bytes stored in auxiliary memory

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

Where are files stored

A

folders/directories

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

is java a low-level language

A

no, it is a high-level language

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

what language can computers execute

A

computers execute low-level languages called machine language

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

what does a compiler translate Java into

A

bytecode

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

can a computer execute bytecode?

A

no, the JVM (Java Virtual Machine) interprets, translates, and executes bytecode

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

what are 2 types of memory in a computer

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

what is software

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

how to import scanner

A

import java.util.Scanner;

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

bytecode is placed in a file that ends in

17
Q

what are the 4 types of integer values

A

byte, short, long, int

18
Q

what are the 2 float values

A

float, double

19
Q

what kind of value is a char

A

single character

20
Q

what kind of value is a boolean

21
Q

which data types take up 4 bytes

A

int and float

22
Q

which data types take up 8 bytes

A

long and double

23
Q

which data types take up 2 bytes

A

short and char

24
Q

how many bytes does a boolean take up

25
Q

how to create a scanner

A

Scanner scan = new Scanner(System.in);