1) The intermediate medium of communication between human and computer :
solution) d) interpreter and compiler.
2) Which of the following statement is most appropriate?
solution) b) Flowchart is basically diagrammatic representation of the algorithm whereas in pseudo code normal English language is translated into the programming language to be worked on.
3) A Pseudo-code is
solution) b) English like statements.
4) Compiler helps in translation from
solution) c) high level language to machine level language.
5) Computer memory used to store data and programs currently being processed by CPU:
solution) b) RAM
6) X is an integer ( X=1234). The print value of Y of the algorithm below is (note: '%' is the modulo operator which calculates the remainder and / gives the quotient of division operation)

solution) a) 10
x=1234 , y=0
y=0 + remainder of (1234/10)=4
x= quotient of (1234/10)= 123
again y=4 + remainder of (123/10)= 4+ 3= 7
x= quotient of ( 123/10) = 12
again y=7+ remainder of (12/10) = 7+2=9
x = quotient of (12/10)=1
again y= 9+ 1= 10
x=1/10=0.1
7) The flow chart calculates the HCF of 2 numbers a and b ( where a is greater than or equal to b). Which of the following conditions need to be put inside the blanks 1 and 2 to calculate HCF?(hint: use Euclidean algorithm for finding HCF of 2 numbers)
solution) d) 1) r=0 2) a=b and b=r
8) The input N from the user is 6. The output of the following algorithm is :



0 Comments