the logical sequence of steps to calculate the average of N nos is given below 1.let the sum(S) of N nos be zero 2.get the value of N 3.let the value of A be N 4.add N to S 5.add 1 to A 6.if A is not = N then go to 4 7. compute average by dividingS by N the abouve logic is
correct
incorrect
inadequate data
none
if the correct logical order to write ur name in reverse order 1.count the no of alphabets in ur name(L) 2.if L=0 stop 3.rerduce the value of L by 1 4.write the lth character 5.transfer control to the step where the value of L is reduce
1,4,3,2,5
1,3,4,2,5
1,4,3,5,2
none
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 and gives them to C. The equations r 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-2 7. F=F-4 8. C=C-3 9. D=D+2 10. E=E+4 11. B=B-4 1! 2. C=C+4 The above sequence of steps are
Complete
Incomplete
Incorrect
none
Subtract 3 from the number X. Multiply the result by 3, Add 3 & then divide this result by 3. The final result is
X-2
X+2
X+1
X
Given a sentence which has only lower case letters and which ends with a period (.), you are asked to count the number of vowels & consonants. The logical sequence of steps are 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 The logical sequence of steps are
7,3,4,1,5,2,6
7,4,3,1,2,5,6
7,3,4,5,1,2,6
none
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
80
60
-60
None
If Atul is the son of Zameer. Madhu is the daughter of Ahmed. Faisal is the wife of Ahmed. Zaheer is the brother of MAdhu. Then what is the relation between Atul and Sudhir?