Learn Programming & Prepare for NPTEL Exams...
Swayam Solver is your one-stop destination for NPTEL exam preparation.
NPTEL Programming in Java Jan 2024 Week 11
Week 11 : Programming Assignment 1
Due on 2024-04-11, 23:59 IST
The following code is missing some information needed to run the code. Add whatever is missing and make the code runnable. (Ignore the statements ~~~THERE IS SOME INVISIBLE CODE HERE~~~)
Public Test Cases
Input
Expected Output
Actual Output
Status
Test Case 1
0
true
true
Passed
Week 11 : Programming Assignment 2
Due on 2024-04-11, 23:59 IST
Write the JDBC codes needed to create a Connection interface using theDriverManagerclass and the variableDB_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:
§Name the connection object asconnonly.
§Use timeout value as 1.
Public Test Cases
Input
Expected Output
Actual Output
Status
Test Case 1
0
true
true
Passed
Week 11 : Programming Assignment 3
Due on 2024-04-11, 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
0
true
true
Passed
Week 11 : Programming Assignment 4
Due on 2024-04-11, 23:59 IST
Complete the code segment to create a new table named ‘STUDENTS’ in SQL database using the following information.
Column
UID
Name
Roll
Age
Type
Integer
Varchar (45)
Varchar (12)
Integer
Public Test Cases
Input
Expected Output
Actual Output
Status
Test Case 1
1
No. of columns : 4\n
Column 1 Name: UID\n
Column 1 Type : INT\n
Column 2 Name: Name\n
Column 2 Type : VARCHAR\n
Column 3 Name: Roll\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: Name\n
Column 2 Type : VARCHAR\n
Column 3 Name: Roll\n
Column 3 Type : VARCHAR\n
Column 4 Name: Age\n
Column 5 Type : INT
Passed
Week 11 : Programming Assignment 5
Due on 2024-04-11, 23:59 IST
Complete the code segment to rename an already created table named ‘STUDENTS’ into ‘GRADUATES’.
Public Test Cases
Input
Expected Output
Actual Output
Status
Test Case 1
1
TABLE NAME = GRADUATES
TABLE NAME = GRADUATES
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.
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.