Shared Flashcard Set

Details

Basics of Java Programming
Elementry Java Programming Topics
34
Computer Science
Undergraduate 1
05/15/2010

Additional Computer Science Flashcards

 


 

Cards

Term
WHAT ARE IDENTIFIERS?
Definition
IDENTIFIERS ARE SPECIAL NAMES FOR PROGRAMMING ENTITIES SUCH AS VARIABLES, CONSTANTS, METHODS, CLASSES, AND PACKAGES
Term

AN IDENTIFIER MUST START WITH _____, ______, OR A _______,.

 

IT CANNOT START WITH A ________

Definition

LETTER, UNDERSCORE, DOLLAR SIGN

 

DIGIT

Term
WHAT ARE VARIABLES USED FOR?
Definition
TO STORE DATA IN A PROGRAM
Term

WHAT IS THE PURPOSE OF

VARIABLE DECLARATION?

Definition
SO THAT THE COMPUTER CAN ALLOCATE THE APPROPRIATE MEMORY SPACE FOR THE VARIABLE BASED ON ITS DATA TYPE
Term
IF VARIABLES ARE OF THE SAME _____ THEY CAN BE DECLARED TOGETHER
Definition
TYPE
Term
BY CONVENTION VARIABLE NAMES ARE WRITTEN IN ________
Definition
LOWERCASE
Term
WHAT IS THE ASSIGNMENT OPERATOR?
Definition

=

(EQUAL SIGN)

Term
AN _____ REPRESENTS A COMPUTATION INVOLVING VALUES, VARIABLES, AND OPERATORS THAT, TAKEN TOGETHER EVALUATES TO A VALUE
Definition
EXPRESSION
Term
A VARIABLE IN A METHOD MUST BE ASSIGNED A _____ BEFORE IT CAN BE USED 
Definition
VALUE
Term
WHENEVER POSSIBLE _____ A VARIABLE AND ASSIGN ITS VALUE IN ONE STEP
Definition
DECLARE
Term
PERMANENT DATA THAT NEVER CHANGES IT REPRESENTED BY A ______
Definition
CONSTANT
Term
BY CONVENTION CONSTANT ARE WRITTEN IN ________
Definition
UPPERCASE
Term

WHAT ARE THE SIX

NUMERIC DATA TYPES?

Definition

BYTE

SHORT

INT

LONG

FLOAT

DOUBLE

Term

WHAT IS THE STORAGE SIZE OF

BYTE

Definition

8-BIT

 

Term

WHAT IS THE STORAGE SIZE OF

SHORT

Definition
16 BIT
Term

WHAT IS THE STORAGE SIZE OF

INT

Definition
32 BIT
Term

WHAT IS THE STORAGE SIZE OF

NUMERIC DATA TYPE

 

LONG?

Definition
64 BIT
Term

WHAT IS THE STORAGE SIZE OF

NUMERIC DATA TYPE

 

FLOAT

Definition

32 BIT

IEEE 754

Term

WHAT IS THE STORAGE SIZE OF

NUMERIC DATA TYPE?

 

DOUBLE

Definition

64 BIT

IEEE 754

Term
WHEN A VARIABLE IS ASSIGNED A VALUE TO LARGE TO BE STORED IT CAUSES AN _______
Definition
OVERFLOW
Term
A _____ IS A CONSTANT VALUE THAT APPEARS DIRECTLY IN A PROGRAM
Definition
LITERAL
Term

ADDITION ASSIGNMENT

 

i += 8

 

IS EQUIVALENT TO

Definition
i = i + 8
Term

SUBTRACTION ASSIGNMENT

 

i -= 8

 

IS EQUIVALENT TO

Definition
i = i - 8
Term

MULTIPLICATION ASSIGNMENT

 

i *= 8

 

IS EQUIVALENT TO

Definition
i = i * 8
Term

DIVISION ASSIGNMENT

 

i /= 8

 

IS EQUIVALENT TO

Definition
i = / 8
Term

REMAINDER ASSIGNMENT

 

i %= 8

 

IS EQUIVALENT TO

Definition
i = i % 8
Term

WHAT DOES THE OPERATOR

 

++var

 

PERFORM

Definition

PREINCREMENT THE VARIABLE var

 

INCREMENT var BY 1 AND EVALUATE THE NEW VALUE IN var AFTER THE INCREMENT

Term

WHAT DOES THE OPERATOR

 

var++

 

PERFORM

Definition

POSTINCREMENT

 

EVALUATE THE ORIGINAL VALUE IN var AND INCREMENTS var BY 1

Term

WHAT DOES THE OPERATOR

 

--var

 

PERFORM

Definition

PREDECREMENT

 

DECREMENT var BY 1 AND EVALUATES TO THE NEW VALUE IN var AFTER THE DECREMENT

Term

WHAT DOES THE OPERATOR

 

var--

 

PERFORM

Definition

POSTDECREMENT

 

EVALUATES TO THE ORIGINAL VALUE IN var AND DECREMENTS var BY 1

Term
WHAT IS CASTING?
Definition
CASTING IS AN OPERATION THAT CONVERTS A VALUE OF ONE DATA TYPE INTO A VALUE OF ANOTHER DATA TYPE
Term
CASTING DOES NOT _____ THE VARIABLE BEING CAST
Definition
CHANGE
Term
A CHARACTER LITERAL IS ENCLOSED IN  ______ QUOTATION MARKS
Definition
SINGLE
Supporting users have an ad free experience!