0% found this document useful (0 votes)
348 views

Computer Science Ssc-Ii: Answer Sheet No.

This document contains a model question paper for the Federal Board SSC-II Examination in Computer Science. It has three sections: Section A contains 12 multiple choice questions, Section B contains 9 short answer questions, and Section C contains 2 long answer questions requiring explanations and code writing. The paper tests students' knowledge of computer science concepts like algorithms, variables, loops, operators, Boolean logic, and HTML. It aims to evaluate students' understanding of programming fundamentals in C language.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
348 views

Computer Science Ssc-Ii: Answer Sheet No.

This document contains a model question paper for the Federal Board SSC-II Examination in Computer Science. It has three sections: Section A contains 12 multiple choice questions, Section B contains 9 short answer questions, and Section C contains 2 long answer questions requiring explanations and code writing. The paper tests students' knowledge of computer science concepts like algorithms, variables, loops, operators, Boolean logic, and HTML. It aims to evaluate students' understanding of programming fundamentals in C language.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Version No.

ROLL NUMBER


⓪ ⓪ ⓪ ⓪ ⓪ ⓪ ⓪ ⓪ ⓪ ⓪ ⓪
① ① ① ① ① ① ① ① ① ① ①
② ② ② ② ② ② ② ② ② ② ②
Answer Sheet No.____________
③ ③ ③ ③ ③ ③ ③ ③ ③ ③ ③
④ ④ ④ ④ ④ ④ ④ ④ ④ ④ ④
⑤ ⑤ ⑤ ⑤ ⑤ ⑤ ⑤ ⑤ ⑤ ⑤ ⑤ Sign. of Candidate ___________
⑥ ⑥ ⑥ ⑥ ⑥ ⑥ ⑥ ⑥ ⑥ ⑥ ⑥
⑦ ⑦ ⑦ ⑦ ⑦ ⑦ ⑦ ⑦ ⑦ ⑦ ⑦
Sign. of Invigilator ___________
⑧ ⑧ ⑧ ⑧ ⑧ ⑧ ⑧ ⑧ ⑧ ⑧ ⑧
⑨ ⑨ ⑨ ⑨ ⑨ ⑨ ⑨ ⑨ ⑨ ⑨ ⑨

COMPUTER SCIENCE SSC–II


SECTION – A (Marks 12)
Time allowed: 15 Minutes

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( ) ⃝

(4) Which statement is equivalent to “j = j + a;” ?


A. j+=a; ⃝ B. j=+a; ⃝
C. j++a; ⃝ D. j=a++; ⃝

(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. ⃝

(8) What is the output of the following code?


int i ;
for(i=1;i<=2;i++)
printf (“\n i=%d”, i);
A. i=2 ⃝
i =3

B. i =1 ⃝
i =2

C. i =1 ⃝
i =3

D. i =2 ⃝
i =1

(9) Which one of the following gates has an output = A.B?


A. NAND ⃝ B. NOR ⃝
C. OR ⃝ D. AND ⃝

(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 ⃝

(11) What is the output of following HTML code?


<ol>
<li> Magnetic Disk </li>
<li> CD and DVD </li>
</ol>
A.  Magnetic Disk ⃝ B. 1. Magnetic Disk ⃝
 CD and DVD 2. CD and DVD
C. 1. Magnetic Disk ⃝ D. Magnetic Disk ⃝
o CD and DVD CD and DVD

(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)

Time allowed: 2.45 hours Total Marks: 43


Note: Answer any nine parts from Section ‘B’ and attempt any two questions from Section ‘C’
on the separately provided answer book. Write your answers neatly and legibly.

SECTION – B (Marks 27)


Q.2 Attempt any NINE parts from the following. All parts carry equal marks. (9  3 = 27)
i. Define algorithm. What is the role of algorithm in problem solving?
ii. Point out valid and invalid variable names.
a. define b. 5name c. a5
d US$ e. a_b f. f name
iii. Write down any three characteristics of High Level Language.
iv. Evaluate each of the following expression assuming, a = 2, z = 1.3, c = 1 and d = 3:
a. b = d/a + d % a; b. x = (a + c)/(z + 0.3); c. y = c / d * a;
v. Write down the names and purpose of any three format specifiers.
vi. Define the following.
i. Control Statement ii. Conditional Statement
vii. Compare an assignment operator (=) and an equal to (= =) operator by giving an
example.
viii. Write a program using while loop to print odd numbers from 1 to 20.
ix. What will be the output of the following code?
void main( )
{
int u, i;
for (u = 1; u< = 5; u++)
{
for (i = 1; i < = u; i++)
{
printf(“%d \t”, i);
}
printf(“\n”);
}
}
x. Construct Truth Table for the following Boolean Expression:
F  x y z  x yz  x y
xi. Convert the following code into for loop:
int sum = 0, num= 0;
do {
sum = sum + num;
printf (“Enter an integer value”);
scanf(“%d”, &num);
}
while (num > = 0 && num < = 15);

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

SECTION – C (Marks 16)


Note: Attempt any TWO questions. (8  2 = 16)

Q.3 i. Draw a flowchart to calculate the exponent of a given number. (4)


ii. Explain any four modules of C programming environment. (4)

Q.4 Simplify the Boolean Function F, using Karnaugh Mapping (K-map).


F  xyz  xy z  x y z  x y z  x yz  x y z
Also construct logic circuit for the simplified expression. (4+4)

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

Sr Section: Contents and Student Learning Outcomes * Cognitive Allocated


No Q. No. Scope Level ** Marks in
(Part no.) Model
Paper
1 A: 1(i) 3.1 iii) Use output functions like: • printf ( ) U 1
Input / Output
functions
2 A:1(ii) 1.3 Flow iv) Use of flow chart symbols U 1
Chart

