ANULA VIDYALAYA /AL/2024/G13/TT1 1
Anula Vidyalaya Anula Vidyalaya Anula Vidyalaya Anula Vidyalaya Anula Vidyalaya Anula Vidyalaya Anula Vidyalaya Anula Vidyalaya Anula Vidyalaya Anula Vidyalaya Anula Vidyalaya Anula
Anula Vidyalaya - Nugegoda
අනුලා විද්යාලය අනුලා විද්යාලය අනුලා විද්යාලය අනුලා විද්යාලය අනුලා විද්යාලය අනුලා විද්යාලය අනුලා විද්යාලය අනුලා විද්යාලය අනුලා විද්යාලය අනුලා විද්යාලය අනුලා විද්යාලය අනුලා විද්යාලය
Anula Vidyalaya Anula Vidyalaya Anula Vidyalaya Anula Vidyalaya Anula Vidyalaya Anula Vidyalaya Anula Vidyalaya Anula Vidyalaya Anula Vidyalaya Anula Vidyalaya Anula Vidyalaya Anula Vid
Grade 13 – First Term Test, May 2024
English Medium
ARISE AND BE DILIGENT
Information & Communication Technology I 2 hours
instructions:
❖ Write your Name and class in the space provided in the answer sheet.
❖ ln each of the MCQ questions, 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).
❖ Use of calculators is not allowed.
1. What is a disadvantage of manual data handling?
(1) Accuracy
(2) Consistency
(3) Redundancy
(4) Integrity
(5) None of above
2. What is/are the correct statement/s from the followings?
A. Tim Berners-Lee is the founder of internet
B. A browser is used to view a web page
C. Web pages of the same web site has identical URLs.
(1)A only (2) B Only (3) C only (4) B and C only (5) A and C Only
3. “The first name and the NIC is compulsory to register on an internet service. Also, NIC should contain only
numbers.”
what are the types of data validation should be carried out regarding the above statement.?
(1) Presence Check and Range Check (2) Presence check and Type Check
(3) Type check only (4) Type check and Range Check (5) presence check Only
4. What is a direct data input device from followings?
(1) Mouse (2) Keyboard (3) MICR (4) Touchpad (5) Touch Screen
5. “Nikini uses cloud computing to develop, execute and test a program using an algorithm she designed. But
she has no intention to save the program in the cloud. Initially she designed the flowchart using a software
installed in her computer. Which services does Nikini uses from cloud computing?
(1) IaaS and PaaS (2) PaaS and SaaS (3) IaaS and SaaS (4) IaaS only (5) PaaS only
ANULA VIDYALAYA /AL/2024/G13/TT1 2
6. A software that helps to maintain the proper and smooth functioning of a Computer System is known as,
(1) Open-source software
(2) Licensed software
(3) Application software
(4) Utility software
(5) None of the above
7. Which has arranged according to the descending order of the access speed
(1) RAM, L1 cache, L2 Cache, L3 Cache, Hard Disk, Registers, Compact Disk
(2) Registers, RAM, L1 cache, L2 Cache, L3 Cache, Hard Disk, Compact Disk
(3) Registers, L1 cache, L2 Cache, L3 Cache, RAM, Hard Disk, Compact Disk
(4) Hard Disk, RAM, L1 cache, L2 Cache, L3 Cache, Registers, Compact Disk
(5) Registers, L1 cache, L2 Cache, L3 Cache, Hard Disk, RAM, Compact Disk
8. In fetch-execution cycle, instruction is fetched from the …………(a)………… will be decoded by the
……….(b)………... before it is sent to the …………(c)……………. for execution.
What are the most suitable words to fill the blanks in the above statement in the order of (a),(b) and (c)
(1) Control Unit, Random Access Memory, Arithmetic and Logic Unit
(2) Control Unit, Arithmetic and Logic Unit, Random Access Memory
(3) Random Access Memory, Control Unit, Arithmetic and Logic Unit
(4) Random Access Memory, Arithmetic and Logic Unit, Control Unit
(5) Arithmetic and Logic Unit, Control Unit, Random Access Memory
Consider the following ER diagram to answer questions from 9 to 11.
9. Which answer illustrate the correct schema for above ER diagram
(1) Customer(CID,Initials,Surname), Product(PID,Sname), Purchase(CID,PID,Date)
(2) Customer(CID,Initials,Surname), Product(PID,Sname), Purchase(CID,PID,Date), cInfo(CID,Contact)
(3) Customer(CID,Name), Product(PID,Sname), Purchase(CID,PID,Date), cInfo(CID,Contact)
(4) Customer(CID,Initials,Surname), Product(PID,Sname), Purchase(CID,Date), cInfo(CID,Contact)
(5) Customer(CID,Initials,Surname), Product(PID,Sname), Purchase(PID,Date), cInfo(CID,Contact)
ANULA VIDYALAYA /AL/2024/G13/TT1 3
10. Attribute “quantity” indicated the purchase quantity of a specific product done by a customer. To which
component/s that this attribute needs to be connected?
(1) Customer Entity
(2) Product Entity
(3) both Customer and Product Entities
(4) Purchase Relationship
(5) A new entity to be created called “Quantity”
11. A product that is purchased by the customers are supplied by many suppliers and each supplier supplies only
one product. To which entity, that the “Supplier” entity should be connected and what is the cardinality
between those entities?
(1) Customer Entity, 1:m
(2) Product Entity, 1:m
(3) Customer Entity, 1:1
(4) Product Entity, 1:1
(5) Product Entity, m:n
Consider the following table which contains employee details and their department details to answer questions
from 12 and 14.
Employee table
EmpID Name City DID Location
e1 thilak kandy d1 Colombo
e2 nisala galle d2 Kandy
e3 Simran kurunagala d1 Colombo
12. What is the Normal Form the above table?
(1) 0 NF (2) 1 NF (3) 2 NF (4) 3 NF (5) Insufficient data to decide
13. The employee table has,
(1) Unwanted repetition of data
(2) Partial dependency
(3) Fields that are not depending on its primary key.
(4) Transitive Dependency
(5) Both partial and transitive dependency
14. If the employee table can be normalized further, what is true about the next normal form of Employee table ?
(1) The next normal form will be 1 NF
(2) The next normal form will be 2 NF and have to normalize further to become 3 NF
(3) The next normal form will be 2 NF which will be automatically qualified for 3 NF
(4) The next normal form will be 3 NF
(5) Cannot be normalized further since it is in 3 NF already
ANULA VIDYALAYA /AL/2024/G13/TT1 4
15. Select * from Student where SID = “1001” and Sname = “ragu”;
what is the correct statement regarding the above sql query?. Consider SID is the primary key of the table.
(1) This will result with a table with two columns name SID and Sname
(2) This will result with a table with all the details of the student table
(3) This will result with a table which contains details of students who has names as “ragu”
(4) This will result with a table which contains details of student who has SID as “1001”
(5) None of the above are true.
16. What is the statement/keyword which use to add a new column to a table using SQL?
(1) select (2) alter (3) create (4) update (5) insert
17. code line 1 : <a ……..(p)…….> click me to find Chapter 1</a>
code line 2 : <h1…….(Q)……> Chapter 1 <h2>
above, code line 1 and code line 2 describe a hyper link to “Chapter 1” from another place in the same web
page. What are the suitable code segments for blanks (P) and (Q) in order?
(1) src = “chap1” , class = “chap1”
(2) href = “chap1” , id = “chap1”
(3) href = “#chap1” , id = “#chap1”
(4) src = “#chap1” , id = “chap1”
(5) href = “#chap1” , id = “chap1”
18. What is the correct HTML comment from followings?
(1) <!-- world -->
(2) // world //
(3) /* world */
(4) # world
(5) ‘’’ world ‘’’
19. What should be the html code to render the list shown?
(1) <ol> <li>Fruits</li>
<ul type = “circle”> <li>Apple</li>
<ol ><li>Red</li>
</ol> </ul></ol>
(2) <ol> <li>Fruits</li> (3) <ol> <li>Fruits</li>
<ol type = “square”> <li>Apple</li> <ul type = “square”> <li>Apple</li>
<ol ><li>Red</li> <ol ><li>Red</li>
</ol> </ol></ol> </ol> </ul></ol>
(4) <ol> <li>Fruits</li> (5) <ol> <li>Fruits</li>
<ul > <li>Apple</li> <ul type = “Square”> <li>Apple</li>
<ol type = “I”><li>Red</li> <ol type = “I”><li>Red</li>
</ol> </ul></ol> </ol> </ul></ol>
ANULA VIDYALAYA /AL/2024/G13/TT1 5
20. What is the attribute that can change the font type of the “font” element?
(1) href (2) size (3) type (4) face (5) method
21. What would be the output of the following code
<p>Our Mother <b> Land </b></p> <h2>Our Pride!!!</h2>Sri lanka
(1) Our Mother Land
Our Pride!!!
Sri lanka
(2) Our Mother (3) Our Mother Land
Land
Our Pride!!!
Our Pride!!! Sri lanka
Sri lanka
(4) Our Mother Land (5) Our Mother Land
Our Pride!!! Sri lanka
Our Pride!!!
Sri lanka
22. <img src = “../abc.gif ” alt = “pqr”/>
What is true regarding the above code segment
A. This will show the “abc.gif” with word “pqr”
B. The image is on the same location where the html code is.
C. The image is inside the a folder name “../”
(1) A only (2) B only (3) C only
(4) A,B,C all (5) None of the above
23. All the header elements’ color should be set to red on a specific web page. What is the CSS type that can be
used to apply these styles? (note: css style will be written only once)
(1) External CSS (2) Internal CSS (3) Inline CSS
(4) Both internal and inline (5) Both internal and external
24. Which of the following is correct example for grouping of selectors?
(1) h1:h2{Color:blue;} (2) h1,h2{Color:blue;} (3) h1;h2{Color:blue;}
(4) #h1 h2{Color:blue;} (5) h1.h2{Color:blue;}
ANULA VIDYALAYA /AL/2024/G13/TT1 6
25. What will be result of following code segment?
<head> <style> P {color: red; text-align: center} .ABC {color: green;} </style> </head>
<body> <p class= “ABC”> Hello </p> <p> Sri Lanka </p> </body>
(1) The word “Hello” displayed in green and “Sri Lanka” displayed in red
(2) The word “Hello” displayed in red and “Sri Lanka” displayed in green
(3) All the texts displayed in red
(4) All the texts displayed in green
(5) All the texts displayed in default color of the browser
26. What is/are true regarding an external style sheet?
A. Should code in between <style></style> elements
B. Styles are written in side a specific html element
C. <link> element is used to connect the styles with a web page
(1) A only (2) B only (3) C only
(4) B and C only (5) A,B,C all
27. What is the correct binary equivalent of 0.1012 ?
A. 0.A16
B. 0.48
C. 0.62510
(1) A and C only (2) All A, B and C (3) B and C Only (4) A Only (5) C only
28. Which of the following are equivalent to 30.128 ?
A. 18.2816
5
B. Decimal 2432
C. 011000.0010102
(1) A and C only (2) All A, B and C (3) B and C Only (4) A Only (5) C only
29. Any color can be created by mixing red (R), green (G), and blue (B) colors in different ratios. An HTML
color code is given as #ffb1e1. In this code, pair of digits ff, b1, and e1 represent the intensity of R, G, and B,
respectively. Which of the following answers represents the R, G, B ratios in decimal?
(1) R - 225, G - 177, B - 255 (2) R - 177, G - 255, B – 225 (3) R - 177, G - 205, B - 225
(4) R - 225, G - 255, B - 177 (5) R - 255, G - 177, B – 225
30. What is the correct 2s' complement binary representation of decimal -127+67, using 8-bits?
(1) 001111002 (2) 101111002 (3) 110000112 (4) 110001002 (5) 010001002
ANULA VIDYALAYA /AL/2024/G13/TT1 7
31. A dataset contains 512 entries (lines), with each entry being a single character followed by A
a line break as below. B
C
Each line break consists of two additional characters: Carriage Return (CR), which indicates D
the beginning of the line, and Line Feed (LF), which indicates the end of the line. How many E
bits are needed to encode the entire dataset using a 2-byte Unicode encoding system? .
.
.
(1) 213╳3 (2) 213 (3) 210 (4) 210╳3 (5) 29╳3
32. Which of the following answers is correct regarding the ASCII encoding system?
A. ASCII includes a wide range of symbols, emoticons, and special characters.
B. No Multilingual Support
C. Limited Character Set
(1) A and C only (2) All A, B and C (3) B and C Only (4) A Only (5) C only
33. Which logic gates are represented by the following logic circuits.
Figure: A Figure: B
(1) Both A and B represent XOR gate (2) Both A and B represent XNOR gate
(3) A - XOR Gate, B - XNOR gate (4) A - XNOR Gate, B - XOR gate
(5) Neither A nor B represents an XOR gate or an XNOR gate.
34. Consider the following statements regarding the addition of the following two binary values:
X – 10011
Y – 11001+
101100
A – Adding the binary values X and Y can be done by a single full adder.
B - Adding the binary values X and Y requires 5 full adders.
C - Adding the binary values X and Y can be done using 4 full adders and a single half adder.
D - Adding the binary values X and Y can be done using 9 half adders.
Which of the above statement(s) is/are true?
(1) B, C and D only (2) B only (3) B and C Only (4) A Only (5) C and D only
ANULA VIDYALAYA /AL/2024/G13/TT1 8
35. Consider following timing diagram regarding NOR flip-flop:
Which of the following represents the logical meaning of labels a, b, c, and d respectively?
(1) a- Set 1, b- Set 0, c-Store 0, d- Invalid
d
a
c
S
(2) a- Set 0, b- Store 0, c- Set 1, d- Store 1
(3) a- Set 1, b- Store 1, c- Set 0, d- Store 0 R
(4) a- Invalid, b- Set 0, c- Store 0, d- Set 1 Q
(5) a- Set 0, b- Set 1, c- Store 1, d- Store 0
Q
36. Which of the following is true about NAND flip-flop?
(1) Q=R. Q, Q =S. Q (2) Q=R + Q, Q =S + Q (3) Q=S. Q, Q=Q. R
(4) Q=S. Q, Q =Q. R (5) Q=S + Q, Q =Q + R
37. Which of the following is the most simplified form of the Boolean expression (𝑎 + 𝑏)(𝑎 + 𝑏)?
(1) ab (2) b (3) 𝑎b (4) 𝑎 (5) a
38. Consider the following Karnaugh map and the logic circuit implemented based on it where A, B and C are the
inputs and X is the output:
00 01 11 10
AB
C
0 0 p q 0
1 1 r s 1
(a) Karnaugh Map (b) Logic circuit based on Karnaugh Map
For the logic circuit to correctly implement the logic function represented in the Karnaugh map, what should be
the values of p, q, r, s?
(1) p=1, q=1, r=1, s=1 (2) p=1, q=0, r=1, s=0 (3) p=0, q=1, r=0, s=1
(4) p=1, q=1, r=0, s=0 (5) p=0, q=0, r=1, s=1
39. What would be the output of the following Python code if p = 8, q = 3, and r = 2?
output = p ^ q + r * q ** r // p - r
print(output)
(1) 11 (2) 12 (3) 9 (4) 3 (5) 13
ANULA VIDYALAYA /AL/2024/G13/TT1 9
40. Consider the following Python code:
x = 7
What will be the output of the code above? y = 10
z = 5
(1) b
(2) No output is provided if x > y:
if y < z:
(3) c
result = "a"
(4) Error else:
(5) a result = "b"
else:
if y > z:
if x < z:
result = "c"
else:
result = "a"
else:
result = "b"
print(result)
41. Consider the following Python code: def outer_function(a, b, c):
def inner_function(x, y):
What will be the output of the code above? return x * y
(1) 24 if a == c:
(2) (2)10 return inner_function(a, b)
(3) (3) 8 else:
(4) (4) 25 return inner_function(b, c)
(5) (5) Error x,y,z = 4,6,4
result = outer_function(x, y, z)
print(result)
42. What would be the output of the following Python code, when it gets executed?
def f(word):
return word[::-1]
w = "Python"
y = f(w)
print(y)
(1) nohtyp (2) Python (3) P (4) nohtyP (5) n
ANULA VIDYALAYA /AL/2024/G13/TT1 10
43. Consider the following Python list: my_list = [2, 4, 6, 8, 10]
Which option will correctly modify the list my_list to [2, 4, 6, 12, 10]?
(1) (2) (3)
my_list[3] = 12 my_list.append(12)
my_list.insert(3, 12)
(4) (5)
my_list[4] = 12
my_list.pop(3)
my_list.append(12)
44. Which option will correctly open the contents of the file "data.txt"?
(1) (2) (3)
open("data.txt", "r") open("r", " data.txt")
file = open("data.txt", "r")
(4) (5)
file = open("data.txt", "a")
file = open("data.txt", "w")
45. You are given following Python list:
people = [("Alice", 25), ("Bob", 30), ("Charlie", 35), ("David", 40), ("Eve", 45)]
Which option will correctly print each name and age from the list people?
A - for person in people:
print(person[0], "is", person[1], "years old.")
B - for i in range(len(people)):
print(people[i][0], "is", people[i][1], "years old.")
C - for i in range(len(people)):
print(people[i][0], "is", people[i][1], "years old.")
(1) None of the above (2) B only (3) All A, B and C (4) A Only (5) A and C only
46. What will be the output of “x”, after executing the following code?
txt = "Johnson, Michael, Jessica, Williams, Emily"
x = txt.split(‘, ’)
print(x)
(1) Johnson, Michael, Jessica, Williams, Emily
(2) JohnsonMichaelJessicaWilliamsEmily
(3) [“Johnson”, “Michael”, “Jessica”, “Williams”, “Emily”]
(4) [Johnson, Michael, Jessica, Williams, Emily]
(5) “Johnson”, “Michael”, “Jessica”, “Williams”, “Emily”
ANULA VIDYALAYA /AL/2024/G13/TT1 11
47. You are given the content of 'Input.txt' below.
What will be the content of this file after executing the following code?
m = open('Input.txt','r+')
m.write("XYZ")
m.close()
(1) PQRSTUVW (2) XYZ (3) PQRSTUVWXYZ
(4) XYZPQRSTUVW (5) XYZSTUVW
48. Integrated Development Environments (IDEs) are powerful tools that provide a comprehensive suite of
features to facilitate software development. Which of the following features is not included in an IDE?
(1) Extensive Project Management Features (2) Text editor (3) multi-language support
(4) Code completion feature (5) Compiler/ Interpreter
49. 23. Who is considered the first computer programmer, for which machine did he/ she write the program, and
who invented that machine?
(1) Alan Turing, UNIVAC, John Presper Eckert
(2) Ada Lovelace, Difference Engine, Charles Babbage
(3) Ada Lovelace, Analytical Engine, Charles Babbage
(4) John von Neumann, ENIAC, J. Presper Eckert and John Mauchly
(5) Tim Berners-Lee, EDSAC, John von Neumann
50. Which answer will correctly display the output of following code ?
for i in range(5, 0, -1):
print('✧' * i)
(1) (2) (3) (4) (5)
✧✧✧✧✧ ✧ ✧✧✧✧ ✧ ✧
✧✧✧✧ ✧✧ ✧✧✧ ✧✧ ✧✧
✧✧✧ ✧✧✧ ✧✧ ✧✧✧ ✧✧✧
✧✧ ✧✧✧✧ ✧ ✧✧✧✧ ✧✧✧✧
✧ ✧✧✧✧✧ ✧✧✧✧✧