Week 4 : Programming Assignment 1
Due on 2023-08-24, 23:59 IST
Complete the code segment to execute the following program successfully. You should import the correct package(s) and/or class(s) to complete the code.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | NPTEL JAVA | Course: NPTEL JAVA | Course: NPTEL JAVA\n
| Passed after ignoring Presentation Error |
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
Week 4 : Programming Assignment 2
Due on 2023-08-24, 23:59 IST
Complete the code segment to print the current year. Your code should compile successfully.
Note: In this program, you are not allowed to use any import statement. Use should use predefined class Calendar defined in java.util package.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | NA | Current Year: 2023\n
Current Month: 8 | Current Year: 2023\n
Current Month: 8 | Passed |
Private Test cases used for Evaluation | Status |
Test Case 1 | Passed |
Week 4 : Programming Assignment 3
Due on 2023-08-24, 23:59 IST
The program in this assignment is attempted to print the following output:
-----------------OUTPUT-------------------
This is large
This is medium
This is small
This is extra-large
-------------------------------------------------
However, the code is intentionally injected with some bugs. Debug the code to execute the program successfully.
Sample solutions (Provided by instructor)
Private Test cases used for evaluation | Input | Expected Output | Actual Output | Status |
Test Case 1 | This is small\n This is medium\n This is large\n This is extra-large | This is small\n This is medium\n This is large\n This is extra-large\n | Passed |
The due date for submitting this assignment has passed.
1 out of 1 tests passed.
You scored 100.0/100.
Week 4 : Programming Assignment 4
Due on 2023-08-24, 23:59 IST
Complete the code segment to call the default method in the interface First and Second.
Public Test Cases | Input | Expected Output | Actual Output | Status |
---|---|---|---|---|
Test Case 1 | NA | Default method implementation of First interface.\n
Default method implementation of Second interface. | Default method implementation of First interface.\n
Default method implementation of Second interface.\n
| Passed after ignoring Presentation Error |
Week 4 : Programming Assignment 5
Due on 2023-08-24, 23:59 IST
Modify the code segment to print the following output.
-----------------OUTPUT-------------------
Circle: This is Shape1
Circle: This is Shape2
-------------------------------------------------
Private Test cases used for evaluation | Input | Expected Output | Actual Output | Status |
Test Case 1 | Circle: This is Shape2\n Circle: This is Shape1 | Circle: This is Shape2\n Circle: This is Shape1\n | Passed |
The due date for submitting this assignment has passed.
1 out of 1 tests passed.
You scored 100.0/100.
Assignment submitted on 2023-02-15, 21:26 IST
Your last recorded submission was :
No comments