Example A

:

START

1

Add: (Number in box 4) + (Number in box 2) Put result into box 9. Add: (Number in the box 9) + (Number in the box whose Number is in box 6) Put result into box 6 Multiply: (Number in the box 6) x (Number in the box 1) Put result in box 5. What Number is now in box 5?...................66

2

3

END

Example B:

START

1

Put (Number in box 8) into box 1

2

Add: (Number in box 1) + (Number in the box 3), put result into box 1.
NO

3

Change Instruction 2: increase the second box Number mentioned in it by 1

4

YES

Is the second box Number mentioned in Instruction 2, greater than (Number in box 7)? What Number is now in the box 1 ………………….. 15

END

put result into box 12. put result into box 6 END What Number is now in box 6? . 7 8 Multiply: (Number in box 12) x (Number in box 7). Add: (Number in box 5) + (Number in box 2). 2 Add: (Number in box 1) + (Number in the box whose Number is in box 9). 3 4 NO 5 YES 6 Is (Number in box 5) = (Number in box 10)? Subtract: (Number in box 12) – 6.No:1 START 1 Add: (Number in box 3) + (Number in box 11).Q. put result into box 5. Put result in box 5 Multiply: (Number in box 12) x (Number in box 12). Subtract (Number in box 4) – (Number in box 5). put result into box 11. put result into box 7. put result into box 12.

2 The purpose of the following flow-chart is to double the Number in each of the boxes 2.8.11 and 14.no more and no less.The problems in the next part of the test are slightly different from those you have just done. 5. and you must decide what Number must be in a specified box in order that someone following the flowchart will do the required job.Number mentioned in Instruction 1? YES END What is the largest Number which may be in box 1? . by 3.no more and no less – what is the largest Number which may be in box 1? START 1 Add: (Number in box 2) + (Number in box 2). 3 Is (Number in box 1) less than the second box. you will be told exactly what each flow-chart is to accomplish. In these problems. Put result into box 2 NO 2 Change instruction: increase all box-Numbers mentioned in it. Q NO. In order to accomplish exactly this.

put result into box 6. Greater that (Number in box 11)? Add: (Number in box 6) + (Number in box 2). 8. In order to accomplish exactly this. 4. Change instruction 4 Increase the second box-Number mentioned in it by 1. Is the first box-Number mentioned in Instruction 2. 7. NO. Change Instruction 2: Decrease the first box-Number mentioned in it by 1.no more and no less – what Number must be in box 11? Put a zero into box 6 Add: (Number in box 10) + (Number in the box 6). 3 The purpose of this flow-chart is to add the Numbers in boxes 2.Q. put result into box 6. What Number must be in box 11? . 9 and 10 and put all the total in box 6. 3.

The largest Number? 2.READ THESE DIRECTIONS FOR Q4 AND Q5 In the following problems. 2. no two boxes contain the same Number START Is (1) less than (2) ? NO YES Is (3) less than (2)? YES NO Is (1) less than (3)? YES NO Put the letter A into box 4 Put the letter B into box 4 NO NO Is (1) less than (2)? YES Is (3) less than (2)? YES NO Is (1) less than (3)? YES Put the letter C into box 4 Put the letter D into box 4 Put the letter E into box 4 Put the letter F into box 4 Put the letter G into box 4 Either the letter C or the letter G is in box 4. you are told something about result and you must determine what the contents of the boxes must have been in order to obtain the result. and 3 cannot possibly contain? 1. The smallest Number? . In these problems the expressions (Number in the box X) is abbreviated as (X) Ex. “is (4) greater than (7)? “means “Is (Number in box 4) greater than contain (Number in box 7)?” In each of the following problems. END Which of the boxes1.

START Is (3) less than (1)? NO YES Is (2) less than (1)? YES NO Is (3) less than (2)? YES NO Put the letter A into box 4 Put the letter B into box 4 NO NO Is (3) less than (1)? YES Is (2) less than (1)? YES NO Is (3) less than (2)? YES Put the letter C into box 4 Put the letter D into box 4 Put the letter E into box 4 Put the letter F into box 4 Put the letter G into box 4 Either the letter B is now in box 4. END Which of the boxes1. The smallest Number? . 2. The largest Number? 2. and 3 contains? 1.

