If you fly in economy class, then you can be promoted to business class, especially if you have a gold airline card for private flights. If you do not have a gold card, you can "reset" from flight if the plane is full or you are late for check-in. All these the conditions are shown in the diagram below. Note that all statements (operators) are numbered. You run 3 tests: Test 1 - Gold card holder upgraded to business class Test 2 - Passenger without gold card remains in economy class Test 3 - Passenger who was "thrown" off the flight What is the statement coverage of these three tests? A. 60% B. 70% C. 80% D. 90%
OOPs
In today's technology-driven world, computer programming skills are in high demand. The object-oriented programming (OOP) approach is very much useful while designing and maintaining software programs. Object-oriented programming (OOP) is a basic programming paradigm that almost every developer has used at some stage in their career.
Constructor
The easiest way to think of a constructor in object-oriented programming (OOP) languages is:
If you fly in economy class, then you can be promoted to business
class, especially if you have a gold airline card for private
flights. If you do not have a gold card, you can "reset" from
flight if the plane is full or you are late for check-in. All these
the conditions are shown in the diagram below. Note that all statements
(operators) are numbered.
You run 3 tests:
Test 1 - Gold card holder upgraded to business class
Test 2 - Passenger without gold card remains in economy class
Test 3 - Passenger who was "thrown" off the flight
What is the statement coverage of these three tests?
A. 60%
B. 70%
C. 80%
D. 90%
Step by step
Solved in 3 steps