Click to follow our Afritutor YouTube Channel, subscribe and click notifications and get updates on new learning videos


<=Back

<=KNEC Craft Certificate in ICT Module 2 Structured Programming past paper July 2023

Jared used the following keywords in a C program that he developed.
Explain the function of each of the following keywords in the program. (4 marks)
(a) Goto statement;
(b) Break statement;

    Viewed:  274  times
For Better experience and learning,for video answers, after video ends playing, click next question in the questions list!!!

  Share in:
        

Question Answer:





Questions List:

1. Explain four examples of third generation programming language
2. Explain the function of a loader as used in programming
3. State the difference between / operator and % operator as used in a C program
4. Outline four characteristics of a C programming language
5. Kennedy considered the following factors when choosing a programming language: Explain a reason for each of these considerations
6. Explain a circumstance that would necessitate the use of each of the following format strings in a C program. (a) %d; (b) %f
7. The following is a program written in C programming language. Use it to answer the questions that follows: i)main() ii)printf()
8. Jared used the following keywords in a C program that he developed. Explain the function of each of the following keywords in the program. (4 marks) (a) Goto statement; (b) Break statement;
9. The following is a statements used in a C program. Use it to answer the questions that follows: For (k1; k<=20; k++) (a) Identify the logical expression in the statement. (b) State the function of the statement k++.
10. With the aid of an illustration, state the difference between a one-dimensional array and a two dimensional array as used in C programming.
11. Describe each of the following data structure as used in programming language. (a) Stack; b)Linkedlist
12. Describe each of the following tools as used in programming: i)Decision tree ii)Flow chart
13. Marion intends to develop an application in C programming language. Describe two types of software other than the operating system she would require to achieve her goals
14. Explain merge sort technique as used in programming
15. The following are elements in an array, use it to answer the question that follow. Using a binary search algorithm, write a pseudo-code to find the element 26 in the array.
16. Explain the term binary file as used in C programming
17. Outline two advantages of using a binary file in C programming
18. Sally documented a program that she developed. Explain three types of documentation that she could have considered
19. Write a program using C programming language that would display all integers from 20 to 50. Use for loop statement.
20. Explain the function of each of the following function prototype statement in a C program: (i) float area(int, int) (ii) int void sum(int)
21. State a program development phase where each of the following activities may be performed: (5 marks) (i) Write the actual program; (ii) Stating the requirement of the program to be developed (iii) Enhancing the operation of the program;
22. The volume of a sphere is given by #V=4/3×π×r^3#, where V is the volume and r is the radius. Write a c program that would compute and display the volume of a sphere with a radius 20 cm.
23. Outline three advantages of sub program in programming
24. With an aid of an example, differentiate between a single character constant and a sting character constant as used in C programming.
25. The following is a program in C programming language. Use it to answer the question that follows. (i) State two statements that have been used to initialize variables in the program. (2 marks) (ii) Explain the function of \n in the printf statement. (2 marks) (iii) Explain the scope of each of the following variable declared in the program: (I) g; II)a;
26. State the difference between “a” command mode and “w+” command mode as used in C programming files
27. (b) Explain the functions of each of the following in C programming language. (i) escape sequence; (ii) nested loop; iii)clrscr() command.
28. Write a C program that would accept a string of 10 characters through an input statement. The program should then print the first character and last character of the string on the screen.


About Us

Contact us

Terms of use | Privacy policy

Follow Us:               

All Rights Reserved © 2024; pscustudies.com