Section A-Theory (10 Marks}
Question 1
Choose True or False
[10 Marks]
No
Questions
1 The EXECUTEstatement in SQLServer is used to invoke a
stored procedure.
2 Transactions cannot be explicitly started and committed
within a stored procedure.
3 The order in which parameters are defined in a SQLServer
stored procedure must match the order in which they are
passed during the procedure call.
4 Input parameters in SQLServer stored procedures can be
modified within the procedure.
5 Triggers can be used to log information about INSERT,
UPDATE,and DELETEoperations for auditing changes to a
table.
6 The CASEstatement in SQLServer can only be used in
SELECTand WHEREclauses.
7 SQLServer supports a traditional FORloop, similar to those
found in procedural programming languages.
8 Parameters in SQLServer stored procedures can have
default values.
9 Cursors in SQLServer are used to iterate through a result set
row by row.
10 Transactions can be explicitly started and committed within
a stored procedure.
True (T}
False (F}
Section B - Practical (90 Marks}
(For this section, utilise SQLServer Management Studio (SSMS)on your computer).
Instructions: Copy and paste your final code into Notepad and save it on the exam folder on E-
Learning. Ensure that you number your code appropriately. Refer to the scenario and table
below to aid your understanding of the preceding questions.
Scenario:
You are tasked with designing and developing an application that tracks university graduates
(alumni) for the university's alumni association. This on line-based application aims to improve
the current process of tracking alumni and providing their data to the relevant college faculties.
To achieve this, you must use the following table structure to store the alumni data:
2