3 A: 1(iii) 3.1 ii) Use input functions like: • scanf ( ) • U 1


Input / getch ( ), getche ( ), getchar ( ) • gets ( )
Output
functions
4 A: 1(iv) 3.2 Operators iii) Use the following assignment operators: • U 1
Compound assignment operator
(+ =, -, =, * =, / =, % =)

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

11 A: 1(xi) 7.4 Creating ii) Create: • Unordered list • Ordered list U 1


Lists

12 A: 1(xii) 7.8 Creating iii) Create a frameset U 1


Frames
13 B: 2(i) 1.2 Algorithm i) Define an algorithm K 3
ii) Explain role of algorithm in problem
solving
14 B: 2(ii) 2.4 Constants ii) Explain the rules for specifying variable U 3
and Variables names

15 B: 2(iii) 2.1 Introduction iii) Elaborate characteristics of High Level K 3


Language

16 B: 2(iv) 3.2 Operators xi) Define and explain the order of A 3


precedence of operators

17 B: 2(v) 3.1 Input / Output iv) Define Format specifiers • decimal - %d • K 3


functions integer - %i • float - %f • double - %g,e • char
- %c • long int - %ld
18 B: 2(vi) 4.1 Control i) Define a control statement. K 3
Structure ii) Define a conditional statement

19 B: 2(vii) 3.2 Operators viii) Differentiate between assignment (=) U 3


and equal to operator (= =)
20 B: 2(viii) 5.1 Loop Structure viii) Write codes for flowcharts discussed in A 3
unit-1
To find a sequence of odd numbers starting
from a given number 1.2 (iv)
21 B: 2(ix) 5.1 Loop Structure ii) Know that for loop structure is composed U 3
of: • For • Initialization expression • Test
expression • Body of the loop • Increment /
decrement expression
22 B: 2(x) 6.2 Logic Gates iv) Explain the following logic gates U 3
with the help of truth tables: • AND •
OR • NAND • NOR • NOT • Exclusive
NOR (XNOR) • Exclusive OR (XOR)
23 B: 2(xi) 5.1 Loop ii) Know that for loop structure is composed U 3
Structure of: • For • Initialization expression • Test
expression • Body of the loop • Increment /
decrement expression
iv) Know that do while loop structure is
composed of: • Do • Body of the loop • While
• Test expression • Statement terminator
24 B: 2(xii) 7.1 Introduction • ii) Explain the following types of websites U 3
• Portal

25 B: 2(xiii) 7. 3 Text Use appropriate text formatting tags to K 2+1


Formatting define: • Font size • Font colour • Font
face
26 C: 3 1.3 Flow Chart (v) Draw flow charts of algorithms discussed A+K 4+4
earlier in unit-1 (1.2 (iv))
2.2 Programming ii) Explain the following modules of the C
Environment programming environment • Editor •
Compiler • Linker • Loader • Debugger

27 C: 4 6.3 • iii) Simplify three variable Boolean U+A 4+4


Simplification function/expression
using K Maps • iv) Build logic circuits from the simplified
expressions

28 C: 5 4.1 Control vi) Use if else statement U 8


Structure vii) Know that the switch
statement is composed of: • Switch
• Case • Default • Break

* Student Learning Outcomes


National Curriculum for Computer Sciences Grades IX-XII, 2009
(Page no. 14-25)

**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

Section - C 5-(08) 4-(04) 12


Section - A 1(7)(01) 01
Application
based Section - B 2(iv)(03) 2(viii)(03) 15 20%
06

Section - C 3-(04) 4-(04) 08


Total marks 08 10 13 12 11 13 8 75 100
%

* 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)

You might also like