0% found this document useful (0 votes)
26 views33 pages

23IctE Part1

Uploaded by

mmohamedhilmi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views33 pages

23IctE Part1

Uploaded by

mmohamedhilmi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 33

AL/2023/20/E-I

[KOg;gjpg;GupikAilaJ / All Rights Reserved]

Instructions:
 Answer all the questions.
 Write your index number in the space provided in the answer sheet.
 In each of the questions 1 to 50, pick one of the alternatives from (1), (2), (3), (4), (5) which is correct
or most appropriate and mark your response on the answer sheet with a cross (X) in accordance
with the instructions given on the back of the answer sheet.

1) Which of the following is/are correct?
𝐴 − BIOS (Basic Input Output System)is a computer program which is embedded in a memory
nstructions:
portion that stores data when a computer is powered on / plugged in.
 Answer all the questions.
𝐵 − Static Random Access Memory(SRAM), Dynamic Random Access Memory(DRAM), L1
 Write your
Cacheindex number
memory andinRegisters
the space are
provided in theofanswer
examples sheet.
memories that store data only when power is
 In eachsupplied.
of the questions 1 to 50, pick one of the alternatives from (1), (2), (3), (4), (5) which is correct
or𝐶most
− Computer memory
appropriate and is classified
mark based on on
your response physical size, access
the answer time,aaccess
sheet with cross speed
(X) in and cost.
accordance
(1) 𝐴 only (2) 𝐵 only (3) 𝐶 only
with the instructions given on the back of the answer sheet.
(4) 𝐴, 𝐵 only (5) 𝐵, 𝐶 only

2) Central Processing Unit controls the other devices and performs the arithmetical operations while
………………………………… is a specialized processor which manages the memory and displays
the images on the monitor. This is also used in parallel processing, personal computers, work
stations and game consoles. Which is the most suitable word for the blank ?
(1) Graphic Processing Unit (2) Control Unit
(3) Arithmetic Logic Unit (4) Buffer
(5) Virtual Memory

3) Consider the following statements


𝐴 − Data gathering, Data validation, Data input, Data processing, Data output and storage are the
steps of data processing life cycle.
𝐵 − Optical Mark Reader(OMR), Optical Character Reader(OCR), Magnetic Ink Character
Reader (MICR),Magnetic strip reader, Bar code reader, Sensors are examples for direct entry
input devices
𝐶 − Direct and Remote method, Online and Offline method, Remote and Batch method are some
examples for data input methods
Which of the above is/are correct?
(1) 𝐴 only (2) 𝐵 only (3) 𝐵, 𝐶 only
(4) 𝐴, 𝐵 only (5) 𝐴, 𝐵, 𝐶 all

[see page two


-2-
AL/2023/20/E-I

4) Consider the following statements about computer software.


𝐴 − Computer software can be classified as Application software and system software,
proprietary software and open source software, customized software and COTS software
𝐵 − Open source software allows their users to access and modify the source code and it can work
in most of the operating systems
𝐶 − Microsoft office, Libre office and open office are examples for COTS software.
𝐷 − Operating system controls the hardware and provide platform for other computer software
Which of the above is/are correct?
(1) 𝐴, 𝐵 only (2) 𝐶, 𝐷 only (3) 𝐴, 𝐵, 𝐶 only
(4) 𝐴, 𝐵, 𝐶, 𝐷 all (5) 𝐵, 𝐶, 𝐷 only

5) Which of the following correctly lists the given computer storage components in the descending
order of access time?
(1)Magnetic tape, Hard disk , Primary memory , L3 cache memory , L1 cache memory,
Memory register
(2) Memory register, L1 cache memory , L3 cache memory , Primary memory , Hard disk ,
Magnetic tape
(3)L1 cache memory , L3 cache memory, Hard disk , Magnetic tape, Memory register,
Primary memory
(4) Magnetic tape, Hard disk , Primary memory , L1 cache memory , L3 cache memory ,
Memory register
(5)Magnetic tape , Primary memory, Hard disk , L1 cache memory , L3 cache memory ,
Memory register

6) Hexa-decimal equivalent for the decimal number 255.0625 is?


(1) 𝐹𝐹. 01 (2) 𝐹𝐹. 10 (3) 𝐹𝐸. 01 (4) 𝐹𝐸. 10 (5) 𝐹𝐹. 04

7) Which of the following shows the correct output on applying bit-wise NOT operator on the binary
number 110011002 in a decimal form?
(1) 204 (2) −204 (3) 205 (4) −205 (5) −52

8) Which shows the correct output for 110000012 - 010010102 in 2’s complement method?
(1) 01110111 (2) 10110110 (3) 10001000 (4) 10001001 (5) 01001010

9) Consider the following statements about number system


𝐴 − Binary Coded Decimal(BCD) uses 4bits to represent a character and some devices such as
Digital voltmeter, frequency translator and Digital watch uses BCD to output information in
decimal.
𝐵 − ASCII uses 8 bits to represent a character but doesn’t synchronize with digital encoding.
𝐶 − Unicode is used to represent different languages along the world and uses 16bits to represent a
character.
Which of the above is/are correct?
(1) 𝐴 only (2) 𝐵 only (3) 𝐶 only
(4) 𝐴, 𝐶 only (5) 𝐴, 𝐵, 𝐶 only

10) Two’s complement method is used to represent negative numbers. What’s the decimal value of
10011100 in 2’s complement representing 8 bits?
(1) 100 (2) −100 (3) −156 (4) 156 (5) 101

[see page three


-3-
AL/2023/20/E-I
11) ……………………………… is a buffer that holds the inputs and outputs of another devices and it’s
a special area in memory or hard disk which is accessible to I/O devices. Which is the most suitable
word for the blank?
(1) Simultaneous Peripheral Operations On Line(SPOOL) (2) Register
(3) Virtual memory (4) L1 cache memory
(5) Random Access Memory

12) …………………………. is a system program that operates or controls a particular device attached
to computer and also provides software interface to hardware devices. Most suitable word for the
blank is,
(1) Basic Input Output System(BIOS) (2) Complementary Metal Oxide Semiconductor (CMOS)
(3) Device Driver (4) Utility software
(5) Language translator software

13) Consider the logic circuit below.

Which logic gates equivalents to the output X of the


above circuit?

C
A B

(1) 𝐴 only (2) 𝐵 only (3) 𝐶 only


(4) 𝐴, 𝐵, 𝐶 only (5) 𝐴, 𝐵 only

14) Consider the following statements on Boolean logic circuits.


𝐴 − Output of combinational logic circuits only depends on inputs and doesn’t contain memory
elements.
𝐵 − Output of sequential circuits not only depends on the current input but also depends on past
inputs and outputs, also it contains memory elements too.
𝐶 − Half adder, Full adder are examples for combinational circuits and Flip flops are example for
sequential circuits
Which of the above is/are correct?
(1) 𝐴 only (2) 𝐵 only (3) 𝐶 only
(4) 𝐴, 𝐵 only (5) 𝐴, 𝐵, 𝐶 all
15) Process is a program in execution. Process changes through different states from it’s creation to
termination. Which is the correct statement about process state transition ?
(1)A new process will only change its state to ready.
(2)A process on running state can be switched to blocked state based on priority requirements.
(3)Short term scheduler assigns process from ready state to running state and it can be switched to
terminated state after the end of its processing.
(4)Long term schedular switches the process from blocked state to swapped out and blocked state.
(5)Process on the blocked state will be switched to running state after I/O or event completion.

