HSSC-II Computer Science (2nd Set)
HSSC-II Computer Science (2nd Set)
ROLL NUMBER
⓪ ⓪ ⓪ ⓪ ⓪ ⓪ ⓪ ⓪ ⓪ ⓪ ⓪
① ① ① ① ① ① ① ① ① ① ①
② ② ② ② ② ② ② ② ② ② ②
③ ③ ③ ③ ③ ③ ③ ③ ③ ③ ③ Answer Sheet No.___________
④ ④ ④ ④ ④ ④ ④ ④ ④ ④ ④
⑤ ⑤ ⑤ ⑤ ⑤ ⑤ ⑤ ⑤ ⑤ ⑤ ⑤
Sign. of Candidate __________
⑥ ⑥ ⑥ ⑥ ⑥ ⑥ ⑥ ⑥ ⑥ ⑥ ⑥
⑦ ⑦ ⑦ ⑦ ⑦ ⑦ ⑦ ⑦ ⑦ ⑦ ⑦
⑧ ⑧ ⑧ ⑧ ⑧ ⑧ ⑧ ⑧ ⑧ ⑧ ⑧
Sign. of Invigilator __________
⑨ ⑨ ⑨ ⑨ ⑨ ⑨ ⑨ ⑨ ⑨ ⑨ ⑨
A. 11 ⃝ B. 16 ⃝
C. 1 6 11 ⃝ D. Infinite iterations ⃝
Page1of 2
(7) In the following array definition, what value is stored in number [4]?
int number [5] = { 1, 2, 3 };
A. 0 ⃝ B. 1 ⃝
C. 2 ⃝ D. 3 ⃝
A. Five ⃝ B. Six ⃝
C. FiveSix ⃝ D. Compile time error ⃝
(9) Which one of the following is a valid declaration, if a string needs to be store
10 characters?
A. char S[0] ⃝ B. char S [10] ⃝
C. char S [11] ⃝ D. char S [12] ⃝
(12) Which one of the following pointer hold address of any type and can be type-
casted to any datatype:
A. Data ⃝ B. Void ⃝
C. NULL ⃝ D. Function ⃝
(15) Which one of the following is used to open a file for writing and move the
read/write control to the end?
A. ios::ate ⃝ B. ios::in ⃝
C. ios::app ⃝ D. ios::out ⃝
___________
Page 2of 2
Federal Board HSSC-II Examination
Computer Science Model Question Paper
(Curriculum 2009)
SECTION–C(Marks24)
Note: Attempt any THREE questions. All questions carry equal marks. (38= 24)
Q.4 a. Write down four responsibilities of any two personnel involved in System
Development Life Cycle. (2+2)
b. Explain two-dimensional array.Initialize two-dimensional arraysof two different
data types. (2+2)
Q.5 Write a program that computes and displays the charges of a patient stay in hospital.
(3+3+2)
The program should ask if the patient was admitted as an in-door patient or an out-door
patient.
• If the patient was an in-door patient, the following data should be entered:
• The number of days spent in the hospital
• The daily rate
• Hospital medication charges
• Charges for hospital services (lab tests, etc.)
Page of 2 of 3
• If the patient was an out-door patient the following data should be entered:
• Charges for hospital services (lab tests, etc.)
• Hospital medication charges
The program should use two overloaded functions to calculate the total charges. One of
the functions should accept arguments for the in-door patient data, while the other
function accepts arguments for out-door patient information. Both functions should return
the total charges to the main function.
*****
Page3of 3
COMPUTERSCIENCE HSSC-II (2nd Set)
Student Learning Outcomes Alignment Chart
(Curriculum 2009)
**CognitiveLevel
K:Knowledge
U: Understanding
A:Application
COMPUTER SCIENCE HSSC-II (2nd Set)
Table of Specification
Unit 1: Unit 2: Unit 3: Unit 4: Unit 5: Unit 6: Unit 7: Unit 8: Unit 9: Cogn
Opera- System Object Control Arrays and Function Pointers Objects File Cogniti itive
ting Develop- Oriented Structure Strings s 5% and Handling Cogniti
Assessment ve level
System ment Life Programmi 15% 15% 15% Classes 10% ve level
Objectives level Total
10% Cycle ng Using 10% %
Marks mark
10% C++ 10%
s: 95
Section 1-v-(01) 1-xi-(01) 1-xiv-(01)
A 4
Knowledge
1-iv-(01)
Section 2-ii-(03) 2-iii-(01) 2-ix-(01) 2-xvi-(03) 30 31.6
B 12
2-x-(01) 2-xiv-(03)
Section 3(04) 4(04) 4(02) 6(04)
C
14
Section 1-iii-(01) 1-i-(01) 1-vii-(01) 1-x-(01) 1-xii-(01) 1-xiii-(01) 1-xv-(01)
A 1-ii-(01) 1-ix-(01) 9
Understanding
A 1-viii-(01)
Section 2-viii-(03) 2-xi-(03)
B
6 20 21.1
Section 5(08) 6(04)
C 12
Total marks 8 9 12 14 13 15 4 12 8 95 100
KEY: 1-i-(01) Q.No - Part No - (Allocated Marks)
Note: (i) The policy of FBISE for knowledge based questions, understanding based questions and application based questions is approximately 30%
knowledge based,50% understanding based, 20% application based.
(ii) The total marks specified for each unit/content in the table of specification is only related to this model question paper.
(iii) The level of difficulty of the paper is approximately 40% easy, 40% moderate, 20% difficult