W8_Programming_Qs.1
Due on 2023-09-21, 23:59 IST
Consider the following program. Fill in the blanks as per the instructions given below:
• Fill in the blank at LINE-1 and LINE-2 with appropriate statements for class template specialization.
• Fill in the blank at LINE-3 with appropriate initializer list.
The program must satisfy the given test cases.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 3 | 97.45, programm | 97.45, programm | Passed |
Test Case 2 | 5 | 95.45, progra | 95.45, progra | Passed |
W8_Programming_Qs.2
Due on 2023-09-21, 23:59 IST
Consider the following program. Fill in the blanks as per the instructions given below.
• Fill in the blank at LINE-1 with appropriate template declaration for class DataSet.
• Fill in the blank at LINE-2 with appropriate declaration of array arr.
• Fill in the blank at LINE-3 with appropriate parameter / parameters for function operator=.
such that it will satisfy the given test cases.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | a b c
1 2 3 | c b a 3 2 1 | c b a 3 2 1 | Passed after ignoring Presentation Error |
Test Case 2 | x y z
10 20 30 | z y x 30 20 10 | z y x 30 20 10 | Passed after ignoring Presentation Error |
W8_Programming_Qs.3
Due on 2023-09-21, 23:59 IST
Consider the following program. Fill in the blanks as per the instructions given below:
• Fill in the blank at LINE-1 with appropriate constructor for structure Stat.
• Fill in the blank at LINE-2 with appropriate header declaration for functor.
• Fill in the blank at LINE-3 with appropriate return statement.
The program must satisfy the given test cases.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 4 10 20 30 40 | 100 25 | 100 25 | Passed |
Test Case 2 | 6 1 2 3 4 5 6 | 21 3.5 | 21 3.5 | Passed |
No comments