click below
click below
Normal Size Small Size show me how
DataTypes Program
Questions based on DataType program done in class
Question | Answer |
---|---|
What is a declaration? | Process of telling the compiler the name of a variable and the type of data to be stored in the memory location. |
what are primitive data types? | most basic data types provided by a language. |
The int data allows what? | Storage of integers. |
Declaring a string size depends of what? | it depends on the Java Virtual. |
perform division of variables x by y | int divide = x / y; |
perform subtraction of variables y by x | int subtraction = y - x; |
perform division of variables y by x | int division = y / x; |
perform division to find the remainder of variables x by y named divRem | int divRem = x % y; |
perform division to find the remainder of variables y by x named divRem | int divRem = y % x; |
Declare the variables x and y, where x = 17 and y = 3 | int x = 17; int y = 3; |