[see page four


-4-
AL/2023/20/E-I
16) Consider the following Karnaugh diagrams.

A- B- C-

Which of the above shows the simplified expression 𝐵𝐶 + 𝐴̅𝐶̅ ?


(1) 𝐴 only (2) 𝐵 only (3) 𝐶 only
(4) 𝐴, 𝐵, 𝐶 all (5) 𝐴, 𝐶 only

17) Consider the following statements about Operating systems.


𝐴 − Programmer directly interacts with the hardware and instructions are loaded directly into
computer before the invention of Operating system.
𝐵 − In second generation , operating systems maximized the processor utilization and programs
were recorded in magnetic tape
𝐶 − In third generation, operating systems were introduced to maximize the processor idle time
during Input and Output.
𝐷 − In fourth generation, operating systems minimized the response time and maximize the user
interaction during program execution.
Which of the above is/are correct regarding generations of operating system?
(1) 𝐴, 𝐵 only (2) 𝐶, 𝐷 only (3) 𝐴, 𝐵, 𝐷 only
(4) 𝐴, 𝐵, 𝐶 only (5) 𝐴, 𝐵, 𝐶, 𝐷 all

18) Designing computers on computer network is referred as “Computer Topology”. Consider the
following statements on topology.
∗ One host is connected with one or more hosts.
∗ All hosts are connected with each other in this topology
∗ Only some hosts are connected themselves
Which topology contains above characteristics?
(1) Bus topology
(2) Star topology
(3) Ring topology
(4) Mesh topology
(5) Tree topology

19) Which of the following can’t be considered as a function of operating system?


(1) Keeping track of memory currently being used by the process during multi programming
(2) Creating processes and providing mechanisms for process inter communication
(3) Creating files and folders and saving them in particular memory addresses.
(4) Providing user interface between hardware and the user
(5) Keeping BIOS settings for the booting up procedure

[see page five


-5-
AL/2023/20/E-I
20) Consider the following statements regarding signals
𝐴 − Analog signals carries data in a continuous wave form and these signals are substituted by
digital signals
𝐵 − Digital signals uses discrete values and denoted by square waves
𝐶 − Amplitude, Frequency,Wave length, Phase, Synchronization are the basic properties of a signal.
Which of the above is/are correct?
(1) 𝐴 only (2) 𝐵 only (3) 𝐴, 𝐶 only
(4) 𝐴, 𝐵 only (5) 𝐴, 𝐵, 𝐶 all

21) Sender, Receiver and medium are the basic requirements for data communication. Which answer
set only contains Free space medium?
(1)Twisted pair cable, Coaxial cable, Fiber optics cable
(2)Radio waves , Microwaves, Infrared rays, Satellite communication
(3)Shielded twisted pair cable, Coaxial cable , Fiber optics cable, Unshielded twisted pair cable
(4)Radio waves , Coaxial cable , Infrared rays, Microwaves
(5)Shielded twisted pair cable, Satellite communication, Microwaves , Coaxial cable

22) Consider about TCP/IP model in network reference models. Match the layers in P to S to their
corresponding functions listed from 1 to 4.
Function
Layer
1) Determining the size of datagram and
P. Application Layer transmitting the data
Q. Transport Layer 2) Carrying out the transmission to reach
R. Internet Layer physical network
S. Network Access Layer 3) Providing data delivery services between
two points
4) Contains programs and protocols used by the
network

(1) 𝑃 − 4 , 𝑄 − 3, 𝑅 − 1 , 𝑆 − 2 (2) 𝑃 − 3, 𝑄 − 2, 𝑅 − 1, 𝑆 − 4
(3) 𝑃 − 1, 𝑄 − 2, 𝑅 − 3, 𝑆 − 4 (4) 𝑃 − 4, 𝑄 − 1, 𝑅 − 3, 𝑆 − 2
(5) 𝑃 − 2, 𝑄 − 3, 𝑅 − 1, 𝑆 − 4

23) An IP address block 193.1.1.0/24 is assigned to an organization which contains 8 subnets. A


computer in a subnet is configured with the IP address 193.1.1.165. Which of the following IP
address can’t be assigned to a computer in the same subnet?
(1) 193.1.1.169 (2) 193.1.1.160 (3) 193.1.1.190
(4) 193.1.1.180 (5) 193.1.1.192

24) What would be the output of the following python code, if the input is 5?

x = int ( input ( " Enter the number: " ) )


x = ~ x + x ^ 2 ** 3|4
print (x)

(1) 0 (2) −9 (3) 9 (4) 13 (5) 7

[see page six


-6-
AL/2023/20/E-I
25) Match the protocols from A to E , to their corresponding functions listed from 1 to 5.

Protocols Functions

A. Internet control message 1) A protocol for sending email to the mail server
protocol(ICMP) 2) Standard protocol used for email retrieval from
B. File transfer protocol (FTP) remote computer
C. Simple mail transfer 3) Allows sharing of files between remote
protocol(SMTP) computers in a reliable manner
D. Post office protocol(POP) 4) Monitoring and managing devices on IP
E. Simple network management network
protocol(SNMP) 5) Protocol which reports the unexpected errors

(1) 𝐴 − 5, 𝐵 − 3, 𝐶 − 4, 𝐷 − 2, 𝐸 − 1 (2) 𝐴 − 5, 𝐵 − 3, 𝐶 − 4, 𝐸 − 1, 𝐷 − 2
(3) 𝐴 − 5, 𝐵 − 3, 𝐶 − 1, 𝐷 − 2, 𝐸 − 4 (4) 𝐴 − 5, 𝐵 − 3, 𝐶 − 2, 𝐷 − 1 , 𝐸 − 4
(5) 𝐴 − 4, 𝐵 − 3, 𝐶 − 1, 𝐷 − 2, 𝐸 − 5

26) Consider the following statements regarding data types on python


𝐴 − List can contain ordered, mutable and duplicate objects
𝐵 − Tuple is immutable, unordered and can contain duplicate objects.
𝐶 − Dictionary is ordered , mutable and doesn’t contain duplicate objects.
𝐷 − Set is unordered and doesn’t have index also, set avoids duplicate objects
Which of the following is/are correct?
(1) 𝐴, 𝐵 only (2) 𝐶, 𝐷 only (3) 𝐴, 𝐵, 𝐶 only
(4) 𝐴, 𝐶, 𝐷 only (5) 𝐴, 𝐵, 𝐶, 𝐷 all

27) Match the layers of OSI model named from A to D , with it’s corresponding functions listed from 1
to 4

Layer Function

A. Application layer 1) Hop to hop communication


B. Transport layer 2) Application to Application communication
C. Network layer 3) Process to Process communication
D. Data link layer 4) Source to destination communication

(1) 𝐴 − 1, 𝐵 − 2, 𝐶 − 3, 𝐷 − 4 (2) 𝐴 − 2, 𝐵 − 3, 𝐶 − 4 , 𝐷 − 1
(3) 𝐴 − 2, 𝐵 − 4, 𝐶 − 3, 𝐷 − 1 (4) 𝐴 − 1, 𝐵 − 3, 𝐶 − 4, 𝐷 − 2
(5) 𝐴 − 4, 𝐵 − 3, 𝐶 − 2, 𝐷 − 1

28) ………………………….. is an application based on artificial intelligence, which suggests products


or services to customers based on their likes and dislikes(psychological feelings) and also provide
thinking abilities to machine.
(1) Kansei system
(2) Expert system
(3) Genetic system
(4) Neural network
(5) Quantum computing

