NPTEL Programming in Java Assignment 6 Answers 2023

Hello Learners, In this Post, you will find NPTEL Programming in Java Assignment 6 Week 6 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 6 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 6 Answers 2023
NPTEL Programming in Java Assignment 6 Answers 2023

NPTEL Programming in Java Assignment 6 Answers 2023:

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

Q.1. Which of the following is NOT TRUE in Java?

  • a. Every thread has a priority.
  • b. JVM allows multiple threads of execution running concurrently.
  • c. Threads with higher priority are executed first.
  • d. You cannot set a maximum priority value that a thread can have.

Q.2. Consider the following code. Which of the following is TRUE regarding the above code?

  • a. Creating a thread in Java using Runnable interface
  • b. Thread creation by declaring a class to be a subclass of Thread
  • c. Overriding the run method of class Thread
  • d. The class implements the run method.

Q.3. Which of the following cannot be used to create an instance of Thread?

  • a. By implementing the Runnable interface.
  • b. By extending the Thread class.
  • c. By creating a new class named Thread and calling method run().
  • d. By importing the Thread class from the related package.
NPTEL Programming in Java Assignment 7 Answers Join Group👇

Q.4. Which method start () will do which of the following?

  • a. Causes this thread to begin execution.
  • b. Either start the execution for new thread or pause an ongoing thread.
  • c. The JVM calls the run method of this thread.
  • d. Recovers a thread from deadlock and begin execution

Q.5. Which method start () will do which of the following?

  • a. Causes this thread to begin execution.
  • b. Either start the execution for new thread or pause an ongoing thread.
  • c. The JVM calls the run method of this thread.
  • d. Recovers a thread from deadlock and begin execution

Q.6. Which of the following is not platform independent in Java?

  • a) Everything in Java thread is platform dependent.
  • b) The thread constructor with the stackSize parameter is platform dependent.
  • c) The inheritance in java is platform dependent as multiple classes are involved.
  • d) There is no platform dependency in Java.

Q.7. The following is a simple program using the concept of thread. What is the output of the above program?

  • Answer: D
NPTEL Programming in Java Week 6 Answers Join Group👇
CLICK HERE

Q.8. For the program given below, what will be the output after its execution?

  • a. 1
  • b. 10
  • c. 01
  • d. 11

Q.9. Which of the following method returns a reference to the currently executing thread object?

  • a. public static boolean interrupted()
  • b. public static Thread currentThread()
  • c. public final boolean isAlive()
  • d. public final void suspend()

Q.10. Which of the following methods can be used to reduce over-utilization of CPU?

  • a. public static void yield()
  • b. public static void main(String args[])
  • c. public static void sleep(long millis)
  • d. public void start()
NPTEL Programming in Java Assignment 6 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 *