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!

You need to develop a Java application that keeps track of the membership information of a particular club. Your application needs to store each member's name and membership ID.

What would be the best class design for the program?

0%
0%
100%
0%
View this question

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%
0%
0%
33%
0%
33%
33%
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%
100%
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...

33%
67%
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

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%
33%
0%
67%
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?

33%
33%
33%
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?

100%
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?

0%
33%
67%
0%
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.)

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