Question | Answer |
What is Declaration? | The process of telling the compiler the name of a variable and the type of data to be stored in the memory location allocated to the variable. |
What is Data? | Information formatted in a distinct way. |
What is Primitive Data Types? | The most basic data types provided by a language. |
What is a String? | A class provided by java that provides the ability to program with words. |
What is String literal? | Character(s) enclosed in double quotation marks. |
What is assignment? | The process of storing a value at a variable memory location using =(assignment operator) |
What are Data Types? | Classification that determines how data is stored possible values for the data, and the operations that can be performed on the data. |
The int data type allows what? | storage of integers( numbers fractional component (i.e no decimal point) |
How many bits and bytes take to declare a integer variable? | (32 bits - 4 bytes) |
How many bits and bytes take to declare a real variable? | (64 bits - 8 bytes) |
How many bits does it take to declare a boolean? | (1 bit) |
The double data type allows what? | The storage of rational and irrational
(i.e numbers with decimal point) |
The boolean data types allows what? | Allows the storage of any keyboard character. |
What does a boolean data type require? | Requires single quotes. |
Common names for temporary variables are... | i, j, k, and n are for integers;
c, d, and e for characters;
x, y, and z for real numbers; |
What are the rules for naming camelBack notation? | First letter is lowercase and for each subsequent word, the first letter is capitalized.Names are meaningful. |
When should one character variables be used? | One- character variables should be avoided except for temporary "throwaway" variables. |
Declaring a string size depends on what? | It depends on the Java Virtual Machine. |
What data type allows the storage of multiple characters enclosed in double quotes? | String |
What is hard coding? | To use an explicit rather than a symbolic name for something that is likely to change at a later time. |
What is Syntax? | Grammar, structure, or order of the elements in a language statement. |
What is a main method? | where the program looks to begin execution. Execution begins with the first line of code in the main method. |
What is camelBack notation? | The first letter is lowercase and for each subsequent word the first letter is capitalized. |
What is program block? | The code enclosed between {}. |
what is the basic syntax for declaration? | <data types>variableName. |
Define naming conventions | camelBack Notation
names are meaningful
One-character variable names should be avoided. |
| |
| |
| |
| |