How Compiler different from Interpreter.

Q7. How is a compiler different from interpreter?

Ans. A compiler converts the source code (program in HLL) into object code (Machine Language code) in one go and reports all the errors along with their line numbers.

An interpreter converts source code into object code line by line and executes it there and then. It does not shift to the next line if line is erroneous.

Type of Computers and their difference.

Q6. What are the three type of computers? How do they differ?

Ans. The three type of computers are:

  1. Digital
  2. Analog
  3. Hybrid
  • Digital computers deal with discrete quantities.
  • Analog computers deal with physical quantities. They measure rather than counting as the digital computers do.
  • Hybrid computers combine the characteristics of analog and digital computers.

Examples and Functions of System and Application Software.

Q5. Give examples for each of system and application software. Explain the function of each type.

Ans. Examples of system software are:

  1. Operating System
  2. Language Processor
  3. Application Software

Examples of Operating System are: Single User, Multi User, Batch Processing, multiprocessing etc.

As the name suggest, Single User OS supports single user whereas Multi User OS supports multiple users. The Batch Read More …

Difference between Hardware, Software and Firmware.

Q4. What are the difference between hardware, software and firmware?

Ans. Hardware are the physical tangible components of a computer system.

Software are computer programs that govern the operation of a computers.

Firmware are the prewritten programs permanently stored in read-only memory. These configure the computer and are not easily modifiable by the user.

Function of Memory and its Measuring Units.

Q3. What is the function of memory? What are its measuring units?

Ans. The memory temporarily holds the data and information during processing.

The smallest unit of memory is a byte (8 bits). A byte can store one character in binary form. Other measuring units are 1 Kilobyte (KB) equal to 1024 (210) bytes, 1 Megabyte (MB) equal to 1024 KB, 1 Gigabyte (GB) equal to 1024 MB and 1 Terabyte (TB) equal to 1024 GB.

Basic Units of the Computer and Names of sub-units that makes CPU and Functions of each unit.

Q2. State the basic units of the computer. Name the sub-units that makes up the CPU, and give the function of each of the units.

Ans. The basic units of the computer are:

  1. Input Unit.
  2. Central Processing Unit(CPU).
  3. Output Unit.
  4. Memory.

The CPU has two sub-units: the Control Unit(CU) and the Arithmetic Logic Unit(ALU).

The Control Unit controls the entire operation being carried out.

The ALU performs the arithmetic and logical operations.