Quiz-1
(Time allowed: 60 mins)
NOTES AND INSTRUCTIONS:
• Submit a PDF document containing your acknowledgement to instructions and answers to the fol-
lowing questions.
• You are expected to hand-write or type your answers in the space provided for each answer
in the quiz script. However, you may format your document as you choose (e.g. using a Word
document file, and saving it as PDF), but if you do that it would be preferred that you present your
answers in the same order as in this quiz, and that you begin each question on a new page (sub-
questions do not have to begin on a new page).
• Answer ALL FIVE questions for a total of 60 marks.
• Often code is formatted oddly, is omitted in parts (wherever specified) or unhelpful identifiers are
used in order to fit within the space constraints of the question.
• This is an open book quiz. This means you may search for and view any material available to you,
but you may not directly use that material in your answer unless it is from this course. You
definitely cannot copy and paste such material into your answer. You may not even use the same
example (unless it is an example used in the course). It is acceptable to use material you find as
inspiration for your answer.
• During the quiz, you may not discuss any aspect of the quiz with anyone other than the In-
structor Paramvir Singh. You may contact him via email at p.singh@auckland.ac.nz during the
quiz period.
• Your answers will be assessed according to the degree of understanding they display of the course
content. Minor syntactic errors in code (or even missing code) are acceptable so long as your intent
is clear. However, note that too many errors (including spelling and grammatical errors) or too much
irrelevant material may make it difficult to determine your intent.
• When asked for a picture, it is strongly recommended you hand-draw it, take a photo of it or scan it
(if you use a paper), and insert it in your document, rather than using some drawing tool (because
that will take longer).
CONTINUED
, –2– COMPSCI 331
NOTES AND INSTRUCTIONS:
If you are using this script to directly write your answers:
• Fill in your details below:
NAME:
STUDENT ID:
UPI(username):
• Acknowledge the declaration statement below by ticking the checkbox:
2 From the start of this quiz until 11:59pm 8 April 2022, I confirm that I will not discuss the content
of the quiz with anyone else. I will not give any assistance to another student taking this quiz. I will
not receive any assistance from any person or tutoring service. I will not copy my answer from any
source other than my own notes, course material, or this quiz.
• From the next page, start writing your answers in the space provided for each question.
If you are using a separate document (e.g. MS Word doc) to write your answers:
• Start your answers document with your Name, your Student ID number, and your Username.
• Following your details, insert the following statement.
From the start of this quiz until 11:59pm 8 April 2022, I confirm that I will not discuss the content
of the quiz with anyone else. I will not give any assistance to another student taking this quiz. I will
not receive any assistance from any person or tutoring service. I will not copy my answer from any
source other than my own notes, course material, or this quiz.
• Following the statement, write your answers to the questions, clearly identifying the question to
which the answer applies. The most appropriate way of identifying each question is to write the
question number of each question or sub-question carefully before beginning to answer it.
CONTINUED
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller FreeDocument. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $15.49. You're not tied to anything after your purchase.