[see page seven


-7-
AL/2023/20/E-I
29) Consider the following python programs
import os
if os.path.exists("one.txt”):
import os
os.remove("one.txt")
os.rmdir("myfolder”)
else:
print("empty") II

I
𝐴 − program 1 is used to delete the file “one.txt”
𝐵 − program 1 checks if the file “one.txt” is on the particular folder, if yes then deletes it.
𝐶 − Program II is used to delete the folder “myfolder”
𝐷 − Program II is used to delete the folder “myfolder” if it doesn’t contain any files.
Which of the above is/are correct?
(1) 𝐴, 𝐶 only (2) 𝐴, 𝐷 only (3) 𝐵, 𝐶 only (4) 𝐵, 𝐷 only (5) 𝐴, 𝐵, 𝐶, 𝐷 all

30) What is the output of the following python program?

a=[[1,2],[3,4]] (1) [1,2], [3,4]


m=1 (2) [10,20], [300,400]
for i in range(0,2):
(3) [[10,20], [300,400]]
m * =10
(4) [[10,20], [30,40]]
for j in range(0,2):
a [i] [j] * = m (5) [[1,2], [300,400]]
print(a)

31) What is the output of the following python program?

marks={'ICT':77,'Maths':80,'phy':79,'che':90,'Bio':75} (1) {'ICT':77,'phy':79,'che':90,'Bio':75}


marks.pop('Maths') (2) {'ICT':77,'phy':79,'che':90}
marks.popitem() (3) {ICT:77,phy:79,che:90}
print(marks) (4) {'ICT':77,'phy':79,'Bio':75}
(5) {'phy':79,'che':90,'Bio':75}

32) What is the output of the following python program?

(1) 6
def func(a):
(2) 15
total_sum=0
for b in a: (3) 24
for num in b: (4) 21
total_sum+=num (5) 45
return total_sum
a=[[1,2,3],[4,5,6],[7,8,9]]
result=func(a)
print(result)

[see page eight


-8-
AL/2023/20/E-I
33) What is the output of the following python program?

output=" " (1) 𝑣𝑎𝑟1 = 0, 𝑣𝑎𝑟2 = −2


var1=-2 ; var2=0 (2) 𝑣𝑎𝑟1 = 1, 𝑣𝑎𝑟2 = −2
while var1!=0:
(3) 𝑣𝑎𝑟1 = −2, 𝑣𝑎𝑟2 = −2
var1=var1+1
(4) 𝑣𝑎𝑟1 = 0, 𝑣𝑎𝑟2 = 0
var2=var2-1
print("var1="+str(var1)+" ,"+"var2="+str(var2)) (5) 𝑣𝑎𝑟1 = 1, 𝑣𝑎𝑟2 = 2

34) What is the output of the following python program?

(1) 𝑤𝑎𝑙𝑘𝑖𝑛𝑔
def mystery(str): (2) 𝑤𝑎𝑙𝑘
out=" " (3) 𝑤𝑙𝑘
for char in str:
(4) 𝑘𝑖𝑛𝑔
if char=="i":
(5) 𝑙𝑘
break
if char=="a":
continue
out+=char
return out
print(mystery("walking"))

35) What is the output of the following python program if the inputs were -2,-5 and 9?

i=int(input("enter the num i:")) (1) 9, −5 , 9


j=int(input("enter the num j:"))
(2) −5, 9 , 9
k=int(input("enter the num k:"))
(3) 9, −5 ,0
if i<j:
if j<k: (4) 5, −7, 9
i=j (5) −8, 7 ,9
else:
j=k
else:
if j>k:
j=i
else:
i=k
print(i,j,k)

36) …………………………….. is a business management integrated applications that a company use


to collect, store, manage and interpret data from many business activities.
(1) 𝐺𝑒𝑜𝑔𝑟𝑎𝑝ℎ𝑖𝑐𝑎𝑙 𝐼𝑛𝑓𝑜𝑟𝑚𝑎𝑡𝑖𝑜𝑛 𝑆𝑦𝑠𝑡𝑒𝑚
(2) 𝑇𝑟𝑎𝑛𝑠𝑎𝑐𝑡𝑖𝑜𝑛 𝑃𝑟𝑜𝑐𝑒𝑠𝑠𝑖𝑛𝑔 𝑆𝑦𝑠𝑡𝑒𝑚
(3) 𝐸𝑥𝑒𝑐𝑢𝑡𝑖𝑣𝑒 𝑆𝑢𝑝𝑝𝑜𝑟𝑡 𝑆𝑦𝑠𝑡𝑒𝑚
(4) 𝑀𝑎𝑛𝑎𝑔𝑒𝑚𝑒𝑛𝑡 𝐼𝑛𝑓𝑜𝑟𝑚𝑎𝑡𝑖𝑜𝑛 𝑆𝑦𝑠𝑡𝑒𝑚
(5) 𝐸𝑛𝑡𝑒𝑟𝑝𝑟𝑖𝑠𝑒 𝑅𝑒𝑠𝑜𝑢𝑟𝑐𝑒 𝑃𝑙𝑎𝑛𝑛𝑖𝑛𝑔 𝑆𝑦𝑠𝑡𝑒𝑚

[see page nine


-9-
AL/2023/20/E-I
37) What would be the output of the flow chart if the input is num=5?

(1) 1 2
(2) 0 1 1 2 3 5
(3) 0 1 1 2 3 5 8
(4) 0 1 2 3 5
(5) 0 1 2 3 5 8

38) Which of the following is/are correct?


𝐴 − A payment gateway is a merchant service provider that authorizes credit card or direct
payments
processing for e-businesses, online retailers.
𝐵 − Online marketplace is paying the whole payment to enter e-business.
𝐶 − Digital currency is an alternative form of payment created using encryption algorithms.
(1) 𝐴 only (2) 𝐵 only (3) 𝐶 only
(4) 𝐴, 𝐶 only (5) 𝐵, 𝐶 only

39) Arduino is an open source, low cost, easy to use hardware and software platform. There are
different kinds of Arduino boards available. Among that picture of an Arduino Uno board is shown
below. Name the parts numbered from 1 to 5.

(1) 1 −Reset button,2 − USB port,3 −Power supply jack ,4 − Analog input pins,5 − microcontroller
(2) 1 − USB port, 2 − Reset button, 3 −Power supply jack, 4 − Analog input pins,5 −microcontroller
(3) 1 − Reset button,2 − USB port ,3 − microcontroller,4 −Analog input pins ,5 −Power supply jack
(4) 1 − Reset button, 2 −Power supply jack ,3 − USB port,4 −Analog input pins ,5 −microcontroller
(5) 1 − Reset button,2 − microcontroller ,3 − Power supply jack 4 − Analog input pins,5 −USBport
40) Which is correct regarding the coding given below?

<style type="text/css">
p.title{text-align :center;color:red; }
</style>

(1) This defines internal styles and uses CSS ‘group’ concept
(2) This defines internal styles and uses CSS ‘class’ concept also it only defines style for <p> tag.
(3) This defines internal styles and uses CSS ‘class’ concept also it defines style for all tags
(4) This defines styles for all <p> tags.
(5) This is an example of the CSS “class selector” concept and the name of the class is “p.title”

[see page ten


-10-
AL/2023/20/E-I
41) The tables which are partially extracted from a database used in an information system developed
for a shop are shown below.
members committees
Member_ID name committiee_ID name
m01 John
co1 John
m02 Jane
m03 Mary c02 Mary
m04 David c03 Amelia
m05 Amelia c04 Joe

