Академический Документы
Профессиональный Документы
Культура Документы
Message: 2
Date: Fri, 01 Aug 2003 13:26:10 -0000
From: "nagendra08" <jaiswal_n_k@rediffmail.com>
Subject: satyam papers
1.
1.values of n and k is 100.
2.n is divided by k and the integer part of the quotient is
stored in i.
3.n is divided by k and the remainder is stored in j.
4.i is multiplied by itself to get the new value of i.
5.if the values of j and I are equal then n is printed.
6.add 1 to n.
7.if the value of n exceeds 999 then stop.
8.go to step 2
the result of the above logic is
a. 124,248,369,?.B. 101,204,309,?
c. 111,222,333,?d. none
2.
1. sony=0
2. jimmy =1
3. add jimmy to sony to get new sony
4. add sony to jimmy to get new jimmy
5. if jimmy is equal to 34 then stop
6. goto 3
What will be the value of sony when the logic terminates
a. 15
b. 18
c. 21
d. none
3. go to step 3.
0.get cost of the item (c )
1.get number of items (n)
2.multiply n by c to get total cost (tc)
3if tc is above 10000 then discount (d)=5%
4.if tc is less then 10000 but more than 5000 and c is above 85 then
d=4.5%
5.if tc is less than 5000 and c>65 and n >50then d=4%
what will be the discount if 40 items were purchased each costing
Rs. 58
a. 5%b. 4.5%c. 4%d. none
5.
1. k=0
2. add 1 to k to get the value of z
3. p= quotient of z divided by 10
4. m= remainder of z divided by 10
5. if m=p-1 then print z
6. add 1 to k
7. if the value crosses 99then stop
8. goto 2
6.
7.
1. cost of item ©=RS 50
2. total cost (TC)=0
3. number of items purchased =1
4. TC=TC+C
5. If the remainder of N divided by 5 is 0 then reduce Rs 10 from C
6. Increase the value of n by 1.
Using the above rule , how much money should one pay after buying 12
items
a. 480b. 510c. 540d. none
9.
the output of the
above logic is
a. 8, 13, 21, 32, 47, 63b. 8, 13, 21, 34, 55, 89 ,?.C. 8,
13, 34, 55 d. none
10.
if the numbers like 244, 514, 136,
etc are to be printed from the above logic the ? should be replaced
with
a. is j=l or j=l/2b. j+l=dc. is j+l+d=10d. none
11.
1. let fn=1
2. let a=2
3. let fn be fn multiplied by a and add 1 to it
4. write the value of fn
5. if the value written is more than 777 then stop
6. -----------------------------------------------------------
7. go to 3
if the expected output from the above logic is 3, 10, 41, 206, 1237,
then the statement in the line 6 should be
a. let a=a*ab. a=a+ac.a=a+1d. none
12.
the result of the above logic is
a. 6,8,14,b. 6 , 12, 20 , 30,c. 6, 12, 18, 24,
d.none
14. the following rules are applied for the appointment in a company
15.
1. r =2
2. j=R*R-R
3. R=R+1
4. K=R*R-R
5. Print K-J
6. Let J=K
7. If R>8 then stop
8. Goto 3
The result of the above logic is
a. 4, 9, 16, 25, b. 4, 6, 8, 10 c. 4,4 ,4,,4 d.none
16.
after how much iterations will the above logic terminate?
a. 8b. 6c.7d. none (b)
17.
1. t=1
2. T1=T*1000
3. T2=T+1
4. T3=T2*100
5. T4=T2+1
6. T5=T4*10
7. T6=T4+1
8. T7=T1+T3+T5+T6
9. PRINT T7
10. T=T+1
11. IF T<8 THEN 2
12. STOP
Which of the following values is not printed by the above logic
a. 6789b. 7890c. 7900d. none
18.
19.
How
many calls can one make for Rs 50 using above logic
a. 200b. 175c. 180d. none
20.
If the path taken is no by securing how many marks can the yes path
be taken?
21.
For what value of N will the above logic produce the result 1, 3, 6,
10, 15
a. 10b. 4c. 5d. none
22.
24.
For what value of N will the logic print 88
a. 18b. 17c. 42d.none
a. 5b. 10c.7d. none
25. a person distributes the pens among four friends in the ratio
1/3:1/4:1/5:1/6
1. LCM of 3, 4, 5, and 6 is 60
2. Ratio is 20:15:12:10
3. The sum is 57
The above logic gives
a. maximum number of pens the person should haveb.
maximum he should have
c. the highest number of pens givend.none
26.
1. let the value of N be 10
2. divide N by 10 to give quotient (q) &reminder®
3. diff=r-q
4. if diff=1 then 6
5. go to 7
6. display the value of n
7. add 1 to n
8. if n is less than 100 then go to step 2
the above logic will produce
a. 11,12, 13, 14b.12, 23, 34c. 21, 32,
43, 54,d. none
27.
For what value of a,b,c, we will get the output as perfect
a. 12, 30, 4b. 36, 45, 25c. 20,80, 15
d. none
28.
29.
a man has Rs 128 in currency of one , five, ten rupee
denominations. If he has the equal no. of denominations ,the total
number of notes he will have is
a. 24b. 36 c. 16d. none
30.
when a is divided by b, it is required to round off the result to
nearest integer,the logic is given below give the correct sequence
1. divide a by b giving c
2. substract int (a/b) from c and store the result in d.
3. if reminder (a/b) is =0 then stop
4. print int(a/b)
5. if d>.49 increase the value of integer(a/b)by1.
a. 1, 3, 2, 5, 4b. 1, 3, 2, 4, 5c.1,
2 ,3, 5, 4d. none
31.
a cistern is filled in 9 hrs and it takes 10 hrs when there is
leak in the bottom.if the cistern is full.in what time will it become
empty
a. 90 hrsb. 94hrsc. 92 hrs
d. none
32.
the cost of printing a book is Rs 500.every additional copy that
is printed reduces the copy by Rs 5 if more than 40 copies are
printrd the cost further falls by Rs12 .the book is to be sold at Rs
285. The logic is given below
cost price=500
number of books =1
do the following while cp>285
if nb<40
substract 5 from cp
other wise
substract 12 from cp
end of if
add I to nb
end of do
print economical
if the above logic is implemented after how many copies will the word
economical be printed
a. 50b. 48c. 42d. none
33.
34. when madan said that he was born on 31-9-83, everybody loughed.
The logical sequence of steps involved in reducing madan's
statements are given below
1. if the day of birth is greater than y (month of birth ) then wrong
2. 2. since 1983 is not a leap year February has 28 days
3. store 31,28,31,?..,31 in an array y (12)
4. month of birth is not less than 1 and not greater than 12,
therefore month of birth is vailid
the right sequence of steps is
a.3-1-4-2b.3-2-4-1c. 3-
2-1-4d. none
36.given a no. which is more than 99 but less than 1000,the logical
sequence of steps to say how many hundreds,tensand units are there
in the given no. is given below.identify the logical order.
37. step
1. no. of toffees in hand( tih)=2
2.no. of picks(nop)=1
3.multiply tih by 2
4.add 1 to nop.
5.if nop is less than 4 then step 3
6.print tih
7.stop
38.
The output from the above is
a.1,2,4,8,16,8,4,2,1,b.1,2,4,8,16,32,32,16,8,4,2,1,
c.1,2,4,8,16,32,64,32,16,8,4,2,1d.none
39.
If the values printed are 1,27,125,343 and 729, the value of p is
a.1b.2c3d.none
40.
1.accept a,b, c,d.
2.if a<100 or a>999 then 1.
3. if b<100 or b>999 then 1
4.if c<10 or a>99 then 1
5.if d<100 or d>999 then 1
6.a1 =remainder (a/100):a2=remainder (a1/100)
7.b1=remainder(b/100)
8.c1=remainder (c/100): c2=remainder (c1/10)
9 d1=remainder (d/100):d2=remainder(d1/10)
10.x= a2 +b1+c2+d2
11. print x
12. stop
42.
If the values passed to the se two flow charts are 123,468,76, the
outputs are
a.l=468,ll=76
b.l=468, ll=468,
c.l=76,ll=76
d. none
44. identify the correct logical order to write your name in reverse
order
1.a=a+4
2.b=b+4
3.d=d-4
4.e=e-4
5.f=f+3
6.f=f-2
7.f=f-4
8.c=c-3
9.d=d+2
10.e=e+4
11.b=b-4
12.c=c+4
the above sequence of steps are
a.completeb.incompletec.incorrectd.none
46.
subtract 3 from the no. x .
multiply the result by 3,
add3&then
divide this result by 3.
the final result is
a.x-2**
b.x+2
c.x+1
d.x
47.given a sentence which has only lower case letters &which ends a
period(.), you are asked to count the no.s of vowels & consonants.the
logical sequence of steps is given below.arrange them in correct
order .
1.if character=a,e.i.o or u increase VC by else increase CC by 1.
2.print VC,CC
3.read a charactewr
4.if character read is . then goto print VC,CC.
5.goto read a character .
6.stop
7.initialize VC,CC to 0
48.
1.no. of units consumed(nuc)=closing reading-opening reading
2.if nuc <100 units then 5
3.if nuc <200 units then 6
4.if nuc <300 units then 7
5.charge =nuc
6.charge =100+(nuc-100)*2
7.charge=300+(nuc-200)*3
8.print charge
a.80
b.60
c.-60**
d.none
49.employee retires at the age of 58. the management has the dob of
each employee ids dd/mm/yyyy for . the logic to know the names and
the retirement year of each of 500 employees is given below.identify
the logical order.
a.3,7,2,1,5,6,4,
b.3,7,1,2,5,4,6,
c.3,7,1,2,5,6,4
d.none