Computer Science Ssc-Ii: Answer Sheet No.
Computer Science Ssc-Ii: Answer Sheet No.
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) What is the output of following code?
int a = 15;
float s = 5.50;
printf (“%f”, a/s);
A. 2 ⃝ B. 2.72 ⃝
C. 3 ⃝ D. 5 ⃝
(2) Which one of the following symbols is used in flow chart for the statement
“Marks<33”?
A. ⃝ B. ⃝
C. ⃝ D. ⃝
(3) Which one of the following functions is used to read string “Computer Science”?
A. scanf( ) ⃝ B. gets( ) ⃝
C. getchar( ) ⃝ D. getch( ) ⃝
(5) Which escape sequence can be used to insert a Tab in “C” Language?
A. \a ⃝ B. \b ⃝
C. \t ⃝ D. \n ⃝
(6) Which one of the following is the most suitable for making two ways decision?
A. if statement ⃝ B. if-else statement ⃝
C. switch statement ⃝ D. Nested-if statement ⃝
Page 1 of 2
(7) How many times “FBISE” will be displayed by the following code?
for (int i=1; i<10; i=+2)
printf (“FBISE”);
A. 1 ⃝ B. 5 ⃝
C. Infinite ⃝ D. The loop will not run. ⃝
B. i =1 ⃝
i =2
C. i =1 ⃝
i =3
D. i =2 ⃝
i =1
(10) When the input to an inverter is LOW(0) the output will be:
A. HIGH or 0 ⃝ B. LOW or 0 ⃝
C. HIGH or 1 ⃝ D. LOW or 1 ⃝
(12) Which one of the following is correct HTML statements to divide browser
window into 3 columns?
A. <fram col = 30%, 30%, 40%> ⃝
B. <framset col = 30%, 30%, 40%> ⃝
C. <framset col 30%, 30%, 40%> ⃝
D. <fram row = 30%, 30%, 40%> ⃝
____________________
Page 2 of 2
Federal Board SSC-II Examination
Computer Science Model Question Paper
(Curriculum 2009)
Page 1 of 2
xii. Write down the three benefits of web portal.
xiii. Use appropriate text formatting tags to define the following. Write one example
of each.
a. font size b. font colour c. font face
Q.5 i. Rewrite the following code after removing the errors: (4)
# include < std.h>
# include < conio.h>
void main ( );
{
int p, s;
printf(“\n Enter a number:);
scanf(“%d”, p);
s=p%2;
if(s=0)
printf(“even number%d”, p)
els
printf(“odd number%d”, p);
getch( );
ii. Convert the following program using switch statement: (4)
void main( )
{ char ch; clrscr( );
printf(“Enter a single character”);
scanf(“%c”, &ch);
if ( ch = = ‘a’ || ch = = ‘A’ ||
ch = = ‘e’ || ch = = ‘E’ ||
ch = = ‘i’ || ch = = ‘I’ ||
ch = = ‘o’ || ch = = ‘O’ ||
ch = = ‘u’ || ch = = ‘U’)
printf(“It is a vowel”);
else printf(“It is a consonant”); }
*****
Page 2 of 2
COMPUTER SCIENCE SSC-II
(Curriculum 2009)
Student Learning Outcomes
5 A: 1(v) 3.1 Input / Output vi) Explain the use of the following escape K 1
functions sequences using programming examples: •
Alert - \a • Backspace – \b • Newline – \n •
Carrage Return – \r • Tab – \t
6 A: 1(vi) 4.1 Control vi) Use if-else statement K 1
Structure
7 A: 1(vii) 5.1 Loop ii) Know that for loop structure is A 1
Structure composed of: • For • Initialization
expression • Test expression • Body of the
loop • Increment / decrement expression
8 A: 1(viii) 5.1 Loop Structure ii) Know that for loop structure is U 1
composed of: • For • Initialization
expression • Test expression • Body of the
loop • Increment / decrement expression
9 A: 1(ix) 6.2 Logic Gates iv) Explain the following logic gates U 1
with the help of truth tables:
• AND • OR • NAND • NOR • NOT
10 A: 1(x) 6.2 Logic Gates iv) Explain the following logic gates K 1
with the help of truth tables:
NOT
**Cognitive Level
K: Knowledge
U: Understanding
A: Application
COMPUTER SCIENCE SSC-II
Table of Specifications
Unit 1: Unit 2: Unit 3: Unit 4: Unit 5: Unit 6: Unit 7: World Total
Programmi Program Input / Control Loop Computer Wide Web and marks
%
ng ming in C Output Structur Structure Logic and HTML(Major part (55
15% Mark Theory Covere
Assessment Objectives Technique Handling e Gates cover in Practical)
s + 25 d
s
10% 10% 15% 15% 15% 20% Practical)
100%
Section - A 1(5)(01) 1(6)(01) 1(10)(01) 03
Knowledge Section - B 2(i)(03) 2(iii)(03) 2(v)(03) 2(vi)(03) 2(xiii)(03)
15 22 29.3%
based
Section - C 3-(04) 04
Section - A 1(2)(01) 1(1)(01) 1(8)(01) 1(9)(01) 1(11)(01)
1(3)(01) 1(12)(01) 08
Understanding 1(4)(01)
based Section - B 2(ii)(03) 2(vii)(03) 2(ix)(03) 2(x)(03) 2(xii)(03) 18 50.7%
2(xi)(03) 38
* Unit 7: Major content will examine in Practical paper. 10% covered in Theory paper and remaining will cover in Practical paper.
Hence weightage distributed to other units.
KEY: 1(1)(01)
Question No (Part No.) (Allocated Marks)