Downloaded by Vincent kyalo ()
, lOMoAR cPSD| 48011787
Correct answers are marked with an *.
Which of the following is true about the Item class?
a. Itsdata members can be accessed by its subclasses
b. When an instance of Item is created, its bar code is validated to
be a 13 digit number
c. isValidBarcode() should be made const as it does not alter data
members *d. It provides a facility to obtain a string
representation of its objects
(1 Points)
The output window should display images, which are included in
the icons folder. What needs to be done for the images to appear
on the output window without making any changes to the given
project?
a. Copy all six images to the project folder
b. Copy all six images to the build project
folder *c. Copy the icons folder to the
build project folder d. Add the icons folder
to the project as other files
(1 Points)
After making the necessary changes so that the images appear on
the window (as required for question 2), which of the following
is correct after the images are displayed on the window?
a. Each image appears once on the window
*b. Each image appears twice on two different control options on
the window
c. Each image appears thrice on three different control options on
the window
d. Each image appears in four different control options on the
window
Downloaded by Vincent kyalo ()
, lOMoAR cPSD| 48011787
(1 Points)
Which of the following is incorrect about the project?
a. It manages a collection of Item objects
b. It allows the user to read Items from a previous execution of
the project
*c. It allows the user to save Items in a
comma-separated format d. It allows the
user to exit the program without saving
data
(1 Points)
What is meant by separating model and view?
a. Model handles data and view handles how the model is
displayed on the screen
b. View handles data and model may handle how the data is
displayed on the screen
c. Both model and view can handle data/model/logic of the
application
d. Both model and view can handle the data representation on the
screen
(1 Points)
Which of the following is a view class in the given project?
a. Item
b. ItemList
c. ItemReader *d. ItemDialog
(1 Points)
Which of the following is a model class in the given project?
Downloaded by Vincent kyalo ()