COS3711 EXAM PACK
2026
QUESTIONS AND
ANSWERS
FOR ASSISTANCE CONTACT
EMAIL:
, lOMoARcPSD|31863004
OCTOBER/NOVEMBER 2023
EXAM MEMO
SOLUTION
, lOMoARcPSD|31863004
The name attribute is PRIVATE, - access specifier in the first one and PROTECTED, # access specifier in the
second one.
PRIVATE attribute can only be accessed from within the Item class. PROTECTED attribute can be access by
any , derived class, Book and Magazine.
Yes, users should not be able to insantiate objects of the Item base class, only objects of the derived Book
and Magazine classes. “Items” are not sold in the store only “Books” and “Magazines”
, lOMoARcPSD|31863004
“^[Bk|Mg][0-3][0-9]{2}_[a-z]?[b-df-hj-np-tv-z]$”
A regular expression, because input mask cannot handle all requirements. Input mask has no equivalent of the
regex “OR” operand [Bk|Mg] and cannot process the requirement to start with Bk or Mg.
2026
QUESTIONS AND
ANSWERS
FOR ASSISTANCE CONTACT
EMAIL:
, lOMoARcPSD|31863004
OCTOBER/NOVEMBER 2023
EXAM MEMO
SOLUTION
, lOMoARcPSD|31863004
The name attribute is PRIVATE, - access specifier in the first one and PROTECTED, # access specifier in the
second one.
PRIVATE attribute can only be accessed from within the Item class. PROTECTED attribute can be access by
any , derived class, Book and Magazine.
Yes, users should not be able to insantiate objects of the Item base class, only objects of the derived Book
and Magazine classes. “Items” are not sold in the store only “Books” and “Magazines”
, lOMoARcPSD|31863004
“^[Bk|Mg][0-3][0-9]{2}_[a-z]?[b-df-hj-np-tv-z]$”
A regular expression, because input mask cannot handle all requirements. Input mask has no equivalent of the
regex “OR” operand [Bk|Mg] and cannot process the requirement to start with Bk or Mg.