CAT Exam

Q 57.What does the following Pseudocode trying to do?
Declare an integer variable called n // n is the numberlimit
Declare an integer variable sum // f is the sum
Declare an integer variable f1 // f1 is temporary storage
Declare an integer variable f2 // f2 is temporary storage
set loopcounter to 2 // assigning the variables declared above to
values
set sumto 0
set f1 and f2 to 1
set n to 50
repeat n times
sum = f1 + f2
f2 = f1
f1 = sum
print sum
end loop
Option
A Compute Fibonacci numbers till 51
B Compute Fibonacci number till 50
C Compute Arithmetic Progression from 1 to 50
D Compute Average of numbers from 1 to 51

Read Solution (Total 1)

CAT Other Question

Q53. If the areas of two circles with centers A and B which are tangent to each other are 25 and 100 , then what will be the circumference of the circle with diameter AB?
Option
A 45
B 60
C 15
D 105

Q54. A square is inscribed in a circle of radius ‘a’ units and an equilateral is inscribed in a circle of radius ‘2a’ units. Find the ratio of the length of the side of square to the length of
the side of equilateral triangle.
Option
A 1 : 3
B 2 : 3
C 1 : 3
D 1 : 6

Q55.Calculate the number of ways in which 12 candies be divided between 2 children, 1st child gets 5 candies and 2nd gets 7 candies?
Option
A 27720
B 1584
C 792
D 13,860
Q62.
Two towns X and Y are connected by a country lane of length 30 miles and motor way of
length 40 miles. A tractor travels down the country lane at an average speed of 20 mph. A
car travels on the motorway at an average speed of 60 mph, the difference between their
journey times in minutes is:
Option
A 30 min
B 40 min
C 50 min
D 60 min

Q 63.
Two trains are travelling in opposites directions at uniforms speeds of 60 km/hr and 50
km/hr. They take 5 s to cross each other. If the two trains had travelled in the same
directions, then a passenger sitting in the faster-moving train would have overtaken the other
train in 18 s. What are the lengths of the trains?
Option
A 112 m and 78 m
B 87.78m and 55 m
C 102.78m and 50m
D 102.78m and 55m

Q64.
Read the following and answer the questions below:
Day 1:A truck moving from Bangalore to Mysore overtakes a bus that is also moving towards Mysore exactly at 9A.M.The truck reaches Mysore at 1 PM and rests for half an
hour. When the truck returns after rest,it meets the bus again at 2 PM.The truck and the bus
are moving at constant speeds.
Day 2:The same truck and bus are traveling towards each other from Bangalore and Indore
respectively at 9AM.After meeting at any point between Bangalore and Indore at 10:30 AM,
the bus reaches Bangalore at 2:30 PM.
When will the bus reach Mysore on Day 1(approx)?
Option
A 2:42 pm
B 2:52 pm
C 3:03 pm
D 3:07 pm