Pedagogia Evening Coaching
Classes Student’s Name:
Roll No
COMPUTER SCIENCE SSC-I ⓪ ⓪ ⓪ ⓪ ⓪ ⓪ ⓪
SECTION – A (Marks 25) ① ① ① ① ① ① ①
TIME ALLOWED: ② ② ② ② ② ② ②
③ ③ ③ ③ ③ ③ ③
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.
اجازت ن حّصہ اّو ل الزمی ہے۔ اس کے جوابات اسی صفحہ پر دے کر ناظم مرکز کے حوالے کریں۔ کاٹ کر دوبارہ لکھنے کی ⑤ ⑤ ⑤ ⑤ ⑤ ⑤ ⑤
کریکولم کے مطابق درست دائرہ کو ُپر کریں۔،لیڈ پینسل کا استعمال ممنوع ہے۔ ہر سوال کے سامنے دئے گئے ⑥ ⑥ ⑥ ⑥ ⑥ ⑥ ⑥
⑦ ⑦ ⑦ ⑦ ⑦ ⑦ ⑦
⑧ ⑧ ⑧ ⑧ ⑧ ⑧ ⑧
Answer Sheet no: _______ Sign. of Invigilator: _______ ⑨ ⑨ ⑨ ⑨ ⑨ ⑨ ⑨
Fill the relevant bubble against each question
___________ .Candidate Sign
:according to curriculum
QUESTIONS A B C D A B C D
What is a collection of web
Web Home Web
pages hosted on a Web Website
1 Ⓐ Ⓑ Ⓒ Ⓓ
address page browser
server called?
In HTML, tags that include
comment document container None of
both on and off tag are
2 Ⓐ Ⓑ Ⓒ Ⓓ
tags tags tags these
called:
Which of the following
markup is correct?
i. <b><i> is in error as tags None of
i ii i and ii
3 Ⓐ Ⓑ Ⓒ Ⓓ
cross </b></i> these
ii. <b><i> is not since tags
nest </i></b>
_____ is used to find
Search Web
information on the World HTML URL
4 Ⓐ Ⓑ Ⓒ Ⓓ
Engine Server
Wide Web.
5 Which one is the correct e- i ii iii None of Ⓐ Ⓑ Ⓒ Ⓓ
mail link?
these
i. <a href =
"
[email protected]"> Email
</a>
PEDAGOGIA EDUCATION SYSTEM
SESSION (R&T NOVEMBER 2024)
Pedagogia Evening Coaching
Classes
ii. <mail>abc@gmail</mail>
iii. <href = "abc@gmail">
What is the output of HTML
tag X<sub>10</sub> when 10X X10 X10 X10
6 Ⓐ Ⓑ Ⓒ Ⓓ
used in a web page?
Anything typed inside which
<body> <html> <head> <title>
tags is displayed in the
7 Ⓐ Ⓑ Ⓒ Ⓓ
</body> </html> </head> </title>
browser window?
What will be the added by
Rows Columns Cells Steps
8 Ⓐ Ⓑ Ⓒ Ⓓ
using <td> and </td> tags?
In
In lower Case Not case
All the tags of HTML are: uppercase
9 Ⓐ Ⓑ Ⓒ Ⓓ
case sensitive sensitive
case
Which heading tag pair is
used to show the smallest <h1></ <h2></ <h3></ <h4></
1
Ⓐ Ⓑ Ⓒ Ⓓ
0 size heading in an HTML web h1> h2> h3> h4>
page?
1 In which sequence the for Execution Testing, initializatio initializatio Ⓐ Ⓑ Ⓒ Ⓓ
1
loop is executed: of the initializatio n, testing, n,
body, n, execution execution
initializatio execution of body of body,
n, testing of body testing
1 HTML uses? User Fixed tags Pre- Tags only Ⓐ Ⓑ Ⓒ Ⓓ
2
defined defined by specified for linking
tags the tags
language
1 Which statement is suitable if if-else else-if None of Ⓐ Ⓑ Ⓒ Ⓓ
3
to use in a situation where these
there are only two choices
PEDAGOGIA EDUCATION SYSTEM
SESSION (R&T NOVEMBER 2024)
Pedagogia Evening Coaching
Classes
based on a condition?
1 A variable cannot start with a Alphabet Number Character String Ⓐ Ⓑ Ⓒ Ⓓ
4
__.
1 Which of the following is the <style src <style src <styleshe <link rel Ⓐ Ⓑ Ⓒ Ⓓ
5
correct syntax for referring
= = et> =
the external style sheet?
exp.css> “exp.css” exp.css “styleshee
> </styleshe t” href =
et> “exp.css”
>
1 The first value assigned to a Beginning Starting Initializati Substituti Ⓐ Ⓑ Ⓒ Ⓓ
6
variable after declaration is value value on on
called _______.
1 The CSS property used to text-style text-size font-size None of Ⓐ Ⓑ Ⓒ Ⓓ
7
control the element's font- these
size is:
1 The ”var” and “function” are Data Keywords Prototypes Declaratio Ⓐ Ⓑ Ⓒ Ⓓ
8
known as: types n
Statement
1 The property in CSS used to bgcolor color backgroun All of Ⓐ Ⓑ Ⓒ Ⓓ
9
change the background color d-color these
of an element is:
2 How many times “FBISE” 1 5 Infinite The loop Ⓐ Ⓑ Ⓒ Ⓓ
0
will be displayed by the
will not
following code?
run
for (var i=1; i<10; i=+2)
{
document.write("FBISE");
PEDAGOGIA EDUCATION SYSTEM
SESSION (R&T NOVEMBER 2024)
Pedagogia Evening Coaching
Classes
}
2 When a loop is terminated: When After last When None of Ⓐ Ⓑ Ⓒ Ⓓ
1 Condition statement Condition these
remains of loop remains
true body false
2 Which of the following is a if if-else else-if None of Ⓐ Ⓑ Ⓒ Ⓓ
2 multiple selection these
statement?
2 A for loop is more The body The The When the Ⓐ Ⓑ Ⓒ Ⓓ
3 appropriate to use when: of the loop terminatio program number of
is to be n executes iteration
executed condition at least are known
at least occurs once in
once unexpectedl advance
y
2 What will be the output of hi hello no None of Ⓐ Ⓑ Ⓒ Ⓓ
4 the given code if x = 5? these
if(x < 1)
document.write("hello");
if(x == 5)
document.write("hi");
else
document.write("no");
2 What will be the output of Two times Error Infinite Nothing Ⓐ Ⓑ Ⓒ Ⓓ
5 the given code? Hello Occurred times
for(var k = -3 ; k < -5 ; k+ Hello
+)
document.write("Hello");
PEDAGOGIA EDUCATION SYSTEM
SESSION (R&T NOVEMBER 2024)
Pedagogia Evening Coaching
Classes
COMPUTER SCIENCE SSC-I
TIME ALLOWED: Total Marks Section B and
C: 47
Note: The questions of Section B and C are to be answered on the separately provided answer book. Use
supplementary answer sheet i.e. Sheet – B if required. Write your answers neatly and legibly.
SECTION- B (Marks 22)
Q.2 Attempt the following questions. (11 x 02 =
22)
Create an HTML document that contains hyperlinks to three websites of
encyclopaedias as shown below.
02
i.
URL of Websites Name of Website
www.britannica.com Encyclopedia Britannica
www.wikipedia.org Wikipedia
www.encyclopedia.com Encyclopedia
OR
Differentiate between ordered list and unordered list used in HTML 02
Differentiate between front-end
ii. Differentiate between dynamic 02 O 02
development and back-end
website and static website. R
development.
Use appropriate text formatting
01
tags to define the following. Write Briefly describe the following HTML
iii. example of each. 02 O tags: +
☞ Font Size R ☞ Paragraph
☞ Font Color ☞ Heading 01
☞ Font Face
Describe how a search engine is
iv. 02 O 02
used for searching information on What is the purpose of anchor tag?
R
the Internet?
01
v. What is “href” refers to and how to + O Contrast between website and web 02
use it? R application.
01
Write JavaScript code that prompt a temperature (t) in Celsius and prints a
vi. message as given below:
02
Temperatur Message to
e print
PEDAGOGIA EDUCATION SYSTEM
SESSION (R&T NOVEMBER 2024)
Pedagogia Evening Coaching
Classes
t 35 It is hot!
t 20, t Nice day!
35
t 20 It is cold!
OR
Write JavaScript code that prompt a number of month of the year and display
the number of days of the corresponding month. 02
(For example: If user entered the March month number “3” then the
output will be “31 days”)
1.5
Infer about the External CSS? Write a simple HTML Code or
vii. + O 02
Where are External CSS CSS Code that embed a Video in
R
generally used? 0.5 website.
01 01
What is meant by conditional
viii. + O What is the purpose of if-else +
statement? List down different
R statement? Also write its syntax.
conditional statements. 01 01
01
Write JavaScript code that reads
ix. What is the purpose of for loop? + O 02
a number prints factorial of that
Also write its syntax. R
01 number.
Write JavaScript code that reads
01 age and check if he/she is
x. What is the purpose of else-if + O eligible to vote in Pakistan or 02
statement? Also write its syntax. R not. A person in Pakistan is
01 eligible to vote if he/she is 18 or
more than 18.
What will be the output of the
following JavaScript program
segment? Write JavaScript code that reads
xi. let a = 10; 02 O a character and decide whether 02
let b = "5"; R the character is vowel or
document.write(a + b); consonant.
Note: let and var both are used
for variable declaration
SECTION- C (Marks 10)
Note: Attempt the following questions in detail. (05 x 05 =
25)
Q.3 Create the following table in HTML. 05
A B C D
1 2 3 4
5 6 7 8
PEDAGOGIA EDUCATION SYSTEM
SESSION (R&T NOVEMBER 2024)
Pedagogia Evening Coaching
Classes
OR
Create a Web page in HTML using lists as shown below.
Types of Main Memory
Internal Processor Memory
H. Cache
I. Register
RAM
iv. SRAM 05
v. DRAM
ROM
1. PROM
2. EPROM
3. EEPROM
Write HTML code to create a web page of your favourite teacher. Design the page
with an attractive text font, colors and background image.
1.5
+
1.5
+
02
OR
Q.4 1.5
Write HTML code to create a following web page:
+
☞ Create a bold heading “Generations of Computer”. 1.5
☞ Display an image in 250 * 175 pixels below the heading. +
☞ Add a video clip in a website which starts playing as the web page loads. 02
Describe the following types of CSS with one code example: 2.5
☞ Inline CSS +
☞ Internal CSS 2.5
OR
Write JavaScript code that prompt two numbers and perform simple calculator
05
operations (+, -, *, /).
PEDAGOGIA EDUCATION SYSTEM
SESSION (R&T NOVEMBER 2024)
Pedagogia Evening Coaching
Classes
Write JavaScript code that reads a number prints multiplication table up-to 10
05
of that number.
Q.5 OR
Write JavaScript code that reads a character and decide whether the
05
character is uppercase letter, lowercase letter, digit or special character.
Write JavaScript code that reads two numbers and find the GCD of these
05
numbers.
OR
Write a JavaScript function called ‘CalculateGrade’ that takes marks of a
Q.6 student as input and returns grade based on the following grading system:
A if marks are greater than or equal to 90,
05
B if marks are between 70 and 89,
C if marks are between 50 and 69, and
F if marks are below 50.
Write JavaScript code that print the following pattern using nested loop:
1 8 27 64 125
Q.7
1 8 27 64 05
1 8 27
1 8
1
OR
Write JavaScript code that print the following pattern using nested loop:
5 4 3 2 1
4 3 2 1 05
3 2 1
2 1
1
PEDAGOGIA EDUCATION SYSTEM
SESSION (R&T NOVEMBER 2024)