QN01. A decision table
- has a structured English equivalent representation
- cannot be represented using structured English
- does not have an equivalent algorithmic representation
- cannot be used to represent processes in a DFD
Answer
(A)has a structured English equivalent representation
QN02. Select statements from the following list which may be used in structured English
- if marks are too low fail student
- if marks >=60 enter first class
- if average height select candidate
- if weight < 40 kg. reject candidate
- i and ii
- ii and iii
- iii and iv
- ii and iv
Answer
(D)ii and iv
QN03. Structured English description of processes
- should be understandable to a user of a computer based system
- should be understandable to a programmer
- can be descriptive in nature
- should be translatable by a compiler
- i and iii
- ii and iv
- i, ii and iv
- i and ii
Answer
(D)i and ii
QN04. Structured English statements must be
- short and clear
- specified quantitatively
- specified qualitatively
- detailed and descriptive
Answer
(B)specified quantitatively
QN05. An extended entry decision table has
- only Y, N or - entries
- entries which extend the condition
- questions asked extended into the condition entry part of the table
- only numerical entries
Answer
(C)questions asked extended into the condition entry part of the table
QN06. In a limited entry decision table the condition entries may be
- Y or N only
- Y, N or -
- A binary digit
- Any integer
Answer
(B)Y, N or -
QN07. A X 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
Answer
(B)action is to be taken
QN08. In a limited entry decision table the condition stub
- lists X or - corresponding to actions to be executed
- lists the conditions to be tested
- has Y or N or - entries
- lists the actions to be taken
Answer
(B)lists the conditions to be tested
QN09. The conditions in the condition stub of a limited entry decision table
- must be in sequential order
- must be in the order in which they are to be tested
- may be in any order
- must be in the order in which they are to be executed
Answer
(C)may be in any order
QN10. The following while structure is wrong because
balance =500
while balance <=1000 do
Write (amount due - balance)
Read next record
end while
- read must appear before write
- this loop will never terminate
- no read allowed in a loop the contents of next record is not known
Answer
(B)this loop will never terminate
QN11. 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
Answer
(A)ii and iii
QN12. 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
Answer
(D)student mathematics marks >= 50 and student English marks >= 40
QN13. 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
Answer
(C)column of the table consisting of condition entries and the corresponding action entries
QN14. 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
Answer
(B)quite concise compared to a limited entry decision table developed for the same task
QN15. 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
Answer
(A)action is not to be taken
QN16. 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
Answer
(C)have Y or N or - entries
QN17. 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
Answer
(B)conditions to be checked in a procedure is large
QN18. Decision table description of data processing is
- non-procedural specification
- procedural specification
- purely descriptive specification
- very imprecise specification
Answer
(A)non-procedural specification
QN19. 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
Answer
(C)code=4 should not be used in the action for code=3
QN20. 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
Answer
(C)method of describing computational procedures reasonably precisely in English
QN21. The objective of using structured English is to
- describe computational procedures reasonably precisely which can be understood by any user
- expand a DFD so that a user can understand it
- develop algorithms corresponding to processes in a DFD
- ease writing programs for DFDs
Answer
(A)describe computational procedures reasonably precisely which can be understood by any user
QN22. Structured English description of data processing is a
- non-procedural specification
- procedural specification
- purely descriptive specification
- very imprecise specification
Answer
(B)procedural specification
QN23. An extended entry decision table
- has no limited entry equivalent
- cannot be replaced by a table with only Y, or - entries
- may have Yes, No answers to conditions
- can always be converted to an equivalent limited entry decision table
Answer
(D)can always be converted to an equivalent limited entry decision table
QN24. The actions in the action stub of a limited entry decision table
- must be in sequential order
- must be in the order in which they are to be tested
- may be in any order
- must be in the order in which they are to be executed
Answer
(D)must be in the order in which they are to be executed
QN25. Select from the following list which are appropriate to use in structured English description of a process
- process inventory records
- find the sum of outstanding billed amounts
- check if outstanding amount >= Rs. 5000
- check if stock is low
- i and ii
- i and iii
- iii and iv
- ii and iii
Answer
(D)ii and iii
QN26. A decision table is
- a truth table
- a table which facilitates taking decisions
- a table listing conditions and actions to be taken based on the testing of conditions
- a table in a Decision Support System
Answer
(C)a table listing conditions and actions to be taken based on the testing of conditions
QN27. In the following word statement the actions 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
- i and ii
- i and iii
- ii and iii
- iii and iv
Answer
(A)i and ii
QN28. In a limited entry decision table a-entry against a condition signifies that
- the outcome of testing the condition is irrelevant
- it is an important condition
- the condition should be tested
- the condition is a Boolean condition
Answer
(A)the outcome of testing the condition is irrelevant
QN29. In a limited entry decision table the action 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
Answer
(A)list X or - corresponding to actions to be executed
QN30. The following structured Englishprocedure is incorrect because
if balance in account <=0
then
{issue exception note to dept.
mark "stop future issues" in
departments record}
else
if balance in account <minimum balance
then
{ issue item to dept.
issue warning to dept.}
end if
end if
- end if in second if is not needed
- nesting of ifs is not correct
- no action is specified when balance in account >=minimum balance
- the value of minimum balance is not specified
Answer
(C)no action is specified when balance in account >=minimum balance
QN31. The following structural English is incorrect because
case (income slab)
Income slab =1 : tax= 10%
Income slab =2 or 3 : tax= 20%
Income slab =5 : tax= 30%
end case
- no action is specified for income slab of 4
- income slab has to be rupees
- income slab =2 or 3 is wrong
- number of cases is too small
Answer
(A)no action is specified for income slab of 4
QN32. In a limited entry decision table the action stub
- lists X or - corresponding to actions to be executed
- lists the conditions to be tested
- has Y or N or - entries
- lists the actions to be taken
Answer
(D)lists the actions to be taken
QN33. In "test 4" missing rule is:
- NYNN
- NYYN
- YYNN
- YNYN
Answer
(C)YYNN
QN34. In "test 4" the contradictory actions are:
- A1, A3
- A1, A2
- A2, A3
- A2, I
Answer
(B)A1, A2
QN35. Decision tables are better then Decision trees when
- Conditions are to be isolated from actions in a word statement
- Condition sequences are to be found from a word statement
- Logical correctness of a word statement is to be established
- Large number of actions is to be performed
Answer
(C)Logical correctness of a word statement is to be established
QN36. Rule R1 is interpreted as follows:
- If C1 is TRUE and C2 is FALSE then perform action A2
- If C1 is TRUE and C2 is FALSE then perform action A1 and then action A2
- If C1 is TRUE and C2 is FALSE then perform action A3 and then action A1
- If C1 is TRUE and C2 is FALSE then perform action A1 and then action A3
Answer
(D)If C1 is TRUE and C2 is FALSE then perform action A1 and then action A3
QN37. Decision table "test2" is
- really incomplete
- complete
- apparently incomplete
- apparently complete
Answer
(C)apparently incomplete
QN38. The decision table given in answer (a) of question 9.4.3 is
- incomplete
- apparently ambiguous
- has contradictory specifications
- logically complete
Answer
(D)logically complete
QN39. The decision table "test 3" is
- incomplete
- ambiguous
- incorrect
- has redundancies
Answer
(D)has redundancies
QN40. Decision Trees are preferred when
- Too many conditions need to be tested
- Sequencing of testing conditions is important
- When there are many loops to be performed
- When too many actions are to be taken
Answer
(B)Sequencing of testing conditions is important