SSC-II Computer Science (2nd Set)
SSC-II Computer Science (2nd Set)
ROLL NUMBER
⓪ ⓪ ⓪ ⓪ ⓪ ⓪ ⓪ ⓪ ⓪ ⓪ ⓪
① ① ① ① ① ① ① ① ① ① ①
② ② ② ② ② ② ② ② ② ② ②
Answer Sheet No.____________
③ ③ ③ ③ ③ ③ ③ ③ ③ ③ ③
④ ④ ④ ④ ④ ④ ④ ④ ④ ④ ④
⑤ ⑤ ⑤ ⑤ ⑤ ⑤ ⑤ ⑤ ⑤ ⑤ ⑤ Sign. of Candidate ___________
⑥ ⑥ ⑥ ⑥ ⑥ ⑥ ⑥ ⑥ ⑥ ⑥ ⑥
⑦ ⑦ ⑦ ⑦ ⑦ ⑦ ⑦ ⑦ ⑦ ⑦ ⑦
Sign. of Invigilator ___________
⑧ ⑧ ⑧ ⑧ ⑧ ⑧ ⑧ ⑧ ⑧ ⑧ ⑧
⑨ ⑨ ⑨ ⑨ ⑨ ⑨ ⑨ ⑨ ⑨ ⑨ ⑨
Section – A is compulsory. All parts of this section are to be answered on this page and handed
over to the Centre Superintendent. Deleting/overwriting is not allowed. Do not use lead pencil.
Q.1 Fill the relevant bubble for each part. Each part carries one mark.
(1) Which symbol is used to obtain the total marks from the values given by users, in
the flow chart development?
A. Rectangle ⃝ B. Parallelogram ⃝
C. Diamond ⃝ D. Oval ⃝
(2) Which one of the following problem-solving stage refers to dividing the solution
into steps and arranging in order to solve the problem?
A. Planning ⃝ B. Analyzing ⃝
C. Defining ⃝ D. Selecting ⃝
(3) Which of the software examines the values stored in variables and help in finding
and removing the errors?
A. Loader ⃝ B. Linker ⃝
C. Editor ⃝ D. Debugger ⃝
(4) What is the range of numbers that can be stored in a variable of type float?
A 10-38 - 1038 ⃝ B. 10-308 - 10308 ⃝
C. 10 – 10
38 38
⃝ D. -38
10 - 10 32
⃝
(5) Which symbol with the variable, refers to the memory location in scanf()
function:
A. # ⃝ B. $ ⃝
C. % ⃝ D. & ⃝
(6) What is the value of “z” after evaluating the given expression where a = 5, b = 3?
z = b / 2 + b * 4 / b && b < a + a / 3
A. 5 ⃝ B. 0 ⃝
C. 1 ⃝ D. 6 ⃝
(7) What is the value of “z” after evaluating the given expression where x=10, y=3?
z = 4*++x ||--y<x%2&&x+y
A. 41 ⃝ B. 0 ⃝
C. 1 ⃝ D. 40 ⃝
Page 1 of 2
(8) What is the output of the following codes where a=1 and b= 5?
if (a-b<6)
printf(“%d”, a);
else
printf(“%d”, b);
printf(“%d”, a+b);
A. 1 ⃝ B. 5 ⃝
C. 15 ⃝ D. 16 ⃝
(9) Which one of the following is a valid statement for “For loop”?
A. for(;;) ⃝ B. for(int I =1; ;) ⃝
C. for(; ;k++) ⃝ D. All of these ⃝
(11) A computer that makes the web pages available through the internet is called:
A. website ⃝ B. web-server ⃝
C. web-browser ⃝ D. web-link ⃝
(12) Which part of the web address tell the server type of file is being requested?
A. www ⃝ B. http:// ⃝
C. .html ⃝ D. URL ⃝
______________
Page 2 of 2
Federal Board SSC-II Examination
Computer Science Model Question Paper
(Curriculum 2009)
xi. Differentiate between ordered list and unordered list used in HTML. (3)
xii. Define the following terms: (1+1+1)
a. Web-Hosting b. Web-Server c. Hyper-Link
xiii. Differentiate between Frame and Frame set by giving one example used in
HTML. (3)
Q.3 Write a C program to input electricity unit charge and calculate the total electricity bill
according to the given condition: (5+3)
For first 50 units Rs. 0.50/unit
For next 100 units Rs. 0.75/unit
Page 1 of 2
For next 100 units Rs. 1.20/unit
For unit above 250 Rs. 1.50/unit
An additional surcharge of 20% is added to the bill.
Also justify your selection of conditional control structure.
Q.4 Write a program that read a number and prints its power (take it from user) if it is a prime
number otherwise print its factorial by using any control structure. (8)
Q.5 a. Briefly describe NOR and Exclusive NOR(XNOR) logic gate with circuit
diagram and truth table. (4)
b. Define Karnaugh Map(K-Map) also write the simplification rules for three
variable Karnaugh Map. (4)
*****
Page 2 of 2
COMPUTER SCIENCE SSC-II (2nd Set)
(Curriculum 2009)
Student Learning Outcomes Alignment Chart
**Cognitive Level
K: Knowledge U: Understanding A: Application
COMPUTER SCIENCE SSC-II (2nd Set)
Table of Specification
UNIT 1 Unit 2: ROGRAMMING Unit 3: INPUT / Unit 4: Unit 5: LOOP Unit 6: Unit 7: Cognitive
PROGRAMMING IN C 10% OUTPUT CONTROL STRUCTURE COMPUTER WORLD level Total
Assessment TECHNIQUES 10% HANDLINGC++ STRUCTURE 15% LOGIC AND WIDE WEB
Cognitive
marks: 75
Cognitive
Objectives level Marks level %
15% 15% GATES15% AND HTML
20%
Section A 1-ii-(01) 1-iii-(01) 1-v-(01) 1-xi-(01)
05
Knowledge
1-iv-(01)
Section B 2-i-(03) 2-iii-(03) 2-xii-(03) 22 29.3%
09
Section C 5(08) 08
Section A 1-i-(01) 1-vi-(01) 1-viii-(01) 1-x-(01) 1-xii-(01)
1-vii-(01) 1-ix-(01)
Understanding
07
Section B 2-ix-(03) -
16 21.3%
Section C 3(05) 4(08)
16
Total marks 8 8 12 12 12 12 11 75 100%