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

Programming in Java - - Unit 15 - Week 12 _

The document outlines the Week 12 assignment for the Programming in Java course on NPTEL, detailing questions and accepted answers related to SQL commands, Java methods, and program outputs. It includes scores for each question, indicating correct answers and providing feedback on submissions. The assignment was due on October 16, 2024, and submissions were accepted until shortly after the deadline.

Uploaded by

kalidasji210
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

Programming in Java - - Unit 15 - Week 12 _

The document outlines the Week 12 assignment for the Programming in Java course on NPTEL, detailing questions and accepted answers related to SQL commands, Java methods, and program outputs. It includes scores for each question, indicating correct answers and providing feedback on submissions. The assignment was due on October 16, 2024, and submissions were accepted until shortly after the deadline.

Uploaded by

kalidasji210
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

13/11/2024, 15:28 Programming in Java - - Unit 15 - Week 12 :

(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 12: Assignment 12


outline The due date for submitting this assignment has passed.
Due on 2024-10-16, 23:59 IST.
About
NPTEL ()
Assignment submitted on 2024-10-16, 00:19 IST
How does an 1) Execution of the following SQL command 1 point
NPTEL
online
using JDBC program will return a ResultSet object. This object is:
course
work? () a. Same as the myTable.
b. All records in verbatim from the table.
Week 0 : ()
c. All records in verbatim from the table but those records with null values.
Week 1 : () d. All records in verbatim from the table but those records are not with null values.

Yes, the answer is correct.


Week 2 : () Score: 1
Accepted Answers:
Week 3 : () b. All records in verbatim from the table.

Week 4 : () 2) Which of the following method is used to set a frame, f with size 300 × 200 pixels? 1 point

Week 5 : ()

Week 6 : () a. f.setSize(300, 200)


b. f.setSize(200, 300)
Week 7 : ()
c. f.paint(300, 200)
d. f.setVisible(300, 200)
Week 8 : ()
Yes, the answer is correct.
Score: 1
Week 9 : ()
Accepted Answers:
a. f.setSize(300, 200)

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 10 : () 3) Consider the following program: 1 point

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

Yes, the answer is correct.


Score: 1
Accepted Answers:
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.

Yes, the answer is correct.


Score: 1
Accepted Answers:
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

Yes, the answer is correct.


Score: 1
Accepted Answers:
a. iii, iv, v, vi

9) What will be the output of this program? 1 point

a. true false
b. false true
c. true true
d. false false

Yes, the answer is correct.


Score: 1
Accepted Answers:
a. true 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 :

10) What will be the output of this program? 1 point

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

You might also like