211. Select correct decision structures from the following
if total marks>=75 then enter distinction in student record end if
if total marks >=50 then enter pass in student record else enter fail in student record end if
if total marks >=60 then enter first class in student record else if total marks>= 50 then enter second class in student record else
enter fail in student record end if end if
if attendance <30% then
do not admit in examination else
ii and iii
i and ii
iii and iv
i and iv
Correct answer: (A) ii and iii
212. In the following word statement the conditions are: "if a student gets 50 marks or more in mathematics and 40 marks or more in English he passes the examination, otherwise he fails"
student passes the examination
student fails the examination
student gets 50 marks or more in mathematics
student mathematics marks >= 50 and student English marks >= 40
Correct answer: (D) student mathematics marks >= 50 and student English marks >= 40
213. A rule in a limited entry decision table is a
row of the table consisting of condition entries
row of the table consisting of action entries
column of the table consisting of condition entries and the corresponding action entries
columns of the tables consisting of conditions of the stub
Correct answer: (C) column of the table consisting of condition entries and the corresponding action entries
214. An extended entry decision table is
very difficult to understand
quite concise compared to a limited entry decision table developed for the same task
large compared to a limited entry table developed for the same task
is not very often used
Correct answer: (B) quite concise compared to a limited entry decision table developed for the same task
215. A-against an action in an action row signifies that the
action is not to be taken
action is to be taken
action is important
action is not important
Correct answer: (A) action is not to be taken
216. In a limited entry decision table the condition entries
list X or - corresponding to actions to be executed
list the conditions to be tested
have Y or N or - entries
list the actions to be taken
Correct answer: (C) have Y or N or - entries
217. A decision table is preferable when the number of
conditions to be checked in a procedure is small
conditions to be checked in a procedure is large
actions to be carried out are large
actions to be carried out are small
Correct answer: (B) conditions to be checked in a procedure is large
218. Decision table description of data processing is
non-procedural specification
procedural specification
purely descriptive specification
very imprecise specification
Correct answer: (A) non-procedural specification
219. The following structured English procedure is incorrect because case (code)
Code=2 : if purchase amount >=5000 then discount=5%
Code=1 : discount=2%
Code=3 : if purchase amount >=4000 then discount =2% else if code=4 then discount =5% end if
None of the above codes : discount=0 end case
code=2 should appear after code=1
if statement cannot be used within a case
code=4 should not be used in the action for code=3
The statement is correct
Correct answer: (C) code=4 should not be used in the action for code=3
220. Structured English is a
structured programming language
description of processes in simple English
method of describing computational procedures reasonably precisely in English
natural language based algorithmic language
Correct answer: (C) method of describing computational procedures reasonably precisely in English