Programming in Java - - Unit 15 - Week 12 _
Programming in Java - - Unit 15 - Week 12 _
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
vinamrasrivastava112@gmail.com
Week 4 : () 2) Which of the following method is used to set a frame, f with size 300 × 200 pixels? 1 point
Week 5 : ()
https://onlinecourses.nptel.ac.in/noc24_cs105/unit?unit=106&assessment=445 1/5
13/11/2024, 15:28 Programming in Java - - Unit 15 - Week 12 :
Week 11 : ()
Week 12 : ()
Lecture 56 :
Case Study - I
(unit?
unit=106&less
a. 38
on=107)
b. 39
Lecture 57 :
c. 40
Case Study - II
(unit? d. 41
unit=106&less
Yes, the answer is correct.
on=108) Score: 1
Lecture 58 : Accepted Answers:
Case Study - b. 39
III (unit?
unit=106&less 4) What is the output of the following program? 1 point
on=109)
Lecture 59 :
Case Study -
IV (unit?
unit=106&less
on=110)
Lecture 60 :
Case Study -
V (unit?
unit=106&less
on=111)
Feedback
Form (unit?
unit=106&less
on=113)
a. finally
Week 12 :
b. exception finished
Programming
Assignment 1 c. finally exception finished
(/noc24_cs105 d. Compilation fails
/progassignme
nt?name=408) Yes, the answer is correct.
Score: 1
Week 12 : Accepted Answers:
Programming c. finally exception finished
Assignment 2
(/noc24_cs105 5) What is the output of the following program? 1 point
/progassignme
nt?name=409)
Week 12 :
Programming
Assignment 3
https://onlinecourses.nptel.ac.in/noc24_cs105/unit?unit=106&assessment=445 2/5
13/11/2024, 15:28 Programming in Java - - Unit 15 - Week 12 :
(/noc24_cs105
/progassignme
nt?name=410)
Week 12 :
Programming
Assignment 4
(/noc24_cs105
/progassignme
nt?name=411) a. 00000012
b. 00000000
Week 12 :
Programming c. 10011001
Assignment 5 d. 12211221
(/noc24_cs105
/progassignme Yes, the answer is correct.
Score: 1
nt?name=412)
Accepted Answers:
Quiz: Week b. 00000000
12:
Assignment
6) What should be the value of X and Y for the output of the below program to be 36? 1 point
12
(assessment?
name=445)
Week 12 :
Assignment
Solution (unit?
unit=106&less
on=449)
Books ()
Text
a. X = 6 and Y = 5
Transcripts
() b. X = 2 and Y = 7
c. X = 1 and Y = 10
d. X = 4 and Y = 5
7) Which of the following options correctly initializes the elements of the numbers array 1 point
with values 1, 2, 3, 4, and 5?
a.
b.
https://onlinecourses.nptel.ac.in/noc24_cs105/unit?unit=106&assessment=445 3/5
13/11/2024, 15:28 Programming in Java - - Unit 15 - Week 12 :
c.
d.
8) Which of the following statements are correct and would NOT cause a compilation 1 point
error?
a. iii, iv, v, vi
b. i, ii, iii, iv
c. ii, iii, v, vi
d. i, ii, iv, vi
a. true false
b. false true
c. true true
d. false false
https://onlinecourses.nptel.ac.in/noc24_cs105/unit?unit=106&assessment=445 4/5
13/11/2024, 15:28 Programming in Java - - Unit 15 - Week 12 :
a. Compilation ERROR
b. “Finally block executed”
c. “Arithmetic exception occurred Finally block executed”
d. Runtime ERROR
Yes, the answer is correct.
Score: 1
Accepted Answers:
c. “Arithmetic exception occurred Finally block executed”
https://onlinecourses.nptel.ac.in/noc24_cs105/unit?unit=106&assessment=445 5/5