Midterm Study Guide Flashcards
info stored in main memory is typically ____________
volatile
what does volatile mean
the information disappears when the computer is shut down
how are flash drives an example of auxiliary/secondary memory
the data stays even when turned off
What is RAM short for
random access memory
what is the smallest addressable unit of memory
byte
how many bits make up a byte
8 bits
What is a file
a group of bytes stored in auxiliary memory
Where are files stored
folders/directories
is java a low-level language
no, it is a high-level language
what language can computers execute
computers execute low-level languages called machine language
what does a compiler translate Java into
bytecode
can a computer execute bytecode?
no, the JVM (Java Virtual Machine) interprets, translates, and executes bytecode
what are 2 types of memory in a computer
what is software
how to import scanner
import java.util.Scanner;
bytecode is placed in a file that ends in
.class
what are the 4 types of integer values
byte, short, long, int
what are the 2 float values
float, double
what kind of value is a char
single character
what kind of value is a boolean
Boolean
which data types take up 4 bytes
int and float
which data types take up 8 bytes
long and double
which data types take up 2 bytes
short and char
how many bytes does a boolean take up
1+ bytes
how to create a scanner
Scanner scan = new Scanner(System.in);