W2_Programming_Qs.3
Due on 2023-08-10, 23:59 IST
Consider the following program. Fill in the blanks as per the instructions given below:
• at LINE-1 with appropriate function header,
• at LINE-2 with appropriate return statement
such that it will satisfy the given test cases.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 1 2 3 4 | (4, 6)(4, 6) | (4, 6)(4, 6) | Passed |
Test Case 2 | 2 4 6 8 | (8, 12)(8, 12) | (8, 12)(8, 12) | Passed |
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
W3_Programming_Qs.1
Due on 2023-08-17, 23:59 IST
Consider the following program. Fill in the blanks as per the instructions given below:
• Complete two constructor statements at LINE-1 and LINE-2,
• Complete the return statement at LINE-3 to calculate the manhattan distance between two points,
such that it will satisfy the given test cases.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 1 2 3 4 | (1,2)\n
(3,4)\n
Distance: 4 | (1,2)\n
(3,4)\n
Distance: 4 | Passed |
Test Case 2 | 1 -1 2 -2 | (1,-1)\n
(2,-2)\n
Distance: 2 | (1,-1)\n
(2,-2)\n
Distance: 2 | Passed |
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
W3_Programming_Qs.2
Due on 2023-08-17, 23:59 IST
Consider the following program. Fill in the blanks as per the instructions given below.
• at LINE-1 with constructor definition,
• at LINE-2 with appropriate statement to deallocate array memory
such that it will satisfy the given test cases.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 4
1 3 5 8 | Min: 1 | Min: 1 | Passed |
Test Case 2 | 3
7 3 9 | Min: 3 | Min: 3 | Passed |
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
W3_Programming_Qs.3
Due on 2023-08-17, 23:59 IST
Consider the following program. Fill in the blanks at LINE-1, LINE-2 and LINE-3 with
Consider the following program. Fill in the blanks at LINE-1, LINE-2 and LINE-3 with
appropriate keywords such that it will satisfy the given test cases.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 1 Raj 36 5 | 1 : Raj : 41 | 1 : Raj : 41 | Passed |
Test Case 2 | 2 Amal 48 20 | 2 : Amal : 68 | 2 : Amal : 68 | Passed |
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
No comments