SELECT m.member_ID, m.name As member, c.committee_ID, c.name As committee


FROM members m LEFT JOIN committees c ON c.name = m.name ;

What will be the output after executing the following SQL statement?
(1) member_ID member committee_ID committee
m01 John c01 John
m02 Jane NULL NULL
m03 Mary c02 Mary
m04 David NULL NULL
m05 Amelia c03 Amelia

member_ID member committee_ID committee


(2)
m01 John c01 John
m02 Jane NULL NULL
m03 Mary c02 Mary
m05 Amelia c03 Amelia

(3) member_ID member committee_ID committee


m01 John c01 John
m03 Mary c02 Mary
m05 Amelia c03 Amelia

(4) member_ID member committee_ID committee


m01 John c01 John
m02 Jane 0 0
m03 Mary c02 Mary
m04 David 0 0
m05 Amelia c03 Amelia
(5) member_ID member committee_ID
m01 John c01
m03 Mary c02
m05 Amelia c03

[see page eleven


-11-
AL/2023/20/E-I
42) Consider the following SQL statement.

ALTER TABLE MARK


ADD FOREIGN KEY(STU_ID)
REFERENCES SCHOOL(STU_ID);

Which is correct regarding the above SQL statement.


(1) It is adding primary key constraint to the relation MARK.
(2) STU_ID is already foreign key for SCHOOL relation
(3) It is creating foreign key STU_ID for MARK relation
(4) A new field named STU_ID is added to MARK relation
(5) STU_ID field in MARK relation can’t contain repeating entries(duplicate value)

43) Consider the html code below

1. <html>
2. <body bgcolor="green">
3. <h1>welcome all of you to online ICT seminar</h1>
4. <a href="#one"> A/L Student Selection</a>
5. <p> O/L ICT is not available</p>
6. <!-----selection-01----->
7. <h4 id="one">A/L ICT</h4>
8. <hr><p>Good Morning</p><hr>
9. <br><p> This section is for Student</p><br>
10. </body> </html>

Which is/are correct regarding above html code.


(1) While clicking on the line A/L Student selection, a web page named “one” will be displayed on the
same page/tab
(2) While clicking on the line A/L Student selection, a web page named “one” will be displayed on the
new tab.
(3) While clicking on the line A/L Student selection, it will hyperlinked to the text “A/L ICT” in line 7
(4) Hyperlink code in line 4 will generate an error message.
(5) The above html coding will not display any outputs.

44) Which statement(s) is/are incorrect regarding to Commercial Off The Shelf Software(COTS)?
𝐴 − 𝐶𝑂𝑇𝑆 is specially designed for vertical and horizontal marketing system
𝐵 − 𝐶𝑂𝑇𝑆 software is a personified software developed according to user’s requirements.
𝐶 − 𝐶𝑂𝑇𝑆 is a complexed software which contains too many unused features and takes time to
understand
(1) 𝐴 only (2) 𝐵 only (3) 𝐶 only
(4) 𝐴, 𝐵 only (5) 𝐴, 𝐶 only

[see page twelve


-12-
AL/2023/20/E-I
45) What is the output for the PHP program based on Switch concept ?

<?php
$favcolor="red";
switch($favcolor)
{ case"red":
echo"your favorite color is red!";
case"blue":
echo"your favorite color is blue!";
case"green":
echo"your favorite color is green!";
default:
echo"your favorite color is neither red,blue nor green!";
}
?>

your favorite color is red! your favorite color is red!


(1) (2)
your favorite color is blue!
your favorite color is green!
your favorite color is neither red, blue nor green!

your favorite color is blue! your favorite color is red!


(3) your favorite color is green! (4) your favorite color is blue!
your favorite color is green!

your favorite color is neither red, blue nor green!


(5)

46) Consider the following statements


𝐴 − The tasks are divided to time slices to deliver specific features for a release
𝐵 − This is an iterative approach and the software build is delivered after each iteration.
𝐶 − Each build is an increment and the final product contains all the functionalities that the user
requested
The above described software process model is
(1) Agile process model (2) Rapid Access Development (𝑅𝐴𝐷) model
(3)Spiral model (4) 𝑊𝑎𝑡𝑒𝑟𝑓𝑎𝑙𝑙 𝑚𝑜𝑑𝑒𝑙
(5) Network model
47) Which is/are correct regarding System Testing?
𝐴 − Ensuring whether the newly developed system has met user’s requirements
𝐵 − Identifying and resolving errors in the system
𝐶 − Inputs the test data into the newly developed system and the actual output is compared with the
expected results
𝐷 − System testing will be executed in the order of Integration testing, Unit testing, System testing
and user acceptance testing
(1) 𝐴, 𝐵 only (2) 𝐴, 𝐶 only (3) 𝐴, 𝐵, 𝐶 only
(4) 𝐴, 𝐶, 𝐷 only (5) 𝐴, 𝐵, 𝐶, 𝐷 all

[see page thirteen


-13-
AL/2023/20/E-I
48) 𝑎𝑏𝑐 (𝑃𝑣𝑡) 𝐿𝑡𝑑 uses a computer based system for their organizational activities. Employees have
noticed many errors while using that system and they listed the errors as follows:
∗ While marking the daily attendance register of employees
∗ While calculating salary for employees
∗ While copying the monthly sales report of the company
The system has been hand overed to a software development company to resolve errors. Which
stage of Software Development Life Cycle(SDLC) will be executed by the software development
company?
(1)System Maintenance (2) System Deployment (3)System Testing
(4) Requirement Analysis (5)Feasibility study

49) Which normal form is violated by the database relation stated below?
Item color Price Tax

T-Shirt Red, Blue 12.00 0.60


Polo Red,Yellow 12.00 0.6

T-Shirt Red, Blue 12.00 0.60

Sweatshirt Blue,Black 25.00 1.25

(1) Zero Normal Form (𝑂𝑁𝐹)


(2) First Normal Form (1𝑁𝐹)
(3) Second Normal Form (2𝑁𝐹)
(4) Third Normal Form(3𝑁𝐹)
(5) 𝐵𝐶𝑁𝐹 − 𝐵𝑜𝑦𝑐𝑒– 𝐶𝑜𝑑𝑑 𝑛𝑜𝑟𝑚𝑎𝑙 𝑓𝑜𝑟𝑚

50) Which relations is/are correct, if the above relation is converted into 3rd normal form?
𝐴 − 𝐼𝑡𝑒𝑚_𝑐𝑜𝑙𝑜𝑟 (𝐼𝑡𝑒𝑚 , 𝑐𝑜𝑙𝑜𝑟)
𝐵 − 𝐼𝑡𝑒𝑚_𝑃𝑟𝑖𝑐𝑒 (𝐼𝑡𝑒𝑚, 𝑃𝑟𝑖𝑐𝑒)
𝐶 − 𝐼𝑡𝑒𝑚_𝑇𝑎𝑥 (𝑃𝑟𝑖𝑐𝑒 , 𝑇𝑎𝑥 )
𝐷 − 𝐼𝑡𝑒𝑚_𝑃𝑟𝑖𝑐𝑒_𝑇𝑎𝑥 (𝐼𝑡𝑒𝑚, 𝑃𝑟𝑖𝑐𝑒, 𝑇𝑎𝑥)
(1) 𝐴, 𝐷 only (2) 𝐵, 𝐶 only (3) 𝐶, 𝐷 only
(4) 𝐴, 𝐶, only (5) 𝐴, 𝐵, 𝐶 all

