PROGRAMMING IN JAVA ASSIGNMENT 06 ANSWERS | WEEK 06 ANSWERS: The Today Blog

Rate this post

Want to Know the Answers to NPTEL PROGRAMMING IN JAVA ASSIGNMENT 06? This article will tell you the answer to the National Programme on Technology Enhanced Learning (NPTEL) Course β€œ PROGRAMMING IN JAVA”. So read the complete article carefully.

About The Course

With the growth of Information and Communication Technology, there is a need to develop large and complex software. Further, that 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, the Java programming language is being used for mobile programming, Internet programming, and many other applications compatible with distributed systems.

CRITERIA TO GET A CERTIFICATE

Average assignment score = 25% of the 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 THE 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.

The certificate will have your name, photograph, and score in the final exam with the breakup. It will have the logos of NPTEL and IIT Roorkee. It will be e-verifiable at nptel.ac.in/noc.

Programming In Java 06 Answers

Question 01 of 10

Which of the following is NOT a method of the Thread class in Java?

A) public void run()

B) public void exit()

C) public void start()

D) public final int getPriority()

B) public void exit()

Question 02 of 10

Which of the following statement is true in the case of starting a thread with the ‘run()’ and ‘start()’ methods?

A) There is no difference between starting a thread with the ‘run()’ and ‘start()’ methods.

B) When you call the start() method, the main thread internally calls the run() method to start the newly created Thread

C) When you call the run() method directly no new Thread is created and code inside run() will execute on the current Thread.

D) None

B) When you call the start() method, the main thread internally calls the run() method to start the newly created Thread

Question 03 of 10

Which of the following can 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 package.

A. By implementing the Runnable interface.
B) By extending the Thread class.

Question 04 of 10

What is the output of the following program?

A) Hello World

B) Arithmetic Exception

C) Arithmetic Exception Exception Hello World

D) AnthmeticException Hello World

E) None

B) Arithmetic Exception

Programming In Java Assignment 06 Answers

Question 05 of 10

Which method restarts a dead thread

A) start()

B) restart()

C) restart Thread()

D) None

D) None

Question 06 of 10

Assume the following method is properly synchronized and called from a thread A on an object B: wait(2000); After calling this method, when will the thread A become a candidate to get another turn at the CPU?

A) After thread A is notified, or after two seconds.

B) Two seconds after thread A is notified

C) After the lock on B is released or after two seconds.

D) Two seconds after lock B is released

A) After thread A is notified, or after two seconds.

Question 07 of 10

The following is a simple program using the concept of thread.

What is the output of the above program?

A) 1
3

B) 1
2
3
4

C) Runtime error

D) 2
4

D) 2
4

Programming In Java Assignment 06 Answers

Question 08 of 10

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

A) 01

B) False True

C) True True

D) 11

D) 11

Question 09 of 10

Which of the following is/are not a correct constructor for a thread object?

A) Thread(Runnable String str);

B) Thread(Runnable a, int priority);

C) Thread(Runnable a, ThreadGroup t);

D) Thread(int priority),

B) Thread(Runnable a, int priority);
C) Thread(Runnable a, ThreadGroup t);

Question 10 of 10

Which exception is thrown when an array element is accessed beyond the array size?

A) ArrayElementOutOfBounds.

B) ArrayIndexOutOfBoundsException

C) ArrayIndexOutOfBounds

D) None of these

B) ayIndexOutOfBoundsException

πŸ‘‡πŸ‘‡ Previous Week Answers: Programming In Java Assignment 05 πŸ‘‡πŸ‘‡

ASSIGNMENT 05 PROGRAMMING IN JAVA

CHECKOUT THIS ALSO:

01 – NPTEL PROGRAMMING IN JAVA ASSIGNMENT 01 ANSWERS πŸ‘ˆ

02 – NPTEL PROGRAMMING IN JAVA ASSIGNMENT 02 ANSWERS πŸ‘ˆ

03 – NPTEL PROGRAMMING IN JAVA ASSIGNMENT 03 ANSWERS πŸ‘ˆ

04 – NPTEL PROGRAMMING IN JAVA ASSIGNMENT 04 ANSWERS πŸ‘ˆ

05 – NPTEL PROGRAMMING IN JAVA ASSIGNMENT 05 ANSWERS πŸ‘ˆ

06 – NPTEL PROGRAMMING IN JAVA ASSIGNMENT 06 ANSWERS πŸ‘ˆ

07 – NPTEL PROGRAMMING IN JAVA ASSIGNMENT 07 ANSWERS πŸ‘ˆ

08 – NPTEL PROGRAMMING IN JAVA ASSIGNMENT 08 ANSWERS πŸ‘ˆ

09 – NPTEL PROGRAMMING IN JAVA ASSIGNMENT 09 ANSWERS πŸ‘ˆ

10 – NPTEL PROGRAMMING IN JAVA ASSIGNMENT 10 ANSWERS πŸ‘ˆ

11 – NPTEL PROGRAMMING IN JAVA ASSIGNMENT 11 ANSWERS πŸ‘ˆ

12 – NPTEL PROGRAMMING IN JAVA ASSIGNMENT 12 ANSWERS πŸ‘ˆ

That’s All Guys! Hope you Like the Article.

That It Guys, in this article I have told you about the Answers to PROGRAMMING IN JAVA ASSIGNMENT 06.

Disclaimer: We do not claim 100% surety of answers, these answers are based on our sole knowledge, and by posting these answers we are just trying to help students, so we urge do your assignment on your own.

if you have any suggestions then comment below or contact us at admin@thetodayblog.com

If you found this article Interesting and helpful, don’t forget to share it with your friends to get this information.

READ ALSO:

SOFT SKILLS ASSIGNMENT 01 ANSWERS

WILDLIFE ECOLOGY ASSIGNMENT 01 ANSWERS

ENGINEERING DRAWING AND COMPUTER GRAPHICS ASSIGNMENT 01 ANSWERS

Don’t forget to share it with your friends.

Follow us on Twitter and Telegram also.

Follow me personally on Instagram and Twitter.

1 thought on “PROGRAMMING IN JAVA ASSIGNMENT 06 ANSWERS | WEEK 06 ANSWERS: The Today Blog”

Leave a Comment