Subscribe to our YouTube Channel : Swayam Solver
Please scroll down for latest Programs. 👇
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
W1_Programming Qs-2
Due on 2022-08-11, 23:59 IST
Consider the following program.
• Fill in the blank at LINE-1 with the appropriate header of max_str( ).
• Fill in the blank at LINE-2 with the appropriate statements such that the string array
can be sorted in descending order.
The program must satisfy the sample input and output
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | Lion Tiger Bear Hippo Bull | Tiger Lion Hippo Bull Bear | Tiger Lion Hippo Bull Bear | Passed |
Test Case 2 | Wale Fox Deer Frog Crab | Wale Frog Fox Deer Crab | Wale Frog Fox Deer Crab | Passed |
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
W1_Programming Qs-3
Due on 2022-08-11, 23:59 IST
Consider the following program.
• Fill in the blanks at LINE-1 to add each string to the stack.
• Fill in the blanks at LINE-2 to print the element at the top of the stack.
• Fill in the blanks at LINE-3 to remove the element at the top of the stack.
The program must satisfy the sample input and output
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
W2_Programming QS-2
Due on 2022-08-11, 23:59 IST
Consider the following program. Fill in the blanks at LINE-1 and LINE-2 with appropriate headers of overloaded function product. The program must satisfy the sample input and output.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 10 20 30 10.5 5.67 | 10, 200, 6000, 59.535 | 10, 200, 6000, 59.535 | Passed |
Test Case 2 | -10 20 50 3.14 10 | -10, -200, -10000, 31.4 | -10, -200, -10000, 31.4 | Passed |
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
W2_Programming Qs-3
Due on 2022-08-11, 23:59 IST
Consider the following program. Fill in the blank at LINE-1 with an appropriate function header for the function update_and_sum( ) such that it satisfies the sample input and output.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 10 20 | 100, 200, 300\n
10, 20, 300\n
| 100, 200, 300\n
10, 20, 300\n
| Passed |
Test Case 2 | -10 300 | -100, 3000, 2900\n
-10, 300, 2900\n
| -100, 3000, 2900\n
-10, 300, 2900\n
| Passed |
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
Subscribe to our YouTube Channel : Swayam Solver
----------------------------------------------------------------------------------------------------------------------
W3_Programming QS-1
Due on 2022-08-18, 23:59 IST
Consider the program below which defines a class Complex.
Complete the program with the following instructions.
• Fill in the blank at LINE-1 to complete parameterized constructor.
• Fill in the blank at LINE-2 to complete copy constructor.
• Fill in the blank at LINE-3 and LINE-4 to complete the sum function.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 1 2 3 4 | (1,2)\n
(3,4)\n
(4,6)\n
| (1,2)\n
(3,4)\n
(4,6)\n
| Passed |
Test Case 2 | 5 10 15 20 | (5,10)\n
(15,20)\n
(20,30)\n
| (5,10)\n
(15,20)\n
(20,30)\n
| Passed |
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
W3_Programming QS-2
Due on 2022-08-18, 23:59 IST
Consider the following program.
• Fill in the blanks at LINE-1 and LINE-2 with an appropriate constructor and destructor
statement.
• Fill in the blank at LINE-3 with appropriate header for assignment (=) overload function.
• Fill in the blank at LINE-4 with an appropriate concatenation statement.
The program must satisfy the sample input and output.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | Hello Sir | Hello Sir\n
| Hello Sir\n
| Passed |
Test Case 2 | Good Night | Good Night\n
| Good Night\n
| Passed |
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
W3_Programming QS-3
Due on 2022-08-18, 23:59 IST
Consider the following program. Fill in the blanks as per the instructions given below:
• at LINE-1 with appropriate declaration of data member z,
• at LINE-2 with appropriate constructor statement, and
• at LINE-3 and LINE-4 with appropriate header of the functions calcZ() and print(),
such that it will satisfy the given test cases.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 3 5 | (9,25,225) | (9,25,225) | Passed |
Test Case 2 | 10 -5 | (100,25,2500) | (100,25,2500) | Passed |
Private Test cases used for Evaluation | Status |
Test Case 1 | Wrong Answer |
I will update the answer on telegram channel.
Join our Telegram Channel : https://telegram.me/SwayamSolver
------------------------------------------------------------------------------------------------------------------------
W4_Programming QS-1
Due on 2022-08-25, 23:59 IST
Consider the program below which defines a class Database. Complete the program with the
following instructions.
• Fill in the blank at LINE-1 to complete the declaration of member variable ins.
• Fill in the blank at LINE-2 to specify the return type of createIns() function.
• Fill in the blank at LINE-3 to call the createIns() function with parameter i.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 4 5 | 44 | 44 | Passed |
Test Case 2 | 5 10 | 55 | 55 | Passed |
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
W4_Programming QS-2
Due on 2022-08-25, 23:59 IST
Consider the following program.
• Fill in the blanks at LINE-1 to complete forward declaration.
• Fill in the blank at LINE-2 with appropriate function declaration so that function
calculate can access private data member of TotalAmount class.
The program must satisfy the sample input and output.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 1000 5 | Matured Amount: 1050 | Matured Amount: 1050 | Passed |
Test Case 2 | 5000 8 | Matured Amount: 5400 | Matured Amount: 5400 | Passed |
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
W4_Programming QS-3
Due on 2022-08-25, 23:59 IST
Consider the following program. Fill in the blanks as per the instructions given below:
• at LINE-1 to complete operator overload function,
• at LINE-2 and LINE-3 to calculate subtraction of two position class.
such that it will satisfy the given test cases.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 5 8 6 7 | (-1, 1) | (-1, 1) | Passed |
Test Case 2 | 6 7 2 5 | (4, 2) | (4, 2) | Passed |
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
------------------------------------------------------------------------------------------------------------------------
W5_Programming QS-1
Due on 2022-09-01, 23:59 IST
Complete the program with the following instructions.
• Fill in the blank at LINE-1 to complete the inheritance statement for class Rectangle,
• Fill in the blanks at LINE-2 and LINE-3 to complete the return statement.
The program must satisfy the given test cases.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 5 8 | 40, 26 | 40, 26 | Passed |
Test Case 2 | 2 5 | 10, 14 | 10, 14 | Passed |
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
W5_Programming QS-2
Due on 2022-09-01, 23:59 IST
Consider the following program with the following instructions.
• Fill in the blanks at LINE-1 to complete the inheritance statement
• Fill in the blank at LINE-2 to complete the constructor statement
The program must satisfy the sample input and output.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 8 | 8, 10, 12 | 8, 10, 12 | Passed |
Test Case 2 | 5 | 5, 7, 9 | 5, 7, 9 | Passed |
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
W5_Programming QS-3
Due on 2022-09-01, 23:59 IST
Consider the following program. Fill in the blanks as per the instructions given below:
• at LINE-1, LINE-2, and LINE-3 to complete the constructor initialization,
• at LINE-4, LINE-5, and LINE-6 to complete return statements,
such that it will satisfy the given test cases.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 5 6 7 | 5, 11, 18 | 5, 11, 18 | Passed |
Test Case 2 | 10 20 30 | 10, 30, 60 | 10, 30, 60 | Passed |
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
------------------------------------------------------------------------------------------------------------------------
W6_Programming QS-1
Due on 2022-09-08, 23:59 IST
Complete the program with the following instructions.
• Fill in the blank at LINE-1 to complete the destructor declaration,
• Fill in the blanks at LINE-2 to declare fun() as pure virtual function,
• Fill in the blank at LINE-3 to complete the object initialization.
The program must satisfy the given test cases.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | o k | ok o | ok o | Passed |
Test Case 2 | C ++ | C++ C | C++ C | Passed |
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
W6_Programming QS-2
Due on 2022-09-08, 23:59 IST
Consider the following program with the following instructions.
• Fill in the blank at LINE-1 to complete function declaration,
• Fill in the blank at LINE-2 with appropriate statement so that global function caller()
can access private member function fun() of class hierarchy.
The program must satisfy the sample input and output.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 8 | 80 | 80 | Passed |
Test Case 2 | 5 | 50 | 50 | Passed |
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
W6_Programming QS-3
Due on 2022-09-08, 23:59 IST
Consider the following program. Fill in the blanks as per the instructions given below:
• Fill in the blanks at LINE-1 and LINE-2 with appropriate destructor declaration statements
such that it will satisfy the given test cases.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 5 | 11 12 11 10 | 11 12 11 10 | Passed |
Test Case 2 | 2 | 5 6 5 4 | 5 6 5 4 | Passed |
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
No comments:
Post a Comment
Keep your comments reader friendly. Be civil and respectful. No self-promotion or spam. Stick to the topic. Questions welcome.