Вы находитесь на странице: 1из 6

REVISION FP101

1.

What is the electronic device used to calculate the sum of two numbers? A. Arithmetic Logic Unit Device B. Central Processing Unit Device C. Secondary Storage Unit Device D. Primary Storage Unit Device The CPU is generally subdivided into two basic sub units, which are I. Input unit II. Output unit III. Control unit IV. Arithmetic logic unit A. I, II B. II, III C. I, III D. III, IV

2.

3.

Step 1: Data entered by user are stored in memory. Step 2: CPU will instruct program to process the card number and ATM pin number with the data in memory concurrently. Program will execute the transaction chosen by the user and store the result in memory. Step3: The output is the money withdrawn and transaction receipt.
A. B. C. D. Programme Deduction Programme acception Programme process Programme execution

4.

What is a programming language? A. Refer to the process of displaying output that had been proceeding by the System Unit. B. Refer to the process of entering data, program and instructions into the computer using input devices. C. Computer what are the operation that needs to be done. D. Set of computer instruction that direct devices to carry out tasks. A machine language is I. a collection of binary digit or bits that the computer reads or interprets. II. The only language that computer understands. III. A low level programming language that is use as interface with computer hardware. IV. A programming language with strong abstraction from the details of the computer. A. I B. I, II C. I, II, III D. II, III, IV

5.

6.

Which of the following describes the function of a translator? A. A translator translates a machine language to assembly language. B. A translator can be used to correct errors automatically. C. A translator is a program that checks logic flow of a program. D. A translator produces error messages if there are errors in the program. High Level Language Low Level Language The instruction executes only on specific type of The instruction and syntax in a program can be use on computers. any type of computers. B. The instructions is written as binary codes, The instruction is written as a series of English-like 1and 0. words. C. Translation is required and done by the The language does not require a translator. compiler D. The language also known as symbolic The language is also called a procedural language. language. The following are the advantages of high level language EXCEPT. A. Easy to understand B. Machine dependent A.

7.

C. D. 8.

Program easily modified Portability

State the input, process and output of the following problem.

A Salary Calculating System requires an employee to enter the total working hours of month. The system will calculate and display the employees salary of the month.
Input Monthly Pay Total Hours Total Monthly Hours Total Monthly Hours Process Calculate Yearly Pay Calculate Yearly Pay Calculate Monthly Pay Calculate Monthly Pay Output Yearly Pay Yearly Pay Yearly Pay Monthly Pay

A. B. C. D. 9.

Which of the following is true to describe a program? A. Program is a process of designing or creating a program B. Program is a set of step-by-step instructions that directs a computer to perform a specific task and to produce the required result. C. Program is an instruction given by a user to direct a computer to perform a required task. D. Program is a process of displaying output from the process execute by computer.

10. Which of the following statement about a computer is incorrect? A. It is a mechanical device. B. It can input and store a set of instruction and data. C. It can process stored data according to instructions. D. It can produce output. 11. Computer output comes in THREE (3) forms: ________, _________ and __________. A. Hard copy, Soft copy and paper B. Screen readable, Soft copy and Disk C. Hard copy, Disk and Hard copy D. Hard copy, Soft copy and Screen readable 12. Following are computer categories EXCEPT. A. Digital Camera B. Rice Cocker C. Washing Machine D. Fried Chicken Oven 13. What is pseudocode? A. Pseudocode is a sequence of instructions to solve a problem, written in human language. B. Pseudocode is a sequence of instruction to write the problem solving in programming language. C. Pseudocode is method to describe the problem solving. D. Pseudocode is a graphical representation scheme for modeling object-oriented system. 14. Software can be divided into two general classes: A. Ms Office and Application B. Operating and System C. Operating and MS Office D. Application and System 15. Programmer is someone who ___________________________. A. Writes a Novel B. Writes a Program C. Writes a Notes D. Writes a article 16. It is a communicating device to the solution of problems produced by using computer to the user. A. Keyboard B. Mouse C. Mouse Pad D. Printer 17. The output device also saves information on the ____________________ for future use. A. File B. My document C. Disc D. Box 18. Which of the following is not system software?

A. B. C. D.

Operating system Desktop publishing program Compiler Preprocessor

19. Which of the following is not a function of an operating system? A. Validating user authorization B. Allocating memory and processor time to programs C. Compiling source programs D. Controlling input and output devices 20. Choose the correct statement A. A program written in a high-level language is called an object program. B. A program that consists of machine language instruction is called a source program. C. An interpreter first translates all instructions in the source program file into an object program, saves the object program in a file, and then executes the object program file. D. Compilation is a process of translating a source program into an object program. 21. Which of the following are algorithms techniques? A. Flow Chart and Pseudocode. B. Pseudocode and assembly code. C. Flow Chart and Design. D. Instruction and Flow Chart. 22.