***
AL/2023/20/E-II(A)
KOg;gjpg;GupikAilaJ / All Rights Reserved]

Index No. : …..………………………...

For Examiners’ Use Only


 This paper comprises of two parts A and B.
Part Question No. Marks
The time allotted for the two parts is three
1
hours only. Additional Reading time – 10
2
minutes. A
3
 Use of calculators is not allowed
4
 Part A – Structured Essay 5
 Answer all the questions on the question paper 6
itself. 7
B
 Write your answers in the space provided for 8
each question. 9
 Please note that the space provided is sufficient 10
for the answer and that extensive answers are Total
not expected. Percentage
 Part B – Essay Final Marks
 Answer four questions only. Use the papers
In Numbers
supplied for this purpose.
In Letters
 At the end of the time allotted for this paper,
tie the two papers together so that Part A
Code Numbers
is on top of Part B and hand them over to
Marking Examiner 1
the Supervisor.
Marking Examiner 2
 You are permitted to remove only Part B of
Checked by :
the question paper from the Examination
Supervised by :
Hall.

[See page two


-2-
AL/2023/20/E-II(A)
Part A – Structured Essay Do not
write
Answer all four questions on this paper itself. anything
(Each question carries 10 marks) here.

1) Output of a html coding rendered by a web browser is given below.

Mora Exam - 2023


APPLICATION FORM

a) An uncompleted html code is given below. Fill in the blanks to get the above
output.

[See page three


-3-
AL/2023/20/E-II(A)
Do not
Consider the following while completing the code write
anything
o Physical science, Biological science , other are the option values for the here.
section Stream.
o Email address entered in the textbox email will be validated under
format check (𝑒. 𝑔. 𝑈𝑠𝑒𝑟𝑛𝑎𝑚𝑒@𝑑𝑜𝑚𝑎𝑖𝑛 𝑛𝑎𝑚𝑒)

<html> <head> <title> Mora exam</title> </head> <body>


<h1> Mora Exam - 2023 </h1>
<h2> APPLICATION FORM </h2>
<form action="mora.php " method="POST">
<------------------>
<-------------------- ------------------- ="---------------"> Exam-2023
</-------------------->
<p> <label for="fn"> Full Name: </label> <br/>
<input ------------------ ="---------------" ------------------- ="fname" id="fn"> </p>
<p> <label for="Sn">School Name:</label> < br/>
<input ------------------ ="---------------" -------------------="Sname" id="Sn"> </p>
<p> <label for="em">Email:</label>< br/>
<input ------------------ ="-----------------" ----------------- ="email" id="em"> </p>
<p> <label for="gt">Gender:</label> < br/>
<input ----------------- ="--------------------" -----------------="gtype" id="gt"
-------------="male"> -------------------
<input ----------------- ="--------------------" -----------------="gtype" id="gt"
--------------="female"> ---------------- </p> <p>
<label for="add">Address: </label> < br/>
<------------------------------ --------------------------="address" id="add">
</---------------------------------------------> </p>
<p> <label for="str">Stream:</label><--------------------------/>
<-------------------------- ----------------------------- ="stream" id="str">
<----------------------------- ----------------------------------- ="------------------------------">
---------------------------------------------------- </------------------------>
<--------------------------- --------------------------------- ="----------------------------------">
---------------------------------------------------- </------------------------>
<----------------------------- ------------------------------- ="-------------------------------">
-------------------------------------------------- </----------------------->
</-----------------------> </p>
<p> <label for="sub"> Subject :</label> <p> [See page four

<input type="----------------------------------" id="sub" --------------------="sub[]"


-4-
AL/2023/20/E-II(A)
Do not
write
</-----------------------> </p> anything
here.
<p> <label for="sub"> Subject :</label> <p>
<input type="----------------------------------" id="sub" --------------------="sub[]"
value="Combined Mathematics">
Combined Mathematics <br/>
<input type="-----------------------------------" id="sub" -------------------="sub[]"
value="Biology">
Biology <br/>
<input type="------------------------------------" id="sub" -------------------------="sub[]"
value="Physics">
Physics <br/>
<input type="--------------------------------------" id="sub" --------------------------="sub[]"
value="Chemistry">
Chemistry <br/>
<input type="-------------------------------------" id="sub" -------------------------------="sub[]"
value="ICT"> ICT </p>

- This page is intentionally left blank -


</p> <p>
<input -------------------------------- ="----------------------------" -----------------------------="
--------------------------">
<input -------------------------------- ="--------------------------- " ----------------------------- ="
---------------------------">
</p> </fieldset> </form>
<p> EXAMINATION COMMITTEE </p>
<p> <ul> <li> moraetamils.com </li> <li> [email protected] </li> </ul> </p>
</body> </html>

b) Consider the following CSS styling table to format the text in the above webpage.

𝑺𝒆𝒍𝒆𝒄𝒕𝒐𝒓 Style Description

𝐻1 𝐴𝑙𝑖𝑔𝑛𝑚𝑒𝑛𝑡 ∶ 𝐶𝑒𝑛𝑡𝑒𝑟𝑒𝑑 , 𝐹𝑜𝑛𝑡 𝑐𝑜𝑙𝑜𝑟: 𝑏𝑙𝑢𝑒

𝐻2 𝐴𝑙𝑖𝑔𝑛𝑚𝑒𝑛𝑡: 𝑐𝑒𝑛𝑡𝑒𝑟𝑒𝑑, 𝐹𝑜𝑛𝑡 𝑐𝑜𝑙𝑜𝑢𝑟: 𝑔𝑟𝑒𝑒𝑛

𝐼𝐷 → #𝑝𝑎𝑟𝑎1 𝑖𝑡𝑎𝑙𝑖𝑐, 𝐹𝑜𝑛𝑡 𝑠𝑡𝑦𝑙𝑒: 𝑐𝑎𝑙𝑖𝑏𝑟𝑖

𝑈𝑛𝑜𝑟𝑑𝑒𝑟𝑒𝑑 𝐿𝑖𝑠𝑡 𝐵𝑢𝑙𝑙𝑒𝑡 𝑡𝑦𝑝𝑒: 𝑆𝑞𝑢𝑎𝑟𝑒

[See page five


-5-
AL/2023/20/E-II(A)
Do not
i) Above styles are intended to be used on several web pages in a website. write
Write an efficient and suitable cascading stylesheet to satisfy the above anything
here.
requirement.
……………………………………………………………………………………
……………………………………………………………………………………
……………………………………………………………………………………
……………………………………………………………………………………
ii) Write the html code lines to link the stylesheet written above in (b) (i) with the
webpage. (Assume that the stylesheet created above in (b) (i) is saved in the
name mora)
……………………………………………………………………………………
……………………………………………………………………………………
……………………………………………………………………………………
……………………………………………………………………………………

c) The details inputted in the form shown in the above web page is stored on the
relation “Exam23" which is on the database mora.

To connect with the database mora, partially completed PHP script using
MySQLi procedural method is given below. Complete the PHP script.

<?php
$servername = "localhost"; $username ="root"; $password = "";
$db= "-------------------------------------";
$conn = mysqli_connect(------------------------------, ---------------------------,

------------------------, -----------------------);
if(!$conn) { die("connection failed:".mysqli_connect_error()); }
$sql = "CREATE TABLE _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ( fullname
char(20),schoolname char(30),email char(30), gender char(6),stream char(25));";
if(mysqli_query(_ _ _ _ _ _ _ _ _ _ _ _ _ , _ _ _ _ _ _ _ _ _ _ _ _ _ _)) {
echo "table exam23 created successfully"; }
else { echo "Error creating table".mysqli_error(---------------------------------------------);}
mysqli_close($conn)
?>

