Shared Flashcard Set

Details

CSC116 -Java -Midterm 1
based on lecture and Building Java Programs by Reges & Stepp
47
Computer Science
Undergraduate 1
09/28/2011

Additional Computer Science Flashcards

 


 

Cards

Term
Computer Program
Definition
group of instructions that the computer processor executes
Term
computer programming
Definition
the art of designing and writing a group of instructions that the computer's processor executes
Term
compiler
Definition
translates English into 0s and 1s for the processor to understand
Term
java
Definition
programming language; used on multiple platforms
Term
byte code
Definition
java compiler converts the source code into a class file with 0s and 1s
Term
main method
Definition
tells the program where to start
Term
variable
Definition
a placeholder for data in a computer program
Term
booleans
Definition
= true or false
Term
identifier
Definition
the name of a variable
Term
int
Definition
whole numbers
Term
double
Definition
decimal numbers
Term
char
Definition
a single character
Term
string
Definition
text
Term
assignment operator
Definition
(=) gives a value to a variable
Term
initialization
Definition
giving a variable an initial value
Term
concatenation operator
Definition
(+) prints out both text and variables to the screen
Term
syntax error
Definition
a grammatical problem with the source code
Term
runtime error
Definition
when your source code compiles but when you execute it an error occurs
Term
logic error
Definition
when the code has correct syntax, causes no erros during execution, but it produces undesired results
Term
promotion
Definition
interger value changing into a double value
Term
constant
Definition
a variable whose value cannot be changed.  Any attempt to do so will cause a syntax error.
Term
methods
Definition
a group of code that performs a single task
Term
calling or invoking
Definition
telling the new method to run from the main method
Term
parameters
Definition
when a method needs information to complete its task, it accepts that information through the use of parameters
Term
argument
Definition
the value you provide in teh parenthises
Term
local variable
Definition
a variable declared inside a method; only exists inside that method
Term
class variables
Definition
variables that can be used in all methods of the class they are declared inside but NOT inside a method
Term
scanner
Definition
input from the user
Term
returning
Definition
methods can send back a value to the location in which the method was called
Term
void
Definition
method does not return a value
Term
return type
Definition
if we want a method to return a value, we replace the word void with the data type that will be returned
Term
Javadoc
Definition
javadoc -author -version name.java
Term
method overloading
Definition
two methods in a class that have the same name as long as they accept a unique set of parameters
Term
scope
Definition
refers to the context in which something is visible in programming i.e. which set of classes
Term
visibility
Definition
whether or not something in our program can be accessed from a given context
Term
public
Definition
scope we give a class, method or variable where we want it to be visible and thus accessible by all classes everywhere
Term
private
Definition
keep outside classes from being able to see or access methods and variables in a class
Term
protected
Definition
scope that allows the given class method or variable to only be visible to other classes within the same package as the class they are declared in
Term
package
Definition
a group or set of classes together
Term
instance
Definition
each individual set of variables based on the blueprint
Term
object
Definition
the single instance of a class
Term
boolean logic
Definition
logic that evaluates to either true or false
Term
nested if statements
Definition
two if statements - one inside the other
Term
short circuiting
Definition
if first condition evaluates to false java doesn't look at second condition
Term
switch statement
Definition
a structure that looks at the value of a variable and goes through a list of possible values
Term
cases
Definition
possible vaules in a list
Term
break
Definition
tells java to immediately exit the switch satement
Supporting users have an ad free experience!