100%(1)100% found this document useful (1 vote) 183 views11 pagesSe - Final Post
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here.
Available Formats
Download as PDF or read online on Scribd
€
v= Dashboard / AppDev / Stage-1 / Software Engineering / Quiz
Quiz review
‘Started on Wednesday, 11 October 2023, 451 AM
State Fished
Completed on Wednesday, 11 October 2023, #56 AM
Time taken 4 mins 37 sees
Marks 8 50/10.00,
Grade 85.00 out of 100.00,
Feedback Congratulations! You have passed by securing more than 80%
Question 1
Panay corset
Which of the following statements are true forthe below pseudocode
READ ABC
IF (A>B AND Apc)
PRINT “Als Greater”
IF(B>A AND 8>C)
PRINT “Bs Greater”
IF (C>A AND C>8)
PRINT “CIs Greater”
Select one or mor:
‘Code would be more efficent if, if is replaced by eset
, AND should bereplaced with OR
Condition when alle variables are given same values not checked
There are no errs inthe above code
Your answers partially conect a
‘You have selected too many options. -
‘The correct answers at: Condition when athe varabes are gven same valve is nt checked, Code would be mote fice if iis replaced by elesQuestion 2
Requirement
Ifa player lands on a property owned by other players, he or she needs to pay the rent. f the player does not have enough money, he of
she is out of the game. Ifthe property is not owned by any players, and the player has enough money buying the property he ot she
‘may buy the property with the price associated with the property
Find the me cab's number forthe following flowchart
Laon ey
=>
UF
SS
anne Paynes met
1 Pare mcer
Select one
as
kT
oo
a8
‘Your answer's correct.
‘The correct answerie: 6Question 3
Derive the Cardinality between the student and the School
School has many student, The student belongs o a schoo!
Select one
a MM
BMY,
em
aM
‘Your answer's correc.
‘The correct answeris: M1Question 4
‘A module is designed for the retal shop to calculate the discount based on the customer type
2) _ privileged customer then 3% discount
b) normal customer then no discount
Design test cases using using equivalence partitioning forthe above scenario
Selector:
Input Expected Output”
Privlage Customer ~ 3%
Normal Customer No Discount
Gold Customer Invalid
© Input Expected Output
Privlage Customer 13%
Normal Custemer No Discount
Gold Customer Invalid
© Input Expected Output
Privilage Customer 3%
Normal Customer No Discount
© Input Expected Output
Privilage Customer 3%
Normal Customer Invalid
Gold Customer Invalid
‘Your wer 's correct
“The correct answers: Input Expected Output
Privilage Customer 3%
Normal Customet No Discount
Gold Customer validQuestion 5
‘An Employee is Allocated for the Project. Each Employee is described ty the empld,Ename,designation and salary.Each Project is
described by proj ProjNamevestimatedCostActual Cost,
For the above scenario identify the correct entities
Select one
* Employee Project”
Projectprojf0,ProjName,ectimatedCostActualCost
© Employee;ProjectprojiD.empld
projlDempld.Employee
‘Your answer's correct.
‘The correct answeris: Employee ProjectQuestion 6
‘See the code below
READ mat;
Ie (enark > 90)
GRADE=
ELSE IF(mark > 81 && mark < 90)
GRADE = 8!
ELSE IF(mark > 71 88 mark « 80)
GRADE
ELSE IF(mark > 61 88 mark < 70)
GRADE =
ELSE IF(mark < 60)
RADI
PRINT GRADE;
predict the number of independent paths to be tested
Select one
a6
be
es
ao
‘Your aner's corte
‘The correct answeris:9Question 7
‘A etal shop has provided a discount sale on their products. A module for calculating discount forthe total amount of purchase is,
decided by the following factors
2) below 5000 then no discount
8) 5000 to 20000 then §% discount
{©} 20001 to 50000 then 10 % discount
4) above 50000 then 15% discount
Choose from the below appropriate test cases using boundary value analysis for the above scenario
Select one:
Input Expected Output™™
4999 No Discount
5000 5%
15000 5%
20000 5%
20001 10%
30000 10%
50000 10%
50001 15%
Input Expected Output
4999. No Discount
5000 5%
15000 5%
20000 5%
20003 10%
30000 10%
50000 10%
50001 15%
Input Expected Output
4999 No Discount
5000 10%
15000 10%
20000 5%
20001 5%
30000 5%
50000 10%
50001 15%
Input Expected Output4999 No Discount
5000 5%
1000 5%
20001 10%
30000 10%
50000 10%
50001 15%
‘Your answer's cote.
‘The correct answer is
Input Expected Output,
14999 No Discount
5000 5%
15000 5%
20000 5%
20001 10%
30000 10%
50000 10%
50001 15%Question 8
For the given code, identify the correct independent paths
Program for Search
«
Binary Search Algorithm
‘
1. intbottom
2. inttop = elemArray length 1;
int mid;
2, sfoune = false:
4. rdex=-1;
5. while (bottom <= top)
(
6. mid = (top + bottom) / 2;
2. i(elemaray id] == key
{
8, tindex= mid;
9. found = tue;
10 return;
variant
else
«
n if (elemArray [mid] < key)
12 bottom = mid-+1
tise
13 top=mid-1;
}
)ifwhile loop
14.) Binary search
search
saat one or or:
*4,2,3,4,5,6,7, 11,125,
b.1,2.3,4,5,1410
© 4,2,3,4,56,7,2,11,18,6,
4 1,2,3,4,5,6,7,8,9, 10,144
‘Your answer's ncorect
‘The correct answers are: 1,2,3,4,5,6,7, 6,9, 10,14
11,2,3,4,5,6,7,10512.5,Question 9
‘A retail shop has provided a discount sale on their products. A module for calculating discount forthe total amount of purchase is,
decided by the following factors
a) below 5000 then no discount
8) 5000 to 20000 then 8% discount
{©} 20001 to 50000 then 10 % discount
4) above 50000 then 15% discount
‘Choose from the bebw appropriate teat cases using equivalence partoning fo the above scenario.
Select one
Input Expected Outout
2000 No Discount
35000 5%
30000 10%
60000 15%
© Input Expected output
2000 No Discount
7000 5%
30000 10%
60000 10%
© Input Expected Output”
2000 No Discount
7000 5%
30000 10%,
60000 15%
4
Input Expected Output
2000 No Discount
7000 15%
30000 10%
60000 5%
‘Your answer's core.
‘The conect answers:
Input Expected Output
2000 No Discount
7000 5%
30000 10%
‘50000 15%Question 10
Find the me cab's number forthe below code.
it code is blank or not in database
display “reenter code"
else
if no credit and amount < 500
display ‘eredut not avaiable’
else
‘display ‘credit passed"
endif
endif
‘Select one
Your answer's core
‘The correct answeris: 5
Adi
ional Links For Reference
Jump to