Академический Документы
Профессиональный Документы
Культура Документы
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
Example B:
START
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
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?
Add: (Number in box 10) + (Number in the box 6), put result into box 6.
Add: (Number in box 6) + (Number in box 2), put result into box 6.
START
The problem is based on a few statements. Based on these statements, specific questions have been asked which
may be
Q. NO 6:
Three people live in a building with three floors, each having different colored carpet, a car and a pet.
Questions:
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:
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?
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?
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?
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.
Every problem is based on a few statements. Based on these statements, specific questions have been asked which
may be
a) No relative is a friend
b) Some friends are helpful
c) No friends are helpful
d) No helpful men are friends.
8C. Most of the express trains pass through Leeds. Queens Brigade is an express train.
Therefore:
8D. All writers are imaginative. All imaginative men are sentimental.
Therefore:
8E. Rectangles are shapes with angles. This shape has no angles.
Therefore:
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.
9A. If P is seated at T’s table, next to T and if P is not seated opposite to any empty chair, then
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
Q.NO.10:
10A. Which of the following is the correct order, arrange from the largest to the smallest.
a) MSPNQO
b) MPSNRO
c) MSNPRO
d) MPNSRO
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
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
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.
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.