Please do not message repeatedly. You will get the answer before the deadline.

Course Content
Week 1 Assignment Answers (Free)
0/1
Week 2 Assignment Answers
0/1
Week 3 Assignment Answer
0/1
Week 4 Assignment Answers
0/1
Week 5 Assignment Answers
0/1
Week 6 Assignment Answers
0/1
Week 7 Assignment Answers
0/1
Week 8 Assignment Answers
0/1
Week 9 Assignment Answers
0/1
Week 10 Assignment Answers
0/1
Week 11 Assignment Answers
0/1
Week 12 Assignment Answers
0/1
PYQ NPTEL Data Structure And Algorithms Using Java Assignment Answers 2022
    About Lesson

    1. Which feature can be implemented using encapsulation?
    а.Inheritance
    b.Abstraction
    C.Polymorphism
    d.Overloading

    Answer :- b

    2. Which of the following best describes encapsulation?
    a. It is a way of combining various data members into a single unit.
    b. It is a way of combining various member functions into a single unit.
    c. It is a way of combining various data members and member functions into a single unit which can operate on any data.
    d. It is a way of combining various data members and member functions that operate on those data members into a single unt.

    Answer :- d

    3. Which of the following should be encapsulated?
    a. The data which is prone to change is near future.
    b. The data prone to change in long terms.
    c. The data which is intended to be changed.
    d. The data which belongs to some other class.

    Answer :- a

    3. Which of the following should be encapsulated?
    a. The data which is prone to change is near future.
    b. The data prone to change in long terms.
    C. The data which is intended to be changed.
    d. The data which belongs to some other class.

    Answer :- a

    4. 

    Answer :- d

    5. Why are generics used?
    a. Generics make code more fast.
    b. Generics make code more optimized and readable.
    c. Generics add stability to your code by making more of your bugs detectable at compile time.
    d. Generics add stability to your code by making more of your bugs detectable at a runtime.

    Answer :- c

    6. Which of the following is true?
    a. Genenc programming and function overloading are very similar to each other.
    b. With method overloading you can pass any type of data argument but with generic programming it is limited.
    c. For generic programming to work, multiple functions of the same logic need to be created for different data types.
    d. Method overnding is a fancy name for method overloading.

    Answer :- a

    7. 

    Answer :- d

    8. How do we implement variable sized arguments in generic programming?
    a. Array
    b. Variable argument
    c. varars
    d. getchO

    Answer :- a

    9. <T extends superclass> is used to implement which of the following?
    a. Lower bound
    b. Upper bound
    c. Middle bound
    d. None of the above.

    Answer :- b

    10. Why do we need to study data structures?
    a. Because it’s a really hot topic in this era, like Machine Learning, Deep Learning.
    b. Because it’s an ancient topic and we should know the history of computers
    c. It is essential for developing a large, complex and critical software.
    Data structures help us organize and access different types of data in the most efficient format according to our needs.

    Answer :- c, d
    0% Complete