What is the difference between looping and selection?

(a)   What is the difference between looping and selection?

______________________________________________________________________

______________________________________________________________________

(b)   Name the stage of program development cycle when:

 

(i)   A user guide would be written.

______________________________________________________________________

A programmer dry-runs the code.

______________________________________________________________________

System charts would be drawn.

______________________________________________________________________

(c) Study the pseudo-code below and answer the questions that follow.

The pseudo code is as follows

BEGIN

Print “enter the value of M and N”;

Read M,N

Set χ = M;

Set y = N;

P = y – χ;

Q = χ – y;

IF P >Q THEN;

Set P = χ;

Set Q = y;

ELSE

Set P = y;

Set Q = χ;

ENDIF

PRINT P, Q, χ, y;

END

(i)   State the name of the control structure shown in the flowchart.

______________________________________________________________________

______________________________________________________________________

Assuming the user keys in 8 and 14 when prompted to enter the values for m and N respectively, determine the printed values of P, Q, χ and y.

______________________________________________________________________

______________________________________________________________________

______________________________________________________________________

(iii)   Draw a flowchart for the above pseudo-code.

(a)What is the difference between looping and selection?   ______________________________________________________________________ ______________________________________________________________________

(b)Name the stage of program development cycle when:

(i)A user guide would be written. ______________________________________________________________________  A programmer dry-runs the code. ______________________________________________________________________ System charts would be drawn.    ______________________________________________________________________ (c) Study the pseudo-code below and answer the questions that follow. The pseudo code is as follows BEGIN Print “enter the value of M and N”; Read M,N Set χ = M; Set y = N; P = y – χ; Q = χ – y; IF P >Q THEN; Set P = χ; Set Q = y; ELSE Set P = y; Set Q = χ; ENDIF PRINT P, Q, χ, y; END

(ii)State the name of the control structure shown in the flowchart. ______________________________________________________________________ ______________________________________________________________________ Assuming the user keys in 8 and 14 when prompted to enter the values for m and N respectively, determine the printed values of P, Q, χ and y.  ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________

(iii)Draw a flowchart for the above pseudo-code.

State two characteristics of microcomputers.     ______________________________________________________________________ ______________________________________________________________________ State the functions of the following keyboard key combinations: CTRL + ESC: _______________________________________________________ ALT + F4___________________________________________________________ CTRL + ALT + DEL___________________________________________________ Explain two ways through which data loss can be prevented on magnetic media especially hard disk.       ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ Explain portability with regard to software and hardware factors to consider when selecting a computer.  ______________________________________________________________________ ______________________________________________________________________

(a) Explain each of the following formatting features in Microsoft Word: Drop Cap: ______________________________________________________________________ Subscript ______________________________________________________________________ (b) State any two paragraph formatting features in Microsoft Word. ______________________________________________________________________ ______________________________________________________________________ List any three internet connectivity requirements.     ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ (a) State and explain one key control measure against computer viruses. ______________________________________________________________________ ______________________________________________________________________

(b) State two control measures against an unauthorized access. __________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ (a) Convert 2510 into its binary equivalent.   ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________

(b) Using two’s complements work subtract 1110 from 910, giving your answer in binary.           ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ Describe Data processing cycle.     ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ Explain each of the following programming terms.Source code ______________________________________________________________________ ______________________________________________________________________ Translator ______________________________________________________________________ ______________________________________________________________________ (a) Outline two purposes of computer networks.    ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ (b) State one limitation of computer networks.    ______________________________________________________________________ ______________________________________________________________________ List three career opportunities in ICT.     ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ a) State two ways in which computers are used in law enforcement. ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ b) Outline two effects of ICT on employment.     ______________________________________________________________________ ______________________________________________________________________ State and explain the function of two special purpose memories.

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"