Computer Fundamental Solution
Computer Fundamental Solution
CSE-1101
Final Examination
Q: Write DeMorgan's theorem for four variables & make truth table for them.
A:
DeMorgan’s theorems for four variables are:
= · · ·
= + + +
Truth Table:
+
·
·
A B C D A+B+C+D A·B·C·D +
·
+
0 0 0 0 1 1 1 1 0 0 1 1 1 1
0 0 0 1 1 1 1 0 1 0 0 1 0 1
0 0 1 0 1 1 0 1 1 0 0 1 0 1
0 0 1 1 1 1 0 0 1 0 0 1 0 1
0 1 0 0 1 0 1 1 1 0 0 1 0 1
0 1 0 1 1 0 1 0 1 0 0 1 0 1
0 1 1 0 1 0 0 1 1 0 0 1 0 1
0 1 1 1 1 0 0 0 1 0 0 1 0 1
1 0 0 0 0 1 1 1 1 0 0 1 0 1
1 0 0 1 0 1 1 0 1 0 0 1 0 1
1 0 1 0 0 1 0 1 1 0 0 1 0 1
1 0 1 1 0 1 0 0 1 0 0 1 0 1
1 1 0 0 0 0 1 1 1 0 0 1 0 1
1 1 0 1 0 0 1 0 1 0 0 1 0 1
1 1 1 0 0 0 0 1 1 0 0 1 0 1
1 1 1 1 0 0 0 0 1 1 0 0 0 0
1|Page
Nayeem Mahmood / 1AM / C161026
Begin
Awaiting for No
execution of
instruction
Yes
Yes
Transfer control to
Interrupt handling
program
2|Page
Nayeem Mahmood / 1AM / C161026
Hardware failure is random. Hardware does Software failure is systematic. Software does not
have increasing failure at the last stage have an increasing failure rate
Software does not wear out over time. However,
Hardware wears out over time
bugs are discovered in software as time passes
Hardware is physical in nature Software is logical in nature
3|Page
Nayeem Mahmood / 1AM / C161026
• Disadvantages of High Level Language:
1) A program written in a high level language has lower time and space efficiency than one
written in a machine or assembly language to do the same job.
2) High level languages are less flexible than assembly languages because they do not
normally have instructions or mechanism to control a computer’s CPU, memory and
registers.
Speech synthesizers are still in their infancy because currently they can produce only limited
unique sounds with limited vocal inflections and phrasing. However, several applications, including
the following, use them:
1) For reading out text information to blind persons. For example, we can scan a recently
published book using a scanner, convert it into text using OCR software and then a speech
synthesizer can read it out to blind persons.
2) For allowing those persons who cannot speak, to communicate effectively.
3) For translation system that converts an entered text into spoken words in a selected
language.
4|Page
Nayeem Mahmood / 1AM / C161026
from outside world into primary storage, and output devices supply the results of processing from
primary storage to users.
Q: What are peripheral devices? Can a device be used as both input & output device? If no,
explain. If yes, give an example.
A:
A peripheral device is an internal or external device that connects directly to a computer but does
not contribute to the computer's primary function, such as computing. It helps end users to access
and use the functionalities of a computer. A peripheral device provides input/output (I/O)
functions for a computer and serves as an auxiliary computer device without computing-intensive
functionality. Peripheral devices connect with a computer through several I/O interfaces, such as
communications (COM), Universal Serial Bus (USB) and serial ports.
Some devices that perform both input and output operations are referred to as I/O (input/output)
devices and their operations are called I/O operations. Examples of common input and output
components are disk drives and modems. A touch screen monitor on a mobile phone, tab or ATM, a
videogame controller that shakes when the player is hit can both be considered an I/O device. A CD
or DVD burner would also be an I/O device, since it can both read and write data to discs.
5|Page
Nayeem Mahmood / 1AM / C161026