0% found this document useful (0 votes)
30 views

Principles of Programming Btech Regular

This document contains an exam for a Principles of Programming course, including multiple choice and essay questions. The multiple choice section has 24 questions testing students' knowledge of programming concepts like data structures, exception handling, and software development lifecycles. The essay section asks students to discuss the benefits of stored procedures in databases and to enumerate the steps in the software development lifecycle.

Uploaded by

Joshua Kombui
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views

Principles of Programming Btech Regular

This document contains an exam for a Principles of Programming course, including multiple choice and essay questions. The multiple choice section has 24 questions testing students' knowledge of programming concepts like data structures, exception handling, and software development lifecycles. The essay section asks students to discuss the benefits of stored procedures in databases and to enumerate the steps in the software development lifecycle.

Uploaded by

Joshua Kombui
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

KUMASI TECHNICAL UNIVERSITY

FACULTY OF ENGINEERING AND TECHNOLOGY


DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING
Bachelor of Technology (BTECH) in Electrical and Electronic Engineering
End of Second Semester Examination – 2021/2022
Second Year
BEE 128 PRINCIPLES OF PROGRAMMING

August 2022 Time: 2 Hours

INSTRUCTIONS: 1. Answer all questions for 60 marks.

2. Choose the appropriate answer for each Question in Part A

3. Answers for Part B should be brief and concise.

PART A – MCQs (2 Marks X 24 = 48 Marks)

1. What is a Program?
A. Software that helps an end-user perform specific task on a computer.
B. A set of instructions that can be executed on a computer.
C. An abstraction, a conceptual platform, with facilities and tools for complete
software development.
D. None of the above is correct

2. What is an Integrated Development Environment (IDE)?


A. Software that helps an end-user perform specific task on a computer.
B. A software application that helps Programmers create computer software, in a
productive manner
C. A set of instruction that can be execute on a computer.
D. None of the above is correct.

3. What is a Software Framework?


A. Software that helps an end-user perform specific task on a computer.
B. A set of instructions that can be executed on a computer.
C. An abstraction, a conceptual platform, with facilities and tools for complete
software development.
D. None of the above is correct.

4. .Net Framework is a Software Framework?


TRUE
FALSE

5. Are the following factors important for choosing Computer Programming as a field of
study and career path? Experimentation, Excitement, Motivation, Fun.
TRUE
FALSE

6. Self-motivation plays a significant role in becoming a great Programmer.


Examiner: Ing. Linus Antonio Ofori AGYEKUM Page 1 of 4
TRUE
FALSE

7. Computer Programming besides Science, is also an Art because:


A. It is a creative process.
B. In an empty code editor, you create a logic, that is a computer program
C. Among other, it requires ingenuity.
D. For all of the above factors.

8. For becoming a good Computer Programmer, you need:


A. Technical Skills.
B. People Skills.
C. Emotional Intelligence
D. All of the above.

9. Which of the below are Computer Programming Principles?


A. Abstraction.
B. Algorithms.
C. Data Structures.
D. All of the above.

10. Why do you Need to Know the Main Programming Principles?


A. Because you will be able to develop software efficiently.
B. Because you will be able to build scalable and robust software.
C. Because you will be able to solve complex problems much easier
D. All of the above.

11. What is Abstraction in Computer Programming?


A. A process that describes the solution to mostly a computational problem in a step-
by-step manner.
B. A way of “analyzing” a problem by removing the background details and
focusing on the main concept.
C. A repetitive process that ends only when certain conditions are met.
D. None of the above.

12. What is a Data Structure in Computer Programming?


A. A repetitive process that ends only when certain conditions are met.
B. A block that contains code which can be reused whenever it is called by its
referencing name.
C. A construct/container that is used for storing, managing and organizing data.
D. None of the above.

13. Which of the below is Not a factor for defining a Programming Language as popular?

Examiner: Ing. Linus Antonio Ofori AGYEKUM Page 2 of 4


A. Highest paying based on published reports and polls.
B. Number and size of technical communities.
C. Volume of developer community contributions such as blog posts.
D. Ability to create GUI applications easily.

14. The 2 main types of Programming Languages are General-Purpose and Domain-
Specific Programming Languages?
TRUE
FALSE

15. General-Purpose Programming Languages, enable you to write software for a


particular problem domain.
TRUE
FALSE

16. Domain-Specific Programming Languages, enable you to write software for a variety
of application domains.
TRUE
FALSE

17. What is the Requirements Extraction and Analysis phase in the Software Development
Life Cycle?
A. Graphical representation of a program’s or process control flow.
B. The phase where you interview the project stakeholders and “extract” the
requirements for the software to be developed.
C. The process of building the architecture of the system.
D. The phase of implementing the software system.

18. What is the Control Flow Graph phase in the Software Development Life Cycle?
A. The process of building the architecture of the system.
B. The phase of implementing the software system.
C. The final step prior to releasing the software program, based on which you check
the quality of the program based on a set of Quality management keys.
D. None of the above.

19. What is the Specifications phase in the Software Development Life Cycle?
A. Graphical representation of a program’s or process control flow.
B. The process of creating a document or set of documents that follow up the
requirements extraction and analysis phase.
C. The process of building the architecture of the system.
D. The phase of testing the newly implemented system, identifying possible bugs and
correcting them.

Examiner: Ing. Linus Antonio Ofori AGYEKUM Page 3 of 4


20. What is the Software Design phase in the Software Development Life Cycle?
A. The phase where you interview the project stakeholders and “extract” the
requirements for the software to be developed.
B. The process of creating a document or set of documents that follow up the
requirements extraction and analysis phase.
C. The process of building the architecture of the system.
D. The phase of implementing the software system.

21. Which of the below is a Data Structure in the C# Programming Language?


A. ArrayList.
B. List.
C. LinkedList.
D. All of the above.

22. Which of the below is a Data Structure in the C# Programming Language?


A. With a try{…} catch{…}{…} block.
B. With an if…else statement and the exit command.
C. With try:… except…: code block.
D. With BEGIN TRY …END TRY BEGIN CATCH …END CATCH

23. How can you use Exception Handling in the SQL Scripting Language in SQL Server?
A. With a try{…} catch{…}{…} block.
B. With an if…else statement and the exit command.
C. With try:… except…: code block.
D. With BEGIN TRY …END TRY BEGIN CATCH …END CATCH

24. How can you use Exception Handling in the Java Programming Language?
A. With a try{…} catch{…}{…} block.
B. With an if…else statement and the exit command.
C. With try:… except…: code block.
D. With BEGIN TRY …END TRY BEGIN CATCH …END CATCH

PART B – ESSAY (12 Marks)

25. State the benefits of using stored procedures in database. [4 Marks]

26. Enumerate the software development life cycle. [8 Marks]

END OF PAPER

Examiner: Ing. Linus Antonio Ofori AGYEKUM Page 4 of 4

You might also like