You are on page 1of 3

Q1: In a system designed to work out the tax to be paid: An employee has 4000 of salary tax free.

he next 1!00 is taxed at 10" he next #$000 is taxed at ##" Any further amount is taxed at 40" %hi&h of these groups of numbers would fall into the same e'ui(alen&e &lass) a* 4$00+ 14000+ #$000 b* !#00+ !!00+ #$000 &* #$001+ ,#000+ ,!000 d* !$00+ #$000+ ,#000 Q#: In a system designed to work out the tax to be paid: An employee has 4000 of salary tax free. he next 1!00 is taxed at 10" he next #$000 is taxed at ##" Any further amount is taxed at 40" o the nearest whole pound- whi&h of these is a (alid .oundary /alue Analysis test &ase) a* 1!00 b* ,#001 &* ,,!01 d* #$000 Q,: 0onsidering the following pseudo-code, calculate the MINIMUM number of test cases for statement coverage, and the MINIMUM number of test cases for decision coverage respectively. RE ! RE ! " RE ! # I$ #% &'EN I$ #%" &'EN (RIN& )# must be smaller than at least one number) E*+E (RIN& )(roceed to ne,t stage)

EN!I$ E*+E (RIN& )" can be smaller than #) EN!I$ A) -, -. B) ., -. C) ., /. D) -, .. Q4 1i(en the following: 2wit&h 30 on 2tart 4outlook5 I6 outlook appears 789 2end an email 0lose outlook a* 1 test for statement &o(erage- 1 for bran&h &o(erage b* 1 test for statement &o(erage- # for bran&h &o(erage &* 1 test for statement &o(erage. , for bran&h &o(erage d* # tests for statement &o(erage- # for bran&h &o(erage e* # tests for statement &o(erage- , for bran&h &o(erage Q! 1i(en the following &ode- whi&h is true: I6 A : . 789 0;A<. 8=28 0;A>. 89?I6 @ead ? I6 0 ; ? hen 3rint 48rror5 89?I6

a* 1 test for statement &o(erage- , for bran&h &o(erage b* # tests for statement &o(erage- # for bran&h &o(erage &* # tests for statement &o(erage. , for bran&h &o(erage d* , tests for statement &o(erage- , for bran&h &o(erage e* , tests for statement &o(erage- # for bran&h &o(erage

QA. If a &andidate is gi(en an exam of 40 'uestions- should get #! marks to pass BA1"* and should get $0" for distin&tion- what is e'ui(alen&e &lass. A. #,- #4- #! .. 0- 1#- #! 0. ,0- ,A- ,C ?. ,#-,D-40

You might also like