Programming in Java Assignment 04 Answers | January 2022 | NPTEL | Week 04 | The Today Blog

5/5 - (1 vote)

Want to Know the Answers to NPTEL Programming in Java Assignment 04? 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: Programming in Java

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 Assignment 04 Answers

Question 01 of 10

Which of the following statement(s) is/are false?

A) The default package in the Java language is java.lang

B) String is a final class and it is present in the java lang package.

C) Runnable is a class present in the java lang package

D) Thread is a class present in the java lang package.

C) Runnable is a class present in the java lang package

Question 02 of 10

Which of the following statement(s) is/are false?

A. With the import statement, generally import only a single package member or an entire package.

B. To import all the types contained in a particular package, use the import statement with the asterisk (*) wildcard character. import package.*:

C. import package.A*: it used to match a subset of the classes in a package starts with “A”.

D. import package.A*: it generates compilation error.

C. import package.A*: it used to match a subset of the classes in a package starts with “A”.

Question 03 of 10

Which of the following is/are interface(s) of java. awt package?

A) CardLayout

B) Checkbox

C) Choice

D) MenuContainer

D. MenuContainer

Programming in Java Assignment 04 Answers

Question 04 of 10

Which of these access specifier(s) can be used for an interface?

A) Public

B) Private

C) Protected

D) Both b and c

A. Public

Question 05 of 10

Consider the program given below

What will be the output if the above program is executed?

A) It will give a compile-time error

B) It will give a run-time error

C) -1.0

D) 3.14

C) -1.0

Question 06 of 10

Which of the following packages is used to include utility classes like Calendar, Collections, and Date?

A) java.lang

B) java.util

C) java.net

D) java.awt

B) java.util

Programming in Java Assignment 04 Answers

Question 07 of 10

Consider the program given below

What will be the output if the above program is executed?

A) It will give a compile-time error

B) It will give a run-time error

C) JAVA

D) JAV

C. JAVA

Question 08 of 10

Which of the following is/are valid declaration(s) of an interface?

A) public interface Question {
void method (int value) {
System. out.println(“Nptel”);
}
}

B) public interface Question {
void method (int value) {
}
}

C) public interface Question {
}

D) public interface Question {
default void method(int value) {
System.out.println(“Nptel”);
}
}

B. public interface Question {
void method (int value) {
}
}

Question 09 of 10

Which of the following is a false statement about the interface in java?

A) An interface can extend other interfaces.

B) The interface body can contain abstract methods, default methods, and static methods.

C) All constant values defined in an interface are implicitly public, static, and final

D) A static method in an interface is implicitly private.

D) A static method in an interface is implicitly private.

Question 10 of 10

Which of the following statement(s) is/are false?

A) The default package in the Java language is java lang

B) String is a final class and it is present in the java lang package.

C) Cloneable is a class present in the java lang package

D) Thread is a class present in the java lang package.

C) Cloneable is a class present in the java lang package

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 04.

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:

Air Pollution and Control ASSIGNMENT 01 ANSWERS

WILDLIFE ECOLOGY ASSIGNMENT 12 ANSWERS

Compiler Design Assignment 01 Answers

PROGRAMMING IN JAVA ASSIGNMENT 01 ANSWERS

Don’t forget to share it with your friends.

Follow us on Instagram, Twitter, and Facebook also.

Follow me personally on Instagram and Twitter.

Leave a Comment