[See page six


-6-
AL/2023/20/E-II(A)
Do not
d) Data has been inserted to Exam23 relation created in (c) part. Data inserted is write
anything
retrieved from the database by queries. PHP code for data retrieval is shown here.
below with blanks
The query is to retrieve only the records of students on stream other from
the relation Exam23.

<?php
$servername = "localhost"; $username ="root"; $password = "";
$db= "mora";
$conn = mysqli_connect($servername,$username,$password,$db);
if(!$conn)
{
die("connection failed:".mysqli_connect_error());
}
$sql = "--------------------------------------------------------------------------------------------------------

--------------------------";
$result = mysqli_query($conn, $sql);

if(mysqli_num_rows($result)>0)
{
while($row = mysqli_fetch_assoc($result))
{
echo $row['fullname']."-".$row['schoolname']."-".$row['stream'];
}
}
else
{
echo "0 result";
}
mysqli_close($conn) ?>

[See page seven


-7-
AL/2023/20/E-II(A)
Do not
2) The following flowchart uses the theorem for any given triangle, the sum of two write
sides of a triangle is always greater than the third side. anything
here.
Assume that AB,BC,AC are three lengths of sides of a triangle. Every sides are
inputted as AB,BC,AC. Algorithm should stop when one or more inputs(length)
become zero.
Complete the blanks in the flowchart.

b) The following python program checks whether the inputted number is prime
number or not. Fill in the blanks in the code.

Note : The inputted numbers are greater than one(num > 1)


A prime number is a number that can only be divided by itself and 1
without remainders. 2 is the first prime number.

Eg: 5 is a prime number


5%5 == 0 , 5%1 == 0 , 5%4 ≠ 0
Assume that user will only input integers.

[See page eight


-8-
AL/2023/20/E-II(A)
Do not
write
num = _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ anything
here.
flag = False
if(_ _ _ _ _ _ _ _ _ _ _ _ _):
for i in range(_ _ _ _ _ _ _ _ _ _ _ _ _) :
if((_ _ _ _ _ _ _ _ _ _ _ _)==0):
flag = True
break
if (flag):
print(num,"_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ __ _ _ _ _ _ _ ")
else:
print(num,"_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ __ _ _ _")

c) Consider the following python program intends to check the secret


pin(password).
c = 0
pin = int(input("Enter a pin number:"))
x = pin
while(not(x<1)):
x = x/10
c = c+1
if(c!=5):
print("Error in PIN entered")
else:
print("PIN ok")

(i) What would be the output while entering the following secret pins in the
above code.
(1) 51020 value of C : ……………………………………………………
message : ……………………………………………………
(2) 5102 value of C : ……………………………………………………
message : ……………………………………………………

(ii) Which validation check is used in above code ?


……………………………………………………………………………………
……………………………………………………………………………............
[See page nine
-9-
AL/2023/20/E-II(A)
Do not
(d) Fill in the blanks in the below python code to copy the contents in the text file a into write
text file b. anything
here.

Abinaya ,75,80,90 Abinaya 245

Vaishnavy,65,76,89 Vaishnavy 230

Saraja,78,89,52 Saraja 219

a.txt b.txt

f1 = ----------------------("------------------",'--------')
f2 = ----------------------("------------------",'---------')
for line in f1:
items = line.strip()._ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tot = _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
print(items[0],tot, file = f2)
f1.close()
f2.close()

3) a) The below is the context diagram for the events that take place when a customer
is being proceed with the payment at Point of Sale system at a boutique.

A labelled Data Flow Diagram is developed according to the above context


diagram. Choose the suitable answers from the given list and write it against
the labels.

[See page ten


-10-
AL/2023/20/E-II(A)
Do not
write
anything
here.

List : Preparing management report, Total sales amount,Updated sold product amount,
Payment, Product details, Inventory amount

(𝐴): − − − − − − − − − − − − − (𝐵): − − − − − − − − − − − − − −
(𝐶): − − − − − − − − − − − − − (𝐷): − − − − − − − − − − − − − −
(𝐸): − − − − − − − − − − − − − − (𝐹) : − − − − − − − − − − − − − −

b) Choose the correct answers from the list and fill in the blanks.

i) ………………………………………. helps to understand the exact user requirements.


ii) ……………………………………….. tests the internal structures of a software.
iii) In ………………………………………… tasks are divided to time slices to deliver
specific features for a release.
iv) In …………………………………….. some part of the system is installed first and
executed successfully for a considerable time period. Other parts will only implemented
if the results are satisfactory.

[ Agile process model, Pilot deployment, Parallel deployment, Prototyping model,


Waterfall model, Whitebox testing, Blackbox testing ]

[See page eleven


-11-
AL/2023/20/E-II(A)
Do not
c) SSADM includes creating new system or updating the current system. It gives a step by write
anything
step approach for software development. Complete the below diagram with the steps of here.

SSADM , from the given list.

[Physical Design , Feasibility Study, Logical System Specification , Requirements Analysis ,


Requirement Specification ]

d) Loading the developed system into the user’s computer is called deployment.
State whether the statements are “True” or “False” regarding System Deployment.
(You are required to write “True” or “False” in the space provided)

i) User will use both systems until he/she get to used with the newly developed
system in parallel deployment (----------------------------)

ii) Newly developed system can be implemented quickly using direct deployment
rather than other methods. Due to the unavailability of old system for a
longtime , user should understand and use the new system
(----------------------------)

iii) Pilot deployment is a method of examining and analyzing the system with the
group of users (----------------------------)

iv) In phase deployment, system will be implemented stage by stage until its
deployed completely for a group of people. (----------------------------)

[See page twelve


-12-
AL/2023/20/E-II(A)
Do not
4) write
anything
a) Memories are used to store data and information on computer. These can be here.
classified into primary memory and secondary memory. Moreover these memories
can be divided as volatile and non-volatile memory based on losing data while the
power is turned off.
Divide the following storage devices as volatile and non-volatile

Volatile Memory Non-volatile Memory

[Hard disk, L1 cache memory, Memory register, Dynamic Random Access


Memory(DRAM), Magnetic tape, Read Only Memory(ROM)]

b)
i) Complete the truth table for the circuit constructed only using universal gates.

A B P Q F

0 0

0 1

1 0

1 1

ii) Name the combinational logic circuit for the above truth table. (with inputs A
and B, output F)
…………………………………………………………………………………
…………………………………………………………………………………

c) The following picture depicts a small network built using a switch and router. A
personal computer is connected with switch and a server is connected with the
router. IP addresses and MAC addresses of the corresponding devices are
shown in the picture.

[See page thirteen


-13-
AL/2023/20/E-II(A)
Do not
Assume that data is being sent from personal computer to the server. Write the write
source and destination IP , MAC addresses for the frame in part A. anything
here.

Part A

Source MAC address


Destination MAC address
Source IP address
Destination IP address
d) Consider an automated fan system.

System will automatically operates the fan according to the room temperature
using a dc motor. Things needed for the above requirement and the circuit
diagram are shown below.

 𝐴𝑟𝑑𝑢𝑛𝑖𝑜 𝑢𝑛𝑜 board


 𝐷𝑐 𝑀𝑜𝑡𝑜𝑟
 𝐿𝑀35 temperature sensor
 𝐵𝐶547 transistor
 𝑅𝑒𝑠𝑖𝑠𝑡𝑜𝑟
 1𝑁4001 rectifier diode

