The University of New South Wales
Term 3, 2024
COMP1521: Computer Systems Fundamentals

22T3 Final Exam (practice)

— Wednesday 27 November 2024 —
10 questions — 100 marks
10 minutes reading; 3 hours working

Examination Information

Examination Instructions and Conditions

  • You can start reading the text of this examination when instructed to do so by your invigilator.

  • You can start working on examination questions when instructed to do so by your invigilator.

  • You must stop working on examination questions immediately when instructed to do so by your invigilator.

  • Only submissions made before this time will be marked.

    For students with approved examination extensions from UNSW Equitable Learning Services,
    You should continue working until your extended working time expires.

    Your invigilator will tell you when this time expires.

  • You must not communicate with any person during the examination
    except for COMP1521 Course Staff and Exam Invigilators.

  • You are not permitted to talk, email, telephone, message , etc. all
    except to COMP1521 Course Staff and Exam Invigilators.

  • You must not get help from anyone during this exam,
    except from COMP1521 Course Staff and Exam Invigilators.

  • You must not communicate (email, message, post, ...) your exam answers to anyone, even after the exam has finished.

    There are two sessions, so other students may still be taking the exam after you have finished.

    Additionally Some students have extended time to complete the exam.

    And some students may be taking the exam on a different day.

  • Communicating your answers to other students, even after the exam, may be academic misconduct.

  • You must ensure that, during and after the examination, no other person can access your work.

  • You must not use code-synthesis tools, such as GitHub Copilot, during this exam.

  • Your zPass should not be disclosed to any other person. If you have disclosed your zPass, you should change it immediately.

  • This is a closed-book examination.

  • You are not permitted to access papers, books, or any other written materials.

  • You are not permitted to access files on your computer or other computers, except the files provided by the exam.

  • You are not permitted to access web pages or other Internet resources, except the web pages provided by the exam, and the online language documentation linked below.

Deliberate violation of exam conditions is academic misconduct,
and will be referred to the UNSW Student Conduct and Integrity Unit.

Examination Structure

  • This examination has 10 questions,
    worth a total of 100 marks.
    Questions are worth equal marks.

  • All 10 questions are practical questions.

  • Not all questions may provide files. You should create any files needed for submission if they are not provided.

  • You must answer each question in a separate file. Each question specifies the name of the file to use. Make sure you use exactly this file name.

  • When you finish working on a question, you should submit your files using the give command specified in the question. You should not wait until the submission deadline to submit your answers. Running autotests does not automatically submit your code.

  • You do not receive additional time for submitting your answers.

    You must submit all questions before the end of the 3 hour exam period.

    Failing to logout immediately at the end of the exam period is academic misconduct.

  • You may submit as many times as you like; only the last submission will be marked.

  • You can verify what submissions you have made with 1521 classrun -check

Available Resources: Language Documentation

You may access this language documentation while attempting this test:

Troubleshooting

If you are having issues working on the exam:

  • Immediately inform your invigilator.

Fit-to-Sit

This exam is covered by UNSW's Fit-to-Sit policy. That means that, by sitting this exam, you are declaring yourself well enough to do so. You will be unable to apply for special consideration after the exam for circumstances affecting you before it began.

Getting Started

All provided files for this exam are located in your home directory.

simply open a terminal or text editor in your home directory and you will be able to access all the files.

If you make a mistake and need a new copy of a particular file, you can do the following:

rm broken-file
1521 fetch exam_22t3final

Only files that don't exist will be recreated. All other files will remain untouched.

Question 1 (10 marks)

INTERNAL ERROR MISSING SOURCE FILE: activities/22t3final_q1/index.html

When you think your program is working, you can run some simple automated tests:

1521 autotest 22t3final_q1

When you are finished working on this activity, you must submit your work by running give:

give cs1521 22t3final_q1 22t3final_q1.c

To verify your submissions for this activity:

1521 classrun -check 22t3final_q1

Question 2 (10 marks)

