Model Ict Sliit
Model Ict Sliit
Paper I
Important:
Answer all questions.
Select the correct or the most appropriate answer. (A multiple choice answer sheet
would be provided at the examination.)
2. What are the Most Significant Digit (MSD) and the Least Significant Digit (LSD) of
0.00230450 respectively?
(1) 0 and 0 (4) 0 and 2
(2) 2 and 5 (5) 2 and 5
(3) 2 and 0
Paper structure and Sample questions for G.C.E. (A/L) examination 2011
-1-
3. Select the expression which is equivalent to the Boolean expression (a + b)(a + b )
(1) a (4) a
(2) b (5) ab
(3) b
4. Which form of software development model is most suited to a system where all the
requirements are known at the start of a project and remain stable throughout the
project?
Paper structure and Sample questions for G.C.E. (A/L) examination 2011
-2-
8. Part of a ER diagram is shown below.
studNo age
fName DOB
Student
lName studName
marks
midName
(1) Output attributes are movieId, movieName, actedMovie and actorName only.
(2) Condition “m.movieId=a.actedMovie” has no meaning.
(3) To retrieve the data four tables have been used.
(4) m.movieName represents movieName column of the “actor” table.
(5) None of the above statements are true.
10. Which of the following is false for virtual memory?
(1) Virtual memory address space is much larger than the physical memory
address space
(2) Virtual memory is implanted with the concept of demand paging
(3) Hard disk space is considered as part of the memory for the implementation of
the virtual memory
(4) Physical memory address is much larger the virtual address
Paper structure and Sample questions for G.C.E. (A/L) examination 2011
-3-
(5) Sometimes virtual memory can reduce the performance of the system
11. Which of the following memory types is most suitable for use as main memory for a
computer system?
(1) SRAM (4) ROM
(2) DRAM (5) None of the above
(3) EEPROM
deptNo
empNo
M M
works Department
Employee
deptName
empName
Which of the following represents the relation schema for this ER diagram?
(1) Employee(empNo,empName,deptNo)
Department (deptNo, deptName)
(2) Employee(empNo,empName)
Department (deptNo, deptName, empNo)
(3) Employee(empNo,empName,deptNo)
Department (deptNo, deptName,empNo)
(4) Employee(empNo,empName)
Department (deptNo, deptName)
Works (empNo,deptNo)
(5) None of the above
Paper structure and Sample questions for G.C.E. (A/L) examination 2011
-4-
14.
1 M
works Department
Employee
16. Which of the following transmission media is/are suitable for outdoor networking?
Paper structure and Sample questions for G.C.E. (A/L) examination 2011
-5-
18. Consider the following SQL statement:
# Temperature conversion
c=(F-32)*5/9
19. Select the most correct statement to correct the above code
(1) Change the line f= float(input(‘Enter temperature in Fahr :’)) to f = (float)
input(‘Enter temperature in Fahr’)
(2) Change c=(f-32)*5/9 to c=(f-32)*5.0/9.0
(3) Change c= (F-32)*5/9 to c = (f-32)*5/9
(4) Change print “Temperature in C is = “,c to print “Temperature in c is = “,c
(5) Change # Temperature conversion to // Temperature conversion
20. If the correction is made so that code works correctly what would be the output if the
temperature entered in Fahr is 100?
The output will be:
(1) 212
(2) Temperature in C is = 212
(3) Temperature in C is = 37.7
(4) 37.7
(5) Temperature in C is = 37
Paper structure and Sample questions for G.C.E. (A/L) examination 2011
-6-
21. If a=10, b=5,c=3 what would be output of a*2%3*2+30/b*c
(1) 6 (4) 4
(2) 20 (5) 24
(3) 22
Answer Questions 22 and 23 based on the flowchart given below.
Paper structure and Sample questions for G.C.E. (A/L) examination 2011
-7-
23. What would be the most correct pseudo code that represents the above flow charts?
1 3 5
X = 5 X = 5 X = 5
X = X – 1 X = X – 1 X = X – 1
Y = X * 3 Y = X * 3 Y = X * 3
2
4
X = 5 X = 5
while Y >= 3 Y = X*3
Y = X*3 If Y >= 3
X = X – 1 X = X – 1
Print Y Print Y
endwhile Y = X * 3
endif
Paper structure and Sample questions for G.C.E. (A/L) examination 2011
-8-
24.
A) s = [‘nimal’,20,78.6]
B) for y in range(1,10):
print y
C) no = 5
print no
no = no – 1
D) y = input(“Enter a number”)
return a+b
25. The code given below calculates the distance between two coordinates. Assume that this
coding is stored in a program file called distance.py
import math
dist =math.sqrt((x1-x2)**2+(y1-y2)**2)
return dist
What would be the most correct code that calls the function distance from the
program file distance.py?
Paper structure and Sample questions for G.C.E. (A/L) examination 2011
-9-
1
4
import distance import distance
print d print d
2 5
d = distance.length import distance
(10,5,20, 8)
d = distance.length
print d (10,5,20, 8)
print d
3
import distance
z =
distance.length(x1,y1,x2,y
2)
print z
27. Select the answer that includes a system software, firmware and hardware
respectively.
(1) Microsoft Project, Computer users, RAM
(2) Boot-strap program, Python, Processor
(3) Linux, Boot-strap program, Wireless mouse
(4) Windows XP, Utility programs, Monitor
Paper structure and Sample questions for G.C.E. (A/L) examination 2011
- 10 -
(5) Python compiler, Data entry operator, MS SQL server
28. When would a software piracy occur from the following statements?
(1) Nimal buys a computer and also purchases Windows 7 operating system for
his computer.
(2) Nimal downloads an e-book about computing and shares it with his friends to
improve knowledge.
(3) A class teacher asks students to buy “Adobe Photoshop” which is needed for
their studies.
(4) Nimal makes copies of Microsoft Office package and he sells it to his friends
for a very cheap, reasonable amount.
(5) A teacher gives away Ubuntu operating system for the students in the class to
complete an assignment.
29. You heard that you have passed he GCE A/L examination and got selected to the
university. When will this information have the highest value?
(1) On the day that you are entering the university.
(2) When you firstly saw your results on the sheet.
(3) When your friends are calling you and wishing you over the achievement.
(4) When you tell your parents about it.
(5) At the time you fill the university application.
30. What is not a number representation technique inside computer?
(1) ASCII (4) Unicode
(2) EBCDIC (5) BCD
(3) BSD
32. What is the correct method of inserting an image into a HTML page?
(1) <img >”waterfall .jpg”></img>
(2) <img src=”waterfall.jpg”>
(3) <img > <src>waterfall.jpg</src></img>
(4) <src img=”waterfall.jpg”></src>
(5) <img > src = “watrefall.jpg”
Paper structure and Sample questions for G.C.E. (A/L) examination 2011
- 11 -
33. Select what is not true from the statements given below.
(1) XML can be used to display content attractively in a Web page.
(2) HTML is a markup language which has a pre-defined tag set.
(3) Cascading Style Sheets (CSS) is a style sheet language used to describe the
presentation (the look and formatting) of a document written in HTML.
(4) HTML tags MUST be written using only capital letters.
(5) XML does not include pre-defined tag; Users can define their own tag set.
34. Find the correct output for the HTML code given below:
<ol>
<li> Maths Stream </li>
<li> Arts Stream </li>
<li> Commerce Stream </li>
</ol>
1 2 3
4 5
1. Arts Stream Arts Stream
2. Maths Stream Maths Stream
3. Commerce Stream Commerce Stream
Paper structure and Sample questions for G.C.E. (A/L) examination 2011
- 12 -
36. Select the incorrect statement from the following:
Google groups, social networks and blogging are:
(1) ways of communicating among a group of members sharing various
resources.
(2) used in e-commerce to promote goods and services among the community.
(3) ways of sending electronic mails or messages to friends overseas.
(4) methods of sharing information using Internet and will help in finding friends
of similar interest.
(5) not being used to do any of the above activities.
(6)
37. What would be not a C2C transaction from the following?
(1) Anne wants to sell her laptop and she posts it on e-bay.
(2) Sri Lankan government purchases machinery from UK government.
(3) Saman buys an air ticket from Sri Lankan air-line online.
(4) “ABC” supermarket chain decides to launch a Web site to sell their products.
(5) A manufacturer purchases goods from a supplier.
38. The following are various IP addresses in binary. Select the class B address.
(1) 10111110 .00000000 .00001111 . 11011011
(2) 00001111.01010101.10110011.00000001
(3) 11011011. 00000000 .00000000 .11111110
(4) 01101001 .11110000 .11111110 .00001111
(5) None of the above
39. What are the features of TCP?
(1) Connection-less, reliable (4) Connection oriented,
(2) Connection oriented, unreliable
reliable (5) None of the above
(3) Connection-less,
unreliable
Paper structure and Sample questions for G.C.E. (A/L) examination 2011
- 13 -
41. Which of the following statement is False?
(1) Local Area Network (LAN) is usually a small network constrained to a small
geographic area
(2) Wide Area Network (WAN) that is usually a larger network that covers a
large geographic area
(3) Metropolitan Area Network (MAN), which is used for city area.
(4) All of the above
(5) None of the above
Paper structure and Sample questions for G.C.E. (A/L) examination 2011
- 14 -
46. Which of the following is not a private IP address?
(1) 192.169.0.1 (4) 10.16.0.100
(2) 126.0.0.1 (5) 172.30.50.200
(3) 172.31.16.5
49. Find the sum with different bases for the expression below
1012 + 1018 + 10116
Paper structure and Sample questions for G.C.E. (A/L) examination 2011
- 15 -
20 – Information and Communication Technology
Paper II
Answer all questions of part A
Answer four questions only of part B
PART A
1.
Consider the following relational schema.
Paper structure and Sample questions for G.C.E. (A/L) examination 2011
- 16 -
c) Write a SQL query to display the following output.
Amara Maths 25
Kamal Science 30
…………………………………………………………………………………….
…………………………………………………………………………………….
…………………………………………………………………………………….
…………………………………………………………………………………….
…………………………………………………………………………………….
…………………………………………………………………………………….
d) Create a database view to display the above output of part (b).
…………………………………………………………………………………….
…………………………………………………………………………………….
…………………………………………………………………………………….
…………………………………………………………………………………….
…………………………………………………………………………………….
…………………………………………………………………………………….
……………………………………………………………………………….........
…………………………………………………………………………………….
…………………………………………………………………………………….
……………………………………………………………………………………
…………………………………………………………………………………….
…………………………………………………………………………………….
……………………………………………………………………………………
…………………………………………………………………………………….
……………………………………………………………………………………
e) If the two tables contain no data, what is the order that you have to follow when
inserting data into two tables?
…………………………………………………………………………………….
…………………………………………………………………………………….
……………………………………………………………………………………..
……………………………………………………………………………………..
……………………………………………………………………………………..
……………………………………………………………………………………..
…………………………………………………………………………………………
Paper structure and Sample questions for G.C.E. (A/L) examination 2011
- 17 -
Start
total = 0
count = 0
Input Marks
count > 0
Marks<> -999
avg = total/count
count = count + 1
Paper structure and Sample questions for G.C.E. (A/L) examination 2011
- 18 -
a) Convert the above flow chart into pseudocode
………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………
b) Identify the control structures found in the pseudocode
for no in data:
print no
if no > 50:
break
print n
…………………………………………………………………………………………
…………………………………………………………………………………………
…………………………………………………………………………………………
…………………………………………………………………………………………
…………………………………………………………………………………………
…………………………………………………………………………………………
…………………………………………………………………………………………
…………………………………………………………………………………………
…………………………………………………………………………………………
…………………………………………………………………………………………
Paper structure and Sample questions for G.C.E. (A/L) examination 2011
- 19 -
………………………………………………………………………………………………
……........................................................................................................................................
d) If the break statement of the above code is replaced with continue what would be the
output of the above code?
………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………
2.
b) A hospital wants to find the amount of Dengue patients treated annually over the past
ten years and they have patient data for the last 10 years. They decide to hire a person
to do this task manually. Do you think it will be successful? Comment on this
situation.
................................................................................................................................................
................................................................................................................................................
................................................................................................................................................
................................................................................................................................................
................................................................................................................................................
................................................................................................................................................
................................................................................................................................................
Paper structure and Sample questions for G.C.E. (A/L) examination 2011
- 20 -
3.
a) Amal has been selected to do a software project for a client in USA. What would be
the cost effective techniques that he can use to arrange for meetings with his client?.
………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………
b) Explain three factors that should be considered when designing a Web site as a Web
developer.
………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………
c) Describe two differences between HTML and XML.
………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………
d) Draw the output for the HTML and CSS codes given below.
<html>
<head>
<style type="text/css">
h1 { text-align: center; font-
size:50; }
p{ font-size:25; }
</style>
</head>
<body>
<h1>Hello World!</h1>
<p>I am a Student.</p>
</body>
</html>
Paper structure and Sample questions for G.C.E. (A/L) examination 2011
- 21 -
………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………
e) Write HTML code for the following output. (Just write the content of the body part of
the HTML code)
………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………
Paper structure and Sample questions for G.C.E. (A/L) examination 2011
- 22 -
PART B
1.
a) Prove the Boolean identity a + bc = (a + b)(a + c) using a truth table.
b) Apply De Morgan’s Theorem to the following expression to simplify into sum of
products (SOP) form.
abcd + e
c) Draw the timing diagram of the output for the given inputs represented by the timing
diagram for the following AND gate.
d) Consider the circuit diagram given below to write the answers for the following
questions:
Paper structure and Sample questions for G.C.E. (A/L) examination 2011
- 23 -
e) Use K-map method to simplify the function and write all possible minimal sum of
products expressions.
f (a, b, c, d ) = ∑ min(0,1,3,9,11,12,14,15)
2.
a) Briefly describe the following terms in relation to the Operating System
i. Bootstrap Program
ii. Kernel
iii. Interrupts
iv. Process Control Block
v. Multiprogramming
vi. Swap Out
i. Running → Ready.
ii. Running → Waiting.
iii. Waiting →Running.
iv. Running →Terminated.
3.
Paper structure and Sample questions for G.C.E. (A/L) examination 2011
- 24 -
a) Consider the following information gathered related to a hospital.
• Patients are identified by National Identity card number (NIC), name, address and
age. A patient can be uniquely identified by the NIC.
• Doctors are identified by doctor id, name and specialty, base hospital ID and base
hospital name. One doctor may have more than one specialization. A doctor can
be uniquely identified by the doctor id.
• Every patient is examined by one or more doctors and a doctor may examine one
or more patients.
• Patient’s family member details are also recorded at the hospital. Family member
is identified by name, address and relationship with the patient. Family member of
a particular patient can be uniquely identified by name. Once patient is
discharged, that is once patient details are removed from the system family
member information are of no use.
4.
Paper structure and Sample questions for G.C.E. (A/L) examination 2011
- 25 -
b) Discuss the difference between Waterfall Model and Prototype Model for system
development. When do you think a Prototype Model is better than Waterfall Model for
systems development?
c) A school decides to build an information system for its library. The following is the list
of requirements for this library system. Classify these requirements as “functional” or
“non-functional “requirements.
Requirement Functional/Non-
functional
User can find books for a given author name using the system.
The system must respond to all user interactions within 3
seconds
The user can view the list of books he borrowed through the
system
5.
a) Correct the errors in the python code given below to produce the output given
def powertable(no)
powertable(2)
Expected output
2 ^ 1 = 2
2 ^ 2 = 4
2 ^ 3 = 8
2 ^ 12 = 4096
Paper structure and Sample questions for G.C.E. (A/L) examination 2011
- 26 -
b) The code below defines a class called Rectangle
class Rectangle:
def __init__(self,x,y):
self.x = x
self.y = y
def area(self):
def perimeter(self):
def display(self):
Write coding to create an object with the length and width 100 and 50. Display the
length and width of the rectangle. In addition print the area and the perimeter of the
rectangle.
Paper structure and Sample questions for G.C.E. (A/L) examination 2011
- 27 -
c) Rainfall figures of different districts are stored in a file called rainfall.dat
The program below has been written to produce the following report.
# Files question
def total(rainfalllist):
# compute total
total = 0
____________
Paper structure and Sample questions for G.C.E. (A/L) examination 2011
- 28 -
return total
def inches(______
return mm/25.4
f = open("rainfall.dat")
line = f.readline()
i = 1
record = line.strip("\n").split(",")
totalrainfall=total(_____)
print _____________
i += 1
line = ______________
f.close()
6.
a) You are required to design a Network for a company. Following are the requirements for
the network.
i. Draw the basic network diagram including LAN side and WAN side. You need to
show how such a network is practically implemented.
ii. Clearly write the network devices and transmission media used.
Paper structure and Sample questions for G.C.E. (A/L) examination 2011
- 29 -
iii. Explain the network devices you used including Main task of the device it
operates, in which layer of OSI model, Number of collision domains and Number
of broadcast domains.
iv. What is the connectivity used to connect with other branches and explain it.
v. Explain the way you obtain Internet connection.
b) Give the most suitable transmission media for the following cases.
Available transmission media are, Twisted pair cables - UTP or STP, Coaxial cables,
Optical fiber cables, Radio transmission, Satellite transmission.
i. To receive a live telecast of the Olympics from China to Sri Lanka.
ii. Two buildings in either side of a river / canal. need to connect the computer
networks of these two buildings.
iii. To set up a Computer Netwbrk, this includes 20 computers within a floor.
iv. Need to lay down data cables close to the 33000V power lines.
c) PCM (Pulse Code Modulation) method is used to convert analog signals into digital
signals
i. Write the basic three steps involved in PCM method.
ii. Write down the Sampling Theorem (Nyquist's Theorem)
iii. Bandwidth of an analog signal is 4 - 8 kHz. What should be the minimum
sampling rate?
iv. If we have 256 quantizing levels, how many bits are required to represent each
sample?
v. What is the output bit rate?
vi. How can be increasing the quality of the output signal using sampling rate?
Paper structure and Sample questions for G.C.E. (A/L) examination 2011
- 30 -