SlideShare a Scribd company logo
1 of 3
©2023 Kendege Technical & Vocational College Page 1
2920/103
STRUCTURED PROGRAMMING
JUNE/JULY 2023
TIME: 3 HOURS
KENDEGE TECHNICAL AND VOCATIONAL COLLEGE
DIPLOMA IN INFORMATION AND COMMUNICATION TECHNOLOGY
MODULE I
STRUCTURED PROGRAMMING
3 Hours
INSTRUCTIONS TO CANDIDATES
Answer ALL questions in answer booklet provided
All questions carry equal marks
Candidates should answer the questions in English
The paper consists of 3 printed pages
Candidates should check the question paper to ascertain that all the pages are printed as indicated
and that no question is missing
©2023 Kendege Technical & Vocational College Page 2
1 a) Explain two ways in which parameters can be passed to a function (4 marks)
b) Describe the following data structures as used in structured programming
a. Linked list (2 marks)
b. Stack (2 marks)
c) Write a simple program in C that implements a bubble sort algorithm (12 marks)
2 a) Differentiate between local variable and global variable as used in structured programming.
(4marks)
b) Given the numbers: 45, 23, 4, 15, 78, 52, 12, 6, 56, 92. Show a step-by-step process of sorting the
list using inserting sort algorithm (8marks)
c) Outline any four application areas of array data structures (4 marks)
d) State any four rules to observe while choosing a variable name (4 marks)
3 a) With the aid of syntax statements, differentiate between the do…while loop and the while loop as
used in structured programming. (4 marks)
b) State and explain any three types of errors encountered in a programming (6 marks)
c) Distinguish between pseudocodes and flowcharts as used in programming (4 marks)
d) Explain each of the following stages used when solving a computer problem
a. Problem definition (2 marks)
b. Writing an algorithms (2 marks)
c. Testing the solution (2 marks)
4 a) State any four programming paradigms giving a brief description of each (8 marks)
b) Maguire wants to write a program that computes and displays the average of 10 integers entered
through the keyboard one a time. Use a flow chart to design the program
(4 marks)
c) Outline the function of preprocessor directives as used in c language (2 marks)
d) Write a C program that could generate random numbers between 0 and 1 (6 marks)
5 a) Outline two cases where a programmer could use a compiler during program writing
(2 marks)
b) Explain any three types of program testing (6 marks)
©2023 Kendege Technical & Vocational College Page 3
c) State the difference between a procedure and a function as used in structured programming
(4 marks)
d) Differentiate between post-increment and pre-increment as used in c language
(4 marks)
e) Distinguish between actual and formal parameters as used in programming (4 marks)
THIS IS THE LAST PRINTED PAGE

More Related Content

Similar to 103.docx

Computer Programming Jntu Model Paper{Www.Studentyogi.Com}
Computer Programming Jntu Model Paper{Www.Studentyogi.Com}Computer Programming Jntu Model Paper{Www.Studentyogi.Com}
Computer Programming Jntu Model Paper{Www.Studentyogi.Com}
guest3f9c6b
 