Picture above is showing programming code for ____________________________. A. Low Level Programming B. High Level Programming C. Binary code D. Binary Programming 23. Following are computer categories EXCEPT. A. Calculator B. Hand Phone C. Washing machine D. Electronic stove 24. Which of the following is not a condition that requires a computer to be used as a problem solving tool? A. The problem has extensive input. B. It is a mathematical problem. C. Its a method of solution is too complicated to implement through manual means. D. Its a method of solution is expected to be used for solving the same problem with different input. 25. Which of the following is part of the requirement specification step? A. A precise definition of the problem. B. A specification of what is needed to solve it. C. An understanding of what its solution should provide. D. All of the above. 26. Which of the following is a requirement that an algorithm must satisfy? A. It must have an input. B. It must produce at least one output. C. It must be unambiguous. D. All of the above are correct. 27. Which of the following is not a property of a pseudocode? A. It must have a limited vocabulary. B. It must be finite. C. It must be easy to learn. D. It must be produce simple, English-like.

Question 28 33 Answer the statement below A. True B. False

28. Secondary memory device uses a permanent, nonvolatile medium on which information can be stored and from which information can be retrieved. 29. High-level programming languages have instruction that are quite English-like and are, therefore, easier to learn. 30. The bit string stored in a byte that represents a particular character is independent of the character coding system that the computer uses. 31. Assembly language instructions consist of English-like abbreviation and less cryptic than machine language instructions. 32. Applications software refers to programs that make the computer usable and accessible to the developers of systems software. 33. The operating system is the software that manages overall operation of the computer system. 34. Which of the following types of computer is not a general-purpose computer? A. Microcomputers B. Mainframes C. Supercomputers D. Computers in microwave ovens 35. Choose the correct statement: A. A computer system is made up of hardware and software. B. Tangible or physical computer equipment is known as hardware. C. Software is a synonym for program. D. All of the above are correct. 36. Which of the following is not a function of the arithmetic-logic unit? A. Addition B. Multiplication C. Copying data to data registers D. Comparison 37. Which of the following is not a shortcoming of assembly languages? A. They are machine-dependent B. Assembly language programs are lengthy. C. Assembly language programs are not portable. D. Assembly language programs necessitate translation by an assembler. 38. Which of the following is a function of an operating system? A. Making other system software available to user. B. Managing the available secondary memory. C. Coordinating input and output operations. D. All of the above. 39. Assume that we have the following variable definitions: int counter = 4, a = 5, b = -7, c; and the arithmetic assignment expression statement c = a% counter ++ - b; has just been executed. The values of the variable counter and c are A. B. C. D. 5 and 7 4 and 7 5 and 8 4 and 8

40. We have the following declarations and definitions in our program: int a, c, d; double b; int count = 4, x = 15, y = 18; double w = -17.3; suppose we execute the statement:

d = (a = -- count, b = w ++, c = (x + count ++ - y)); What will be printed by the following count statement? cout <<count<< << a << << w << << b << << c << << d; A. B. C. D. 4 4 4 4 4 3 3 4 -17.3 -16.3 -17.3 -16.3 -17.3 -17.3 -16.3 -17.3 0 0 0 0 0 0 0 4

41. Initially, the values of the integer variables a and b are 10 and 12, respectively. After the statement a *= (b %= 7); is executed, the variable a and b will become A. B. C. D. 5 and 50 50 and 5 10 and 12 12 and 10

Question 42 44 are based on the following algorithm.

1. 2.

3.

4.

Get the shape If the shape is circle 2.1 Get the radius 2.2 X Y 3.1 Z 3.2 Calculate the area using formula length*width Print out the area

42. What is X? A. Calculate the area using formula *radius*radius B. Calculate the area using formula *radius C. Calculate the area using formula radius/2* D. Calculate the area using formula radius + radius 43. What is Y? A. If the shape is a triangle B. If the shape is a rectangle C. Get the triangle D. Get the circle 44. What is Z A. Get the area B. Get the radius C. Get the length and width D. Get the height and width 45. What are the three main control structures in a program. I. Selection II. Looping III. Repetition IV. Sequence A. I, II, and III B. I,II andIV C. I,III and IV D. I, II, III and IV 46. Which of the following relational statement is FALSE? A. 43 > 34 B. 79 != 97 C. 6 >= 6 D. 23 = = 32

Answer question 47 50

START

item

item = = 10

Item_price = (item * 2.5) - 3

Item > 10

Item_price = 2.5 (item - 2) - 5

Item_price = 3 (item)

Display item_price

End
47. How much does a customer need to pay if the number of item is 10? A. 23 B. 22 C. 24 D. 25 48. How much does a customer need to pay if the number of item is 8? A. 23 B. 22 C. 24 D. 25 49. How much does a customer need to pay if the number of item is 20? A. 40 B. 45 C. 55 D. 54 50. ________ is a diagram consists of rectangular boxes. Which represent all the modules in a program and is connected by arrow? A. Gosub B. Input/Output C. Condition D. Process BAHAGIAN B QUESTION 1 a) b) List FOUR (4) rules for naming a identifier. (2 marks) Given i = 4, j = 4, k = 6. What are the values (TRUE / FALSE / NO ANSWER) produced after the following expression are evaluated? i. ((i + k) / j ) = = 2 ii. !((i * k) > = (j * k)) iii. (i * i + j * j) < ( k i + 5 * j) iv. (i * j) != (2 * k - 2) (8 marks) Identify input, output and process for ATM system. (5marks) ITEM INPUT/ PROCESS/ OUTPUT ATM pin number Identify card Amount of money withdraw Money Deducts the withdrawal from the users account

c)

Вам также может понравиться