Computer Science-HSSC-II 2023 (HA) Final
Computer Science-HSSC-II 2023 (HA) Final
a. Output of the
Correct output (1.5) Partially correct output (1) Irrelevant/wrong (0)
program
2 (viii) b. Conversion of
Correction conversion Partially correction
program using if- Irrelevant/wrong (0)
using if-else (1.5) conversion using if-else (1)
else
Q.# / Criteria Level 1 (Marks) Level 2(Marks) Level 3 (Marks) Level 4 (Marks) Level 5 (Marks)
Part #
2 (ix) Differences Any three correct Any two correct differences Any one correct
between break differences between (2) difference (1) Any relevant information
Irrelevant/wrong(0)
statement and break and exit() (3) (0.5)
exit() function
Output of Three correct outputs Irrelevant/wrong (0)
2(𝑥) Two correct outputs (2) One correct output (1)
program segment (3)
Purpose of Correct purpose of Partially correct purpose of Any relevant information
Irrelevant/wrong(0)
strcmp() strcmp() (2) strcmp() (1) (0.5)
2(𝑥𝑖)
Correct example of
Example Irrelevant/wrong (0)
strcmp() (1)
Usage of default Correct purpose/ usage Partially correct purpose/ Any relevant information
Irrelevant/wrong (0)
2(𝑥𝑖𝑖) argument of default argument (2) usage (1) (0.5)
Example Correct example (1) Irrelevant/wrong (0)
Definition of Inline Correct definition of Any relevant information
Irrelevant/wrong (0)
function inline function (1) (0.5)
2(xiii)
Any two correct Any one correct advantage
Advantages Irrelevant/wrong (0)
advantages (2) (1)
Differentiation
between
Partially correct differentiation
reference and Correct differentiation (2) Irrelevant/wrong (0)
(1)
2(𝑥𝑖𝑣) dereference
operator
Correct examples of Correct example of any one
Example Wrong example (0)
both operators (1) operator (0.5)
Definition of
Correct definition (2) Partially correct definition (1) Irrelevant/wrong (0)
Polymorphism
2 (xv)
Example from
Correct example (1) Irrelevant/wrong (0)
daily life
Any three correct Any one correct
Characteristics of Any two correct
2(xvi) characteristics of text characteristic (1) Irrelevant/wrong (0)
text file in C++ characteristics (2)
file (3)
Correct program code
with:
Writing a program i. Structure
to input number, ii. Variable declaration Any two
iii. Input statement Any four correct aspects Any three correct aspects Any one correct
3 (a) display table until Any five correct aspects (5) correct
iv. Use of outer loop (4) (3) aspect (1)
entered number aspects (2)
is negative v. User of inner loop
vi. Output statement
for table (6)
Q.# / Criteria Level 1 (Marks) Level 2(Marks) Level 3 (Marks) Level 4 (Marks) Level 5 (Marks)
Part #
Correct program code
with:
Program i. Declaration of class,
declaring class, ii. Member variables Any two
Any four correct aspects Any three correct aspects Any one correct
3 (b) its member iii. gets-data() Any five correct aspects (5) correct
(4) (3) aspect (1)
functions, and iv. display-average() aspects (2)
output v. Creating object
vi. Using member
function
All seven Any six Any five
Any three
Purpose of the All eight correct purposes correct correct correct Any four correct Any two correct Any one correct Irrelevant/wrong
4 (a) correct
C++ statements of C++ statements (8) purposes purposes purposes purposes (4) purposes (2) purpose (1) (0)
purposes (3)
(7) (6) (5)
Correct program code
with:
i. Variable declaration
Writing program to
& Input statement
input sentence and
ii. Use of loop Any three correct Any two correct Any one correct Any relevant Irrelevant/wrong
4 (b) display number of
aspects (3) aspects (2) aspect (1) information (0.5) (0)
words and number iii. Use of control
of letters structure
iv. Output statements
(4)
Any correct four Any correct three Any correct two Any correct one
i. Responsibilities
responsibilities of responsibilities of software responsibilities of responsibility of software Irrelevant/wrong (0)
of software tester
software tester (4) tester (3) software tester (2) tester (1)
5 (𝑎)
Any correct four Any correct three Any correct two Any correct one
ii. Responsibilities
responsibilities of responsibilities of responsibilities of responsibility of Irrelevant/wrong (0)
of programmer
programmer (4) programmer (3) programmer (2) programmer (1)
Correct program code
Program to input
with:
number, and print
i. Input statement
pattern by
ii. Function prototype Any three correct aspects Any two correct aspects Any one correct Any relevant Irrelevant/wrong
5 (b) passing
iii. Function definition (3) (2) aspect (1) information (0.5) (0)
parameter as
reference to iv. Function calling by
function reference (4)
Note: All the markers must know the solutions of all the question items of the question paper before starting
marking.