Shared Flashcard Set

Details

JAVA midterm
JAVA introduction most of ch's 1-6
23
Computer Science
Undergraduate 3
03/03/2009

Additional Computer Science Flashcards

 


 

Cards

Term

Hardware

 

definition and 

three examples

Definition

the physical machine.

 

keboard

mouse

display screen

CPU (central processing unit)

memory (bytes, folders) 

Term

Software

 

definition and

three examples 

Definition

programs used to give instructions to the computer to carry out

 

microsoft word

java

jGRASP 

Term
CPU (Central Processing Unit) 
Definition

device inside your comp that allows your comp to follow a program's instructions. (intel, core 2 duo processor)

 

on carries out simple instructions such as moving numbers/data from one place in memory to another. desirgn of the hardware is simple, complexity comes from software. 

Term

main memory

 

Definition

holds current program and much of data that program is manipulating

 

it's volatile, meaning it disappears when you shut down your comp. 


 

Term

auxillary memory

 

aka secondary memory 

Definition

exists even when comp is off.

 

includes disks: hard disk drives, flash drives, CD's, DVD's 

Term

 

 

 

RAM

 

(random access memory)

 

is an example of... 

 

Definition
main memory
Term

 

 

 

 

Byte 

Definition
  • the smallest addressable unit of memory (address is the number of the byte)
  • by convention it holds 8 digits, each of which is 0 or 1, each digit is called a binary digit, or bit
  • so, byte=8 bits
  • one byte is just large enough to hold a single keyboard character
Term

 

 

 

memory location 

Definition
when the computer needs to store a piece of data that cannot fit into a single byte, it uses several adjacent bytes.
 
these adjacent bytes are considered to be a single, larger memory location, in which the address is the address of the first byte
Term

 

 

 

operating system

 

is an example of.. 

Definition
a program, or software
Term

 

 

 

assembly language/ 

high-level language 

Definition

ex-Java

 

languages designed to be relatively easy for people to use

 

hardware doesn't understand it, so it has to be translated from assemble language (what programmer understands) into machine language (what computer understands)

Term

 

 

 

 

 low-level language/

machine language 

Definition
what the computer understands
 
translated using a compiler 
Term

 

 

 

compiler 

Definition
changes high level language into low level language 
 
input - source program/source code
 
output - object program/object code
Term

 

 

 

 

interpreter 

Definition
like a compiler but better.
 
compilers run once, interpreters run every time the program is executed
 
makes compilers better bc program then runs faster 
Term

 

 

 

 

bytecode 

Definition
what java uses - combo of compiler and interpreter
 
it is the language of a hypothetical computer (virtual machine) that is very similar, but not exactly like, any computer
 
JVM - java virtual machine, translates bytecode into code a computer can actually read. really easy. makes Java versatile for any computer, and it can always use the same compiler. 
 
Term

 

 

 

James Gosling

and company 

Definition
worked at sun microsystems
 
1991 - created language intended for programming home appliances that would work for variety of stuff, TVs, toasters, etc (where idea for bytecode came from)
 
1994 - realized language would be perfect for developing a web browser (called WebRunner, then HotJava, then Netscape endorsed the program) 
Term

 

 

 

2 kinds of Java programs 

Definition
Application - regular program meant to run on your computer
 
Applet - little application meant to be sent to another location on the Internet and run there
Term

 

 

 

package 

Definition
a library of classes that have already been defined for you, such as java.util
Term

 

 

 

 

method 

Definition
every java program has a method called main, and often other methods. the definition of method main extends from another open brace to another close brace.
Term

 

 

 

 

statements 

Definition
instructions
 
define a task and make up the body of the method 
Term

 

 

 

 

objects 

methods

arguments 

Definition
used to perform actions
 
the actions are defined by methods
 
system.out is an object
print.ln is a method
(inside the parentheses) is called an argument 
Term

 

 

 

 

method call/

method invocation

Definition
an object performs an action when you invoke/call one of it's methods
 
 
 
 
Supporting users have an ad free experience!