Marking Scheme ICT - Grade12
Marking Scheme ICT - Grade12
Anula Vidyalaya Anula Vidyalaya Anula Vidyalaya Anula Vidyalaya Anula Vidyalaya Anula Vidyalaya Anula Vidyalaya Anula
Anula Vidyalaya - Nugegoda
Vidyalaya Anula Vidyalaya Anula Vidyalaya Anula Vidyalaya Anula අනුලා විද්යාලය විද්යාලය අනුලා විද්යාලය අනුලා විද්යාලය අනුලා
අනුලා විද්යාලය අනුලා විද්යාලය 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 12 – Third Term Test, January 2023
English Medium
ARISE AND BE DILIGENT
Name: Class:
MCQ
Part B
Structured Question 1
(i). Perform 40 - 30 calculation in two’s complement 8-bit representation. Clearly show your
workings and explain how you deal with the carry generated from the most significant bit. (3
Marks)
(ii). What is the sign of the answer you received on part (i) above? (1 Mark)
Explain how the sign is identified and calculate the decimal value represent by the answer of
part(i) above. (2 Marks)
Positive 1 mark
Since the most significant bit (sign bit) of the two’s complement answer is zero it indicates a
positive value. 1 mark
00001010 -> 1010 1 mark
ANULA VIDYALAYA /AL/2023/G12/TT3 2
(iv). Convert the hexa- decimal value AB.C in to its Decimal equivalent (2 Marks)
AB.C
| | |
16 1 1/16
16 x 10 + 1 x 11 + 1/16 x 12 = 160 + 11 + 0.75 = 171.75
1 mark 1 mark
Structured Question 02
(i). Specify the given quality is increased or decreased in the table at the right side when moving down the
memory hierarchy at left side. (2 Marks)
(ii). Explain the task of a cache memory in brief (1.5 Marks)
Access Speed Decreased
Access Time Increased
Cost Per Bit Decreased
Capacity Increased
Physical Size Increased
It improves the efficiency of data retrieval. It stores program instructions and data that are used
repeatedly in the operation of programs or information that the CPU is likely to need next
Or similar idea
(iii). State three factors that distinguish Static Random Access Memory from Dynamic Random Access
Memory and complete the following table. (3 Marks) – Any three of followings
SRAM DRAM
It stores information as long as the power is It stores information as long as the power is supplied
supplied. or a few milliseconds when power is switched off.
Transistors are used to store information in SRAM. Capacitors are used to store data in DRAM.
Capacitors are not used hence no refreshing is To store information for a longer time, contents of the
required. capacitor need to be refreshed periodically.
SRAM is faster compared to DRAM. DRAM provides slow access speeds.
It does not have a refreshing unit. It has a refreshing unit.
These are expensive. These are cheaper.
SRAMs are low-density devices. DRAMs are high-density devices.
In this bits are stored in voltage form. In this bits are stored in the form of electric energy.
These are used in cache memories. These are used in main memories.
Consumes less power and generates less heat. Uses more power and generates more heat.
ANULA VIDYALAYA /AL/2023/G12/TT3 3
(iv). State three types of Read only memory and explain those briefly (4.5 Marks)
PROM – Programmable ROM (0.5 can be modified only once by a user. The user buys a
marks) blank PROM and enters the desired contents using a
PROM program. (1 mark)
Question 1
Matheesha needs to design a logic circuit for following requirements of their water tank. If water level is high it should be
indicated by a red color bulb ‘R’ and if water level is too low, then it should be indicated by an orange bulb ‘O’. He hopes
to detect high water level using a sensor ‘X’ and low water level using sensor ‘Y’. if water exceed sensor ‘X’ then sensor
detects water level is high (Boolean 1). If water level become below sensor ‘Y’, then it detects water level is low (Boolean
1).
(a) Draw the truth table for above circuit [4 Marks] reduce one mark for each incorrect output. Minimum mark is 0.
X Y RED ORANGE
1 1 0 0 [1] X’+Y’
1 0 1 [1] XY’ 0 [1] X’+Y
0 1 0 1
0 0 0 0 [1] X+Y
(c) Simplify using Boolean algebra. [4 Marks] K-Map answers are NOT acceptable.
ANULA VIDYALAYA /AL/2023/G12/TT3 4
Question 2
a. You are given following information regarding a virtual and a physical memory of a computer system.
A random page of virtual memory. Structure of physical memory
In both memory addresses first five bits are same. So it can be considered as the page number and remaining number
of bits can be considered as offset bits. In here there are 10 offset bits. Both logical and physical memory have the
same number of bits in the offset part. Therefore,
Number of bits in offset part in a physical memory = 10 (Above explanation is not required)
Option 02
In binary in decimal
Last memory address of given page 111011111111111 30719
First memory address of given page 111010000000000 29696
Both logical and physical memory have the same number of bits in the offset part. Therefore, Number of bits in offset
part in a physical memory = 10
ii. How many bits are needed to represent the page number? [1 Mark]
Option 01
Last memory address of given page 111011111111111
First memory address of given page 111010000000000
In both memory addresses first five bits are same. So it can be considered as the page number. Page number contain
five bits.
Option 02
According to question one’s option 2, number of offset bits have been obtained as 10.
Total number of bits in memory address = 15
Number of offset bits = 10
Number of bits in page number = 15-10
=5
iii. Find the total memory capacity of [2 Marks]
ANULA VIDYALAYA /AL/2023/G12/TT3 6
b. Logical memory
Number of bits in logical memory = 15
Number of memory addresses can be created =215
Therefore, number of memory locations =215
Capacity of a memory location = 1Byte
Capacity of whole logical memory = 215 Bytes
In KB
215 Bytes / 210 = 25 KB
32 KB.
Capacity can be in any unit.
iv. What is the physical memory address of following virtual memory addresses?
a. 111100001101011 [1 Mark]
Page number of above address = 11110
Page table indicates present bit of page number 11110 is 0. The content of page number 11110 is not
existed in any frame of physical memory.
b. 111111100110000 [1 Mark]
Page number of above address = 11111
According to the page table corresponding frame number = 13
b. Briefly explain,
1. Requirement of context switching. [2 Marks]
Context switching is the process that enables the multitasking mechanism. It enables multitasking as
mentioned in below.
- The CPU receives the timeout signal while executing a process. Then CPU immediately stop the
execution of that process
- Before sending the process to the ready state, OS save process context in its PCB. Then process is sent
to the ready state
- Then OS assign another process to CPU.
- Before execution of that process by CPU, OS must load the context of new process form its PCB
- Finally, CPU resume the execution of new process where it was stopped earlier.
ANULA VIDYALAYA /AL/2023/G12/TT3 7
c. In linked file allocation method, 76 bytes are required to store the ‘next block number’ from a block size of
512 Bytes. There is a file of 4096 Bytes.
1. Find number of disk blocks require to store above file, based on link file allocation method. [2 Marks]
Capacity of a block = 512 Bytes
Capacity need to indicate next block number = 76 Bytes
Capacity that supports to store file content = 512- 76 Bytes
= 436 Bytes
3. Find number of disk blocks require to store above file based on index file allocation method. [1 Mark]
Capacity of the file = 4096 Bytes
Capacity of a block = 512 Bytes
Required number of blocks = 4096 / 512
= 8 Blocks
Final number of blocks = 8 Blocks + Index block
= 9 Blocks
ANULA VIDYALAYA /AL/2023/G12/TT3 8
Essay Question 1
condider the following Web page and answer the below mention questions in your answer script
(ii). Consider the following code regarding the section B. write the suitable answer for the blanks specifying
the given label on the blank, in your answer script. (3 marks)
<…a…><…b…>Category:</…b…>
<…c…>Individual <input type = "…d…" name ="….e…." value = "i"/>
Group <input type = "…d…" name ="r1" value = "…f…"/> </…c…><…a…>
(iii). Competition organizers ask you to change the HTML code as the “outdoor” option in section C, should
set to be chosen by default when the web page is loaded. write the code segment to perform that change.
(1 mark)
<input type = "checkbox" name ="c2" value = "o" checked/> or any acceptable answer
(iv). There is a sub folder name “images” on the desktop and it contains an image named “robo.jpg”. Assume
you need to insert this image in to above webpage which saved on the desktop with an alternative text
“robo1”. Write the HTML code segment to insert the image. (0.5 marks)
(v). Write the HTML code to insert “Register” and “Clear All” buttons on the web page. “Register” button
will pass the details to a PHP page called “app.php” and “Clear All” button will reload the web page. (2
marks)
<input type="submit" name = "btnSend" value = "Register"> or any acceptable answer
<input type="reset" name = "btnClear" value = "Clear All"> or any acceptable answer
(vi). An external style sheet named “app.css” contain some styles for the above web page. Write the code
segment to stablish a connection between CSS file and the HTML file (1 mark)
<link rel= "stylesheet" type = "test/css" href = "app.css"/> or any acceptable answer
(vii). Write the internal CSS code segment to apply given styles in the
table to the text “application for robotic competition - 2023” of Property Value
Section A in web page (2.5 Marks) type Times New Roman
<style> 0.5 marks Size 20 pixels
h1 { 0.5 marks
color:green; 0.5 marks color green
font-family:"times new roman"; 0.5 marks
font-size:20px; } 0.5 marks
</style>