Week 10 : Programming Assignment 1
Due on 2023-10-05, 23:59 IST
The following code needs some package to work properly. Write appropriate code to import the required package(s) in order to make the program compile and execute successfully.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | NA | true | true | Passed |
Week 10 : Programming Assignment 2
Due on 2023-10-05, 23:59 IST
Write the JDBC codes needed to create a Connection interface using the DriverManager class and the variable DB_URL. Check whether the connection is successful using 'isAlive(timeout)' method to generate the output, which is either 'true' or 'false'.
Note the following points carefully:
1. Name the connection object as 'conn' only.
2. Use timeout value as 1.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | 0 | true | true | Passed |
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
Week 10 : Programming Assignment 3
Due on 2023-10-05, 23:59 IST
Due to some mistakes in the below code, the code is not compiled/executable. Modify and debug the JDBC code to make it execute successfully.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | NA | true | true | Passed |
Week 10 : Programming Assignment 4
Due on 2023-10-05, 23:59 IST
Complete the code segment to create a new table named ‘PLAYERS’ in SQL database using the following information.
Column | UID | First_Name | Last_Name | Age |
Type | Integer | Varchar (45) | Varchar (45) | Integer |
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | NA | No. of columns : 4\n
Column 1 Name: UID\n
Column 1 Type : INT\n
Column 2 Name: First_Name\n
Column 2 Type : VARCHAR\n
Column 3 Name: Last_Name\n
Column 3 Type : VARCHAR\n
Column 4 Name: Age\n
Column 5 Type : INT | No. of columns : 4\n
Column 1 Name: UID\n
Column 1 Type : INT\n
Column 2 Name: First_Name\n
Column 2 Type : VARCHAR\n
Column 3 Name: Last_Name\n
Column 3 Type : VARCHAR\n
Column 4 Name: Age\n
Column 5 Type : INT\n
| Passed after ignoring Presentation Error |
Week 10 : Programming Assignment 5
Due on 2023-10-05, 23:59 IST
Complete the code segment to rename an already created table named ‘PLAYERS’ into ‘SPORTS’.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | NA | No. of columns : 4\n
Column 1 Name: UID\n
Column 1 Type : INT\n
Column 2 Name: First_Name\n
Column 2 Type : VARCHAR\n
Column 3 Name: Last_Name\n
Column 3 Type : VARCHAR\n
Column 4 Name: Age\n
Column 5 Type : INT | No. of columns : 4\n
Column 1 Name: UID\n
Column 1 Type : INT\n
Column 2 Name: First_Name\n
Column 2 Type : VARCHAR\n
Column 3 Name: Last_Name\n
Column 3 Type : VARCHAR\n
Column 4 Name: Age\n
Column 5 Type : INT\n
| Passed after ignoring Presentation Error |
No comments