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

Example A:

START

1
Add: (Number in box 4) + (Number in box 2)
Put result into box 9.

2
Add: (Number in the box 9) + (Number in the box whose Number is in box 6)
Put result into box 6

3 Multiply: (Number in the box 6) x (Number in the box 1)


Put result in box 5.

END What Number is now in box 5?...................66

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
Is the second box Number mentioned in Instruction 2, greater than (Number in
YES box 7)?
END
What Number is now in the box 1 ………………….. 15
Q.No:1

START

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

2
Add: (Number in box 1) + (Number in the box whose Number is in box 9),
Put result in box 5

3 Multiply: (Number in box 12) x (Number in box 12), put result into box 12.

4
Is (Number in box 5) = (Number in box 10)?
NO

5
Subtract: (Number in box 12) – 6, put result into box 12.
YES

6
Add: (Number in box 5) + (Number in box 2), put result into box 5.

7
Subtract (Number in box 4) – (Number in box 5), put result into box 7.

8
Multiply: (Number in box 12) x (Number in box 7), put result into box 6

END
What Number is now in box 6?
The problems in the next part of the test are slightly different from those you have just done.

In these problems, you will be told exactly what each flow-chart is to accomplish, and you must decide what
Number must be in a specified box in order that someone following the flowchart will do the required job- no
more and no less.

Q NO. 2

The purpose of the following flow-chart is to double the Number in each of the boxes 2, 5,8,11 and 14.

In order to accomplish exactly this- no more and no less – what is the largest Number which may be in box 1?

START

Add: (Number in box 2) + (Number in box 2),


1
Put result into box 2
NO

2
Change instruction: increase all box-Numbers mentioned in it, by 3.

3 Is (Number in box 1) less than the second box- Number mentioned in Instruction 1?
YES

END
What is the largest Number which may be in box 1?
Q. NO. 3

The purpose of this flow-chart is to add the Numbers in boxes 2, 3, 4, 7, 8, 9 and 10 and put all the total in box 6.
In order to accomplish exactly this- 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), put result into box 6.

Is the first box-Number mentioned in Instruction 2. Greater that (Number in


box 11)?

Add: (Number in box 6) + (Number in box 2), put result into box 6.

Change Instruction 2: Decrease the first box-Number mentioned in it by 1.

Change instruction 4 Increase the second box-Number mentioned in it by 1.

What Number must be in box 11?


READ THESE DIRECTIONS FOR Q4 AND Q5
In the following problems, 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.
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, no two boxes contain the same Number

START

Is (1) less than (2) ?


Is (3) less than (2)?
NO YES YES
Is (3) less than (2)? NO
Is (1) less than (3)?
YES YES
NO NO
Is (1) less than (3)? Is (1) less than (2)?
YES
YES NO

NO Put the letter A into box 4

Put the letter B into box 4

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.


END
Which of the boxes1, 2, and 3 cannot possibly contain?
1. The largest Number?
2. The smallest Number?
START

Is (3) less than (1)?


Is (2) less than (1)?
NO YES YES
Is (2) less than (1)? NO
Is (3) less than (2)?
YES YES
NO NO
Is (3) less than (2)? Is (3) less than (1)?
YES
YES NO

NO Put the letter A into box 4

Put the letter B into box 4

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, 2, and 3 contains?


1. The largest Number?
2. The smallest Number?
READ THESE DIRECTIONS FOR Q6

The problem is based on a few statements. Based on these statements, specific questions have been asked which
may be

1. Drawing direct inference


2. Drawing indirect inference
3. Drawing parallels

Q. NO 6:

Three people live in a building with three floors, each having different colored carpet, a car and a pet.

1. The Honda driver lives above the owner of the dog.


2. The Englishman lives on the ground floor.
3. The man who drives the Honda owns the cat.
4. The dog lives in the red carpeted house
5. The German owns a cat
6. The cat lives below the grey carpeted house
7. The Toyota driver lives on the top floor.

Questions:

6A. Which floor is brown carpeted?


6B. Who drives the Mazda?
6C. Which Floor does the American live?

Second Floor

First Floor

Ground Floor
READ THE DIRECTIONS FOR Q7, Q8 AND Q 9

The following questions or group of questions are based on a passage and / or a set of conditions. For every
question, select the best fitting answer out of the choice.

Q. NO 7

A farmer plants only five different kinds of vegetables: beans, corn, kale, peas and squash. Every year the farmer
plants exactly three kinds of vegetables according to the following restrictions:

If the farmer plants corn, he also plants beans that year.


If the farmer plants kale one year, he does not plant it the next year.
In any year, the farmer plants no more than one of the vegetables he planted in the previous year.

Questions:

7A. If the farmer plants beans, corn and peas one year, and peas the second year, which two of the following must
he plant with the peas the second year?
I. Beans
II. Corn
III. Kale
IV. Squash

a) III and IV
b) IV and II
c) III and II
d) I and II

7B.Which of the following is a possible sequence of combinations for the farmer to plant in two successive years?

a) Beans, corn, kale; corn, peas, squash.


b) Beans, peas, squash; beans, corn, kale.
c) Beans, corn, peas; beans, corn, squash.
d) Kale, peas, squash; peas, corn, kale.

7C. If the farmer plants beans, corn and kale in the first year which of the following combinations must be planted
in the third year?

a) Beans, corn and kale.


b) Kale, peas and squash.
c) Beans, corn and peas.
d) Beans, peas and squash.

7D. If the farmer plants beans, corn and kale one year, which of the following pairs of vegetables CANNOT be
planted together again as long as the farmer plants the garden every year?

