Test Index
HCU MCA 2013 Paper
Show Para
Directions (Q. Nos. 29-30) Based the algorithm given below.Step 0 : START Step 1: N : = 0, C : = 0, FLAG : = FALSEStep 2 : INPUT TABLE A [1. .10]Step 3 : For - 1 to 10 Doif (A [] - 1) thenN : = N + 1If (FLAG = FALSE) THENC = IFLAG = TRUEEND IFEND IFEND FORStep 4 : OUTPUT N, CStep 5 : ENDGiven that A [1.10] = 7, 0, 0, 1,1,0, 3, 1, 9, 10
Go to Question: