PROGRAMMING AND SYSTEMS ANALYSIS AND DESIGN AUGUST 2022 PAST PAPER

THURSDAY: 4 August 2022. Morning paper. Time Allowed: 3 hours.

This paper has two sections. SECTION I has twenty (20) questions of forty (40) marks. SECTION II has three (3) practical questions of sixty (60) marks. All questions are compulsory. Marks allocated to each question are shown at the end of the question.

SECTION 1

1. What is the output of the Java code below after program execution? (2 marks)

public static void main(String args[]) {
int a=5;
int b=++a;
System.out.println(b);
}

2. A _________system is the one which utilizes presently achieved output of the system for causing variation in the applied input signal in order to get the required output. (2 marks)

3. The abstract computing machine that drives the Java code and converts Java bytecode into machines language is called___________? (2 marks)

4. Systems design is the process of identifying the problems, collecting and interpreting facts and decomposition of a system into its components. (2 marks)

5. The type of system development life cycle which give you flexibility in performing the activities, with certain rules that need to be followed and is a mix of incremental and iterative development is known as. (2 marks)

6. A programming paradigm is a way of doing things. Which programming paradigm does Java belong to? (2 marks)

7. A primitive data type, is a predefined type of data, that are supported by the programming language type built into a programming language. The data type that contain two-state values such as true/false, yes/no is called? (2 marks)

8. What is the name of the byte input stream class in Java programming that provides methods for reading bytes from a file? (2 marks)

9. The process of specifying in detail how components of an information system should be physically implemented is referred to as ____________ (2 marks)

10. _______________ tools are automated to improve the speed and quality of system development work. (2 marks)

11. The collaborative framework for teams that encourages teams to learn via experiences, self-organize while working on a problem, and reflect on their victories and losses is called the _____________ framework (2 marks)

12. __________ is the feature in object-oriented programming that shows the essential details and hides non-essential details? (2 marks)

13. The type of feasibility concerned with making sure hardware, software, and training will be available to facilitate the design of a new system is called ____________ feasibility. (2 marks)

14. The principle of program modules in which each module is independent of other module is called _____________ module (2 marks)

15. _____________ requirements are the activities the system must perform. (2 marks)

16. When writing Java loop code, a programmer may make a mistake in the loop exit condition that will always evaluate the loop condition as true. What name is given to this kind of loop? (2 marks)

17. The representation of organizational data which includes all the major entities and relationship in system design is known as ____________ (2 marks)

18. What name is given to the type of software testing technique used for software validation by ignoring the internal working mechanisms of the software and focuses on the output (2 marks)

19. The name given to abstract class in Java that stores the data in the form of key-value pairs is referred to as? (2 marks)

20. The looking into business problem in great detail, completely understanding problem, and choosing best solution in system analysis and design is given the name ______________ (2 marks)

SECTION II

21. Create a word processor document named Question 21 and use it to save solution to question given below. Save screenshots to demonstrate how you have performed the task given. Create a java project named “pasad_aug” and create a new Java file named “area”. Use the file created to write a Java program to calculate the area and the perimeter of a rectangle, by prompting the user to enter the length and width through the keyboard, and display the area on the console screen.

Upload question 21 document.

(20 marks)

22. Create a word processor document named Question 22 and use it to save solution to questions 1 to 3 in form of screenshots.

Study the screen shot given below to answer the questions that follows:

Required:
1. Create a new Java file named “sum” in the project named “pasad_aug”. Use a Java IDE to create the user interface shown above, using the information provide in the following table. (9 marks)

2. Write a program to calculate the “sum” of two numbers entered by the user through the form created in (i) above and display the result on the result text field when the user clicks the “Add” button. (9 marks)

3. Write the program to clear all the text filed when a user clicks on the button “clear”. (2 marks)

Upload question 22 document.

23. Create a word processor document named Question 23 and use it to save solution to questions 1 to 2 below in form of screenshots.

1. Create a new Java file called “loops” in the project “pasad_aug”. Write a Java application which prompts the user to enter 15 integers, then computes the sum, and prints the sum to the screen. (10 marks)

2. Write a Java program that generates 80 random integers between 5 and 15 and displays the count for each number using a class named “randnum2022”. (10 marks)

Upload question 23 document.

(Visited 182 times, 1 visits today)
Share this: