Sat Yam Paper 4

Embed Size (px)

Citation preview

  • 8/7/2019 Sat Yam Paper 4

    1/18

    Some of the topics of GD are.1) ROLE OF WOMEN IN INDIAN ARMED FORCES2) IS INDIA READY FOR IT OUTSOURCING3) POLITICAL SITUATION IN INDIA FAVOURING IT4) CHINA IS A THREAT TO INDIA IN IT.5) ROLE OF ELECTRONICS MEDIA IN INDIA.6) Economic development of US its impact on IT7) Indo pak relations

    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 I and j 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. noneans.B

    * 2.

    1. sony=02.jimmy =13. add jimmy to sony to get new sony4. add sony to jimmy to get new jimmy5. if jimmy is equal to 34 then stop

    6 go to step 3

    . What will be the value of sony when the logic terminates

    a. 15 b. 18 c. 21 d. none

    Ans. Sony=21

    3. . 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. nonenone

  • 8/7/2019 Sat Yam Paper 4

    2/18

    5

    .

    1. k=02. add 1 to k to get the value of z3. p= quotient of z divided by 104. m= remainder of z divided by 105. if m=p-1 then print z6. add 1 to k7. if the value crosses 99then stop8. goto 2the result of the above steps is

    (a) 11,22,33,. (b) 10, 21,32,43, (c)12,23,34,..(d) none

    6.FN=10 K=10

    DIVIDE FN BY K AND GET

    QUOTIENT (Q1) AND REMAINDER

    R1

  • 8/7/2019 Sat Yam Paper 4

    3/18

    YES

    no yes

    THE NUMBER of values that are printed

    are

    a. 9 b. 19 c. 29 d. none

    ans a

    7)

    1. cost of item C=RS 502. total cost (TC)=03. number of items purchased N =14. TC=TC+C5. If the remainder of N divided by 5 is 0 then reduce Rs 10 from C6. Increase the value of N by 1.

    Using the above rule , how much money should one pay after buying 12 items

    a. 480 b. 510c. 540 d. none

    IS

    Q1-R1=1

    ? PRINT

    FN

    ADD 1 TO FN

    IS

    FN=100

    ?

  • 8/7/2019 Sat Yam Paper 4

    4/18

    8) every applicant takes three test .candidate is selected if he/she secures 80% above in the

    aggregate and 75% and above in at least two test . all test are evaluated to 100 marks.

    +

    no

    no

    yes

    yes

    yes

    no no

    if the candidate scores 96,78,&68in the three test going

    by the above logic,his result will be

    a. rejected b. selected c. withheld d. none

    9.

    yes no

    C=0 Get t1, t2, t3

    Is t1>74?

    Is

    t2>74Is t3>74?

    C=c+1

    J=(t1+t2+t3)/3

    Is

    j>=80&1

    ?

    withheld

    selected

    C=c+1

    C=c+1

    R=8 & j=5 Print R L=R+J Print L

    J=R

    R=L

    Is

    R>80?

  • 8/7/2019 Sat Yam Paper 4

    5/18

    the output

    of the above logic is

    a. 8, 13, 21, 32, 47, 63 b. 8, 13, 21, 34, 55, 89 ,. C. 8, 13, 34, 55 d. none

    10.

    yes no

    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/2 b. j+l=d c. is j+l+d=10 d. none

    11.

    1. let fn=12. let a=23. let fn be fn multiplied by a and add 1 to it4. write the value of fn5. if the value written is more than 777 then stop6. -----------------------------------------------------------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*a b. a=a+a c.a=a+1 d. none

    12. yes

    no

    the result of the above logic isa. 6,8,14, b. 6 , 12, 20 , 30, c. 6, 12, 18, 24, d.none

    N=100 D=int(n/100) K=reminder(n/100)

    J=int (k/10)

    L=reminder k/10

    ?

    Print n

    N=2 R=N+1

    J=N*RPrint j N=N+1

    n>9

  • 8/7/2019 Sat Yam Paper 4

    6/18

    ans. b

    13. the following qualifications are necessary for the recruitment of the librarian. The candidate

    must

    1. have masters degree in library science with atleast 55% marks2. have one year specialization in information technology3. have atleast 10 yrs experience in university

    in case the candidate has

    4. 15 yrs experience in college ,the case may be reffered to vice chancellor5. has obtained less then 55% but has 13 yrs experience in university, the case may be

    referred to registrar.

    6. Has Ph.D in library science/Documentation the condition (1) may be waived.Gopal Brahma has been Deputy Librarian of SLC University since 1982 and has a masters

    degree in library science with 53% marks. Given the above rules the gopals information, gopal

    should bea. selected b. rejected c. referred to VC d. none

    14. the following rules are applied for the appointment in a company

    no

    yes

    no yes

    yes

    yes no

    no

    no

    yes

    Graduate

    with above

    50%

    Sex=male

    ?

    Age

    >19?

    Age>21

    ?

    Percent

    >75? Deposit=

    10000

  • 8/7/2019 Sat Yam Paper 4

    7/18

    Srutis father Vijay works in a company. She secured 72% marks in her 12 th class and holdspost graduate qualification in Information systems. She was born on 15

    thmarch 1975. Given

    this data, the deposit to be paid by her to get employment in the company is

    a. 10000 b. 20000 c. in adequate data d. none

    15.

    1. r =22.j=R*R-R3. R=R+14. K=R*R-R5. Print K-J6. Let J=K7. If R>8 then stop8. 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

    ans. b

    16.

    no

    yes

    after how much iterations will the above logic terminate?

    a. 8 b. 6 c.7 d. none (b)

    ans. C (?)

    17.

    1. t=12. T1=T*10003. T2=T+14. T3=T2*1005. T4=T2+16. T5=T4*107. T6=T4+18. T7=T1+T3+T5+T69. PRINT T710.T=T+111.IF T60?

    Deposit=40000

    Deposit=20000

    Child of

    em lo ee

    Reduce deposit

    b half

    Print deposit

    N=66 D=N/2 N=D+1Is reminderof

    n/2=0 ?

    stop

  • 8/7/2019 Sat Yam Paper 4

    8/18

    a. 6789 b. 7890 c. 7900 d. none

    ans b

    18.

    No yes

    The descion to be checked if 7, 15, 27, 43, 63 were to be printed is

    a. is J>8 b. is J=8 c.is J>10 d. none

    19.

    Yes no

    Yes no

    How many calls can one make for Rs 50 using above logica. 200 b. 175 c. 180 d. none

    20.

    no

    K=3 J=2 P=K+J*2 Print p K=P

    J=J+2

    ?

    Cost =0

    Total cost(TC)=0

    Make a telephone callAdd 1 to TC

    Is TC>

    100?Cost=cost+0.3

    Cost=cost+0.25

    Is TC>

    200 ?

    Cost=cost+0.2

    Pass mark=33% Mark

    secured=210

    Passed

    ?Total marks=700

  • 8/7/2019 Sat Yam Paper 4

    9/18

    If the path taken is no by securing how many marks can the yes path be taken?

    a. 21 b. 29 c. 40 d. none

    21.

    For what value of N will the above logic produce the result 1, 3, 6, 10, 15

    a. 10 b. 4 . ans 5 d. cnone

    22.

    yes no

    which equation represents the above logic

    a. 4x+4y b. 8x+4y c. 4x+8y d. none

    23. identify the correct sequence

    1. M stands for multiplication2. S stands for subtraction3. A stands for addition4. B stands for brackets5. D stands for divison6. O stands for of

    a. 4-5-6-1-2-3 b.4-6-5-1-2-3 c-4-6-5-1-3-2 d.none.

    24.

    Accept N Sum=K=1 Print sum K=K+1

    Is

    K

  • 8/7/2019 Sat Yam Paper 4

    10/18

    For what value of N will the logic print 88

    a. 18 b. 17 c. 42 d.none

    a. 5 b. 10 c.7 d. 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 602. Ratio is 20:15:12:103. The sum is 57The above logic gives

    a. maximum number of pens the person should have

    b. minimum he should have

    c. the highest number of pens given

    d. none

    26.

    1. let the value of N be 102. divide N by 10 to give quotient (q) & remainder R3. diff=r-q4. if diff=1 then 65. go to 76. display the value of n7. add 1 to n8. if n is less than 100 then go to step 2the above logic will produce

    a. 11,12, 13, 14 b.12, 23, 34 c. 21, 32, 43, 54, d. none

    27.

    No

    Yes

    Yes Yes

    Q1=P2*10+P1Q2=N+Q1Print Q2

    Accept a,b,c

    Is a+b>c ?

    Is a+c

    >b?Is

    b+c>a

    ?Print perfect

  • 8/7/2019 Sat Yam Paper 4

    11/18

    No No

    For what value of a,b,c, we will get the output as perfect

    a. 12, 30, 4 b. 36, 45, 25 c. 20,80, 15 d. none

    28.

    no yes

    no

    yes

    For what value of nod will the above logic print 1, 1, 3

    a. 383 b. 375 c. 368 d.none

    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. 24 b. 36 c. 16 d. 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 c2. subtract int (a/b) from c and store the result in d.3. if remainder (a/b) is =0 then stop4. print int(a/b)5. if d>.49 increase the value of integer(a/b)by 1.

    a. 1, 3, 2, 5, 4 b. 1, 3, 2, 4, 5 c.1, 2 ,3, 5, 4 d. 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 hrs b. 94hrs c. 92 hrs d. none

    Accept nod

    Is

    nod>365?

    Y=nod/365

    Print yNod=nod-365

    Is nod

  • 8/7/2019 Sat Yam Paper 4

    12/18

    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 printed 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

  • 8/7/2019 Sat Yam Paper 4

    13/18

    34.the average age of a class of 45 is 20 years.the age of the teacher is 30 years. Theaverage age of the 46 people is together is.

    1.j =z x l2. m = j+303. z =204. r =m/(l+1)5. l =45

    the average logic represents the solution for the given problem. The correct sequence is

    a. 5-3-1-4-2 b. 5-3-1-2-4 c. 5-3-2-1-4 d. none

    34. when Madan said that he was born on 31-9-83, everybody laughed. The logical

    sequence of steps involved in reducing madans statements are given below1. if the day of birth is greater than y (month of birth ) then wrong2. since 1983 is not a leap year February has 28 days3. 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 valid

    the right sequence of steps is

    a.3-1-4-2 b. 3-2-4-1 c. 3-2-1-4 d. none

    35. the logic to convert a 3 digit number to words is given, ex 123 should be written as one

    two three

    1.accept the number n

    2.if n999 go to step 1

    3. split n into hundreds (h), tens(t), and units(u)

    4.store words zero,one,two,in arrayw(10)5.print w (h),w(t),w(u)

    6.stop

    the above logic is

    a.incomplete b. complete c.complete but inefficient d.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.

    1. get the no. n2. write the quotient and the words tens.3. write the remainder and the wordsunits.4. write the quotient and the wordshundreds.5.

    divide the no. n by 100 and get the quotient and the remainder.6. divide the remainder by 10 giving the quotient and remainder.

  • 8/7/2019 Sat Yam Paper 4

    14/18

    a.1,5,6,2,3,4 b.1,5,4,3,2,6 c. 1,5,4,6,2,3 d.none

    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

    the value of tih at the end of execution of logic is

    a. 16 b.24 c.30 d. none

    38.

    no yes yes

    no

    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,1-- d.none

    39. yes

    no

    N=1

    Print n

    N=n*2

    Is n> 50

    ? Print n N=n/2

    N=1 Print n*n*n N=n+p N< 10

    Is

    n

  • 8/7/2019 Sat Yam Paper 4

    15/18

    If the values printed are 1,27,125,343 and 729, the value of p is

    a.1 b. 2 -- c3 d.none

    ###

    40. 1.accept a,b, c,d. ######2.if a999 then 1.

    3. if b99 then 1

    4.if c999 then 1

    5.if d999 then 1

    6.a1 =remainder (a/100):a2=remainder (a1/10)

    7.b1=remainder(b/10)

    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 x12. stop

    if a=321,b=26, c=798, d=512 then the value of x as printed is

    a. 17 b.20 c.16 d.none--

    41. rajesh can do a piece of work in 15 days. If he is joined by nitin who is 50% moreefficient , in what time will both finish the work .

    a.10days b. 6days -- c.18days d.none

    ###

    42.

    no yes

    yes yes

    no

    no

    no yes

    Accept a,b,c

    H=a

    Is

    b>h?H=b

    Is c>h? H=c

    Accept x,y,z

    Is

    y

  • 8/7/2019 Sat Yam Paper 4

    16/18

    no

    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

    43. the logical sequence of steps to calculate the average of n no. is given below.1.let the sum (s) of n no.s be zero

    2.get the value of n3. let the value of a be n

    4.add n to s

    5.add 1 to a

    6.if a is not equal to n then goto 4

    7. compute average by dividing s by nthe above logic is

    a.correct -- b. incorrect c.inadequate data

    d.none

    44.identify the correct logical order to write your name in reverse order1.count the no. of alphabets in your name (l).

    2. if l become zero then stop .

    3. reduce the value of l by 1

    4`write the lth character

    5.transfer control to the step where the value of l is reduced .a. 1,4,3,5,2 b.1,4,3,2,5-- c. 1,3,4,2,5 d.none

    45.six girls a,b,c,d,e& f have 10 marbles each.a & b take 4 marbles each from d &e

    respectively.c gives 3 marbles to f who in turn gives 2 marbles to d & 4 marbles to e. e takes

    back the marbles she had given to b &gives them to c .

    the eq. Are given below

    1.a=a+4 2.b=b+4 3.d=d-4 4.e=e-4 5.f=f+3 6.f=f-27.f=f-4 8.c=c-3 9.d=d+2 10.e=e+4

  • 8/7/2019 Sat Yam Paper 4

    17/18

    11.b=b-4 12.c=c+4

    the above sequence of steps are

    a.complete b. incomplete c.incorrect d.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 1 else increase CC by 1.

    2. print VC,CC

    3.read a character

    4.if character read is . then goto print VC,CC.

    5.goto read a character .

    6.stop

    7.initialize VC,CC to 0

    your logical sequence of steps is

    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

    ###

    48.1.no. of units consumed(nuc)=closing reading-opening reading2.if nuc

  • 8/7/2019 Sat Yam Paper 4

    18/18

    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.

    1. get name & dob of an employee2. extract the year of birth from the dob.3. no. of employees (noe) is 5004. write name & retirement year5. add 58 to year of birth6. reduce noe by 17. do while no. of employees is not equal to 0

    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

    50.what is the purpose of the following flowchart

    no

    yes

    a.compute product of two no.s 100 times

    b. print multiplication table from 1 to 10.--

    c. multiply two no.s 10-times.d. none

    C=0 Add 1 to c T=0 Add I to tP=c*tDisplay p

    Is t=10?

    Is c=10

    ?