CMP4011 T2 PORT1 Main 2023-24
CMP4011 T2 PORT1 Main 2023-24
Assessment
Brief
2023-2024 T2
iahmed@cardiffmet.ac.uk
Content
Assessment Details ..................................................... 2
Submission Details ...................................................... 4
Assessment Criteria .................................................... 5
Assessment Details
Assessment title Abr. Weighting
Pass marks are 40% for undergraduate work and 50% for postgraduate work unless stated otherwise.
1. [6 Marks] Convert the following decimal numbers into binary and hexadecimal numbers. The
answers should also include all the necessary steps. 222, 721, 1345, 1620, 1339
2. [6 Marks] Critically differentiate between monolithic and layered architectures. Draw the block
diagram of each and discuss advantages and disadvantages of each.
3. [ 6 Marks] Generate the truth table for the expression ¬(A ∨ B) ∧ (¬C ∨ D)
4. [ 6 Marks] What are the differences between kernel and shell in an operating system. Write the
main functions of each.
5. [6 Marks] Write a C++ program that randomly stores 100 numbers in an array and then print the
address and value of each item in the array. The program should use the concepts of
Functions, References and Pointers.
6. [10 Marks] Consider the below table for FCFS, SJF, Priority and Round Robin (RR) techniques.
The time quantum for RR is 4.
2
7. [10 Marks] Consider the following set of three interacting processes that can access three
shared semaphores: semaphore U = 3; semaphore V = −1, semaphore W = −1. Answer the
below questions
a. What is the maximum number of C’s are printed when all processes runs? Provide an
explanation of your answer. [3]
b. What is the maximum number of B’s that might be printed when this set of processes
runs? Provide an explanation of your answer [3]
c. What is the maximum number of D’s that might be printed when this set of processes
runs? Provide an explanation of your answer [4]
10. [3+3+4= 10 Marks] Given fixed memory partitions (as shown in below table), how would you
place five processes say P1, P2, P3, P4 and P5 of sizes 100K, 10K, 35K, 15K and 23K
respectively, by using first-fit, best-fit and worst-fit algorithms?
11. [10 Marks] Discuss the architectural differences between Linux and Windows Operating
System.
This a reflection of the effort required for the assessment. Word counts will normally include any text,
tables, calculations, figures, subtitles and citations. Reference lists and contents of appendices are
excluded from the word count. Contents of appendices are not usually considered when determining
your final assessment grade.
3
Submission Details
Submission Estimated This will normally be 20
Deadline: 07-05-2024 Feedback working days after initial
Return Date submission.
Moodle/Turnitin: Any assessments submitted after the deadline will not be marked and will be
recorded as a non-attempt unless you have had an extension request
agreed or have approved mitigating circumstances. See the School Moodle
pages for more information on extensions and mitigating circumstances.
Feedback Feedback for the assessment will be provided electronically via Moodle. Feedback
will be provided with comments on your strengths and the areas which you can
improve. View the guidance on how to access your feedback.
All marks are provisional and are subject to quality assurance processes and
confirmation at the programme Examination Board.
4
Assessment Criteria
5
Marking/Assessment Criteria