Shared Flashcard Set

Details

CSC 116 Vocab
Vocabulary from my Intro to Java class
69
Computer Science
Undergraduate 1
01/22/2013

Additional Computer Science Flashcards

 


 

Cards

Term
Algorithm
Definition
A step-by-step description of how to accomplish a task
Term
Program
Definition
A List of instructions to be carried out by a computer
Term
Computer Programming
Definition
the art of designing and writing a group of instructions that the computer's processor executes
Term
Source Code
Definition
.java file written by a person
Term
compiler
Definition
converts source code into machine (byte) code
Term
byte code
Definition
also known as machine code, .class file
Term
platform independence
Definition
when a file can be used on any computer with a Virtual machine, no matter what platform the file was created on
Term
Class
Definition
a unit of code that is the basic building block of Java programs
Term
Method
Definition
A program unit that represents a particular action or computation
Term
Method header
Definition
public static void () {
Term

main method

Java begins the execution of the program with the main method

Definition
every java program has one.
Term
Statement
Definition
An executable snippet of code that represents a complete command
ALL END IN A ;
Term
Comments
Definition
sections of our source code that are ignored by the compiler
Term
Javadoc
Definition
/**
*
*
*/
Term
String
Definition
a sequence of characters enclosed in double-quotes
CANNOT SPAN MORE THAN ONE LINE
Term
Escape sequences
Definition
Necessary to include characters like ", tabs, newline, and \ in STRINGS
starts with \
Term
Identifier
Definition
A name given to an entity in a program
-Must begin with a letter, _, or $
-Cannot be a keyword/reserved word
-Must contain only letters, digits, underscores or $
Term
Keyword
Definition
word that is reserved for use by Java. Sometimes called a reserved word
Term
case-sensitive language
Definition
Upper-case letters are interpreted as completely different letters than lower-case letters
Term
Syntax Errors
Definition
Caught by compiler
Term
Runtime Errors
Definition
Happen at Runtime
Term
Logic Errors
Definition
Program runs but output is not correct
Term
Procedural Programming
Definition
a set of tasks to be executed sequentially to accomplish a goal (think recipe)
Term
Object-oriented Programming
Definition
a set of objects that can perform tasks on themselves and interact with each other (what Java was designed for)
Term
Method Call
Definition
a command to execute another method, which causes all of the statements inside that method to be executed
methodName ();
Term
Flow of control
Definition
the order in which the statements of a Java program are executed
Term
Java keywords for Integer types
Definition
int (4 bytes)
byte (1 byte)
short (2 bytes)
long (8 bytes)
Term
Java keywords for Real Number Types
Definition
double (8 bytes)
float (4 bytes)
Term
Java keyword for Character Type
Definition
char (2 bytes)
-Enclosed in single quotes '
-Need escape sequence for single quote and backslash
Term
Boolean
Definition
Primitive Data Type- 2 values true/false
Term
Expression
Definition
A simple value or a set of operations that produces a value.
2 Types: Arithmetic and Boolean
THESE HAVE VALUES, STATEMENTS DO NOT
Term
Evaluation
Definition
The process of obtaining the value of an expression.
Term
Operators
Definition
Indicate the operation to be performed
+ - * / %
Term
Operands
Definition
Values used in the expression
Term
%
Definition
the remainder operator
Useful for testing even/odd
Extract final digits
Term
Precedence
Definition
The order of evaluating expressions
Term
Promotion
Definition
a copy of a value is converted to a "higher" type
Term
Casting
Requires a cast-put the name of the type you want in parentheses in front of the value you want to cast
Definition
a copy of a value is converted into another type
Term
String Concatenation
Definition
Combining several string into a single string OR combining a string with other new data
Term
Variable
Definition
A memory location with a name and type that stores a value
Term
Declaration
Definition
A request to set aside a new variable with a given type and name
;
Term
Assignment
Definition
Giving a value to a variable
Term
initialization
Definition
Giving a variable an initial value
Term
Iteration
Definition
the process of doing something over and over again
Term
for loop
Definition
a mechanism for doing similar things many times for (< initialization >; ; ) { ;
Term
Control varibale
Definition
int variable used to control the loop
Term
println
Definition
includes an automatic new line at the end of the output
Term
print
Definition
prints the text and leaves the cursor at the end of the printed text
Term
nested loop
Definition
A loop placed inside another loop
Outer loop: # of rows
Term
Pseudocode
Definition
English-like description of algorithms
Term
Class Constant
Definition
a named value (identifier) that cannot be changed and may be accessed from anywhere in the class
Declared with keyword final
Naming convention ALL_IN_CAPS
Term
scope
Definition
the part of a program where a variable exists
Term
Local variable
Definition
variable declared in a method that can only be accessed in the method
Term
Localizing Variables
Definition
declaring variables in the innermost scope possible (security, minimize interference, efficiency)
Term
Infinite Loop
Definition
A loop that never terminates
Term
Parameters
Definition
Any of a set of characteristics that distinguish different members of a family of tasks
Term
Formal Parameter
Definition
A variable that appears in the same parentheses in method header that is used to generalize the method's behavior
Term
Actual parameter
Definition
A specific value or expression that appears inside parentheses in a method call
Term
Method Signature
Definition
The name of a method, along with its number and type of parameters
e.g. average(int, int, int)
Term
Method Overloading
Definition
The ability to define two or more different methods with the same name but different method signatures
Term
Return
Definition
To send a value out as a result of a method that can be used in an expression in your program
Term
javadoc
Definition
a Java utility used to produce professional documentation such as the Java API
Term
Object
Definition
A programming entity that contains
-State (data)
-Behavior (methods)
Term
Construct
Definition
to create a new object -use the "new" keyword -Is a special type of method that returns a new object -Syntax: = new ()
Term
Index
Definition
An Integer used to specify a location in a sequences of values
Term
packages
Definition
groups of classes found in Java Class Libraries
Term
prompt
Definition
A message printed to the user, telling them what input to type, before we read from the Scanner
Term
Token
Definition
A single element of input
-They are separated by whitespace
Term
Whitespace
Definition
spaces, tabs, newline characters that separate tokens
Supporting users have an ad free experience!