NPTEL Programming in Java Week 1 Answers 2023

Hey Students, In this Post, you will find NPTEL Programming in Java Week 1 Assignment 1 Answers 2023. All the Answers are provided below to help the students. First try to solve the questions by yourself. If you find any difficulty, then look for the solutions.

For Answers:

CLICK HERE
NPTEL Programming in Java Week 1 Answers 2023
NPTEL Programming in Java Week 1 Answers 2023

NPTEL Programming in Java Week 1 Answers 2023:

Q.1. What is the incorrect statement about bytecode?

  • a. Java when compiles the source code, it converts it to bytecode.
  • b. JVM (Java Virtual Machine) is an interpreter of bytecode.
  • c. Bytecode is not portable and it needs to be compiled separately for each platform.
  • d. JVM offers a protected environment which helps in enhanced safety for the system.

Answer: CLICK HERE

Q.2. Consider the following program

What is the output of the above code?

  • a. a
  • b. Compiler error due to line n1
  • c. Compiler error due to line n2
  • d. Print nothing

Answer: CLICK HERE

Q.3. Which one of the following is not a primitive datatype?

  • a. byte
  • b. short
  • c. class
  • d. long

Answer: CLICK HERE

Q.4. Which of the following is not a keyword in java?

  • a. final
  • b. super
  • c. integer
  • d. extend

Answer: CLICK HERE

Q.5. Consider the following program What will be the output of the program if it is executed?

  • a. 15-even-1
  • b. 15-odd-1
  • c. 15-even-
  • d. 15-odd-

Answer: CLICK HERE

Q.6. Why does the error “javac is not recognized as an internal or external command” occur?

  • a. Path is not set for java
  • b. JDK is not correctly installed
  • c. .class file is not found
  • d. javac jar is missing from java library

Answer: CLICK HERE

Q.7. Following is a piece of code where some parts of a statement is missing: In the following, some options are given. You have to choose the correct option(s) for the argument in System.out.print() function to print the value 102.

  • a. nptel[nptel.length-2] + nptel[0]
  • b. nptel[0] + nptel[nptel.length-2]
  • c. “” + nptel[nptel.length-2] + nptel[0]
  • d. “” + nptel[0] + nptel[nptel.length-2]

Answer: CLICK HERE

NPTEL Programming in Java Week 1 Answers👇
CLICK HERE

Q.8. Which of the following concept that Java doesn’t support?

  • a. inheritance
  • b. serialization
  • c. goto
  • d. array

Answer: CLICK HERE

Q.9. The subsystem of JVM that is used to load class files is known as __.

  • a. Classloader
  • b. JRE
  • c. JDK
  • d. Compiler

Answer: CLICK HERE

Q.10. What is the value of total after executing the following code snippet? int mark = 5; int grace = 2; int total = mark + (mark > 6 ? ++grace : –grace);

  • a. 6
  • b. 5
  • c. 4
  • d. 3

Answer: CLICK HERE

Disclaimer: This answer is provided by us only for discussion purpose if any answer will be getting wrong don’t blame us. If any doubt or suggestions regarding any question kindly comment. The solution is provided by freshersworkjob. This tutorial is only for Discussion and Learning purpose.

About NPTEL 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. Now, Java programming language is being used for mobile programming, Internet programming, and many other applications compatible to distributed systems. This course aims to cover the essential topics of Java programming so that the participants can improve their skills to cope with the current demand of IT industries and solve many problems in their own filed of studies. 

Course Outcome:
  • Week 1  :  Overview of Object-Oriented Programming and Java
  • Week 2  :  Java Programming Elements
  • Week 3  :  Input-Output Handling in Java
  • Week 4  :  Encapsulation
  • Week 5  :  Inheritance
  • Week 6  :  Exception Handling 
  • Week 7  :  Multithreaded Programming 
  • Week 8  :  Java Applets and Servlets 
  • Week 9  :  Java Swing and Abstract Windowing Toolkit (AWT)
  • Week 10 : Networking with Java
  • Week 11:  Java Object Database Connectivity (ODBC)
  • Week 12:  Interface and Packages for Software Development

If you have not registered for exam kindly register Through https://examform.nptel.ac.in/

CRITERIA TO GET A CERTIFICATE:

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.

Leave a Comment