a car and a pet. Based on these statements. 5. The man who drives the Honda owns the cat. Who drives the Mazda? 6C.READ THESE DIRECTIONS FOR Q6 The problem is based on a few statements. Questions: 6A. Drawing indirect inference 3. Drawing parallels Q. The Englishman lives on the ground floor. Drawing direct inference 2. 7. 3. Which Floor does the American live? Second Floor First Floor Ground Floor . Which floor is brown carpeted? 6B. The dog lives in the red carpeted house The German owns a cat The cat lives below the grey carpeted house The Toyota driver lives on the top floor. NO 6: Three people live in a building with three floors. 2. The Honda driver lives above the owner of the dog. each having different colored carpet. 1. 6. specific questions have been asked which may be 1. 4.

Questions: 7A. Beans. Beans. he also plants beans that year. In any year. squash. corn and kale in the first year which of the following combinations must be planted in the third year? a) b) c) d) Beans.READ THE DIRECTIONS FOR Q7. the farmer plants no more than one of the vegetables he planted in the previous year. peas. If the farmer plants beans. kale. 7C. Every year the farmer plants exactly three kinds of vegetables according to the following restrictions: If the farmer plants corn. If the farmer plants kale one year. which two of the following must he plant with the peas the second year? I. corn. For every question. corn. If the farmer plants beans. corn and peas. NO 7 A farmer plants only five different kinds of vegetables: beans. squash. squash. If the farmer plants beans. Beans. peas. and peas the second year. corn. Kale. beans. peas. peas and squash. Beans. kale. Kale and squash . peas. Squash a) b) c) d) III and IV IV and II III and II I and II 7B. squash. 7D. select the best fitting answer out of the choice. corn.Which of the following is a possible sequence of combinations for the farmer to plant in two successive years? a) b) c) d) Beans. Q8 AND Q 9 The following questions or group of questions are based on a passage and / or a set of conditions. kale. Beans II. corn. Kale. corn. peas and squash. corn and peas one year. corn and kale one year. peas. he does not plant it the next year. Q. beans. Kale IV. peas and squash. Corn III. corn. which of the following pairs of vegetables CANNOT be planted together again as long as the farmer plants the garden every year? a) b) Peas and squash. kale. corn and kale.

c) d) Beans and kale. specific questions have been asked which may be 1. Beans and peas. Which of the following is (are) true? I. Queens Brigade is an express train. . so he must be sharp. Some trains that pass through Leeds are express trains. All public school boys are sharp. 8B. Some public school boys are not sharp. John is a public school boy. 7E. 8C. Drawing direct inference 2. the farmer must plant exactly one of the vegetables he planted in the previous year. a) b) c) d) The farmer must plant each vegetable at least once in any two-year period. All those who are sharp are public school boys. Based on these statements. No friends are relatives. Therefore: a) b) c) d) No relative is a friend Some friends are helpful No friends are helpful No helpful men are friends. Every year the first year. Therefore: a) b) c) Queens Brigade passes through Leeds. II. I and III only II and II only I only I and II only READ THESE DIRECTIONS FOR Q8 Every problem is based on a few statements. All relatives are helpful. it cannot be an express train. III. Drawing indirect inference 3. Therefore: a) b) c) d) Some public school boys are sharp. Drawing parallels Choose the most appropriate answer: 8A. Most of the express trains pass through Leeds. The farmer never plants the same vegetable in three consecutive years. Since Queens Brigade does not pass through Leeds.

