COMPUTER STUDIES QUESTIONS WITH ANSWERS
List three disadvantages of using traditional file management method (3mks)
0 Comments
State any three activities that occur in a program compilation process (3mks)
Suppose an element array A contains the values 9, 12, 17, 7 and 20. Find the value in A after executing the loop below:
Repeat for k= 1 to 4
Set A {k + 1} = A {k} {End of loop} First time A {2}: = 9 Second time A {3}: = 9 Third Time A {4}:= 9 Fourth time A {5}: = 9 State two types of documentation in program development and give the purpose of each (4mks)
State three data representation codes used in computersASCIIAmerican Standard Coded for information interchange BCDBinary coded Decimal EBCDICExtended Binary Coded Decimal interchange Code List two methods of gathering information during system development process.
(a) In a computer based information system, state the purpose of the following files and give one example where such a file may re required in a school (8mks)(i) Report lifeA summary file from the main file (ii) Backup fileBackup also called a security file – are copies of files kept in case the original master file is damaged or lost and cannot be used. (iii) Reference fileThis is a file with a reasonable amount of permanency. Examples of data used for reference purposes are price list, tables of rate of pay, names and addresses. (iv) Sort fileThis is a temporary file that holds records organized in a particular order (a) What is meant by each of the following terms:
(b) A program is required to list the first 1000 numbers in the series 2, 4, 6, 8, 10 ……. Draw a flowchart and write a program that can be carry out this task (12mks)Define the term structured programming (2mks)
A program is broken down into smaller sections called modules. The modules are linked together.
A 3 by 4 matrix M is to be added to another 3 by 4 matrix array N so as to give a third 3 by 4 matrix array P. Using a high level programming language, write a program segment that assigns the sum of M and N to P.
Program add matrix (input, Output);
Type Matrix = Array (14, 13) of integer; Var A, B, C: Matrix; I, J: Integer; Producer add (Var X, Y, Z: Matrix); Begin (add) For I: to 3 do Begin For J: 1 to 4 do Z [l,J]: X [l, J] + Y[l,J]; End End; {add} High level programming languagesWhat is batch processing?
Transaction are accumulated over a period of time and then processed at a pre-specified time to produce a batch of output
Give one advantage and one disadvantage of batch processingAdvantages
Disadvantages
Related Searches
Question Source: KNEC KCSE 1998 Computer Studies
The ‘while…do’ loop is a control structure designed to execute the same block of code again and again until a certain condition is fulfilled. This loop is used if a condition has to be met before the statements within the loop are executed. A program is required for reading in a student’s name and scores obtained in two subjects. The output of the program will consist of the student’s name, the two scores, the average of the two scores and comment. The comment is based on the average as follows:
Write a program to solve the problem using a high level language (15 mks)
Detailed ResponseList of file organization methods in a computer
File organization refers to the way data is stored in a file. File organization is very important because it determines the method of access, efficiency, flexibility and storage devices to be used. There are four methods of organizing files on a storage media namely: Sequential, random, serial and indexed- sequential
In the following flowchart, what will be the value of the sum when printed?
Show how you arrive at your answer. Steps in program development cycle in their logical sequence
Name six steps in program development cycle in their logical sequence. (3mks)
Define the term array as used in computer programming (2mks)
An array is a structure, which holds many variables, all of the same data type.
The array consists of so may element, each element of the array capable of storing one piece of data (variable)
An array is used to store a collection of data, but it is often more useful to think of an array as a collection of variables of the same type.
What are the applications of array?
The roots of the equation ax2 +bx + c= 0 are by the formula
a) Draw a flowchart to compute the roots of the equation. (10 mks)
What meant by the term user-friendly as used in software development?
Distinguish between transcription and transposition types of errors and give an example of each22/12/2020 Distinguish between transcription and transposition types of errors and give an example of each
Give two differences between high-level and low-level languages
What is program documentation? Give two examples of program documentations.
This refers to information that serves to explain the purpose of a program.
Documentation may be internal in the form of comments and appropriate named variables and constants e.t.c. or may be extended in the form of a written description and structure diagram. E.g. user oriented and program oriented. |
Categories
All
Archives
December 2024
|
We Would Love to Have You Visit Soon! |
Hours24 HR Service
|
Telephone0728 450425
|
|
8-4-4 materialsLevels
Subjects
|
cbc materialsE.C.D.E
Lower Primary
Upper Primary
Lower Secondary
Upper Secondary
|
teacher support
Other Blogs
|