W6_Programming_Qs.1
Due on 2023-09-07, 23:59 IST
Consider the following program. Fill in the blanks as per the instructions given below:
• Complete the destructor statement,
• Complete the constructor statement,
such that it will satisfy the given test cases
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 4 | 4 12 4 2 | 4 12 4 2 | Passed |
Test Case 2 | 2 | 2 6 4 2 | 2 6 4 2 | Passed |
W6_Programming_Qs.2
Due on 2023-09-07, 23:59 IST
Consider the following program. Fill in the blanks as per the instructions given below.
• at LINE-1, define fun as pure abstract function,
• at LINE-2, complete constructor definition,
• at LINE-3, complete constructor definition,
such that it will satisfy the given test cases.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 2 | 4 6 | 4 6 | Passed |
Test Case 2 | 3 | 6 9 | 6 9 | Passed |
W6_Programming_Qs.3
Due on 2023-09-07, 23:59 IST
Consider the following program. Fill in the blanks as per the instructions given below.
• at LINE-1, declare the function show() as pure virtual function,
• at LINE-2, with appropriate function call,
• at LINE-3, with appropriate function header,
such that it will satisfy the given test cases.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 10 15 | 25 75 | 25 75 | Passed |
Test Case 2 | 5 10 | 15 25 | 15 25 | Passed |
----------------------------------------------------------------------------------------------------------------------------
No comments