2023 I Puc Cs Solutions Midterm
2023 I Puc Cs Solutions Midterm
PART D
29. Write the differences between SRAM and DRAM
SRAM D RAM
SRAM stands for Static Random DRAM stands for Dynamic Random
access Memory Access Memory
It is made up of semiconductor It is made up of magnetic material
material
It doesn’t needs to be refreshed It needs to be refreshed periodically
periodically
It consumes less power It consumes more power
It is more expensive It is less expensive
It is volatile It is non volatile memory
30. Convert (512)10 =(?)2=(?)8=(?)12
Solution (1000000000)2 = (1000)8 = (200)16
START 34.
Read a, b
Print a, b
STOP
[b]Storage
The computer can store a large amount of data and information. The
Storage capacity of computer is measured in terms of Bytes. A group of 8
bits is called Byte.
[c]Accuracy
The computer generated results without any mistakes at a high rate of
consistency
[d]Deligence
It doesn’t become tiredness and lack of concentration. It can work for
hours without making any errors
[e]Cost effectiveness
Computers reduce the amount of paper work and human effort, thereby
reduces costs
38. What are the features of Second generation
Solution
It was designed in the year 1956-1963
It is made up of transistors in place of vaccum tubes
These machines are much faster, more reliable than earlier machines
It generates less heat and consumes less electricity
It uses punched cards for input and printout for output.
The instructions was stored in the memory using magnetic drum but
enhanced to magnetic core technology.
Ex : IBM 1620, UNIVAC 1108
Excess 3
It is a non weighted code
Example : Convert 547 to Excess 3 Code
1000 1010 0110
EBCDIC
It stands for Extended Binary Coded Decimal interchange code
It is a 8 bit EBCDIC Code
ASCII
It stands for American standard code for Information interchange
It is a 7 bit code.
Gray code
The excess 3 code can be easily converted to gray code
00 01 11 10
41. What is modular programming? Mention its advantages.
The process of splitting the lengthier and complex programs into smaller
units (modules) is called modularization and programming in such
approach is called modular programming
Advantages
Code is easier to read
Code is easier to test
Reusability can be achieved easily
It is faster to execute
Example : Pascal and C Programming languages
[02[ fact(number)
Returns the factorial of a given number
=fact(5) Ans. 120
[03] gcd(number1, number2)
Returns the greatest common divisor
=gcd(10,20) Ans. 10
<html>
<head>
<title>bold</title>
<body>
<i>apple is red in color</i>
</body>
</html>
Underline tag <u>…….</u>
It makes the text to appear underlined.
<u>mango</u>
<html>
<head>
<title>bold</title>
<body>
<u>apple is red in color</u>
</body>
</html>
Input devices:
An input device is any hardware component that allows you to enter data and
instructions into a computer. Some of the widely used input devices are the
keyboard, mouse, microphone, scanner, and Webcam.
CPU is the part of the computer that carries out the instructions of a computer
program. It is the unit that reads and executes program instructions. Hence it is
known as the brain of the computer. It takes all major decisions, makes all sorts of
calculations.
The CPU consists of storage or memory unit, arithmetic logic unit (ALU) and
control unit.
Memory unit: memory unit is also known as the primary storage or main memory
(RAM). It stores data, program instructions, internal results and final output
temporarily, before it is sent to an appropriate output device.
Arithmetic and logic unit (ALU): ALU is the unit where all arithmetic operations
(addition, subtraction, multiplication, division etc.) and logical functions such as
AND, OR,NOT are performed.
Control Unit: it acts as a central nervous system and ensures that the information
is stored correctly and the program instructions are followed in proper sequence.
Storage unit: results obtained after processing will be in the primary memory,
these data or information can be stored in the storage device/secondary memory
units. Secondary storage devices , are called as auxiliary memory devices.
Secondary storage devices can hold more storage data than main memory and is
less expensive.