click below
click below
Normal Size Small Size show me how
DataTypes Program
Qustions based on DataType program done in class
| Question | Answer |
|---|---|
| What is main method? | A program begins by calling the main method and begins execution with the first line of codeine the main method |
| What is the program block? | The code enclosed { } |
| What are the Naming Rules? | 1. Alphanumeric(letters and numbers) 2. No spaces 3. No special characters except _ $ (underscore, dollar sign) 4. Must begin with a letter */ |
| What are the Naming Conventions? | 1. camelBack notation - first letter is lowercase and for each subsequent word the first letter is capitalized. 2. names are meaningful 3. one - character variable names should be avoid except for temporary variables are 4. i, j, m, and n, for integer |
| What is a Declaration? | A process of telling the complier the name of a variable and the type of data to be stored in the memory allocated to the variable |
| What is data? | information formatted in a distinct way |
| What is a data type? | A classification that determines how data is stored, possible values for data, and the operations that can be performed on the data |
| What is a Primitive Data Type? | The most basic data type provided by a language |
| What is String? | A class provided by Java that provides the ability to program with words |
| What is Syntax? | grammer, structure, or order of the elements in a language |
| What is String literal? | |
| What is Assignment? | |
| What is camelBack notation? | |
| What is a program block? | |
| What are common names for temporary variable integers? | |
| What is hard coding? | |
| What is the basic syntax for declaration? | |
| The int data allows what? | |
| How many bits and bytes take to declare a integer variable? | |
| How many bits and bytes take to declare a real variable? | |
| How many bits does it take to declare a boolean? | |
| The double data type allows what? | |
| The boolean data types allow what? | |
| What does a boolean data type require? | |
| What are the rules for naming camelBack notation? | |
| What characters should be avoided? | |
| Declaring a String size depends on what? | |
| How do you declare a boolean data type? | |
| How do you declare a character data type? | |
| How do u declare a an integer variable/int data type? |