A system is created by the student using the above things and circuit diagram.
System reads the voltage using analog pin and converts it into a voltage
(0-1023) between 0 – 5V and converts the temperature into Celsius. This value
will be compared with the predefined value and according to the room
temperature motor will be turned on or off.
A piece of code for the operation of motor is stated below with blanks. The fan
will be turned on if the converted temperature is above 30°C otherwise not.
Fan is turned on → 𝑑𝑖𝑔𝑖𝑡𝑎𝑙𝑊𝑟𝑖𝑡𝑒(𝑚𝑜𝑡𝑜𝑟𝑃𝑖𝑛, 𝐻𝐼𝐺𝐻)
Fan is turned off → 𝑑𝑖𝑔𝑖𝑡𝑎𝑙𝑊𝑟𝑖𝑡𝑒(𝑚𝑜𝑡𝑜𝑟𝑃𝑖𝑛, 𝐿𝑂𝑊)
Fill in the blanks.
void loop()
{
int sensorValue = analogRead(sensorPin);
float voltage = sensorValue*5.0/1023;
float temp = voltage * 100;
if(------------------------)
{
--------------------------------------;
}
else
{
--------------------------------------;
}
}
AL/2023/20/E-II(B)

Part B - Essay

Instructions:
 Answer four questions only.
 Give clear labelled diagrams when necessary.
(Each question carries 15 marks)

1)
a) A logic circuit takes three binary numbers as input and outputs 1 if the decimal number denoted by
the three inputs is an even number, otherwise it outputs 0.
Assume that all three inputs only carries positive decimal numbers. In the above illustrated circuit,
A,B,C denotes from Most Significant Bit(MSB), to Least Significant Bit(LSB). F(A,B,C) denotes the
output.

i) Construct the truth table for the above circuit.


ii) Write the Sum Of Products(SOP) form from the truth table constructed above in (a) (i)
iii) Simplify the standard expression you got from (a)(ii) , using Boolean laws. State the laws
clearly.
iv) Draw the logic circuit for part (a)(iii) only using NOR gates.

b) Consider the Boolean expression below.

𝑓(𝐴, 𝐵, 𝐶) = 𝐴̅𝐵𝐶̅ + 𝐴̅𝐵 + 𝐴𝐵𝐶

i) Convert the above Boolean expression into Standard Sum Of Products (SOP) form.
ii) Simplify the derived Boolean expression in b)i) using Karnaugh diagram
iii) Write the Sum Of Products (SOP) expression derived from b) i) in the standard Product Of
Sum(POS) form

[see page two


AL/2023/20/E-II(B) -2-

2)
a) IP addresses are used to uniquely identify the computers and devices connected in the network.
While assigning IP addresses, state one advantage using Variable Length Subnet Mask(VLSM)
rather than Fixed Length Subnet Mask(FLSM).

b) NSW company has got an IP address block 192.168.222.128/26 to distribute among its three
departments.

This IP address block should be sub netted to fulfill the below requirements. Assume that every
department is located on separate building. IP addresses should be assigned in an efficient way and
address loss should be minimized during subnetting.

Topology network in each department is connected by Information Technology department. An


internet connection is provided to Information Technology Department by an Internet Service
Provider(ISP).Whole network is protected by a firewall. With the use of Domain Name Server(DNS),
Proxy server all computers should be interconnected in an efficient way.
𝑆𝑢𝑏𝑛𝑒𝑡 𝐷𝑒𝑝𝑎𝑟𝑡𝑚𝑒𝑛𝑡 𝑁𝑢𝑚𝑏𝑒𝑟 𝑜𝑓
𝑁𝑢𝑚𝑏𝑒𝑟 𝑁𝑎𝑚𝑒 𝐶𝑜𝑚𝑝𝑢𝑡𝑒𝑟𝑠
𝑁𝑆𝑊01 Accounts 25 01 network printer

𝑁𝑆𝑊02 Information Technology 10 printer

Human Resource 01 network printer


𝑁𝑆𝑊03 7
Management

i) State the Network address and broadcast address of the given IP address block.
ii) State the usable IP address range of the above given IP address block.
iii) State the subnet mask of the above given IP address block.
iv) Complete the below table after subnetting.

𝑆𝑢𝑏𝑛𝑒𝑡 𝑁𝑒𝑡𝑤𝑜𝑟𝑘 𝑆𝑢𝑏𝑛𝑒𝑡 Usable IP address 𝐵𝑟𝑜𝑎𝑑𝑐𝑎𝑠𝑡


𝑁𝑢𝑚𝑏𝑒𝑟 𝐴𝑑𝑑𝑟𝑒𝑠𝑠 𝑚𝑎𝑠𝑘 range 𝐴𝑑𝑑𝑟𝑒𝑠𝑠

𝑁𝑆𝑊01

𝑁𝑆𝑊02

𝑁𝑆𝑊03

v) Draw the suitable network diagram for the above description. Assume that switches, router,
cables and all needed devices are provided.

c) i) List out four functions of a proxy server


ii) Write 02 differences between switch and hub.

[see
[see page
page two
three
AL/2023/20/E-II(B) -3-

3)
a) Draw an ER diagram for the below scenario.
The following paragraph describes about Football team, players and competitions. Each team
contains players for their own. Each team has unique team number(identifier), team name, main
stadium and the details about the city which the team belongs to. Each team has many players and
each player belongs to one team. Each player has identity number (unique identifier), name, date of
birth, started year and shirt number. Teams play in competition. Each competition includes a host
team and a guest team. Competitions will take place in host’s stadium. For each competition,
following things should be considered.
 Competition date
 Final result of competition
 Players participated in final competition
 Number of goals by players
 Number of red and yellow cards received by the players
 Players can be substituted during the competition
 When substitutes were used

Each competition have three judges. Each judge has Judge identity number (unique identifier), name,
date of birth , time of experience. The one judge will be the main judge and other two will be the
supporting judges. State the primary keys and cardinalities clearly.
Use only the attributes and entities given in the list below while drawing the ER diagram. You can
choose your own names for relationships.
( 𝑇𝑒𝑎𝑚, 𝐼𝐷, 𝑆𝑡𝑎𝑑𝑖𝑢𝑚, 𝑐𝑖𝑡𝑦, 𝑛𝑎𝑚𝑒, 𝑃𝑙𝑎𝑦𝑒𝑟, 𝑆𝑡𝑎𝑟𝑡𝑦𝑒𝑎𝑟, 𝐷𝑂𝐵, 𝑁𝑢𝑚, 𝑠ℎ𝑖𝑟𝑡𝑛𝑢𝑚, 𝑑𝑎𝑡𝑒, 𝐻𝑜𝑠𝑡_𝑠𝑐𝑜𝑟𝑒,
𝑔𝑢𝑒𝑠𝑡_𝑠𝑐𝑜𝑟𝑒, 𝑛𝑢𝑚_𝑔𝑜𝑎𝑙𝑠, 𝑌𝑒𝑙𝑙𝑜𝑤𝑐𝑎𝑟𝑑, 𝑅𝑒𝑑𝑐𝑎𝑟𝑑, 𝑡𝑖𝑚𝑒, 𝑖𝑠𝑚𝑎𝑖𝑛, 𝐸𝑥𝑝𝑦𝑒𝑎𝑟, 𝑀𝑎𝑡𝑐ℎ − 𝑃𝑙𝑎𝑦𝑒𝑟,
𝑀𝑎𝑡𝑐ℎ, 𝑅𝑒𝑓𝑒𝑟𝑒𝑒 )
b) Consider the Mark_Sheet relation.

