Académique Documents
Professionnel Documents
Culture Documents
2 Marks Question and Answer Subject Code & Name: Fundamentals of computer programming
UNIT 1 INTRODUCTION TO COMPUTERS
1. Define Computer The computer is an electronic device which converts raw data into valid or meaningful information. 2. What is Program? A device to manipulate the data according to the programmed instructions. An intelligent machine that solves problems by accepting data, performing certain operation and producing the result under the direction of step by step instruction called program. 3. Define Data Data is information that has been translated into a form that is more convenient to process. 4. What is an Information? The processed data is called the information. 5. The Information Processing Cycle Using a computer to convert data into useful information is referred to as information processing (also called data processing). Processing data into information involves four basic functions: Input data entered into a computer for processing Processing the manipulation of data according to program instructions Output the creation of information resulting from processing Storage the retention of processed data on a storage medium for future use
Page 1
6. What are the Characteristics of Computers? Some of the characteristics of computers, which make them an essential part of every emerging technology. 1. 2. 3. 4. 5. 6. 7. Speed Accuracy Diligence Reliability Storage capability versatility Resource sharing
7. Write about various speed levels in computer. 1 nano seconds = 1 X 10-9 Sec 1 pico seconds = 1 X 10-12 Sec Computer process data at an extremely fast rate - Millions of instructions per second. The speed of a computer is calculated in MHz (Megahertz), that is one million instructions per second. Present computer can perform billions of operations in just one second 1 milli seconds = 1 X 10-3 Sec 1 micro seconds = 1 X 10-6 Sec 1 nano seconds = 1 X 10-9 Sec 1 pico seconds = 1 X 10-12 Sec 8. What do u mean by Accuracy? Besides efficiency, Computers are accurate as well. The level of accuracy depends on the instructions and the type of machine being used. Computers are extremely accurate when accurate programs and data are entered and processed correctly. The popular expression garbage-in, garbage-out (GIGO) means that if inaccurate programs and data are entered into a computer for processing, the resulting output will also be SNSCT Department of Compute Science and Engineering Page 2
13. What do u mean by Resource Sharing? In the initial stages of development, computers used to be isolated machines. Sharing of costly resources like printers are possible Apart from device sharing, data and information can also be shared among groups of computers 14 What is a No Feeling? It does not have feelings ,
Page 3
16 Comparison between computer and calculator S.NO 1. 2. Characteristics Speed Performance Calculator Fast Simple calculation Computer Much fast and Complex problem and non numeric processing
Less internal memory and Large internal memory and no permanent storage, large available Electronic Device Arithmetic and logical permanent storage
Page 4
Slide rule:
Pascaline: Stepped Reckoner. Charles Babbages Engines Holleriths Card reading machine: Mark I digital Computers: ENIAC EDVACEDSAC UNIVAC LARC Machine Microprocessor VLSI VLSI Very Large Scale Integration design
20. Generations of computers: In computer terminology the word generation is described as a stage of technological development or innovation.
Page 5
Super Large Scale Integrated (SLSI) 21 Classification of Computers Computers also differ based on their data processing abilities. Based on physical size, performance and application areas we generally divide computers into four major categories i. Micro Computers ii. Mini Computers iii. Mainframe Computers iv. Super Computers
22 What is a Micro Computers A Micro computer is a small, low cost digital computer, Which usually consists of a micro processor, a storage unit, an input channel and an output channel all of which may be on one chip inserted into one or several PC Boards. The addition of a power supply and connecting cables, appropriate peripherals (keyboard, monitor, printer and disk drivers ), an operating system and other software programs can provide a complete micro computer system Examples IBM-PC, Pentium 100, IBM-PC Pentium 200 and Apple macintosh Micro computers includes a) Desktop Computer b) Laptop c) Hand-held 23 Desktop Computer Also known as Personal Computer(PC) Standalone system used by an individual These are the most common type of micro computers Page 6
24 What do u mean by portable computers A portable computer, that is, a user can carry it around. Since the laptop computer resembles a notebook, it is also known notebook Small computers which enclosing all the basic features of a normal computers. Advantage: i) Can use anywhere and at anytime, especially when one is traveling. ii) They do not need external power supply as a rechargeable battery is completely self contained in them desktop as
25 Hand-Held Computer A hand-held, also called personal digital assistant (PDA) is a computer that can conveniently be stored in a pocket (of sufficient size) and used while the user is holding it. They are slightly bigger than the common calculators. A PDA user generally uses a pen or electronic stylus instead of keyboard for input. Since these computers are easily fitted on the palm, they are also known as palmtop computers. They usually have no disk drive, rather they use small cards to store programs and data. However they can be connected to printer or a disk drive to generate output or store data.
Page 7
27 Mainframe Computer A mainframe is an ultra-high performance computer made for high-volume, processor-intensive computing. It consists of a high-end computer processor, with related peripheral devices, capable of supporting large volumes of data processing, high performance online transaction processing systems, and extensive data storage and retrieval. It is able to process and store more data than a mini computer and far more than a micro computer. It is designed to perform at a faster rate than a mini computer and at even more faster rate than a micro computer. Mainframes are the second largest (in capability and size) of the computer family, he largest being super computers. Mainframes can usually execute many programs simultaneously at a high speed
28 What do u mean by Super Computers? Super computers are the special purpose machines, which are specially designed to maximize the numbers of FLOPS (Floating Point Operation per Second). Any computer below one gigaflop / sec is not considered a super computer. A super computer can process a great deal of information and make extensive calculations very quickly. 29 What are the Basic Computer Organization? A computer performs basically five major operations or functions irrespective of their size and make. 1. Input
Page 8
The storage unit performs the following major functions: Data and instructions required for processing (received from input devices)
Intermediate results of processing Final results of processing, before they are released to an output device
32 What do u mean by Primary storage? Also known as main memory. Used to hold running program instructions Used to hold data, intermediate results, and results of ongoing processing of job(s) Fast in operation SNSCT Department of Compute Science and Engineering Page 9
Also known as auxiliary memory or external memory. Used to hold stored program instructions Used to hold data and information of stored jobs Slower than primary storage Large Capacity Lot cheaper that primary storage Non volatile (Retains data even without power)
34 write about Arithmetic and logic unit Arithmetic Unit: Contains circuitry that is responsible for performing the actual computing and carrying out the arithmetic calculations such as addition, subtraction, multiplication and division. It can perform these operations at a very high speed. Logic Unit: Perform logical operation based on the instruction. The operations are logical comparisons between data items. This unit can compare numbers, letters or special characters. Logic unit can test for 3 conditions: equal-to condition, Less-than condition and Greater-than condition. 35 Control unit (Controlling) This unit checks the correctness of sequences of operations. It fetches program instruction from primary storage unit known as fetching, interpret them and ensure correct execution of the program known as decoding. The time required to fetch and decode an instruction is called instruction time, or I-time. It also controls the input/output devices and directs the overall functioning
Page 10
The Central Processing Unit (CPU) takes data and instructions from the storage unit and makes all sorts of calculations based on the instructions given and the type of data provided. It is then sent back to the storage unit. The CPU consists of a control unit, an arithmetic/logic unit (ALU), and registers. CPU, the brain of any computer system.
It is just like brain that takes all major decisions, makes all sorts of calculations and directs different parts of the computer functions by activating and controlling the operations. 37. Convert Binary to Decimal Conversion:
1010112
=> 1 0 1 0 1
1 x x x x x
20 21 22 23 24
= = = = = 32
1 2 0 8 0
25
Page 11
39. convert Octal to Decimal 7248 => 2 7 x 4 x 82 = x 80 81 = 448 --------46810 40.Convert Decimal to octal: = 4 16
ABC16
=> B A
C x x
160 161 =
12
x1 =
=12 176
11 x 16 = 2560
162
10 x 256
Page 12
Page 13
Prepared UNIT 2
COMPUTER SOFTWARE 1. What is a Software? Software refers to the instructions or programs that tell the hardware what to do. It is responsible for controlling, integrating and managing the hardware components of a computer and to accomplish specific tasks. In other words software tells the computer what to do and how to do it. Eg: The operating system is a software that manages our computer and the device connected to it. Software guides the computer at every step where to start and stop during a particular job. The process of software development is called programming. 2. What do you mean by Computer program? Computer needs to be instructed to perform any tasks. These instructions are given in the form of Computer programs, which are written in computer programming languages. 3. What is Software Packages? Set of program or software (independent software), which are specifically written to provide the user a precise functionality like solving a specific problem is termed as a software package. Ex. Microsoft Office Package. Ms Office contain software like Microsoft Word document, Microsoft powerpoint presentation, Microsoft Access.. 4. What are the types of Software? a) System Software b) Application Software 5. What is an System Software? System software acts as an interface between the hardware of the computer and the software applications. SNSCT Department of Compute Science and Engineering Page 14
8.What is an Operating System? 8. Operating system (OS) is an interface between hardware and user. 9. Operating system is the first layer of software loaded into computer memory. 10. All other software that gets loaded for various common core service. In other words System Software provides the software platform, on top of which other programs can run (system software is the base for other software to run). 9. What are all the common core service of operating System? Disk access Memory management Configuring and controlling peripheral devices Managing essential file operations, including formatting or copying disks, and renaming or deleting files Monitoring system performance ( Security management) Providing a user interface
Page 15
Page 16
System utility program perform day to day task related to the maintenance of the computer system.
They are used to support, enhance and secure existing programs and data in the computer system.
Some utility programs are usually provided along with the operating system, some are free while some need to be purchased from the 3rd party vendors.
Page 17
Application software is used to accomplish specific tasks. It consist of a single program, such as Microsoft`s Notepad(for writing and
package, which work together to accomplish a task, such as database management software.
independent programs and packages which have a common user interface or shared data format, such as Microsoft office suite.
Application software is dependent on system software Application software is controlled by system software, which manages
Application
word
processors(text editor), paint(image Editor) 19 Name Some commonly used application software are
1) 2) 3) 4) 5) 6)
Word processors Spreadsheets Image editors Database management systems Presentation Applications Desktop Publishing Software
20 Explain Word Processors 1 Word processor is a software used to compose (create), format, edit and print electronic document. 2 Word processing is one of the earliest application for office productivity and personal computer
Page 18
UNIT III
1. What is Algorithm? Algorithm means the logic of a program. It is a step by step description of a program. 2. List out the way how algorithm may be represented? Normal English Flow chart SNSCT Department of Compute Science and Engineering Page 19
10. List out the any three advantages of flowchart. Better communication Effective synthesis Effective analysis 11. What do u mean by Flow chart ?
Page 20
13. What is high level flow Chart ? A high-level (also called first-level or top-down) flowchart shows the major steps in a process. It illustrates a "birds-eye view" of a process, such as the example in the figure entitled High-Level Flowchart of Prenatal Care. It can also include the intermediate outputs of each step (the product or service produced), and the sub-steps involved. Such a flowchart offers a basic picture of the process and identifies the changes taking place within the process. It is significantly useful for identifying appropriate team members (those who are involved in the process) and for developing indicators for monitoring the process because of its focus on intermediate outputs.
14. What is Detailed Flowchart ? The detailed flowchart provides a detailed picture of a process by mapping all of the steps and activities that occur in the process. This type of flowchart indicates the steps or activities of a process and includes such things as decision points, waiting periods, tasks that frequently must be redone (rework), and feedback loops. This type of flowchart is useful for examining areas of the process in detail and for looking for problems or areas of inefficiency. For example, the Detailed Flowchart of Patient Registration reveals the delays that result when the record clerk and clinical officer are not available to assist clients.
15. What is Matrix Flow chart? A deployment flowchart maps out the process in terms of who is doing the steps. It is in the form of a matrix, showing the various participants and the flow of steps among these participants. It is chiefly useful in identifying who is providing inputs or services to whom, as SNSCT Department of Compute Science and Engineering Page 21
16. Name some Benifits of flowchart ? 1. Communication: Flowcharts are better way of communicating the logic of a system to all concerned. 2. Effective analysis: With the help of flowchart, problem can be analysed in more effective way. 3. Proper documentation: Program flowcharts serve as a good program documentation, which is needed for various purposes. 4. Efficient Coding: The flowcharts act as a guide or blueprint during the systems analysis and program development phase. 5. Proper Debugging: The flowchart helps in debugging process. 6. Efficient Program Maintenance: The maintenance of operating program becomes easy with the help of flowchart. It helps the programmer to put efforts more efficiently on that part 17. What is Shareware Shareware is software developed by an individual or software publisher who retains ownership of the product and makes it available for a small contribution fee. The voluntary fee normally entitles users to receive online or written product documentation and technical help. 18. What do u mean by Freeware Freeware is software that is provided free of charge to anyone wanting to use it. Hundreds of freeware programs are available, many written by college students and professors who create programs as class projects or as part of their research.
19. What is a Open Source Software An open source software program is software whose programming code is owned by the original developer but made available free to the general public, who is encouraged to experiment with the software, make improvements, and share the improvements with the user community 20. Application Software for Individual
Page 22
they are central to communication.: 22. What are the processes carried out in word processor Create (enter) text Edit the text Format the document Save and print the file
Page 23