C O M P U T E R P R O G R A M M I N G J N T U M O D E L P A P E R{Www
C O M P U T E R  P R O G R A M M I N G  J N T U  M O D E L  P A P E R{WwwC O M P U T E R  P R O G R A M M I N G  J N T U  M O D E L  P A P E R{Www
C O M P U T E R P R O G R A M M I N G J N T U M O D E L P A P E R{Www
guest3f9c6b
 
Name _______________________________ Class time __________.docx
Name _______________________________    Class time __________.docxName _______________________________    Class time __________.docx
Name _______________________________ Class time __________.docx
rosemarybdodson23141
 

Similar to 103.docx (20)

Chap-02-1.ppt
Chap-02-1.pptChap-02-1.ppt
Chap-02-1.ppt
 
Chap-02-1.ppt
Chap-02-1.pptChap-02-1.ppt
Chap-02-1.ppt
 
Chap-02-1.ppt
Chap-02-1.pptChap-02-1.ppt
Chap-02-1.ppt
 
Chap-02-1.ppt
Chap-02-1.pptChap-02-1.ppt
Chap-02-1.ppt
 
Chap 02-1
Chap 02-1Chap 02-1
Chap 02-1
 
C programming-1.pptx
C programming-1.pptxC programming-1.pptx
C programming-1.pptx
 
Computer Programming Jntu Model Paper{Www.Studentyogi.Com}
Computer Programming Jntu Model Paper{Www.Studentyogi.Com}Computer Programming Jntu Model Paper{Www.Studentyogi.Com}
Computer Programming Jntu Model Paper{Www.Studentyogi.Com}
 
C O M P U T E R P R O G R A M M I N G J N T U M O D E L P A P E R{Www
C O M P U T E R  P R O G R A M M I N G  J N T U  M O D E L  P A P E R{WwwC O M P U T E R  P R O G R A M M I N G  J N T U  M O D E L  P A P E R{Www
C O M P U T E R P R O G R A M M I N G J N T U M O D E L P A P E R{Www
 
Bsc math previous exam quetions
Bsc math previous exam quetionsBsc math previous exam quetions
Bsc math previous exam quetions
 
Mcs 011 ignou question paper c language
Mcs 011 ignou question paper c languageMcs 011 ignou question paper c language
Mcs 011 ignou question paper c language
 
2013-June: 5th Semester CSE / ISE Question Papers
2013-June: 5th  Semester CSE / ISE Question Papers2013-June: 5th  Semester CSE / ISE Question Papers
2013-June: 5th Semester CSE / ISE Question Papers
 
5th Semester CS / IS (2013-June) Question Papers
5th Semester CS / IS (2013-June) Question Papers5th Semester CS / IS (2013-June) Question Papers
5th Semester CS / IS (2013-June) Question Papers
 
Name _______________________________ Class time __________.docx
Name _______________________________    Class time __________.docxName _______________________________    Class time __________.docx
Name _______________________________ Class time __________.docx
 
Pcd201516
Pcd201516Pcd201516
Pcd201516
 
17432 object oriented programming
17432   object oriented programming17432   object oriented programming
17432 object oriented programming
 
Microprocessor Architecture (Question Paper) [April – 2017 | 75:25 Pattern]
Microprocessor Architecture (Question Paper) [April – 2017 | 75:25 Pattern]Microprocessor Architecture (Question Paper) [April – 2017 | 75:25 Pattern]
Microprocessor Architecture (Question Paper) [April – 2017 | 75:25 Pattern]
 
Std 10 Chapter 10 Introduction to C Language Important MCQs
Std 10 Chapter 10 Introduction to C Language Important MCQsStd 10 Chapter 10 Introduction to C Language Important MCQs
Std 10 Chapter 10 Introduction to C Language Important MCQs
 
3rd Semester Computer Science and Engineering (ACU) Question papers
3rd Semester Computer Science and Engineering  (ACU) Question papers3rd Semester Computer Science and Engineering  (ACU) Question papers
3rd Semester Computer Science and Engineering (ACU) Question papers
 
Intro
IntroIntro
Intro
 
Oop r&s may 2019 (2)
Oop r&s may 2019 (2)Oop r&s may 2019 (2)
Oop r&s may 2019 (2)
 

Recently uploaded

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Recently uploaded (20)

Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 

103.docx

  • 1. ©2023 Kendege Technical & Vocational College Page 1 2920/103 STRUCTURED PROGRAMMING JUNE/JULY 2023 TIME: 3 HOURS KENDEGE TECHNICAL AND VOCATIONAL COLLEGE DIPLOMA IN INFORMATION AND COMMUNICATION TECHNOLOGY MODULE I STRUCTURED PROGRAMMING 3 Hours INSTRUCTIONS TO CANDIDATES Answer ALL questions in answer booklet provided All questions carry equal marks Candidates should answer the questions in English The paper consists of 3 printed pages Candidates should check the question paper to ascertain that all the pages are printed as indicated and that no question is missing
  • 2. ©2023 Kendege Technical & Vocational College Page 2 1 a) Explain two ways in which parameters can be passed to a function (4 marks) b) Describe the following data structures as used in structured programming a. Linked list (2 marks) b. Stack (2 marks) c) Write a simple program in C that implements a bubble sort algorithm (12 marks) 2 a) Differentiate between local variable and global variable as used in structured programming. (4marks) b) Given the numbers: 45, 23, 4, 15, 78, 52, 12, 6, 56, 92. Show a step-by-step process of sorting the list using inserting sort algorithm (8marks) c) Outline any four application areas of array data structures (4 marks) d) State any four rules to observe while choosing a variable name (4 marks) 3 a) With the aid of syntax statements, differentiate between the do…while loop and the while loop as used in structured programming. (4 marks) b) State and explain any three types of errors encountered in a programming (6 marks) c) Distinguish between pseudocodes and flowcharts as used in programming (4 marks) d) Explain each of the following stages used when solving a computer problem a. Problem definition (2 marks) b. Writing an algorithms (2 marks) c. Testing the solution (2 marks) 4 a) State any four programming paradigms giving a brief description of each (8 marks) b) Maguire wants to write a program that computes and displays the average of 10 integers entered through the keyboard one a time. Use a flow chart to design the program (4 marks) c) Outline the function of preprocessor directives as used in c language (2 marks) d) Write a C program that could generate random numbers between 0 and 1 (6 marks) 5 a) Outline two cases where a programmer could use a compiler during program writing (2 marks) b) Explain any three types of program testing (6 marks)
  • 3. ©2023 Kendege Technical & Vocational College Page 3 c) State the difference between a procedure and a function as used in structured programming (4 marks) d) Differentiate between post-increment and pre-increment as used in c language (4 marks) e) Distinguish between actual and formal parameters as used in programming (4 marks) THIS IS THE LAST PRINTED PAGE