NPTEL PROGRAMMING IN JAVA Assignment 1 Answers 2022

  • by
NPTEL PROGRAMMING IN JAVA Assignment 1

NPTEL Programming in Java ASSIGNMENT 1 Answers:- Hello students in this article we are going to share NPTEL Programming in Java assignment week 1 answers. All the Answers provided below to help the students as a reference, You must submit your assignment at your own knowledge.

About Programming in Java Course:-

With the growth of Information and Communication Technology, there is a need to develop large and complex software. Further, those 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.

Criteria to get Certificate:-

This course is a week 12 course the best of 8 out 12 assignments marks will be calculated for final result.

Below are mentioned criteria for final result

Average assignment score = 25% of 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 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.

Below you can find NPTEL Programming in Java Assignment 1 Answers

Assignment No.Answers
Programming in Java Assignment 1 Click Here
Programming in Java Assignment 2 Click Here
Programming in Java Assignment 3 Click Here
Programming in Java Assignment 4 Click Here
Programming in Java Assignment 5 Click Here
Programming in Java Assignment 6 Click Here
Programming in Java Assignment 7 Click Here
Programming in Java Assignment 8 Click Here

NPTEL Programming in Java Assignment 1 Answers 2022:-

Q1. What of the following can be used for a variable name in java?

  1. Byte
  2. Throw
  3. This
  4. Extend

ANSWER:- A

Q2. A platform is the hardware or software environment in which a program runs. Which of the following is/are  java  platform component?

  1. HTML
  2. Java Virtual Machine
  3. Java application programming interface(API)
  4. HotJava

ANSWER:- B

Q3. What is the value returned by the method f()  define below?

Public static int f(int x, int y) {return (x>y) ? y: x; }

  1. The sum of x and y that is,  x + y.
  2. Thee difference of x and y that is,  x-y.
  3. The maximum of x and y that is,the large r value of x and y
  4. The minimum of x and y that is, the smaller r value of x and y

ANSWER:- D

Q4. A java file with extension ‘.class’ contains

  1.  Java source code
  2. HTML tags
  3. Java byte code
  4. A program file written in java programming language

ANSWER:- A

Q5. Which of the following is used to find and fix bus in the Java programs?

  1. JVM
  2. JRE
  3. JDK
  4. JDB

ANSWER:- D

Next Week Assignment Answers

quizxp telegram

Q6. What will be the output of the program if it is executed?

What will be the output of the program if it is executed?

  1. 15
  2. 12
  3. 14
  4. 10

ANSWER:- A

Q7. Following is a piece of code where some part of the statement is missing :

In the following , some option are given. You have to choose the correct option for the argument in system.out.print() function to print the first and the  last but one characters in the array nptel.

  1. nptel[nptel.length-2] + nptel[0]
  2. nptel[0] + nptel[nptel.length-2]
  3. “” +  nptel[nptel.length-2] + nptel[0]
  4. “” + nptel[0] + nptel[nptel.length-2]

ANSWER:- D

Q8. Consider the following program .

What will be the output of the program if it is executed?

  1.  Print first six even numbers.
  2.  Print first six odd  numbers.
  3. Print first five even number.
  4. Print first six Fibonacci numbers.

ANSWER:-

Q9. Int N = Integer.parseInt (args[])

  1. 5
  2. 20
  3. 8
  4. 10

ANSWER:-

Q10.Consider the following   program.

  1.   Print the value of N!
  2. Print the value of N(N+1)/2
  3. Print the value of 1*3*3*…………..* N
  4. Print the value of 1!*2!*3!*……………*N!

ANSWER:-

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 [email protected]

If you found this article Interesting and helpful, don’t forget to share it with your friends to get this information.