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

Rate this post

Want to Know the Answers to NPTEL PROGRAMMING IN JAVA ASSIGNMENT 02? 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 02 Answers

Question 01 of 10

What is the output of the following program?

public class main{

public static void main(String args[])
       char a= '8';
       int b=010; 
       System.out.printin(a+b);

          }

}

A) 88

B) 8010

C) 64

D) 810

The answer is – (C) 64

Question 02 of 10

Which of the following is generates API documentation in HTML format from Java Source code?

A) javac

B) Javadoc

C) javap

D) java

The answer is – (B) Javadoc

Question 03 of 10

Following is a program is given for this question.

What will be the output of the above program?

A) javanptel

B) npteljava

C) janjavanptel

D) jannpteljava

The answer is – (D) jannpteljava

Question 04 of 10

What will happen during the execution of the following code for the command line input?

Consider the following input on the command line and select the options with the correct output(s).

Input:

A: “Jan java nptel”

B. 123

A) A: jannptel
javanptel
nptelnptel

B) A: jan java nptel jan java nptel

C) B: 11
21
31

D) B: 1 2 3 1

The answer is – (B)

Programming In Java Assignment 02 Answers

Question 05 of 10

Which of the following is/are TRUE about print() and println() methods?

A) print () prints in a single line only and multiple lines cannot be printed in any way.

B) print () prints and then appends a line break.

C) println () prints in a single line only and multiple lines cannot be printed.

D) println() prints and then appends a line break.

The answer is – (D) println() prints and then appends a line break.

Question 06 of 10

What was the initial name of Java when it was first developed for embedded systems?

A) Green talk

B) Oak

C) Java

D) Javac

The answer is – (B) Oak

Question 07 of 10

Which of the following is a valid declaration of an object of the class, say, Foo?

A) Foo obj = new Foo;

B) obj = new Foo();

C) Foo obj = new Foo();

D) new Foo obj;

The answer is – (C) Foo obj = new Foo();

Programming In Java Assignment 02 Answers

Question 08 of 10

Following is a program given for this question.

What will be the output of the above program?

A) 0

B) 1

C) false

D) true

The answer is – (C) false

Question 09 of 10

Which of the following can be used to take input from users during the execution of a program?

A) Using the string array provided as a parameter to the main method.

B) getText() method can be used to get user input from the command line

C) Scanner class can be used by passing the predefined object System. in

D) Once the execution starts, there is no way to provide user input.

The answer is – (C) Scanner class can be used by passing the predefined object System. in

Question 10 of 10

What is the output of the following program?

A) 14

B) 12

C) 15

D) 17

The answer is – (D) 17

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

ASSIGNMENT 01 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 02.

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.

4 thoughts on “PROGRAMMING IN JAVA ASSIGNMENT 02 ANSWERS | WEEK 02 ANSWERS: The Today Blog”

Leave a Comment