4. a) Distinguish between “Application Software” and “System
Software” giving appropriate examples.
4
b) You have to find out the circumference and area of a circle by
reading its radius value. Write a BASIC program which can do it.
4
c) With examples, explain the uses of constants and variables of
different types in BASIC.
4
Answers
Answer ⤵️
Programming with C - Lab
Prepared by IT & CSE Page 3
WEEK - 1
1 Fundamentals of Computer Hardware
2 Introduction to Programming Languages & Translators
3 DOS/UNIX Commands
------------------
Fundamentals of Computer Hardware
Introduction to Computers
The term “Computer” is derived from the word ‘compute’, which means to calculate. A
computer is an electronic data processing system, which works very fast and capable of
performing both arithmetic and logical functions.
Computer performs the following 3 operations in a sequence:
1. Accepts input data
2. Stores and processes the data in rapid speeds
3. Outputs the required information in desired format.
Characteristics of a computer are:
1. responds to a specific set of instructions in a well-defined manner.
2. can execute a prerecorded list of instructions.
Advantages of computers:
1. High speed: Computers have the ability to perform routine tasks at a greater
speed than human beings. They can perform millions of calculations in seconds.
2. Accuracy: Computers are used to perform tasks in a way that ensures accuracy.
3. Storage: Computers can store large amount of information. Any item of data or
any instruction stored in the memory can be retrieved by the computer at
lightning speeds.
4. Automation: Computers can be instructed to perform complex tasks automatically
(which increases the productivity).
5. Diligence: Computers can perform the same task repeatedly & with the same
accuracy without getting tired.
6. Versatility: Computers are flexible to perform both simple and complex tasks.
7. Cost effectiveness: Computers reduce the amount of paper work and human
effort, thereby reducing costs.
Limitations of computers:
1. Computers need clear & complete instructions to perform a task accurately. If the
instructions are not clear & complete, the computer will not produce the required result.