MLD1 Class Mid-Term Review Part1
#
{
"
;
Public class.java
Class Random.java
Random.java
Random.java
RMath is a name of an undefined variable
RMath is a variable and its value is an integer
RMath is the name of the program
Int rMath is a typo and should be fixed
Print a new line "The number = + num".
Print a new line "The number = " and then the value of the variable "num".
Prints a line "The number = + num" on a paper using a printer.
Prints a new line showing only the value of the variable "num".
They do exactly the same thing.
They print out different numbers.
The first one makes the continuation of the text/information to be printed on the next line. The second does not, so that the new information would be printed on the same line.
None of the above is true for these two lines.
The value of the variable "tenPercentTax" equals to the result of (netIncome - 30000) times 0.10
The value of the variable "tenPercentTax" equals to the result of 0.10 times the variable "netIncome" and then minus 30000.
The value of the variable "tenPercentTax" equals to the result of 0.10 times 30000 and then minus the variable "netIncome".
The value of the variable "tenPercentTax" equals to the result of 0.10 times negative 30000.
Variable "sum" will be multiplied by 2.
The memory space for the variable "sum" will be twice more than a regular one.
There are actually 2 variables called "sum".
Variable "sum" may not have more than 2 digits.
The next string has its own name "Student"
Student's name must be typed in.
"name" is a text variable and its value is the word "String"
"name" is a text variable and its value is the word "Student"
}
)
]
()
A positive whole number
A decimal
Any whole number (includes positive, negative, and zero)
A fraction