College of Computing and Informatics
Assignment 2
[Total Mark for this Assignment is 10]
Student Details:
Name: ###
ID: ###
CRN: ###
Instructions:
• You must submit two separate copies (one Word file and one PDF file) using the Assignment Template on
Blackboard via the allocated folder. These files must not be in compressed format.
• It is your responsibility to check and make sure that you have uploaded both the correct files.
• Zero mark will be given if you try to bypass the SafeAssign (e.g. misspell words, remove spaces between
words, hide characters, use different character sets, convert text into image or languages other than English
or any kind of manipulation).
• Email submission will not be accepted.
• You are advised to make your work clear and well-presented. This includes filling your information on the cover
page.
• You must use this template, failing which will result in zero mark.
• You MUST show all your work, and text must not be converted into an image, unless specified otherwise by
the question.
• Late submission will result in ZERO mark.
• The work should be your own, copying from students or other resources will result in ZERO mark.
• Use Times New Roman font for all your answers.
Question One
Pg. 01
Learning
Outcome(s):
Question One
Describe the
Define static, fixed stack-dynamic, stack-dynamic, fixed heap-dynamic, and
heap-dynamic arrays. What are the advantages of each?
syntactic structure
of a program and
the semantics of a
programming
language.
2.5 Marks
Question Two
Pg. 02
Learning
Outcome(s):
Describe the
syntactic structure
of a program and
the semantics of a
programming
language.
Question Two
2.5 Marks
What is the purpose of a List? Give example of a List in any language. How is
it created and used?
Question Three
Pg. 03
Learning
Outcome(s):
Question Three
Discuss operator precedence and operator associativity.
Discuss the
fundamental
concepts in
programming
languages.
2.5 Marks
Question Four
Pg. 04
Learning
Outcome(s):
Ability to define
which programs
are well-typed
and which are
not.
Question Four
Explain short circuit evaluation in programming with example.
2.5 Marks