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!

The following code fragment is intended to keep reading in an integer from the user until the number entered is between 1 and 10 (inclusive). 

code fragment

What kind of error does this code contain, and where?

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

If you wish to delete items from an Array list you can use ... (multiple responses are allowed - select all that apply)

0%
100%
100%
0%
View this question

Consider the following code:

ArrayList<String> shapes = new ArrayList<String>();

Iterator<String> shapesIterator = shapes.iterator();

Which of the following is not true?

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

The for-each loop ...

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

You have been given the following code:

String[] values = new String[3];

Which of the following is an incorrect way to iterate through the collection?

100%
0%
0%
0%
View this question

Which of the following collections maintain an order of the elements in the collection (multiple responses are allowed - select all that apply)

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

The following method(s) can be used to replace an item in an ArrayList in the same position in the list.

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

The following code fragment is intended to keep reading in a decimal value from the user until the number entered is between 0 and 1 (inclusive). 

code fragment

What kind of error does this code contain, and where?

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

Which of the following is true for both Arrays and ArrayLists? (multiple responses are allowed - select all that apply)

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

When the following code is executed an error is encountered and the program crashes. On which line do you think the error is encountered?

You may assume that all required classes have been defined elsewhere.

Image failed to load: Demo class

0%
0%
100%
0%
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!