INTERNAL ERROR MISSING SOURCE FILE: activities/22t3final_q2/index.html

When you think your program is working, you can run some simple automated tests:

1521 autotest 22t3final_q2

When you are finished working on this activity, you must submit your work by running give:

give cs1521 22t3final_q2 22t3final_q2.s

To verify your submissions for this activity:

1521 classrun -check 22t3final_q2

Question 3 (10 marks)

INTERNAL ERROR MISSING SOURCE FILE: activities/22t3final_q3/index.html

When you think your program is working, you can run some simple automated tests:

1521 autotest 22t3final_q3

When you are finished working on this activity, you must submit your work by running give:

give cs1521 22t3final_q3 22t3final_q3.s

To verify your submissions for this activity:

1521 classrun -check 22t3final_q3

Question 4 (10 marks)

INTERNAL ERROR MISSING SOURCE FILE: activities/22t3final_q4/index.html

When you think your program is working, you can run some simple automated tests:

1521 autotest 22t3final_q4

When you are finished working on this activity, you must submit your work by running give:

give cs1521 22t3final_q4 22t3final_q4.c

To verify your submissions for this activity:

1521 classrun -check 22t3final_q4

Question 5 (10 marks)

INTERNAL ERROR MISSING SOURCE FILE: activities/22t3final_q5/index.html

When you think your program is working, you can run some simple automated tests:

1521 autotest 22t3final_q5

When you are finished working on this activity, you must submit your work by running give:

give cs1521 22t3final_q5 22t3final_q5.s

To verify your submissions for this activity:

1521 classrun -check 22t3final_q5

Question 6 (10 marks)

INTERNAL ERROR MISSING SOURCE FILE: activities/22t3final_q6/index.html

When you think your program is working, you can run some simple automated tests:

1521 autotest 22t3final_q6

When you are finished working on this activity, you must submit your work by running give:

give cs1521 22t3final_q6 22t3final_q6.c

To verify your submissions for this activity:

1521 classrun -check 22t3final_q6

Question 7 (10 marks)

INTERNAL ERROR MISSING SOURCE FILE: activities/22t3final_q7/index.html

When you think your program is working, you can run some simple automated tests:

1521 autotest 22t3final_q7

When you are finished working on this activity, you must submit your work by running give:

give cs1521 22t3final_q7 22t3final_q7.c

To verify your submissions for this activity:

1521 classrun -check 22t3final_q7

Question 8 (10 marks)

INTERNAL ERROR MISSING SOURCE FILE: activities/22t3final_q8/index.html

When you think your program is working, you can run some simple automated tests:

1521 autotest 22t3final_q8

When you are finished working on this activity, you must submit your work by running give:

give cs1521 22t3final_q8 22t3final_q8.s

To verify your submissions for this activity:

1521 classrun -check 22t3final_q8

Question 9 (10 marks)

INTERNAL ERROR MISSING SOURCE FILE: activities/22t3final_q9/index.html

When you think your program is working, you can run some simple automated tests:

1521 autotest 22t3final_q9

When you are finished working on this activity, you must submit your work by running give:

give cs1521 22t3final_q9 22t3final_q9.c

To verify your submissions for this activity:

1521 classrun -check 22t3final_q9

Question 10 (10 marks)

INTERNAL ERROR MISSING SOURCE FILE: activities/22t3final_q10/index.html

When you think your program is working, you can run some simple automated tests:

1521 autotest 22t3final_q10

When you are finished working on this activity, you must submit your work by running give:

give cs1521 22t3final_q10 22t3final_q10.s

To verify your submissions for this activity:

1521 classrun -check 22t3final_q10

Submission

When you are finished working on a question, submit your work by running give.

You can run give multiple times. Only your last submission will be marked.

Don't submit any questions you haven't attempted.

Do not leave it to the deadline to submit your answers.

Submit each question when you finish working on it.

Running autotests does not automatically submit your code.

— End of examination. —