0% found this document useful (0 votes)
19 views

Programming in Java - - Unit 9 - Week 6 _

The document outlines the details of Week 6 of the NPTEL Programming in Java course, including assignments and quizzes that have been submitted or are due. It highlights that the due date for Assignment 06 has passed and provides a series of programming questions with incorrect answers noted. Additionally, it lists accepted answers for various questions related to Java programming concepts.

Uploaded by

kalidasji210
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

Programming in Java - - Unit 9 - Week 6 _

The document outlines the details of Week 6 of the NPTEL Programming in Java course, including assignments and quizzes that have been submitted or are due. It highlights that the due date for Assignment 06 has passed and provides a series of programming questions with incorrect answers noted. Additionally, it lists accepted answers for various questions related to Java programming concepts.

Uploaded by

kalidasji210
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

13/11/2024, 15:27 Programming in Java - - Unit 9 - Week 6 :

(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)

[email protected]

NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Programming in Java (course)

Course Week 06: Assignment 06


outline The due date for submitting this assignment has passed.
Due on 2024-09-04, 23:59 IST.
About As per our records you have not submitted this assignment.
NPTEL ()
1) What is the output of the following program? 1 point

How does an
NPTEL
online
course
work? ()

Week 0 : ()

Week 1 : ()

Week 2 : ()

Week 3 : () a. “Hello World”


b. “Cannot divide by 0”
Week 4 : ()
c. Compilation Error
Week 5 : () d. Runtime Error (the code compiles successfully)

No, the answer is incorrect.


Week 6 : () Score: 0
Accepted Answers:
Lecture 26 : c. Compilation Error
Demonstration
-X (unit?
2) What will be the output of the following program? 1 point
unit=58&lesso
n=59)

Lecture 27 :
Multithreading-

https://onlinecourses.nptel.ac.in/noc24_cs105/unit?unit=58&assessment=434 1/6
13/11/2024, 15:27 Programming in Java - - Unit 9 - Week 6 :

I (unit?
unit=58&lesso
n=60)

Lecture 28 :
Multithreading-
II (unit?
unit=58&lesso
n=61)

Lecture 29 :
Demonstration
-XI (unit?
unit=58&lesso
n=62)

Lecture 30 : I- a. 20
O Stream-I b. 21
(unit?
unit=58&lesso
c. 19
n=63) d. 22

Feedback No, the answer is incorrect.


Form (unit? Score: 0
unit=58&lesso Accepted Answers:
n=178) b. 21

Week 06 : 3) What is the output of the following program? 1 point


Programming
Assignment 1
(/noc24_cs105
/progassignme
nt?name=393)

Week 06 :
Programming
Assignment 2
(/noc24_cs105
/progassignme
nt?name=394)

Week 06 :
Programming
Assignment 3
(/noc24_cs105
/progassignme
nt?name=395)

Week 06 :
Programming
Assignment 4
(/noc24_cs105
/progassignme a. 1
nt?name=396) b. 2
Week 06 : c. 0
Programming d. Compilation Error
Assignment 5
(/noc24_cs105 No, the answer is incorrect.

S 0

https://onlinecourses.nptel.ac.in/noc24_cs105/unit?unit=58&assessment=434 2/6
13/11/2024, 15:27 Programming in Java - - Unit 9 - Week 6 :

/progassignme Score: 0
nt?name=397) Accepted Answers:
c. 0
Quiz: Week
06: 4) Which exception is thrown when an array element is accessed beyond the array 1 point
Assignment size?
06
(assessment? a. ArrayElementOutOfBounds
name=434)
b. ArrayIndexOutOfBoundsException
Week 06 : c. ArrayIndexOutOfBounds
Assignment
d. None of these
Solution (unit?
unit=58&lesso No, the answer is incorrect.
n=439) Score: 0
Accepted Answers:
Week 7 : () b. ArrayIndexOutOfBoundsException

Week 8 : () 5) What is the output of the following program? 1 point

Week 9 : ()

Week 10 : ()

Week 11 : ()

Week 12 : ()

Books ()

Text
Transcripts ()

a. java
b. java
course
c. nptel
course
d. Compilation Error

No, the answer is incorrect.


Score: 0
Accepted Answers:
d. Compilation Error

6) Fill in the blank in the program so that the output is “Java”. 1 point

https://onlinecourses.nptel.ac.in/noc24_cs105/unit?unit=58&assessment=434 3/6
13/11/2024, 15:27 Programming in Java - - Unit 9 - Week 6 :

a. public void
b. void
c. private void
d. static void

No, the answer is incorrect.


Score: 0
Accepted Answers:
a. public void

7) How many times will “Java” be printed if the following code is executed? 1 point

a. 0
b. 1
c. 2
d. 3

No, the answer is incorrect.


Score: 0
Accepted Answers:
c. 2

8) The following is a simple program using the concept of thread. What is the output of 1 point
the following program?

https://onlinecourses.nptel.ac.in/noc24_cs105/unit?unit=58&assessment=434 4/6
13/11/2024, 15:27 Programming in Java - - Unit 9 - Week 6 :

a. 1 3 5 7
b. 2 4 6 8
c. 1 3 5 7 9
d. 2 4 6

No, the answer is incorrect.


Score: 0
Accepted Answers:
b. 2 4 6 8

9) For the program given below, what will be the output after its execution? 1 point

a. 1
b. 2
c. 0
d. 01

No, the answer is incorrect.


Score: 0
Accepted Answers:
a. 1

10) Which of the following method returns a reference to the currently executing thread 1 point
object?

a. public static boolean interrupted();


b. public static Thread currentThread();
c. public final boolean isAlive();
d. public final void suspend();

No, the answer is incorrect.


Score: 0
Accepted Answers:
b. public static Thread currentThread();

https://onlinecourses.nptel.ac.in/noc24_cs105/unit?unit=58&assessment=434 5/6
13/11/2024, 15:27 Programming in Java - - Unit 9 - Week 6 :

https://onlinecourses.nptel.ac.in/noc24_cs105/unit?unit=58&assessment=434 6/6

You might also like