logo

Crowdly

Browser

Add to Chrome

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!

This question is related to the Monster-Zoo multi-class example provided in Week 10 pre-reading materials.

Which of the following Zoo methods would not be adversely affected if the variable numberOfMonsters was public and its integrity was compromised by driver code?

0%
25%
50%
0%
25%
0%
0%
View this question

A particular Java program has an Enrolment class which holds information about a student's enrolment details. This is contained in a separate StudentAndUnits class. 

This is poor program design, as it is an example of...

0%
0%
0%
0%
View this question

A Java class, Database, contains a public method called printStatistics, which outputs statistical information related to that database. The printStatistics method calls another helper method, calculateMean, which is only ever used in this context - it is never called from outside the Database class.

Declaring the calculateMean method with the public access modifier would be bad program design, as it is an example of...

0%
0%
0%
0%
View this question

Which of the following attributes would be best represented by an enum type in Java?

0%
0%
100%
0%
View this question

You need to create a Java application that stores information about recipes and their nutritional information. Each recipe has a list of ingredients that must be stored by the program, and each ingredient has a name and a number of kilojoules associated with it.

What would be the best class design for the program?

0%
0%
0%
100%
View this question

This question is related to the Monster-Zoo multi-class example provided in Week 10 pre-reading materials.

Does the variable numMonstersInstantiated in the Monster class have to be static to perform its function?

0%
0%
0%
0%
View this question

This question is related to the Monster-Zoo multi-class example provided in Week 10 pre-reading materials.

Should the method getNumMonstersInstantiated in the Monster class be static in order to perform its function?

0%
0%
0%
0%
View this question

This question is related to the Monster Zoo multi-class example provided in Week 10 pre-reading materials.

Why are the Date and Food objects immutable?

25%
0%
0%
75%
0%
View this question

Consider the following code fragment:

Room office = new Room();

Room classroom = new Room();

office.setArea(125.0);

classroom.setArea(350.0);

office = classroom;

classroom.setArea(200.0);

Which of the following will be true, after this code executes? (Assume all classes and methods have been defined elsewhere correctly.)

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

Suppose you have a Java class, Student, which needs to keep track of an ID number for each student object that is created. This ID number needs to be different for each student, but once it has been assigned to a particular student, its value should not be changed.

What is the best way of defining and initialising the ID variable?

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

Browser

Add to Chrome