click below
click below
Normal Size Small Size show me how
Data type program
Questions on data type program done in class
Question | Answer |
---|---|
What is a 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/ given to the variable. |
What is the Basic syntax for declaration? | <data type> variableName; |
What is a String literal? | Character(s) enclosed in double quotation marks. |
What is a syntax? | grammar, structure, or order of the elements in a language statement. |
How do you declare an integer variable/ int data type? | int variable; |
How do you declare a real variable/ double data type? | double variable; |
How do you declare a boolean/ boolean data type? | boolean variable; |
How do you declare a character/ char data type? | char variable; |
How do you declare a String/ String literal? | String variable; |
What is the Basic syntax for assignment? | variableName= <value>; |
What is the Basic syntax for declaration and assignment? | <data type> variableName= <value>; |
What is data? | Information formatted in a distinct way. |