lOMoAR cPSD| 48680473
9/18/24, 11:31 PM Assessment 4: Attempt review
https://mymodules.dtls.unisa.ac.za/mod/quiz/review.php?attempt=22247261&cmid=843299 1/16
Downloaded by
, lOMoAR cPSD| 48680473
9/18/24, 11:31 PM Assessment 4: Attempt review
Question
Correct
Started on Sunday, 15 September 2024, 1:09 PM
State Finished
Completed on Wednesday, 18 September 2024, 11:30 PM
Time taken 3 days 10 hours
Marks 51.00/55.00
Grade 92.73 out of 100.00
This is a compulsory assessment. You have two (2) attempts to complete the assessment. The system will automatically upload your
attempts when the due date and time is reached. The due date is 27 September 2024, 23:00. Note that this is the last day that UNISA
will accept assessments - thus no extension can be given.
Remember, the due date is the last date for submission and not the day on which you should start with the assessment.
Work through Class 4 and Chapter 21 in the prescribed textbook, before you attempt the assessment.
There are 18 Quiz questions in this assessment.
There is no project in this assessment. Rather you will submit the project Exam Project Assessment - which will contribute to your Examination
Mark - more information will be published.
Which of the following statements is true regarding the std::stack, std::queue, and std::priority_queue containers in C++?
a. std::stack and std::queue are both FIFO (First-In-First-Out) data structures.
b. std::priority_queue always retrieves the element with the highest priority rst, regardless of insertion order.
c. std::queue allows insertion and removal of elements at both ends.
d. std::stack and std::priority_queue both follow the LIFO (Last-In-First-Out) order.
Your answer is correct.
The correct answer is:
std::priority_queue always retrieves the element with the highest priority rst, regardless of insertion order.
2
Mark 1.00 out of 1.00
https://mymodules.dtls.unisa.ac.za/mod/quiz/review.php?attempt=22247261&cmid=843299 2/16
Downloaded by Vincent kyalo ()
9/18/24, 11:31 PM Assessment 4: Attempt review
https://mymodules.dtls.unisa.ac.za/mod/quiz/review.php?attempt=22247261&cmid=843299 1/16
Downloaded by
, lOMoAR cPSD| 48680473
9/18/24, 11:31 PM Assessment 4: Attempt review
Question
Correct
Started on Sunday, 15 September 2024, 1:09 PM
State Finished
Completed on Wednesday, 18 September 2024, 11:30 PM
Time taken 3 days 10 hours
Marks 51.00/55.00
Grade 92.73 out of 100.00
This is a compulsory assessment. You have two (2) attempts to complete the assessment. The system will automatically upload your
attempts when the due date and time is reached. The due date is 27 September 2024, 23:00. Note that this is the last day that UNISA
will accept assessments - thus no extension can be given.
Remember, the due date is the last date for submission and not the day on which you should start with the assessment.
Work through Class 4 and Chapter 21 in the prescribed textbook, before you attempt the assessment.
There are 18 Quiz questions in this assessment.
There is no project in this assessment. Rather you will submit the project Exam Project Assessment - which will contribute to your Examination
Mark - more information will be published.
Which of the following statements is true regarding the std::stack, std::queue, and std::priority_queue containers in C++?
a. std::stack and std::queue are both FIFO (First-In-First-Out) data structures.
b. std::priority_queue always retrieves the element with the highest priority rst, regardless of insertion order.
c. std::queue allows insertion and removal of elements at both ends.
d. std::stack and std::priority_queue both follow the LIFO (Last-In-First-Out) order.
Your answer is correct.
The correct answer is:
std::priority_queue always retrieves the element with the highest priority rst, regardless of insertion order.
2
Mark 1.00 out of 1.00
https://mymodules.dtls.unisa.ac.za/mod/quiz/review.php?attempt=22247261&cmid=843299 2/16
Downloaded by Vincent kyalo ()