logo

Crowdly

FIT1051 Programming fundamentals in java - MUM S1 2025

Looking for FIT1051 Programming fundamentals in java - MUM S1 2025 test answers and solutions? Browse our comprehensive collection of verified answers for FIT1051 Programming fundamentals in java - MUM S1 2025 at learning.monash.edu.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Consider the following block of code, where each of the four (4) variables (a, b, c, and answer) stores an integer value :

if (a > b)

if (b > c)

answer = c;

else

answer = b;

else

if (a > c)

answer = c;

else

answer = a;

Which of the following sets of values for a, b, and c will cause answer to be assigned the value in variable b?

0%
0%
100%
0%
0%
View this question

What does the following expression evaluate to?

(double) (24 / ((double) 5))

0%
0%
0%
0%
100%
View this question

If the following expression was evaluated for each integer, i between 10 and 150 inclusive how many times would it return true?

i % 17 == 0

(Hint: do not think about how you would program this. This is a logical question pertaining to the % and == operators. Think about how the operators work. Under which circumstances would this expression evaluate to true?)

0%
0%
0%
100%
0%
View this question

If a fineDay is defined as a day which is not raining, where the maximum temperature is no less than 20 and no greater than 25, which expression would define a fineDay?

0%
100%
0%
0%
0%
0%
View this question

If d1 and d2 are doubles with valid values, what is wrong with the following expression?

"answer = " + (d1 < d2)

0%
100%
0%
0%
0%
View this question

If the value of x is 20, what does this expression evaluate in Java?

0 <= x < 30

0%
0%
100%
View this question

What left operand value and right operand value respectively does the multiplication operator operate on in the following expression? You can assume i has the initial value of 5.

i-- * i--

Hint: try it out in IntelliJ and work backwards to deduce what must have happened.

0%
0%
100%
0%
0%
View this question

What is the output of the following piece of code?

int x = 4, y = 3;

boolean b = ++x < y++ || ++x < y++;

System.out.println(x+","+y+","+b);

0%
0%
0%
0%
100%
View this question

Which of the following is NOT a Java operator?

Note: When in doubt, try it out in IntelliJ.

0%
0%
0%
100%
0%
View this question

Which of the following is correct? (you may choose multiple responses)

100%
67%
0%
100%
0%
View this question

Want instant access to all verified answers on learning.monash.edu?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!