a) Peas and squash.


b) Kale and squash
c) Beans and kale.
d) Beans and peas.

7E. Which of the following is (are) true?

I. The farmer must plant each vegetable at least once in any two-year period.
II. Every year the first year, the farmer must plant exactly one of the vegetables he planted in the previous
year.
III. The farmer never plants the same vegetable in three consecutive years.

a) I and III only


b) II and II only
c) I only
d) I and II only

READ THESE DIRECTIONS FOR Q8

Every problem is based on a few statements. Based on these statements, specific questions have been asked which
may be

1. Drawing direct inference


2. Drawing indirect inference
3. Drawing parallels

Choose the most appropriate answer:

8A. All relatives are helpful. No friends are relatives.


Therefore:

a) No relative is a friend
b) Some friends are helpful
c) No friends are helpful
d) No helpful men are friends.

8B. John is a public school boy; so he must be sharp.


Therefore:

a) Some public school boys are sharp.


b) All public school boys are sharp.
c) All those who are sharp are public school boys.
d) Some public school boys are not sharp.

8C. Most of the express trains pass through Leeds. Queens Brigade is an express train.
Therefore:

a) Queens Brigade passes through Leeds.


b) Since Queens Brigade does not pass through Leeds, it cannot be an express train.
c) Some trains that pass through Leeds are express trains.
d) All express trains pass through Leeds.

8D. All writers are imaginative. All imaginative men are sentimental.
Therefore:

a) Some sentimental men may not be imaginative


b) Imaginative persons and sentimental persons cannot live together
c) Some sentimental mean are writers.
d) All imaginative persons are writers.

8E. Rectangles are shapes with angles. This shape has no angles.
Therefore:

a) This shape is either a circle or an ellipse.


b) This shape is not a rectangle
c) No conclusion can be drawn
d) In a right triangle the sum of two angles is equal to the third angle.

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. For every
question, select the best fitting answer out of the choice.

Q. NO. 9 Exactly six persons P, Q, R, S, T and U are sitting at two small square tables. Each table has four chairs
arranged, One to a side of the table.

Q is not seated at the same table as P.

R is seated opposite to T at the same table.

9A. If P is seated at T’s table, next to T and if P is not seated opposite to any empty chair, then

a) Q and S must be seated at the same table


b) Q and S must be seated at different tables
c) S and U must be seated at the same table
d) S and U must be seated at the different tables.

9B. If P is seated opposite to S in S’s table, and if Q is seated next to U at U’s table then R must be seated

a) Next to Q at Q’ table
b) At the same table as P
c) Next to U at U’s table
d) Opposite to Q

9C. If U is seated next to T at T’s table and if P is seated next to S at S’s table, then there must be an empty chair
opposite to

a) S and also opposite to U


b) P and also opposite to Q
c) Q and also opposite to U
d) P and also opposite to S

Q.NO.10:

M is the size of N, Q and S combined.


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. Which of the following is the correct order, arrange from the largest to the smallest.

a) MSPNQO
b) MPSNRO
c) MSNPRO
d) MPNSRO

10B. How many combined Q’s are equal in size to M?

a) 10
b) 11
c) 12
d) 9

10C. If O were half the size of R, how many O’s would equal the size of the combination of 3N’s and 2 S’s?

a) 28
b) 24
c) 50
d) 42

10D. Which of the following equation is correct?

a) N+S+Q = M–P
b) R+Q+N = M–Q+O
c) M–S–N = N–P
d) S+M+Q = N+N+S
CASE STUDY

ABC is a tour operating company is offering multiple services for its customers which include Hotel, Flight, Car
Booking etc. A project is running to capture details of bookings made for services offered by the company.
Following details are made available to you, working as a programmer.

Details of Entities:
There are 2 entities, viz “Booking_header” and “Booking_detail” tables are used to capture input data.

The booking information at as summary level is stored in table “Booking_header”.In “Booking_header” table
column booking_id + Version_no is primary key.for each change in booking a new record is created and stored
with a different version no.

Structure of table:Booking_Header

Booking_no Number Number for a booking )Primary Key)


Created_Date Date System Date
Version_No Number Version No for the booking( Primary Key)
Customer_name text Customer Name
Cost Number Cost associated for each version of booking

Sample Data for Table: Booking

Booking _no Created_date Version no Cost


100 01/01/2009 1 150
100 05/01/2009 2 300
100 10/01/2009 3 150

The booking is a group of multiple Services which get updated in “booking-details” Table. Each service within
“booking_detail” table has a unique service_id. All changes in services get recorded in this Table.

Structure of table: Booking_detail

Booking_detail_id Number Primary Key


Booking_no Number Foreign key referencing with Booking table
Version_no Number Foreign key referencing with Booking table
Service_id Number Unique identifier for a service unique with each booking
Service_Desc Text Service code e.g. Hotel,Cruise,Flight
Cost Number Cost associated for each service

Sample Data for Table: Booking_detail

Booking_detail_id Booking_no Version no Service Service Desc Cost


1 100 1 1 Hotel 50
2 100 1 2 Cruise 100
3 100 2 1 Hotel 100
4 100 2 2 Cruise 200
5 100 3 1 Hotel 50
6 100 3 2 Cruise 100
Question:

We would like to maintain an Audit trail of the transactions created.

1. Describe the structure of the Audit Trail Table/table to record all changes made to any booking.

2. Write a Pseudo code or draw a flow chart describing the logic of data capture for all tables, viz.
Booking_header, Booking_transactions and Audit Trail Table/Tables.

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