0% found this document useful (0 votes)
51 views1 page

Sheet 2

The looping structure that is most efficient is option a, where the inner loop iterates 100 times for each of the outer loop's 100 iterations. After what time will A, B, and C again be at the starting point of the circular stadium? They will be at the starting point again after the least common multiple of their round times, which is 1002 seconds (approximately 16 minutes and 42 seconds). The maximum number of Rs. 10 coins Abhishek could have is 8. If N persons stand around a circle singing songs in pairs not standing next to each other, and the total time is 28 minutes, then N must be 7 persons. The number of ways for the man
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views1 page

Sheet 2

The looping structure that is most efficient is option a, where the inner loop iterates 100 times for each of the outer loop's 100 iterations. After what time will A, B, and C again be at the starting point of the circular stadium? They will be at the starting point again after the least common multiple of their round times, which is 1002 seconds (approximately 16 minutes and 42 seconds). The maximum number of Rs. 10 coins Abhishek could have is 8. If N persons stand around a circle singing songs in pairs not standing next to each other, and the total time is 28 minutes, then N must be 7 persons. The number of ways for the man
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

1. Which looping structure is efficient?

a. for(i=0; i<100; i++) {


for(j=0; j<10; j++)
//Set of statements;
}
b. for(i=0; i<10; i++){
for(j=0; j<100; j++)
//Set of statements;
}
2. A, B and C start at the same time in the same direction to run around a
circular stadium. A completes a round in 252 seconds, B in 308 seconds and
c in 198 seconds, all starting at the same point. After what time will they again
at the starting point?
3. Abhishek had a certain number of Re1 coins, Rs 2 coins and Rs 10 coins. If
the number of Re 1 coins he had is six times the number of Rs 2 coins
Abhishek had, and the total worth of his coins is Rs 160, find the maximum
number of Rs 10 coins Abhishek could have had.
a. 12
b. 10
c. 8
d. 6
4. N persons stand on the circumference of a circle at distinct points. Each
possible pair of persons, not standing next to each other, sings a two-minute
song one pair after the other. If the total time taken for singing is 28 minutes,
what is N?
a. 5
b. 7
c. 9
d. 4
5. A man positioned at the origin of the coordinate system. The man can take
steps of unit measure in the direction North, East, West or South. Find the
number of ways of he can reach the point (5, 6), covering the shortest
possible distance.
6. If three cats can catch three rats in three minutes, then how many cats would
it take to catch hundred rats in hundred minutes provided that all cats
concentrate on catching the same rat at the same time?
7. A person has certain number of cows and birds. They have 172 eyes and 344
legs. How many cows and birds does he have?
8. A pool has four taps. The first tap takes two days to fill the pool, the second
tap three days, the third four days and the last one only 6 hours. How long will
it take to fill the pool using all 4 taps at once?
9. If x and y are two positive integers and x + y = 5, then what is the probability
that x equals 1?
10. In C programming language, what is the term for VARIABLE NUMBER OF
ARGUMENTS?? (CLUE: The symbol used is )

You might also like