Index_no name class maths science Ict

S1011 Kumar 12A 80 90 78

S1012 Oviya 12A 84 68 79

S1013 Kowise 13A 75 85 71

S1014 Kannan 13A 89 35 89

S1015 jana 12A 78 45 62

Answer the following questions based on Mark_Sheet relation.


i) Write the Sql statement to get the details of students who got highest marks on Ict subject.
ii) Write the Sql statement to get the number of students in each class.
iii) Write the output in the table format , after executing the below Sql statement
Delete from Marks_Sheet where Ict<85 AND name LIKE ‘K%’;

iv) In which normal form does the above relation exist? State your answer with the reason. Convert
to next normal form. Write the relations in structured method.

[see page four


AL/2023/20/E-II(B) -4-

4)
a) A positive integer is a perfect number according to number theorem. In number theory, a perfect
number is a positive integer that is equal to the sum of its proper positive divisors, that is, the sum of its
positive divisors excluding the number itself (also known as its aliquot sum). Equivalently, a perfect
number is a number that is half the sum of all of its positive divisors (including itself).

6/1 = 0 , 6/2 = 0, 6/3 = 0 , 6/6 = 0


Factors of 6 : 1,2,3,6
1 + 2 + 3 + 6 = 12/2 = 6 𝑜𝑟 1 + 2 + 3 = 6
So 6 is a perfect number. Also 28 is a perfect number.

Python program for finding the factors of a number is given below.

num = int(input("Enter a number:"))


for i in range(1,num):
if(num%i==0):
print(i,end=" ")

Using the above program, write a python program to get an integer as input from user and outputs
whether that is a perfect number or not a perfect number.

b) A word or a sentence is got as input and being validated according to below conditions.
Space, special characters, numbers in the string will be removed and it will convert to small letters.
The first letter and last letter should be same in the sentence. The second letter and the letter before
the last letter should be same also. Like that if that word or sentence is symmetrical it’s called
palindrome.

Consider the following example

The word amma is a palindrome because 𝑠𝑡𝑟[0] =


𝑠𝑡𝑟[−1] 𝑎𝑛𝑑 𝑠𝑡𝑟[1] = 𝑠𝑡𝑟[−2]
The word amma has four characters. The half-length of the string is
2. If that 2 characters were compared with the last 2 characters, you
can find whether the string is a palindrome or not a palindrome.

Write a python program to get a word or sentence as a input(Assume that Space, special characters,
numbers in the string will be removed before inputting ) and convert it into small letters and
displaying the output whether the string is a palindrome or not a palindrome.

Note : While inputting, The sentence “Never odd or even” will be inputted as
Neveroddoreven. madam , repaper are examples for palindrome.

c) Teacher asked a student to write a python program to find whether the given year is a leap year
or not.
If a year is leap year then it should satisfy the following conditions.

[see page five


AL/2023/20/E-II(B) -5-

 The given year should be a multiple of 100 as well as multiple of 400. While dividing
the given year by 100 and 400 , if the remainder is 0 then the given year is a leap year.
 If the given year is not a multiple of 100 , then it should be a multiple of 4. If you don’t
get remainder as 0 while dividing by 100, but when the remainder is 0 while dividing by 4,
Then the given year is a leap year.
 For an example 2000 is leap year which can be divided by 100 and 400 with a zero
remainder. 1996 is also a leap year which can’t be divided by 100 but can be divided by 4
with a zero remainder.

5)
a) One face mall is a famous business store and supermarket in the city which sells variety of goods
such as food, jewels, clothes, electronic items, books and etc. Each sector stated above has a physical
store in the mall.

Considering your advice, one face mall has implemented an ecommerce system based on internet to
conduct their business in online too. Most of the stores in the mall has joined the one face e-mall
system to conduct their businesses in online.

Answer the following questions regarding the above scenario.

i) State the suitable e-commerce business type for the above scenario.
ii) In which business organization type does the stores in one face mall will be included?
iii) Which revenue model will be used in one face e-mall’s online business system?
iv) Which revenue model will be used in stores which joined one face e-mall’s online business
system?
v) State the advantage for the following people by implementing the above scenario,
i) Customers
ii) Stores in the one face mall

b) Multiagent systems can be used to do some works done by humans. A hospital uses a doctor
agent software which accepts queries from patients and replies to it. This scenario is described as
following.

Patient submit the query command to the user agent. This user agent assigns this task to a doctor
agent. Doctor agent sends a request command to a resource agent. Resource agent sends the request
command to the knowledge base and gets the electronic data from the knowledge base. Also
resource agent sends an announcement to doctor agent. This announcement proceeds through user
agent to user and the data will be displayed to user.

i) Draw a simplified diagram for the above system


ii) Which agent can’t be considered as autonomous?
iii) State the names of agent which doesn’t have any user interaction.

c) Agent is a computer program which acts autonomously towards it’s goals in any environment.
i) Define the term Software Agent
ii) State two characteristics of an agent

[see page six


AL/2023/20/E-II(B) -6-

6)
a) Assume that we have a computer which uses 18 bit virtual addresses from 0 up to 256K. Assume
further that this computer has only64 KB of physical memory and the page size is 8 KB. Above 18bit
virtual address is made up of the bits of the page number followed by offset bits. User runs a particular
program having a size of 64KB on this computer. A few selected fields of the page table of that
process at a particular time are shown in the figure below.

Page number Frame number Present / Absent

0 011 1

1 101 1

2 000 0

3 110 1

4 000 0

5 111 1

6 000 0

7 000 0

Notes :

 The frame number is indicated in binary.


 The virtual addresses on page 0 are from 0 to 8191 and on page 1 are from 8192 to 16383 and so on.

 The present/absent bit indicates the validity of the entry.If this bit is 1, the entry is valid and can be
used. If it is 0, then the relevant virtual page is not in physical memory.

i) If the memory is byte addressable, find the maximum usable size of memory?
ii) State the number of pages will be created?
iii) State the number of bits that will be assigned for page size/displacement/offset?
iv) How many frames will be created?
v) For which physical address will the virtual address 10000 mapped to?
vi) For which physical address will 001010 1100 0110 0010 mapped to?

[see page seven


AL/2023/20/E-II(B) -7-

b) The central theme of modern operating system is process. Process is a program in execution.
Process can have many states. Those states are shown below in the diagram.

i) Choose the correct answer from the list to fit the blanks in the above seven state
transition diagram. Write the correct answers against the labels in your answer sheet.

[Short term schedular, schedular dispatch, I/O or event wait, I/O or event completion,
Swapped out and blocked, Swapped out and waiting, Terminated, Waiting, Interrupt,
Active, Running]

ii) State 02 reasons for the arrow C in the above seven state transition diagram.
iii) State 02 reasons for creation of process.
iv) Operating system resolves every resource allocated, after the ending of process. List out
reasons for process termination.
v) Process in ready state is changed to state B by arrow A. Which schedular is responsible
for above act?

c) Operating system allocates disk spaces to files. Operating system deploys many ways to allocate
disk spaces to files.
i) Which are the main three methods used by operating system for file allocation.
ii) Name the file allocation technique which encourages fragmentation

You might also like