වගකීම් බැහැරවීම
මෙම පුහුණු ප්රශ්න පත්රය මුල් ප්රශ්න පත්රයේ ස්කෑන් කළ පිටපත් ඇසුරින් සකස් කරන ලදී. ස්කෑන් පිටපතේ සම්පූර්ණයෙන් පැහැදිලි නොවූ (හෝ අහම්බෙන් අඩංගු නොවූ) ප්රශ්න 6ක් පමණක්, සමාන දුෂ්කරතාවයකින් යුත් සම්බන්ධිත මාතෘකා පිළිබඳ මුල් ප්රශ්නවලින් ප්රතිස්ථාපනය කර ඇති අතර, ඒවා පිටුව පුරා පැහැදිලිව සලකුණු කර ඇත. අනෙකුත් සියලුම පිළිතුරු කිසිදු පිළිතුරු පත්රයකින් ලබාගත් ඒවා නොව, ස්වාධීනව සත්යාපනය කරන ලද ඒවා වේ.
Disclaimer
This practice paper was prepared from scanned images of the original question paper. A small number of questions (6 of 50) were not fully legible in the scan, or were missing from it entirely, and have been replaced with original questions of equivalent difficulty on closely related topics — each one is marked clearly throughout the page. Every other answer has been independently verified, not copied from any answer sheet.
1. Which of the following tasks requires real-time processing?
2. A student registration system verifies its inputs using: (i) "Date of Birth" must not be blank, (ii) "Telephone Number" must consist exclusively of numeric characters, (iii) "Grade" must be strictly between 1 and 13. Which sequence of validation methods correctly corresponds to these three rules, in order?
3. Which of the following storage media cannot be written to or deleted by users?
4. In which of the following operation(s) does the control bus intervene? A - Sending a read signal from the CPU to main memory. B - Transferring a data word from main memory to the CPU. C - Carrying the memory address of the data word to be accessed.
5. During the execution of a program, which of the following stores the memory address of the next instruction to be executed?
6. What is the 8-bit 2's complement representation of -1?
7. If the hexadecimal Unicode code point for 'A' is 41, what does 4E414D45 represent?
8. Which of the following is/are correct? A - 9A₁₆ = 10011010₂. B - 93₁₀ = 1011101₂. C - 645₈ = 110100111₂.
9. What is the correct binary equivalent of the decimal number 14.3125₁₀?
10. A two-input X-OR gate has inputs A and B, producing output F. If A = 1, the output F will be:
11. The Boolean expression AB + AB' + A'C is equivalent to:(replacement question — see disclaimer)
12. Which of the following media is most susceptible to electromagnetic interference?
13. What is the network mask when the full IPv4 address space is divided equally into 4 subnets?
14. In a school laboratory's LAN, in what form does a switch forward data between computers?
15. FTP uses TCP instead of UDP as the transport layer protocol, because TCP: A - Ensures reliable data delivery. B - Delivers data in the correct sequence. C - Uses encryption to secure data. Which of the above is/are correct?
16. When a user enters a URL and accesses a website: A - The DNS client sends a query for the domain name to the DNS server. B - Using the received IP address, the browser sends its page request to the web server. C - The DNS server provides the IP address to the browser. D - The browser gives the domain name to the DNS client on the user's computer. E - The DNS server sends the matching IP address to the DNS client. What is the correct sequence?
17. Which of the following is true regarding Asymmetric Key Encryption?
18. For which of the following is Network Address Translation (NAT) required? A - Server computers exist within the LAN. B - The LAN is wireless. C - The LAN uses private IP addresses.
19. Match systems A1–A3 with descriptions B1–B3. A1 - Expert Systems (ES). A2 - Management Information Systems (MIS). A3 - Content Management Systems (CMS). B1 - Lets authorized employees with no programming knowledge modify what's shown on the organization's website. B2 - Converts records from daily business activities into summaries used for routine decision-making. B3 - Suggests the course of action to take in a given situation, based on accumulated expert experience within the system.
20. A team is developing a small system with low technical risk. The client cannot clearly state requirements but gives useful feedback once shown sample interfaces, and does not need the system very quickly. Which development model is most suitable?
21. Regarding system classification: A - A sealed chemical flask in a laboratory can be considered a closed system. B - A school is a man-made open system because it interacts with its environment. C - Every natural system is a living system. Which statement(s) is/are correct?
22. A school plans to computerize attendance and term-test marks. Feasibility study found: A - Entering each student's attendance separately every morning delays the first period. B - The cost of proposed equipment exceeds the annual budget. C - Keeping records only at the school violates the ministry's policy of centralized storage. Which correctly matches the feasibility types?
23. Which of the following is a functional requirement of an online cinema ticket reservation system?
24. In A ......... testing, a programmer prepared test data to ensure every IF condition is executed. In B ......... testing, data exchanged between integrated modules was tested. In C ......... testing, office workers used the software for daily tasks and decided whether to approve it. Correct combination for A, B, C?
25. A bank replaces its core banking software with a Commercial Off-The-Shelf (COTS) package. A - Since failure is highly risky, parallel installation is recommended. B - Using a COTS package may involve recurring license fee costs. C - A COTS package always matches the bank's existing business processes with no customization. Which are correct?
26. Model X: data organized as a collection of interconnected records, where a record can participate in multiple parent-child relationships. Model Y: data organized in parent-child relationships, where every child node has only one parent node. Model Z: data organized as a set of logically linked records connected by shared attribute values. Which correctly identifies X, Y, Z respectively?
27. Which of the following is always true regarding the PRIMARY KEY and UNIQUE constraint of a relational database?
28. COURSE(CourseID PRIMARY KEY, CourseName UNIQUE, Credits CHECK (Credits BETWEEN 1 AND 4)). Which of the following statements is correct?
29. STUDENT(StudentID VARCHAR(10) PRIMARY KEY, NIC VARCHAR(12) UNIQUE, Age INTEGER CHECK(Age >= 18), Name VARCHAR(50) NOT NULL). One record already exists: StudentID='S001', NIC='200012345678', Age=20, Name='Saman'. Which subsequent INSERT violates exactly two constraints?
30. EMPLOYEE table: E01 Kasun 85000 D01; E02 Dilini 72000 D02; E03 Ruwan 75000 D01; E04 Amaya 68000 D03. Query: SELECT Name, Salary FROM EMPLOYEE WHERE DeptID='D01' AND Salary > 80000; What is the output?
31. A student can enrol in many courses; a course can have many enrolled students; every student-course enrolment date must be recorded. Which correctly represents all these requirements?
32. Consider BORROW(MemberID, BookID, BorrowDate, MemberName, DueDate), with primary key (MemberID, BookID). Which dependency violates 2NF?(replacement question — see disclaimer)
33. Match Normal Forms 0–3 with descriptions A–D. 0-0NF, 1-1NF, 2-2NF, 3-3NF. A - No transitive dependencies. B - All attributes are atomic. C - No partial dependencies on the primary key. D - Repeating records/groups exist.
34. A: Assembler → Translates object code into assembly language and produces an executable file. B: Linker → Combines object files and library routines into a single executable program. C: Loader → Executes the program line by line during translation. Which statement(s) correctly describe the tool's function?
35. What could be the output of: print(5 + 2 * 3 ** 2 // 5 <= 8)
36. What could be the output? x=2; y=0; for i in range(1,3): j=i; while j>0: y+=x; j-=2; x+=1; print(x, y)
37. def update(quantities): quantities[1]=50. def restock(quantities): for i in range(2): quantities[i]+=10. stock=[5,10,15]; update(stock); restock(stock); print(stock)
38. student=("Saman",17,20); record={"ICT":student[2],"Age":student[1],"Name":student[0]}; record["ICT"]+=50; mark_list=[record["Name"],record["ICT"]]; new_list=mark_list.copy(); new_list.clear(); new_list.append(100); print(mark_list, new_list)
39. Match Python values A-D with data structures 1-4. A - "My Name". B - [10, 20, 30]. C - (10, 20, 30). D - {"B": 85, "A": 90}. 1-List, 2-Dictionary, 3-Tuple, 4-String.
40. Pseudocode: START; n:=5; REPEAT PRINT n; n:=n-2; UNTIL n<1; STOP. Which Python code correctly represents this?
41. Four client websites: P - view restaurant menu & location. Q - purchase products online by credit card. R - view daily weather forecasts. S - university students check exam results after logging in. In which must BOTH secure authentication and encrypted communication be primary requirements?
42. A web form checks that a "phone number" field contains only digits before the form is submitted, giving instant feedback with no page reload. Why is this best done with client-side scripting (e.g. JavaScript)?(replacement question — see disclaimer)
43. A site has a login form (username + password) and a public catalogue search (the term appears in the URL, e.g. ?q=laptop). Which HTTP method choice is correct?(replacement question — see disclaimer)
44. An online store must remember a shopper's cart across pages, keeping the actual cart data on the server, with only a small identifier in the browser. Best approach?(replacement question — see disclaimer)
45. A former employee copied the customer database (names, phone numbers, purchase history) to a personal USB drive before leaving, and now uses it to contact those customers for a personal business, without consent. This is primarily a violation of:(replacement question — see disclaimer)
46. $conn = mysqli_connect("1", "2", "3", "4", "5"); What is the correct parameter sequence for mysqli_connect?
47. Match components A1-A3 with board features B1-B3. A1 - LDR. A2 - LED. A3 - Reed switch fixed to a door. B1 - Analog input. B2 - Digital input. B3 - Digital output.
48. Which of the following is correct regarding embedded systems and IoT?
49. Conventional computers store data as bits (0 or 1). Quantum computers use 'qubits'. Compared to a standard bit, what gives a qubit its distinction and uniqueness?
50. In a multi-agent system, which of the following describes the core characteristic of how these agents operate?