COMP2041 21T1 — 20T2 Exam for Practice Questions PDF

Title COMP2041 21T1 — 20T2 Exam for Practice Questions
Author 田所 李
Course Software Construction: Techniques and Tools
Institution University of New South Wales
Pages 19
File Size 647.5 KB
File Type PDF
Total Downloads 6
Total Views 138

Summary

COMP2041 21T1 — 20T2 Exam for Practice Questions...


Description

06/05/2021

COMP2041 21T1 — 20T2 Exam for Practice Questions

20T2 Exam for Practice Questi Exam Conditions You can start reading this exam at Thursday 6 May 13:20 2021 Sydney time. You can start typing at Thursday 6 May 13:30 2021 Sydney time. You have until Thursday 6 May 16:30 2021 Sydney time to complete this exam Only submissions before Thursday 6 May 16:30 2021 Sydney time will be marked Except, students with extra exam time approved by Equitable Learning Services (ELS) can make su 16:30 2021 within their approved extra time You are not permitted to communicate (email, phone, message, talk, …) with anyone during this e staff via [email protected] You are not permitted to get help from anyone but COMP(2041|9044) staff during this exam. This is a closed book exam. You are not permitted to access papers or books. You are not permitted to access files on your computer or other computers, except the files for th You are not permitted to access web pages or other internet resources, except the web pages for language cheatsheets & documentation linked below Even after you finish the exam, on the day of the exam,on the day of the exam do not communica . Some students have extended time to complete the exam. Do not place your exam work in any location, including file sharing services such as Dropbox or G person. Ensure during the exam no other person in your household can access your work. Your zpass should not be disclosed to any other person. If you have disclosed your zpass, you sho Deliberate violation of exam conditions will be referred to Student Integrity as serious mis

Exam Structure There are 12 questions on this exam. Total mark of questions on this exam is 100. Questions are NOT worth equal marks. All 12 questions are practical (programming) questions. Not all questions may have provided files, You should create any files needed for submission if th Answer each question in a SEPARATE file. Each question specifies the name of the file to use. The corresponding question number, Make sure you use EXACTLY this file name. When you finish working on a question, submit the files using the give command provided in the

06/05/2021

COMP2041 21T1 — 20T2 Exam for Practice Questions

Marking No marks are awarded for style - but use reasonable formatting so the marker can read your answ No marks awarded are awarded for commenting - but you can leave comments for the marker. Passing autotests does not guarantee marks. Your code will be run on tests you haven't seen - do Failing autotests does not prevent marks - a human marker will read your code and give marks ba problem you have solved. Your Perl will be tested with warnings enabled - if a warning indicates a bug in your code, marks m There is a hurdle requirement of 40/100 on this exam. You need an exam mark of 40+ to pass CO Exam marks may be scaled up if this is needed to achieve an appropriate mark distribution.

Troubleshooting If you are having issues working on the exam at CSE, please follow these steps If you're using VLab: try leaving VLab and reconnecting. You will likely be put on a different serv connection better. If the problem persists, try using SSH instead: instructions here or here If you're using VSCode: Try disconnecting from VSCode, then changing the URL from vscode.cse vscode2.cse.unsw.edu.au. If you're using SSH: try disconnecting and reconnecting. If the problem persists, try using vlab instead: instructions here If things continue to not work, contact the exam email: [email protected]. We will try to help you fix the problem, if we can fix the problem, we may also be able to give you If the problem can't be fixed and you can't complete the exam, you should apply for special c evidence of the problem. Take screenshots documenting the problem, for example: error messages screen not loading timestamped speed tests power outage maps messages or information from your internet provider regarding the issues experienced But you must also still get in touch with course staff via [email protected] as soon fixed,

Special Considerations This exam is covered by UNSW's Fit-to-Sit policy. That means that by sitting this exam, you are decla do so. You will be unable to apply for special consideration after the exam for circumstances affectin have questions, or you feel unable to complete the exam, contact [email protected]

Getting Started Set up for the exam by creating a new directory called exam_practice, changing to this directory, and fe running these commands:

06/05/2021

COMP2041 21T1 — 20T2 Exam for Practice Questions

$ cat enrollments.txt COMP1917|3360379|Costner, Kevin Augustus

|3978/1|M

COMP1917|3364562|Carey, Mary

|3711/1|M

COMP3311|3383025|Thorpe, Ian Augustus COMP2920|3860448|Steenburgen, Mary Nell

|3978/3|M |3978/3|F

COMP1927|3360582|Neeson, Liam

|3711/2|M

COMP3411|3863711|Klum, Heidi June Anne

|3978/3|F

COMP3141|3383025|Thorpe, Ian Augustus

|3978/3|M

COMP3891|3863711|Klum, Heidi June Anne COMP3331|3383025|Thorpe, Ian Augustus

|3978/3|F |3978/3|M

COMP2041|3860448|Steenburgen, Mary Nell

|3978/3|F

COMP2041|3360582|Neeson, Liam

|3711/2|M

COMP3311|3711611|Klum, Mary COMP3311|3371161|Thorpe, Ian Fredrick

|3978/3|F |3711/3|M

COMP3331|5122456|Wang, Wei

|3978/2|M

COMP3331|5456732|Wang, Wei

|3648/3|M

COMP4920|5456732|Wang, Wei

|3648/3|M

Note the input is unordered i.e. not sorted in anyway. You should find a copy of the above data in the file enrollments.txt. Write a shell pipeline that, given student enrollment data in this format, outputs the first name of all stu The first names should be printed one per line, and each student's first name should be printed once, n are enrolled in. But, for example, if three students have the same first name, the first name should be pr Only their first names should be printed. The names should be printed in sorted order. Put your shell pipeline in a file named ./practice_q1.sh For example, your pipeline should output this: $ ./practice_q1.sh

s?i.o; st'udae!n@t# ev$e%r^ g*o &ou(t wit)h so+meone study_ing fi[ne a] $ ./practice_q12.pl backup1_post3.txt backup2_post3.txt could a physio student ever go out with someone studying fine arts?

NOTE:

Your program should take less than 10 seconds on a CSE server per word using this dictionary. Brute force approaches that simply try all possibilities will be far too slow, and will receive few ma You can assume the original posts contain at most 128 characters You can assume that no more than 512 additional characters have been added by the backup prog Your answer must be Perl only. You are not permitted to use any Perl modules, e.g. via use or require. You may not use Shell, C, Python, or any other language. No error checking is necessary.

There are some simple automated tests for this question: $ 2041

t t

t

ti

12

06/05/2021

COMP2041 21T1 — 20T2 Exam for Practice Questions

Do not leave it to the deadline to submit your answers. Submit each question when you finish working automatically submit your code. You can check if you have made a submission with 2041 classrun -check practice_q: $ 2041 classrun -check practice_q1 $ 2041 classrun -check practice_q2 ... $ 2041 classrun -check practice_q12

Remember you have until Thursday 6 May 16:30 2021 Sydney time to complete this exam (not includ ELS conditions). Do your own testing as well as running autotest

COMP(2041|9044) 21T1: Software Construction is brought to you b the School of Computer Science and Engineering at the University of New South Wales, Sydney. For all enquiries, please email the class account at [email protected] CRICOS Provider 00098G...


Similar Free PDFs