One to a side of the table. 9 Exactly six persons P. S. R. 8E. READ THE DIRECTIONS FOR Q9 AND Q10 The following questions or group of questions are based on a passage and / or a set of conditions. This shape has no angles. Each table has four chairs arranged. Q. Rectangles are shapes with angles. Therefore: a) b) c) d) Some sentimental men may not be imaginative Imaginative persons and sentimental persons cannot live together Some sentimental mean are writers. and if Q is seated next to U at U’s table then R must be seated a) b) c) d) Next to Q at Q’ table At the same table as P Next to U at U’s table Opposite to Q 9C. NO. If U is seated next to T at T’s table and if P is seated next to S at S’s table. All imaginative men are sentimental. Therefore: a) b) c) d) This shape is either a circle or an ellipse. Q. Q is not seated at the same table as P. then there must be an empty chair opposite to a) S and also opposite to U . 9A. If P is seated opposite to S in S’s table. All imaginative persons are writers. All writers are imaginative. T and U are sitting at two small square tables. For every question. R is seated opposite to T at the same table. If P is seated at T’s table. 9B. This shape is not a rectangle No conclusion can be drawn In a right triangle the sum of two angles is equal to the third angle. next to T and if P is not seated opposite to any empty chair.d) All express trains pass through Leeds. then a) b) c) d) Q and S must be seated at the same table Q and S must be seated at different tables S and U must be seated at the same table S and U must be seated at the different tables. select the best fitting answer out of the choice. 8D.

b) c) d) P and also opposite to Q Q and also opposite to U P and also opposite to S Q.10: M is the size of N. Which of the following is the correct order. a) b) c) d) MSPNQO MPSNRO MSNPRO MPNSRO 10B. N is the size of P and R combined O is smaller than R P is twice the size of R Q and R are of the same size S is twice size of N 10A.NO. Q and S combined. If O were half the size of R. Which of the following equation is correct? a) b) c) d) N+S+Q R+Q+N M–S–N S+M+Q = = = = M–P M–Q+O N–P N+N+S . How many combined Q’s are equal in size to M? a) b) c) d) 10 11 12 9 10C. how many O’s would equal the size of the combination of 3N’s and 2 S’s? a) b) c) d) 28 24 50 42 10D. arrange from the largest to the smallest.

Each service within “booking_detail” table has a unique service_id. Hotel. A project is running to capture details of bookings made for services offered by the company.for each change in booking a new record is created and stored with a different version no. Following details are made available to you. Structure of table:Booking_Header Booking_no Created_Date Version_No Customer_name Cost Number Date Number text Number Number for a booking )Primary Key) System Date Version No for the booking( Primary Key) Customer Name Cost associated for each version of booking Sample Data for Table: Booking Booking _no 100 100 100 Created_date 01/01/2009 05/01/2009 10/01/2009 Version no 1 2 3 Cost 150 300 150 The booking is a group of multiple Services which get updated in “booking-details” Table. Structure of table: Booking_detail Booking_detail_id Booking_no Version_no Service_id Service_Desc Cost Number Number Number Number Text Number Primary Key Foreign key referencing with Booking table Foreign key referencing with Booking table Unique identifier for a service unique with each booking Service code e.Cruise.Flight Cost associated for each service Sample Data for Table: Booking_detail Booking_detail_id 1 2 3 4 5 6 Booking_no 100 100 100 100 100 100 Version no 1 1 2 2 3 3 Service Service Desc Cost 1 Hotel 50 2 Cruise 100 1 Hotel 100 2 Cruise 200 1 Hotel 50 2 Cruise 100 . Flight. viz “Booking_header” and “Booking_detail” tables are used to capture input data. working as a programmer.g.CASE STUDY ABC is a tour operating company is offering multiple services for its customers which include Hotel.In “Booking_header” table column booking_id + Version_no is primary key. The booking information at as summary level is stored in table “Booking_header”. Car Booking etc. Details of Entities: There are 2 entities. All changes in services get recorded in this Table.

Booking_header. Describe the structure of the Audit Trail Table/table to record all changes made to any booking. . Write a Pseudo code or draw a flow chart describing the logic of data capture for all tables. 2. 1.Question: We would like to maintain an Audit trail of the transactions created. viz. Booking_transactions and Audit Trail Table/Tables.