What is a compiler?
- A piece of hardware attached to a computer that allows you to
run a computer program written in a language such as Java.
- Software that translates computer programs written in a language
such as Java to another language that can be run on a computer.
- An application that helps you write software by letting you
cut and paste from different documents.
Answer
What is the value of Java expression 3 * 3 - 7 * 4 - 9?
- 26
- 114
- -1
- -10
- -28
Answer
What is the value of Java expression 5/8?
- 0
- 0.625
- 1
- 1.6
- 2
Answer
What is the value of Java expression 20 % 8?
- 1
- 2
- 3
- 4
- 5
Answer
What is the value of Java expression 3 > 5?
- true
- false
- It does not have a value
Answer
What is the value of Java expression 2 != 4 && 4 >= 2?
- true
- false
- It does not have a value
Answer
What is the value of m after performing the following statements?
int m, s;
s = 50;
if(s > 25) m = s + 1;
else m = s - 1;
- 49
- 50
- 51
- It does not have a value
Answer
What is the value of m after performing the following statements?
int m, s;
s = 50;
if(s > 25) m = s + 1;
m = s - 1;
- 49
- 50
- 51
- It does not have a value
Answer