Documente Academic
Documente Profesional
Documente Cultură
3. In central processing unit, “control unit uses …………….. to find next instruction for the execution”.
Which of the following is most appropriate to fill the blank in the above statement?
(1) Program Counter (2) Arithmetic Logic Unit
(3) Main memory (4) Cache memory
(5) Input device
9. When the statement print ("42"+3) is executed, the result would be.
(1) 423 (2) 42 (3) 45 (4) False (5) Compile-time error
12. In which of the following phase of a system development life cycle, user requirements are included after the
system implementation?
(1) system design (2) system testing
(3) system implementation (4) system maintenance
(5) coding
15. Consider the following statements about data flow diagram (DFD)?
A - It represents the process model.
B - Two data stores can be directly interconnected.
C - Bothe the external entity and process can be directly interconnected.
Which of the above is /are correct?
(1) A only (2) A, B only (3) A, C only (4) B, C only (5) A, B, C all
18. The following shows the descriptions for the relationships used in relational database.
A B C
20. Which of the following is a non-functional requirement of a coins booth telephone system?
(1) It should provide twenty four hours service.
(2) It should have the facility to talk more with less cost.
(3) It should have the facility to insert coins.
(4) It should have the facility to make telephone conversation.
(5) It should have the facility to enter telephone numbers.
25. “……………………software process model is based on risk driven and iterative fashion”.
(1) Spiral model (2) Incremental development model
(3) Waterfall model (4) Object-oriented model
(5) Rapid Application Development
[See page four
3
26. What is the output of the following python program?
x = 10
while x:
x=x-1
if x % 2! = 0: continue
print (x, end=' ')
28. In operating system, “ ………………. is a function to store the state of a process and restore it”.
Which of the following is most appropriate to fill the blank in the above statement?
(1) Memory allocation (2) Context switch
(3) Programming (4) Scheduling
(5) Swapping
29. The part which is used to execute the instructions fetched into central processing unit, is called.
(1) Control unit (2) Arithmetic Logic Unit (ALU)
(3) Program counter (4) Register unit
(5) Main memory
31. How many bits are needed to address a byte addressable memory 4M x 16?
(1) 26 bits (2) 32 bits (3) 16 bits (4) 23 bits (5) 20 bits
32. Which of the following cannot be considered as database management system software?
(1) Linux (2) Oracle (3) MySQL (4) PostqreSQL (5) Ms-Access
FirstName LastName
DateOfBirth Name
EmpId
Employee
PhoneNo
Age
Supervision
(1) if a > b (2) if a > b (3) if a > b: (4) if a > b: (5) if a > b:
print a print a print a print a print a
else: else else: else: else
print b print b print b print b print b
*****
[See page six
5
Part – II A Structured Questions
Answer all the questions
01.
(a) Write down 2110 and (-710) in one’s complement 8-bits method. Show your calculations.
(b) Use one’s complement 8-bits method to add numbers 2110 and (-710). Show your calculations.
(c) Use two’s complement 8-bits method to add numbers 2110 and (-710). Show your calculations.
(d) In data communication, explain simplex mode and half-duplex mode communications with the help of
examples.
(c) Write down the possible data tables in the form of schema if the above (ii) drawn E-R diagram is mapped
into tables.
03.
(a) Write down the names of the phases of System Development Life Cycle (SDLC) for each of the following
descriptions.
Description The phase of SDLC
(ii) Comparing the actual outcome with the expected result in test
plan.
(i) B2B
(ii) B2C
(iii) G2C
(iv) B2E
A clerk of a library registers for members. In some circumstances, he /she will cancel the registration.
Membership details are stored in a member file. A member may cancel his / her membership in any time.
(ii)
Deposit
M1 Deposit
(i) amount
1
details
Register a
member (iv) M2 (v)
Cancellation
request Member
2 details
(iii)
Complete the above mentioned partial data flow diagram by identifying the missing elements. Write your
answers below.
(b) Write down python program to display the smallest number among three numbers entered by the user.
Hours ProjNo
EmpNo
EmpName
ProName
FName LName
(ii) Explain about the “Works” relationship when the above given ER diagram is mapped into tables.
****
01. A systems designer has developed a system to control street lights. The street lights can be turned on
manually, or by the use of a timer, so long as a light sensing unit indicates that it is dark.
The street light can be switched on manually or will automatically be switched on when the timer is on and the
sensor indicates the environment is dark.
This control system is required to operate the street light efficiently with the following conditions /
functionalities.
The street light can manually be switched on or off.
The timer will be either on or off.
The light sensor will detect whether the environment is light or dark.
(a) Obtain the Boolean expression to implement the above logic given.
(b) Construct a truth table to represent the above Boolean expression obtained in (a).
(c) Draw a logic circuit for the above Boolean expression obtained in (a) by using only AND, OR and NOT
gates.
(d) By using truth table or any other method, obtain a Boolean expression without simplification, in the form of
sum of product (SOP)
02.
(a) Briefly explain syntax errors and logical errors occurred in computer programming with the help of example.
(b) Explain what is done by the python interpreter when executing the following python program.
total = 0
while True:
s = input(‘Enter number (or “done”):’ )
if s == ‘done’: break
num = int(s)
total = total + num
print (total)
(b) Draw a flowchart to obtain total and average of ten numbers entered by user.
11
03. Consider the following scenario.
The bank is organized into branches. Each branch is located in a particular city and is identified by a unique
name. Bank customers are identified by their customerid values. The bank stores each customer’s name, and
address. Customers may have accounts and can take out loans. A customer may be associated with a particular
banker, who may act as a loan officer or personal banker for that customer. Bank employees are identified by
their employeeid values. The bank administration stores the Employee’s name. Accounts can be held by more
than one customer, and a customer can have more than one account. Each account is assigned a unique account
number. The bank maintains a record of each account’s balance, and the most recent date on which the account
was accessed by each customer holding the account. A loan originates at a particular branch and can be held by
one or more customers. A loan is identified by a unique loan number. For each loan, the bank keeps track of the
loan amount.
Construct a single ER diagram for the above mentioned scenario and identify attributes and associate them with
entity or relationship types and mark primary key attributes for each entities. State any assumptions necessary to
support your design.
04.
“CarCare” is a popular car repairing service station in Sri Lanka. Hundreds of different categorized cars are
coming for repairing service in a day. 150 employees are working 24 hours in shift basis. Small scale repairing
services are immediately done. For large scale or congested time repairing services, vehicles are taken into
custody and customers are sent. After finishing repair services, customers are informed by telephone. Vehicles
are taken for repairing services on “first in first service” basis. Taking vehicles, service charges for repairing
services, working hours for employees, and their salary calculations are all done manually. The organization
realized the large amount of delay in repairing service and customer frustration. At the same time, employees
made complaint to the organization regarding delay and errors in salary payments. Therefore, the top
management of the organization proposes the computer-based solutions for these problems.
(a) Write down three disadvantages that “CarCare” would face by using this manual system.
(b)Write down three benefits that this organization would get by using computerized system.
(c) What is functional requirement of a system? State three functional requirements of this new computerized
system.
(d) Organization plans to provide insurance services for their employees through their website. What is the type
of e-commerce model most appropriate for this?
****
[End
12