Monday, June 9, 2008

paper 1

36)given a number which is more than 99 but less than1000, the logical sequence of steps to say how many hundreds, tens &units are in the given number is given below.identify the logical order.
1.get the number N2.write quotient and the words 'tens'3.write the remainder and the words "units'4.write the quotient and the word "hundred"5.divide the number N by 100 and get the quotiient and remainder6.divide the remainder by 10 giving the quitient and remainder
(a) 1,5,6,2,3,4 (b)1,5,4,3,2,6 (c) 1,5,4,6! ,2,3(d)noneans.c
37step 1.no of toffees in hand (TIH)=22.no of picks (NOP) = 13. Multiply TIH by 24. Add 1 to NOP5. If NOP is less than 4 then step 36. Print TIH7. Stop
The value of TIH at the end of execution of logic is
a) 16 b) 24 c)30 d)None
ans: a
Q38)flowchart
ans:b (1,2,4,8,16,32,32,16,8,4,2,1)
Q39)flowchart
ans:b(2)
Q40)
ans:a)17
Q41)
ans:b(6 days)
Q42)flowchartans:b(I=468 , II=468)
Q43)the logical sequence of steps to calculate the average of N nos is given below
1.let the sum(S) of N nos be zero2.get the value of N3.let the value of A be N4.add N to S5.add 1 to A6.if A is not = N then go to 47. compute average by dividingS by Nthe abouve logic is
(a)correct(b)incorrect(c)inadequate data(d)none
ans:b(incorrect)
Q44)indet! ify the correct logical order to write ur namein reverse order
1.count the no of alphabets in ur name(L)2.if L=0 stop3.rerduce the value of L by 14.write the lth character5.transfer control to the step where the value of L is reduce
(a)1,4,3,5,2(B) 1,4,3,2,5 (c)1,3,4,2,5, (d) none
ans:d //b(14325) //a(1,4,3,5,2)
45.six girls A,B,C,D,E & F have 10 marbles each. a & Btake 4 marbles each from D & E respectively. C gives 3 marbles to F who inturn gives 2 marbles to D & 4 marbles to E. E takes back themarbles she had given to B and gives them to C. The equations r given below
1. A=A+42. B=B+43. D=D-44. E=E-4
5. F=F+36. F=F-27. F=F-48. C=C-39. D=D+210. E=E+411. B=B-412. C=C+4
The above sequence of steps area)Complete b)Incomplete c)Incorrect d)none
ans:b
46.Subtract 3 from the number X. Multiply the result by3, Add 3 & then
divide this result by 3. The final result is
ans:a
a) X-2 b)X+2 c)X+1 d) X

47.
Given a sentence which has only lower case letters and
which ends
with
a period (.), you r asked to count the number of
vowels & consonants.
The logical sequence of steps r given below. Arrange
them in correct
order.

1. If character = a,e,i,o or u increse VC by 1 else
increase CC by 1.
2. Print VC,CC
3. Read a character
4. If character read is . then go to print VC,CC
5. Go to read a character
6. Stop
7. Initialise VC & CC to 0
ur logical sequence of steps r
a)7,3,4,1,5,2,6 b)7,4,3,1,2,5,6 c)7,3,4,! 5,1,2,6
d)none
ans:c

48.
1.number of units consumed(NUC) = Closing reading -
Opening reading
2. if NUC is less than 100 units then 5
3. if NUC is less than 200 units then 6
4. if NUC is less than 300 units then 7
5. CHARGE=NUC
6.CHARGE = 100+(NUC-100)*2
7.CHARGE=300 +(NUC -200)*3
8. Print CHARGE
if the opening reading is 785 and the Closing reading
is 865, CHARGE
is
a)80 b)60 c)-60 d)None

ans:a // d

Q49)
ans: c)3,7,1,2,5,6,4

Q50)
flowchart
ans:b(prints multiplication table from 1 to 10

No comments: