NPTEL Programming in Java Assignment 3 Answers 2023

Hello Learners, In this Post, you will find NPTEL Programming in Java Assignment 3 Week 3 Answers 2023. All the Answers are provided below to help the students as a reference don’t straight away look for the solutions.

NPTEL Programming in Java Assignment 4 Answers Join Group👇

CLICK HERE

Note: First try to solve the questions by yourself. If you find any difficulty, then look for the solutions.

COURSE NAMEANSWER
NPTEL Programming in Java Assignment 1 AnswersClick Here
NPTEL Programming in Java Assignment 2 AnswersClick Here
NPTEL Programming in Java Assignment 3 AnswersClick Here
NPTEL Programming in Java Assignment 4 AnswersClick Here
NPTEL Programming in Java Assignment 5 AnswersClick Here
NPTEL Programming in Java Assignment 6 AnswersClick Here
NPTEL Programming in Java Assignment 7 AnswersClick Here
NPTEL Programming in Java Assignment 8 AnswersClick Here
NPTEL Programming in Java Assignment 9 AnswersClick Here
NPTEL Programming in Java Assignment 10 AnswersClick Here
NPTEL Programming in Java Assignment 11 AnswersClick Here
NPTEL Programming in Java Assignment 12 AnswersClick Here
NPTEL Programming in Java Assignment 3 Answers 2023
NPTEL Programming in Java Assignment 3 Answers 2023

NPTEL Programming in Java Assignment 3 Answers 2023:

We are updating answers soon Join Group for update: CLICK HERE

Q.1. Which of the following statement(s) is/are correct about the constructor?

  • a. Constructors cannot be synchronized in Java.
  • b. Java does not provide a default copy constructor.
  • c. A constructor cannot be overloaded.
  • d. “this” or “super” can be used in a constructor.

Q.2. Which of the following statement(s) is/are true?

  • a. You can write a new instance method in the subclass with the same signature as the one in the superclass, thus overriding it.
  • b. You can write a new static method in the subclass with the same signature as the one in the superclass, thus hiding it.
  • c. A subclass inherits all of its parent’s public and protected members, no matter what package the subclass is in.
  • d. You cannot declare new methods in the subclass that are not in the superclass.

Q.3. Consider the following piece of code.

Fill in the blank with the appropriate keyword(s) from the list given below so that the program compiles successfully.

  • a. abstract
  • b. final
  • c. default
  • d. public
NPTEL Programming in Java Assignment 4 Answers Join Group👇

Q.4. How many instances of abstract class can be created?

  • a. 0
  • b. 1
  • c. 2
  • d. Multiple

Q.5. Structuring a Java class such that only methods within the class can access its instance variables is referred to as __.

  • a. object orientation
  • b. inheritance
  • c. platform independence
  • d. encapsulation

Q.6. Which of the following statement(s) is/are true?

  • a. A final method cannot be overridden in a subclass.
  • b. The advantage of private static methods is that they can be reused later if you need to reinitialize the class variable.
  • c. Class methods cannot use this keyword as there is no instance for this to refer to.
  • d. A final method can be overridden in a subclass.

Q.7. Consider the following piece of code.

Which of the following is the output of the above program?

  • a. Java
  • b. There will be a compile-time error.
  • c. JavaJava.
  • d. The program will give a runtime error.
NPTEL Programming in Java Week 3 Answers Join Group👇
CLICK HERE

Q.8. Consider the following program.

What is the output of the above program?

  • a. java
  • b. ring
  • c. r min
  • d. gram

Q.9. Which of the following statement(s) is/are False?

  • a. Hiding internal data from the outside world and accessing it only through publicly exposed methods is known as data encapsulation.
  • b. Common behavior can be defined in a superclass and inherited into a subclass using the extends keyword.
  • c. The term “class variable” is another name for a non-static field.
  • d. A local variable stores a temporary state; it is declared inside a method.

Q.10. Which of the following statement(s) is/are true?

  • a. Static methods in interfaces are never inherited.
  • b. You will get a compile-time error if you attempt to change an instance method in the superclass to a static method in the subclass.
  • c. You can prevent a class from being subclassed by using the final keyword in the class’s declaration.
  • d. An abstract class can only be subclassed; it cannot be instantiated.
NPTEL Programming in Java Assignment 3 Answers Join Group👇

Disclaimer: This answer is provided by us only for discussion purpose if any answer will be getting wrong don’t blame us. If any doubt or suggestions regarding any question kindly comment. The solution is provided by Brokenprogrammers. This tutorial is only for Discussion and Learning purpose.

About NPTEL Programming in Java Course:

With the growth of Information and Communication Technology, there is a need to develop large and complex software. Further, those software should be platform independent, Internet enabled, easy to modify, secure, and robust. To meet this requirement object-oriented paradigm has been developed and based on this paradigm the Java programming language emerges as the best programming environment. Now, Java programming language is being used for mobile programming, Internet programming, and many other applications compatible to distributed systems. This course aims to cover the essential topics of Java programming so that the participants can improve their skills to cope with the current demand of IT industries and solve many problems in their own filed of studies. 

Course Layout:
  • Week 1  :  Overview of Object-Oriented Programming and Java
  • Week 2  :  Java Programming Elements
  • Week 3  :  Input-Output Handling in Java
  • Week 4  :  Encapsulation
  • Week 5  :  Inheritance
  • Week 6  :  Exception Handling 
  • Week 7  :  Multithreaded Programming 
  • Week 8  :  Java Applets and Servlets 
  • Week 9  :  Java Swing and Abstract Windowing Toolkit (AWT)
  • Week 10 : Networking with Java
  • Week 11:  Java Object Database Connectivity (ODBC)
  • Week 12:  Interface and Packages for Software Development
CRITERIA TO GET A CERTIFICATE:

Average assignment score = 25% of average of best 8 assignments out of the total 12 assignments given in the course.
Exam score = 75% of the proctored certification exam score out of 100

Final score = Average assignment score + Exam score

YOU WILL BE ELIGIBLE FOR A CERTIFICATE ONLY IF AVERAGE ASSIGNMENT SCORE >=10/25 AND EXAM SCORE >= 30/75. If one of the 2 criteria is not met, you will not get the certificate even if the Final score >= 40/100.

If you have not registered for exam kindly register Through https://examform.nptel.ac.in/

Leave a Reply

Your email address will not be published. Required fields are marked *