NPTEL Data Structure and Algorithms using Java Week 12 Assignment Answers 2024

Sanket
By Sanket

NPTEL Data Structure and Algorithms using Week 12 Java Assignment Answers 2024

1.

image 21
Answer :- For Answers Click Here 

2.

image 22
image 23
Answer :- For Answers Click Here 

3.

image 24
Answer :- 

4.

image 25
Answer :- 

5. Which of the following function definitions is/are Correct?

a. String trimO Returns the copy of the String, by removing whitespaces at both ends. It does not affect whitespaces in the middle.
b. String toUpperCase Converts all the characters in the String to upper case.
c. String replace(char old, char new) Returns new string by replacing all occurrences of old with new.
d. String concat(String s) Concatenates specified string to the front of this string

Answer :- 

6.

image 26
image 27
Answer :- For Answers Click Here 

7.

image 28
image 29
Answer :- 

8.

image 30
image 31
Answer :- 

9.

image 32
image 33
Answer :- 

10.

image 34
Answer :- For Answers Click Here 
Share This Article
Leave a comment