2018 AL ICT English Paper 2 - Itguru
2018 AL ICT English Paper 2 - Itguru
(!joCl) !)t!!)Il) ~
1611)';:""£:£5"'.0 {illsi.'I!W
'" "' ~ ~
..,'lsM,
~~~i8..
~J
'.~ .
_' ,i,a;.nu: ~6i:,......;na;u L1L.>!JJ~ ,t~M
r;l;. Sri Lanka Department of Examinations,Sri Lan .:
~~~E>
,i,a;mw """&!lIEU
~ !I~ 1'J&)Il) ~:5:C~1Il!q
U!/L&>JJ' - iM,;n
:~~ar:;
.' _m)z:;:iU:la=
Geflefj) Cemf'icue fif FiAIlNit!OJ! (Ad') J c;e)) Eiismj flsfloo , August 21118
<3'25)J6~6l eoo e:lz;)§3<3'V~25) z:oocl~",
~c'D6lJ6\), Q~ITL~UrrL6\) Q~rrWl®JLutffilUJ6i) ~(2S.08~20i8;
J _
t· 0S: 30' .:'-ll'46'
~ • -_ • '" _ ~ • _ ...
[Index No. : )
* This question paper comprises of two parts. Part Question No. Marks
Part A and Part B. The time allotted for
1
both parts is three hOUTS.
Part B - Essay 6
(pages 9 - 14) Total
* This part contains six questions. of which.
four are to be answered. Use the papers Final Marks
supplied for this purpose.
In numbers
* At the end of the time allotted for this paper.
tie the two parts together so that Part A is In words
on top of Part B before handing them over
to the Supervisor.
(1) .
(2) .
(ii) Write the output of the following JITML code segment when rendered by a web
,
....
browser.
<html:»
<body>
<u> Important Sites «tu»
«ul>
«li» <a href="www.nie.lldindex.html"> National Institute of Education -clas-clli»
<li> <a href='www.doenetsIkiexamiindexluml ..> Department of Examinations <ias-c/Ii»
<luI>
<lbody>
<Ihtml>
(iii) Write the output of the following HTML code segment when rendered by a web
browser.
<html>
<body>
<p>
<center> Department oj Examinations «br» Pelawatta
<br» Battaramulla «lcenterz--clpo-chr>
<Jbody»
«Jhtml»
l~--------------------------------------------------------------~----~~-
[see page three b'
AL/Z018/Z01E-H - 3 - Index No.: .
(c) Consider the HTML form given below rendered by a web browser:
This is a registration form used for registering
students. It is required to enter Student Name as Student Registration
a text input, select Gender, select District and
then click Submit button. Complete the following Student Name I
1..- ---'
S~b~1t ! I Jaffna
-chtmi>
I~la~_a__
<body>
<h3>Student Registration <ih3>
< action=Tregisterphp" methode+post">
«div»
Student Name <input = ="name">
«Jdiv»
-cbr»
<div»
Gender
<input '.;" .. = = "gtype" = "male"checked>Male
<input = ="gtype" ="jemale" > Female
«ldiv>
<br»
<div»
Selected District
< ="city">
<option ="Colombo"> «Ioption»
<option ="JaJjna" > «Joption»
<option = "Matara"» «Ioption»
<1 >
-adiv»
«br>
<input .................. = . name= "submit" = "Submit">
<1 >
<lbody>
«Ihtml»
o
{see page four b8
ALf2018f20/E-H - 4 .
2. (a) Match each of the given phrases (i).-.(viii) relating to e-commerce with the most suitable Do not
term from the list below. write
List = {brick-anti-click, content provider. e-commerce, group purchasing, information broker, in ,this
co umn
online marketplace, pure-brick, pure-click, reverse auction, virtual community,
virtual storefront}
Phrases:
(i) allows third party businesses (other businesses) to sell their products and services
through the website and charge a percentage of the sale value as the fee
.. (ii) provides frequently updated material such as news, blogs, videos etc. online
(iii) allows sharing common interests and ideas over the Internet
(iv) consumer transactions are processed by the business operator's web portal and then
delivered and fulfilled by the participating retailers or wholesalers
(v) has a physical shop as well as an online shop
(vi) is a business that collects publicly available data about consumers on the internet,
analyzes and summarises them and sells that information to other parties
(vii) the sellers compete to obtain business from the buyer using the internet and prices may
typically decrease as the sellers underbid each other
(viii) obtain discounts from vendors on the internet based on the collective buying power
of members
Note: Write only the matching term against the phrase number.
(i) .
(ii)
(iii)
(iv)
(v) .
(vi)
(vii)
(viii)
(b) (i) Write down the two's complement representation of 1210 using 8 bits.
-
(ii) Write down the two's complement representation of -6810 using 8 bits.
.. ~ .
................................. .
(iii) Compute -6810+ 1210using the' above representations (i) and (ii).
......... .
........................ ., .
(iv) State one advantage of using two's complement representation for data in internal Do not
write
operations of a computer. in this
column
~ ' - ~
(i) Briefly explain why the 'Phone' attribute is shown using a different symbol compared
to other attributes.
(ii) Briefly explain why DEPENDANT entity is shown using a different symbol compared
to COMPANY.
(iii) The following relational tables are constructed using the ER diagram shown above. In
each of the tables, the field names are missing.
COMPANY ( ~ )
STAFF ( ~ )
STAFF_PHONE ( @ )
DEPENDANT ( ~ )
Identify the missing field names in each table and write them down against ® - ®.
®-
@-
®-
®-
[see page six -
AL/2018/201E·II - (; -
(iv) Write an SQL statement to display Names and Addresses of all the STAFF. Do not
............................................................................................................................. write
in this
column
(v) Write an SQL statement to display the names of the dependants of staff member with
StafflD = 'EOO1l24'.
(b) (i) Identify and explain the fundamental error in the following Data Flow Diagram (DFD).
1.0 I 2.0t
Compute Process _.. Employee
~ r
II
T 1
Allowances and Deductions
II Salary
I T
(ii) Write down whether each of the following statements regarding software agents is
either True or False.
True/False
(1) A software agent can perform tasks in achieving a goal
with minimum or no direct supervision.
(2) Software applications can interact with agent without
direct supervision of a user.
(3) A user may obtain answers to a problem directly from an agent.
(4) A multi-agent system is a network of problem-solving entities
called agents that work together to find answers to problems
that are beyond the individual abilities of each agent.
(5) In a multi-agent system, individual agents may compete or
co-operate to achieve the system goals. ..........
0
4. (a) Consider the following diagram which shows how the abstract layers of a computer
system are related.
user
2 IT]
I
assembler word
1 database
processor system
QD~~----------------------------~
©~
@-->
Choose and write down the correct terms from the list given below for labels@,@,©[email protected]
write
List = {compiler, computer hardware, live-ware, operating system, system Iapplication programs} in this
column
@ .
@ .
©
@ .
(b) Order four of the following statements in the correct sequence to describe the operations
that take place when a computer is switched on.
(Note: Two of the statements will not be needed.)
A - The BIOS copies Operating System (OS) files into memory and the OS starts
executing.
B - The BIOS looks to the CMOS chip to tell it where to find the OS.
C - The compiler is started.
D - The contents in memory is swapped to the hard disk.
E - The OS loads the device drivers that it needs to control the devices and gives
a login interface to the user.
F - Triggered by a series of clock ticks, the CPU executes the startup program's
instructions in the BIOS that involves the power on self-test.
The sequence of operations is: (fill in the boxes with relevant letters)
Dc:)Dc:)Dc:)D
(c) The state transitions that could occur in a process running on a computer with a
multi-tasking operating system is shown in the following diagram:
(i) Choose and write down the transition triggers indicated by the labels @. @, © and @
from the list given.
List = {interrupt, Input/Output (I/O) or event completion, I/O or event wait, scheduler
dispatch}
® .. ® .
© .. @ ..
(ii) For the process above, give one possible reason for the following transition trigger:
mtem.p: : .
(d) In a certain computer, the physical memory has a total capacity of 4GB. The size of a .
memory frame is 4 ~ . ' .
" '
,'. '
(i) Compute the total number of frames in the physical memory.
......................................................................................................
. . .
....................................................................................................................
.
-
(ii) The operating system maintains a data structure named the page table in respect of
each process running in the computer. For what purpose is it used?
(iii) With respect to the physical memory size, what is the benefit of using the technique
of virtual memory in the above computer?
.................................................................................................................
................................................................................................................
......................................................................................................................
............................................
··0
**
~_lIr==
Ilj.
~ 800) t)1!J)(5I O~ol()CIXl~mate>
~~
~ eo&m&llCD
urfL61ll1~ !f,l61ll;llf,tlSmw @~
3 08.,~!lJ!lxg
. e r~~ iEl6~~
IA~IJ .
~aX)~C)
ymtD e)6MI~
~ SOC) t)I!J)(5I ~OlOcooIelate
L4t:.QI)of~ ~MOITW
:=:a;:;:;;
(D
L0
@tsx>6~6l <:0:> Q25)253~t't25)
~ffi6ll6i), Q~rrL~urruro
Information
z:smsf@6c.:l
Q~rry51®JLu~w6i)
II
II
& Communication Technology II
(~I[!]I[!!JJ
Part B
* Answer any four questions only.
1. Suppose a logic circuit needs to be implemented for a digital system that has three inputs A, B
and C and one output Z. Its behaviour is as follows:
If the input C=l, the output Z has the value of A.
If the input C=O, then output Z has the value of B.
(a) Obtain the truth table for the output Z.
(b) Write down either a sum of products (SOP) or a product of sums (POS) Boolean expression
for Z.
(c) Simplify the Boolean expression for Z obtained in (b) above.
(d) Using the simplified expression in (c) above, construct a logic circuit for the system using
either 2-input NAND gates only or 2-input NOR gates only.
(a) (i) How many addresses are available in the IP address block?
(ii) What are the first and the last addresses of the IP address block?
(iii) How many host bits are required to create the required subnets?
(iv) After subnetting, write the relevant network address, subnet mask and allocated range of
IP addresses for each department.
Note: Use the following table format to present your answer.
(b) The XYZ Company links the five departments Production, Accounts, Sales, Administration and
Maintenance to the IT Services department and connects those departments to the Internet
through the IT Services department. The network has been completed by laying the cables and
installing six switches, a router and a firewall. All six departments are situated in six separate
buildings.
The administrator allows all subnets to access the Internet through a proxy server. The proxy
server and the DNS server are located in the IT Services department.
Draw the labelled network diagram to show the logical arrangement of the computer network
of the XYZ company by identifying suitable devices and required cables for all the locations.
(c) After setting up the network any employee of any department was able to access the URL
http://www.nie.lk through a web browser in a computer in his/her department. However, one
day an employee finds that he cannot access that website from a computer in his department.
Write three possible reasons for the above problem.
3. (a) A business sells handicraft items such as wooden masks, handmade souvenirs, and batik and
handloom cloths for tourists in a certain city of Sri Lanka. At present customers walk to the
.\
shop and buy goods with cash. The owner plans to start selling his products online through
his own web portal.
(i) State the type of e-business model the owner plans to start.
(ii) Assume that a certain tourist hotel situated nearby is willing to publicize the planned online
shop in their hotel web site.
(1) What type of e-business model can be established in the above scenario between the
handicraft business and the hotel?
(2) Briefly explain one possible e-business revenue model each, for the hotel and the proposed
online shop of the handicraft business.
(iii) State two methods that can be used by the planned e-business for processing online payments.
(iv) Briefly explain one e-rnarketing method that you would propose to attract customers to the
planned e-business web portal.
(v) Explain how the user experience can be improved using intelligent agent technology in the
planned e-business web portal
(b) Consider the following figure which shows a simplified view of a multi-agent system.
Application
interacts
4. (a) Assume an input which contains a sequence of positive numbers. The sequence has at most
100 numbers. If the input sequence has n numbers where n < 100, then the end of the
sequence is marked by making (n+I)" number -1.
For e.g., the following input sequence has 8 positive numbers, where the 9th input which is -1
marks the end.
23 12 54 76 89 22 44 65 -1
Draw a flowchart that represents an algorithm to output the largest number in a given sequence
of n positive numbers as described above.
(b) Consider the flowchart given below. The algorithm in the flowchart takes two inputs, the first
input L is a list of numbers, the second input K is a given number.
n = Length of L
i=O
Yes
Output
"True"
(i) What would be the output if the first input L was 23,45,32, 11,67,39,92,51,74,89 and
the second input K was 38?
(ii) Briefly explain the aim of this algorithm.
(iii) Develop a Python program to implement the algorithm in the flowchart.
5. The following two tables CLASS and STUDENT are constructed by using the Entity Relationship
(ER) diagram shown in Figure.
CLASS Table
STUDENT Table
IndexNumber ClassID Initials Surname DateOmirth
8991 1112 E. Nazeer 1999.l2.06
8993 1111 S. Sivalingarn 1999.02.06
8995 1112 w. Fernando 1999.11.11
8997 1113 U. H. De Silva 1999.08.06
(a) What is the' cardinality of the relationship between the entities STUDENT and CLASS. denoted
by® ®and above? Note: Write down suitable labels for ® ®.
and respectively.
(b) Explain how a relationship is established between the two tables using primary keyes) and
foreign keyes) in the above example.
(c) (i) Are the two tables STUDENT and CLASS. in second Donna! form (2NF)? Explain a
reason for your answer referring to tables.
(ii) Briefly explain one key advantage of normalisation.
(d) Write an SQL statement to insert the following record to the CLASS table:
6. (a) The school admission process of a certain country is explained using the .description and the
data flow diagram given below.
The applicant sends the application to the respective school. The school sends an acknowledgement
to the applicant, The school then verifies the information in the application by checking the
following.
• Eligibility of applicant by using the eligibility criteria taken from the data store
•Eligibility Criteria'
• Registration in' the electorate by requesting the electoral list from the Election Authority
(Election Authority sends the Electoral list to the school)
After verification of information, the applicant is informed whether the application has been
accepted or rejected which is noted in the application and stored in the data store "Applications".
The school obtains the valid applications from the data store. "Applications" and schedules the
qualified applicants for interviews. Then it calls the applicants for interviews and sends the interview
schedule to the Education Authority. The interview schedule is stored in the data store "Interview
Schedule" .
Interview
Acknowledged schedule
Application
1.3
Applications
Process
@ Acknowledgement
Qualified
Acceptance! Rejection applicants
Status
Application
®
® Process @
verification of
applications
Eligibilicy
criteria ®
Levell DFD
The Level I Data Flow Diagram for the above scenario with some data flows labelled as @ - ®
is given in figure. Identify and write down the relevant data flows against the labels @ - ®.
(b) (i) Briefly explain the key difference between functional and non-functional requirements as
used in the system development life cycle.
(ii) The following list includes some functional and non-functional requirements of a proposed
e-corrunerce web portal that plans to sell products on a catalogue:
A - Enable user to find products based on a variety of item characteristics
B - The system should work on any web browser
C - The system should be easy to use
D - Enable user to submit his/her comments on products and read other users' comments
on items
E - Data in the system should be preserved even in the case of a system failure
F - Enable user to create and maintain a wish list of desired products
G - Enable user to browse through products on catalogue
H - The system should be available for use 24 hours a day, 7 days a week and 365
days an year
I - The system should authenticate users through usemames and passwords
J - The system should have versions customized for global users, e.g., French, Japanese,
German, etc.
Identify and write down the labels of the non-functional requirements in @-<D.
***
I
~ ~ ~17c