Programming In Java | Week 1

Session: JAN-APR 2024

Course name: Programming In Java

Course Link: Click Here

For answers or latest updates join our telegram channel: Click here to join

These are NPTEL Programming In Java Week 1 Assignment 1 Answers

Q1. What is the primary focus of Java programming? a. Low-level optimizations b. Hardware-specific operations c. Platform independence d. Assembly language programming

Answer: c. Platform independence

Q2. Which of the following programming principles is a key aspect of Java? a. Code obfuscation b. Platform dependence c. Object-oriented programming d. Global variables

Answer: c. Object-oriented programming

Q3. What is the last step in the Java programming process? a. Java Program Execution b. Java Program Editing c. Java Program Compilation d. C/C++ versus Java

Answer: a. Java Program Execution

Q4. Which of the following is NOT a Java programming tool? a. Eclipse b. NetBeans c. IntelliJ IDEA d. GCC

Answer: d. GCC

Q5. What does the term “Write Once, Run Anywhere” (WORA) imply in Java? a. Code reusability b. Platform independence c. Cross-compilation d. Dynamic typing

Answer: b. Platform independence

Q6. In Java, what is used to store multiple values of the same type? a. Structures b. Pointers c. Arrays d. Lists

Answer: c. Arrays

Q7. Which of the following is a valid identifier in Java? a. 123identifier b. _identifier c. #identifier d. identifier-123

Answer: b. _identifier

Q8. What is the purpose of Java Language Subset? a. To limit the capabilities of Java b. To make Java code compatible with other languages c. To define a smaller set of Java features for specific purposes d. To enhance the performance of Java programs

Answer: c. To define a smaller set of Java features for specific purposes

Q9. What is the primary purpose of the Java Virtual Machine (JVM) in the Java programming language? a. Code optimization b. Platform independence c. Memory management d. Hardware-specific operations

Q10. What is emphasized during the Java Program Editing phase? a. Writing platform-specific code b. Debugging the program c. Compiling the program d. Writing and modifying the source code

Answer: d. Writing and modifying the source code

More Weeks of Programming In Java: Click here

More Nptel Courses: https://progiez.com/nptel-assignment-answers

Session: JULY-DEC 2023

Course Name: Programming In Java

Programming Assignment

Question 1 Complete the code segment to find the perimeter and area of a circle given a value of radius. You should use Math.PI constant in your program. If radius is zero or less than zero then print ” please enter non zero positive number “.

Question 2 Complete the code segment to find the largest among three numbers x,y, and z. You should use if-then-else construct in Java.

Question 3 Consider First n even numbers starting from zero(0).Complete the code segment to calculate sum of all the numbers divisible by 3 from 0 to n. Print the sum. Example: Input: n = 5 ——- 0 2 4 6 8 Even number divisible by 3:0 6 sum:6

Question 4 Complete the code segment to check whether the number is an Armstrong number or not. Armstrong Number: A positive number is called an Armstrong number if it is equal to the sum of cubes of its digits for example 153 = 1 3 +5 3 +3 3 , 370, 371, 407, etc.

Question 5 Complete the code segment to help Ragav , find the highest mark and average mark secured by him in “s” number of subjects.

More Nptel Courses: Click here

Session: JAN-APR 2023

Course Name: NPTEL Programming In Java Assignment

Week 2: Click Here

Q1) 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: c. Bytecode is not portable and it needs to be compiled separately for each platform.

Q2) 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: d. Print nothing

Q3) Which one of the following is not a primitive datatype? a. byte b. short c. class d. long

Answer: c. class

Q4) Which of the following is not a keyword in java? a. final b. super c. integer d. extend

Answer: c, d

Q5) 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: b. 15-odd-1

Q6) 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: a. Path is not set for java

Q7) 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: a, b

Q8) Which of the following concept that Java doesn’t support? a. inheritance b. serialization c. goto d. array

Answer: c. goto

Q9) The subsystem of JVM that is used to load class files is known as ______. a. Classloader b. JRE c. JDK d. Compiler

Answer: a. Classloader

Q10) 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: a. 6

Assignment Solution

Complete the code segment to help Ragav , find the highest mark and average mark secured by him in “s” number of subjects.

Consider First n even numbers starting from zero(0).Complete the code segment to calculate sum of all the numbers divisible by 3 from 0 to n. Print the sum. Example: Input: n = 5 ——- 0 2 4 6 8 Even number divisible by 3:0 6 sum:6

Complete the code segment to find the perimeter and area of a circle given a value of radius. You should use Math.PI constant in your program. If radius is zero or less than zero then print ” please enter non zero positive number “.

Complete the code segment to check whether the number is an Armstrong number or not. Armstrong Number: A positive number is called an Armstrong number if it is equal to the sum of cubes of its digits for example 153 = 1 3 +5 3 +3 3 , 370, 371, 407, etc.

Complete the code segment to find the largest among three numbers x,y, and z. You should use if-then-else construct in Java.

Session: JULY-DEC 2022

1. What of the following can be used for a variable name in java? a. Byte b. Throw c. This d. Extend

2. A platform is the hardware or software environment in which a program runs. Which of the following is/are java platform component? a. HTML b. Java Virtual Machine c. Java application programming interface(API) d. HotJava

3. What is the value returned by the method f() define below? Public static int f(int x, int y) {return (x>y) ? y: x; }

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

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

  • Java source code
  • Java byte code
  • A program file written in java programming language

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

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

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

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

  • nptel[nptel.length-2] + nptel[0]
  • nptel[0] + nptel[nptel.length-2]
  • “” + nptel[nptel.length-2] + nptel[0]
  • “” + nptel[0] + nptel[nptel.length-2]

8. Consider the following program .

  • Print first six even numbers.
  • Print first six odd numbers.
  • Print first five even number.
  • Print first six Fibonacci numbers.

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

10. Consider the following program.

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

Programming Assignment Answers

Q1. Complete the code segment to find the perimeter and area of a circle given a value of radius.

You should use Math.PI constant in your program. If radius is zero or less than zero then print ” please enter non zero positive number “.

Q2. Complete the code segment to find the largest among three numbers x,y, and z. You should use if-then-else construct in Java.

Q3. Consider First n even numbers starting from zero(0). Complete the code segment to calculate sum of all the numbers divisible by 3 from 0 to n. Print the sum.

4. Complete the code segment to check whether the number is an Armstrong number or not.

Q5. Complete the code segment to help Ragav , find the highest mark and average mark secured by him in “s” number of subjects.

* The material and content uploaded on this website are for general information and reference purposes only. Please do it by your own first. COPYING MATERIALS IS STRICTLY PROHIBITED.

MORE NPTEL ANSWERS: CLICK HERE

These are NPTEL Programming In Java Week 1 Assignment 1 Answers

Spread the word.

Share the link on social media.

Confirm Password *

Username or email *

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Sorry, you do not have permission to ask a question, You must login to ask a question.

SIKSHAPATH Logo

SIKSHAPATH Latest Articles

Solution revealed: nptel programming in java week 1 assignment 2023.

NPTEL Programming in Java Week 1 Quiz Answer

Are you enrolled in NPTEL’s programming in Java course and looking for help with the week 1 assignment?

Your solution is here in this article where I have provided probable answers for all 10 multiple choice questions.

Table of Contents

NPTEL Programming in Java Week 1 Assignment Answer

Q1. What is the incorrect statement about bytecode?

Answer: c. Bytecode is not portable and it needs to be compiled separately for each platform.

1000+ students have already discovered the power of instant notifications – don’t be the last to join in Telegram Channel.

Q2. Consider the following program

What is the output of the above code?

Answer: d. Print nothing

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

Answer: c. class

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

Answer: c. integer

Q5. Consider the following program.

Answer: b. 15-odd-1

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

Answer: a. Path is not set for java

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

Answer: a. nptel[nptel.length-2] + nptel[0]

b. nptel[0] + nptel [nptel.length-2]

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

Answer: c. goto

Q9. The subsystem of JVM that is used to load class files is known as ________.

Answer: a. Classloader

Q10. What is the value of total after executing the following code snippet?

Answer: a. 6

NPTEL Java Assignment Programming Answers

  • Complete the code segment to  help Ragav , find the highest mark and average mark secured by him in “s” number of subjects.

2. Consider First n even numbers starting from zero(0).Complete the code segment to  calculate sum of  all the numbers divisible by 3 from 0 to n. Print the sum.

3. Complete the code segment  to find the perimeter and area of a circle given a value of radius

4. Complete the code segment to  check whether the number is an Armstrong number or not.

5. Complete the code segment  to find the largest among three numbers x,y, and z. You should use if-then-else construct in Java.

Disclaimer:  I would like to offer these answers as a reference tool to assist students in their studies. It is important to note that Sikshapath cannot guarantee the accuracy of these answers and we strongly encourage students to complete their assignments independently. We hope that this reference material will be beneficial in supplementing the learning process.

NPTEL Java Week 2 Assignment Answers

Related Posts

NPTEL Cloud Computing Assignment 3 Answers 2023

NPTEL Cloud Computing Assignment 3 Answers 2023

NPTEL Problem Solving Through Programming In C Week 1 & 2 Assignment Answers 2023

NPTEL Problem Solving Through Programming In C Week 1 & ...

NPTEL Programming In Java Week 6 Assignment Answers 2023

NPTEL Programming In Java Week 6 Assignment Answers 2023

NPTEL Cloud Computing and Distributed Systems Assignment 6 Answers 2023

NPTEL Cloud Computing and Distributed Systems Assignment 6 Answers 2023

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

  • Amazon Quiz
  • Flipkart Quiz
  • Play & Win 50,000 Coins
  • Privacy Policy

Programming In Java Assignment 1 Answers 2022 | Week 1 Answers: QUIZXP

  • by QuizXp Team
  • January 23, 2022 February 22, 2022

Programming In Java Assignment 1

Are you looking for the Answers to NPTEL Programming In Java Assignment 1? This article will help you with the answer to the  Nation al Programme on Technology Enhanced Learning  ( NPTEL )  Course ” Programming In Java Assignment 1 “

What is Programming In Java?

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.

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.

Below you can find the answers for Programming In Java Assignment 1

Programming In Java Assignment 1 Answers:-

Q1. Complete the code segment to find the perimeter and area of a circle given a value of radius .

You should use Math.PI constant in your program. If radius is zero or less than zero then print ” please enter non zero positive number “.

Q2. Complete the code segment to find the largest among three numbers x,y, and z. You should use if-then-else construct in Java.

???? Next Week Answers: Assignment 02 ????

quizxp telegram

Q3. Consider First n even numbers starting from zero(0).Complete the code segment to  calculate sum of  all the numbers divisible by 3 from 0 to n. Print the sum.

Q4. Complete the code segment to check whether the number is an Armstrong number or not.

Armstrong Number: A positive number is called an Armstrong number if it is equal to the sum of cubes of its digits for example 153 = 1 3 +5 3 +3 3 , 370, 371, 407, etc.

Q5. Complete the code segment to  help Ragav , find the highest mark and average mark secured by him in “s” number of subjects.

For other courses answers:- Visit

For Internship and job updates:- Visit

x

NPTEL Programming In Java Week 1 Assignment Answers 2024

1. What is the primary focus of Java programming?

a. Low-level optimizations b. Hardware-specific operations c. Platform independence d. Assembly language programming

2. Which of the following programming principles is a key aspect of Java?

a. Code obfuscation b. Platform dependence c. Object-oriented programming d. Global variables

3. What is the last step in the Java programming process?

a. Java Program Execution b. Java Program Editing c. Java Program Compilation d. C/C++ versus Java

4. Which of the following is NOT a Java programming tool?

a. Eclipse b. NetBeans c. IntelliJ IDEA d. GCC

5. What does the term “Write Once, Run Anywhere” (WORA) imply in Java?

a. Code reusability b. Platform independence c. Cross-compilation d. Dynamic typing

6. In Java, what is used to store multiple values of the same type?

a. Structures b. Pointers c. Arrays d. Lists

7. Which of the following is a valid identifier in Java?

a. 123identifier b. _identifier c. #identifier d. identifier-123

8. What is the purpose of Java Language Subset?

a. To limit the capabilities of Java b. To make Java code compatible with other languages c. To define a smaller set of Java features for specific purposes d. To enhance the performance of Java programs

9. What is the primary purpose of the Java Virtual Machine (JVM) in the Java programming language?

a. Code optimization b. Platform independence c. Memory management d. Hardware-specific operations

10. What is emphasized during the Java Program Editing phase?

a. Writing platform-specific code b. Debugging the program c. Compiling the program d. Writing and modifying the source code

Search code, repositories, users, issues, pull requests...

Provide feedback.

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly.

To see all available qualifiers, see our documentation .

nptel-solutions

Here are 47 public repositories matching this topic..., kishanrajput23 / nptel-the-joy-of-computing-using-python.

Study materials related to this course.

  • Updated Oct 27, 2023

kishanrajput23 / NPTEL-Programming-In-java

  • Updated Apr 14, 2022

kadeep47 / NPTEL-Getting-Started-With-Competitive-Programming

[Aug - Oct 2023] Solutions for NPTEL Course Getting started with competitive programming weekly assignment.

  • Updated Sep 6, 2023

omunite215 / NPTEL-Programming-in-Java-Ultimate-Guide

I am sharing my journey of studying a course on Programming in Java taught by Prof.Debasis Samanta Sir IIT Kharagpur

  • Updated Dec 4, 2023

Md-Awaf / NPTEL-Course-Getting-started-with-Competitive-Programming

Solutions for NPTEL Course Getting started with competitive programming weekly assignment.

  • Updated Apr 20, 2023

rvutd / NPTEL-Joy-of-Computing-2020

Programming Assignment Solutions

  • Updated May 5, 2020

guru-shreyansh / NPTEL-Programming-in-Java

The sole intention behind this repository is to help the beginners in Java with the course contents.

  • Updated Aug 1, 2021

AdishiSood / The-Joy-of-Computing-using-Python

  • Updated Apr 28, 2021

gunjanmimo / NPTEL-The-Joy-of-Computing-using-Python

  • Updated Jan 26, 2020

avinashyadav16 / The-Joy-of-Computing-Using-Pyhton

12 Weeks long NPTEL Elective MOOC Course's codes, assignments and solutions.

  • Updated Oct 30, 2023
  • Jupyter Notebook

NPTEL-Course / Programming-Data-Structures-And-Algorithms-Using-Python

Nptel Course Solutions : Programming, Data Structures And Algorithms Using Python

  • Updated Nov 30, 2020

tdishant / NPTEL-Joy-of-Computing-Using-Python

Python code from week-3 to week-12 for the NPTEL course The Joy of Computing using Python

  • Updated Oct 26, 2021

TarunSehgal27 / NPTEL-JAVA-2020

this is a repo about the java program headed by Debasis Samantha during 2020

  • Updated Apr 23, 2020

gxuxhxm / NPTEL-The-Joy-of-Computing-using-Python

NPTEL-The-Joy-of-Computing-using-Python with NOTES and Weekly quizes Answers

  • Updated Dec 31, 2023

NPTEL-Course / Google-Cloud-Computing-Foundations

Nptel Course Solution : Google Cloud Computing Foundations

  • Updated Nov 19, 2020

Anmol-PROgrammar / SWAYAM-Programming_In_Java-NPTEL

This site contains the weekly( i.e. 1-9) questions and their solution of NPTEL-SWAYAM course "Programming in Java".

  • Updated Aug 19, 2021

lonebots / python-programming-joc-nptel

Python programming repository for NPTEL joy of computing course

  • Updated Dec 21, 2020

Gangaduraie / Introduction-to-IoT-and-Industry-4.0

NPTEL- Introduction to IoT and Industry 4.0

  • Updated Jan 27, 2024

CGreenP / NPTEL-Programming-Assignment-Road-Trips-and-Museums

NPTEL Programming Assignment: Road Trips and Museums.

  • Updated Mar 3, 2024

CGreenP / NPTEL-Programming-Assignment-T1-Q2

NPTEL Programming Assignment: T1-Q2

  • Updated Mar 7, 2024

Improve this page

Add a description, image, and links to the nptel-solutions topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the nptel-solutions topic, visit your repo's landing page and select "manage topics."

[July-Dec] NPTEL Programming In Java Assignment 1 Answers 2023

In this post, We have provided answers of NPTEL Programming in Java Assignment 1. We provided answers here only for reference. Plz, do your assignment at your own knowledge.

ALSO READ :- NPTEL Registration Steps [July – Dec 2022] NPTEL Exam Pattern Tips & Top Tricks [2022] NPTEL Exam Result 2022 | NPTEL Swayam Result Download

NPTEL Programming In Java Week 1 Assignment Answers 2023

1. Which of the following is NOT a primitive data type in Java??

a. int b. boolean c. S t ring d. char

2. Consider the following program.

[July-Dec] NPTEL Programming In Java Assignment 1 Answers 2023

What is the output of the above code?

a. 127 b. -127 c. 129 d. 2

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

a. inheritance b. en c apsulation c. pointer d. arrey

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

a. import b. super c. method d. class

5. Consider the following program.

[July-Dec] NPTEL Programming In Java Assignment 1 Answers 2023

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

a. 12 20 13 b. 12 20 15 c. 12 2 0 015 d. 12 20 F

6 . Match the following java terms with their descriptions?

[July-Dec] NPTEL Programming In Java Assignment 1 Answers 2023

a. A-1. B-2, C-3 b. A-2, B-3. C-1 c. A-3, B-2,C-1 d. A-3, B-1.C-2

7. Consider the following program.

[July-Dec] NPTEL Programming In Java Assignment 1 Answers 2023

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

a. 20 b. 2 C. Compiler error d. 40

8. What is the output of the following code?

[July-Dec] NPTEL Programming In Java Assignment 1 Answers 2023

a. null b. true c. false d. 1

9. Which pr o gram is used to compile Java source code into bytecode?

a. javap b. javac C. java d. javad

10. Consider the following program.

[July-Dec] NPTEL Programming In Java Assignment 1 Answers 2023

What will be the output of the program if it is executed? a. 50 b. 10 c. Com p iler error d. 5

NPTEL Programming In Java Week 1 Programming Assignment Answers

Complete the code segment  to find the perimeter and area of a circle given a value of radius .

1.You should use Math.PI constant in your program. If radius is zero or less than zero then print ” please enter non zero positive number “.

2. Complete the code segment to find the largest among three numbers x,y, and z. You should use if-then-else construct in Java.

3. Consider First n even numbers starting from zero(0).Complete the code segment to calculate sum of  all the numbers divisible by 3 from 0 to n. Print the sum.

Example: Input: n = 5 ——- 0 2 4 6 8 Even number divisible by 3:0 6 sum:6

4. Complete the code segment to  check whether the number is an Armstrong number or not.

Armstrong Number: A positive number is called an Armstrong number if it is equal to the sum of cubes of its digits for example 153 = 1 3 +5 3 +3 3 , 370, 371, 407, etc.

5. Complete the code segment to  help Ragav , find the highest mark and average mark secured by him in “s” number of subjects.

NPTEL Programming In Java Assignment 1 Answers 2022 [July-Dec]

1. Consider the following program. What will be the output of the program if it is executed? a. 15 b. 12 C. 14 d. 10

2. Following is a piece of code where some parts of a statement is missing: a. nptel[nptel.length-2] + nptel[0] b. nptel[O] + nptel[nptel.length-2] c. +nptel[nptel.length-2] + nptel[0] d. +nptel[0] + nptel[nptel.length-2]

3. Consider the following program. What will be the output of the progran if it is executed? a. Print the value of N! b. Print the value of NN+1)/2 c. Print the value of 1x3x5x.. xN d. Print the value of 1!x2!x3!x…xN!

4. Which of the following can be used for a variable name in Java? a. byte b. throw c. this d. extend

5. Consider the following program. What will be the output of the program if it is executed? Let N=10 a. 5 b. 20 C. 8 d. 10

6. A platform is the hardware or software environment in which a program runs. Which of the following is/are Java platform component(s)? a. HTML b. Java Virtual Machine c. Java Application Programming Interface (API) d. HotJava

7. What is the value returned by the method f() defined below ? public static int f (int x, int y) {return (x>y) ? y: x;} a. The sum of x and y that is, x + y. b. The difference of x and y that is, x – y. c. a. The maxinmum ofx and y that is, the larger value of x and y. d. The minimum ofx and y that is, the smaller value of x and y.

8. A Java file with extension ‘.class’ contains a. Java source code b. HTML tags c. Java Byte code d. A program file written in Java programming language

9. Which of the following is used to find and fix bugs in the Java programs? a. VM b. JRE C. JDK d. JDB

10. Consider the following   program. What will be the output of the program if it is executed? a. Print first six even numbers. b. Print first six odd numbers. C. Print first five even numbers. d. Print first six Fibonacci numbers

Programming In Java Week 1 Programming Assignment Answers

Q1. Complete the code segment to find the perimeter and area of a circle given a value of radius. You should use Math.PI constant in your program. If radius is zero or less than zero then print ” please enter non zero positive number “ Code:-

Q2. Complete the code segment  to find the largest among three numbers x,y, and z. You should use if-then-else construct in Java. Code:-

Q3. Consider First n even numbers starting from zero(0). Complete the code segment to  calculate sum of  all the numbers divisible by 3 from 0 to n. Print the sum. Code:-

Q4. Complete the code segment to  check whether the number is an Armstrong number or not. Code:-

Q5. Complete the code segment to  help Ragav , find the highest mark and average mark secured by him in “s” number of subjects. Code:-

For More NPTEL Answers:-  CLICK HERE

Join Our Telegram:-  CLICK HERE

About Programming In Java

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 LAYOUT

  • 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

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.

5 thoughts on “[July-Dec] NPTEL Programming In Java Assignment 1 Answers 2023”

Please post the answer of week 2

ok Sure it will be added soon

Also thank you for Posting answers 🌝❤️

Most Welcome

can u please post the ans of statistical learning and eleability analysis

Leave a Comment Cancel reply

You must be logged in to post a comment.

[Week 1] NPTEL Programming In Java Assignment Answers 2024

Nptel programming in java week 1 assignment answers.

1. What is the primary focus of Java programming?

a. Low-level optimizations b. Hardware-specific operations c. Platform independence d. Assembly language programming

2. Which of the following programming principles is a key aspect of Java?

a. Code obfuscation b. Platform dependence c. Object-oriented programming d. Global variables

3. What is the last step in the Java programming process?

a. Java Program Execution b. Java Program Editing c. Java Program Compilation d. C/C++ versus Java

4. Which of the following is NOT a Java programming tool?

a. Eclipse b. NetBeans c. IntelliJ IDEA d. GCC

5. What does the term “Write Once, Run Anywhere” (WORA) imply in Java?

a. Code reusability b. Platform independence c. Cross-compilation d. Dynamic typing

6. In Java, what is used to store multiple values of the same type?

a. Structures b. Pointers c. Arrays d. Lists

7. Which of the following is a valid identifier in Java?

a. 123identifier b. _identifier c. #identifier d. identifier-123

8. What is the purpose of Java Language Subset?

a. To limit the capabilities of Java b. To make Java code compatible with other languages c. To define a smaller set of Java features for specific purposes d. To enhance the performance of Java programs

9. What is the primary purpose of the Java Virtual Machine (JVM) in the Java programming language?

a. Code optimization b. Platform independence c. Memory management d. Hardware-specific operations

10. What is emphasized during the Java Program Editing phase?

a. Writing platform-specific code b. Debugging the program c. Compiling the program d. Writing and modifying the source code

Share your love

Related posts.

NPTEL Soft Skills Week 1 Assignment Answers 2023

[Week 1-11] NPTEL Soft Skills Assignment Answers 2023

[week 1] nptel cloud computing and distributed systems assignment answers 2024.

NPTEL Cyber Security and Privacy Assignment Answers 2023

[Week 1-12] NPTEL Cyber Security and Privacy Assignment Answers 2023

[week 1] nptel introduction to industry 4.0 and industrial internet of things assignment answers 2024.

NPTEL Introduction To Internet Of Things Assignment Answers

[Week 1] NPTEL Introduction To Internet Of Things Assignment Answers 2024

NPTEL Public Speaking Circuits Assignment Answers 2023

[Week 10] NPTEL Public Speaking Assignment Answers 2023

Leave a comment cancel reply.

Your email address will not be published. Required fields are marked *

Save my name, email, and website in this browser for the next time I comment.

Beginner's Byte

  • NPTEL Swayam
  • _Programming in Java

NPTEL - Programming In Java -Week 01 : Assignment 01

Week 01 : assignment 01.

If There is any changes in Answers  Please mention in comments before -  2024-02-07, 23:59 IST

Due date: 2024-02-07, 23:59 IST.

What is the primary focus of Java programming?

 c. Platform independence

Which of the following programming principles is a key aspect of Java?

 c. Object-oriented programming

What is the last step in the Java programming process?

 a. Java Program Execution

Which of the following is NOT a Java programming tool?

 d. GCC

What does the term "Write Once, Run Anywhere" (WORA) imply in Java?

 b. Platform independence

In Java, what is used to store multiple values of the same type?

 c. Arrays

Which of the following is a valid identifier in Java?

 b. _identifier

What is the purpose of Java Language Subset?

 c. To define a smaller set of Java features for specific purposes

What is the primary purpose of the Java Virtual Machine (JVM) in the Java programming language?

What is emphasized during the Java Program Editing phase?

 d. Writing and modifying the source code

If There is any changes in Answers 

Please mention in comments before -  2024-02-07, 23:59 IST

Post a Comment

Contact form.

' src=

  • All Courses
  • Privacy Policy

' src=

Swayam Solver

Learn Programming & Prepare for NPTEL Exams... Swayam Solver is your one-stop destination for NPTEL exam preparation.

NPTEL Programming in Java Jan 2024 Week 9 to 10

   Please scroll down for latest Programs.  👇 

Week 9 : Programming Assignment 1

Week 9 : programming assignment 2.

Complete the code segment to catch the exception in the following, if any.

On the occurrence of such an exception, your program should print

§  Please enter valid data

If there is no such exception, it will print the square of the number entered.

Week 9 : Programming Assignment 3

The program given below stores characters in a  byte  array named byte_array, which means ‘A’ is stored as 65.

Your task is the following:

§     Given a user input `n`, print the output in the given format, if `n` = 1,  print:

o     byte_array[1] = ‘P’

§   If the value of n is negative or is out of bound, then use  TRY_CATCH  to print the following:

o     Array index is out of range

Week 9 : Programming Assignment 4

Define a class  Point  with members

§   private double x;

§   private double y;

and methods:

§   public Point(double x, double y){}  // Constructor to create a new point?

§   public double distance(Point p2){} // Function to return the distance of this Point from another Point

Week 9 : Programming Assignment 5

Complete the code below with a catch statement to print the following if the denominator (b) is zero

§   Cannot Divide by ZERO

Week 10 : Programming Assignment 1

Week 10 : programming assignment 2, week 10 : programming assignment 3.

  • The  PrintNumbers  class is declared, and it implements the  Runnable  interface. This interface is part of Java's concurrency support and is used to represent a task that can be executed concurrently by a thread.
  • Create a constructor of this class that takes two private instance variables (start and end) to represent the range of numbers that will be printed by the thread.
  • Create a  run  method that is required by the Runnable interface and contains the code that will be executed when the thread is started. In this case, it should prints odd numbers within the specified range (start to end) using a for loop.
  • Hints : Thread.currentThread().getName() returns the name of the currently executing thread, which is useful for identifying which thread is printing the numbers.

Week 10 : Programming Assignment 4

Week 10 : programming assignment 5.

  • Use exception handling to handle invalid input temperatures (if  celsius < -273.15 and fahrenheit < -459.67 , program should throw exception error).
  • The  TemperatureConverter  class contains two methods for temperature conversion (celsiusToFahrenheit and fahrenheitToCelsius).
  • The  TemperatureException  class is a custom exception class that extends Exception and is used to handle invalid temperatures.
  • The  TemperatureConverterApp  class is the main class that takes user input for temperatures and handles potential exceptions during the conversion process.
  • celsiusToFahrenheit = (celsius * 9 / 5) + 32
  • fahrenheitToCelsius = (fahrenheit - 32) * 5 / 9

No comments:

Post a comment.

Keep your comments reader friendly. Be civil and respectful. No self-promotion or spam. Stick to the topic. Questions welcome.

AnswerGPT Logo

If You Are Facing Any Problem In Payment Then Email On : [email protected]

[week 1-12] nptel programming in java assignment answers 2024.

programming in java week 1 assignment answers

About Course

This Course will provide you the access for All 12 Weeks Assignment Answers of  NPTEL   Programming In Java. We have uploaded all Answers of Week 10.

Note: Our Answers will be visible for only those who will buy this plan. Buy this plan if you have not bought yet.

Course Content

Week 1 answers, week 1 assignment answers, week 2 answers, week 2 assignment answers 2024, week 3 answers, week 3 assignment answers 2024, week 4 answers, week 4 assignment answers 2024, week 5 answers, week 5 quiz assignment answers 2024, week 6 answers, week 6 quiz assignment answers 2024, week 6 programming assignment answers, week 7 answers, week 7 quiz assignment answers 2024, week 7 programming assignment answers 2024, week 8 answers, week 8 assignment answers 2024, week 8 programming assignment answers, week 9 answers, week 9 assignment answers 2024, week 10 answers, week 10 assignment answers 2024, week 11 answers, week 11 assignment answers 2024, student ratings & reviews.

gungun babu

Want to receive push notifications for all major on-site activities?

Insert/edit link

Enter the destination URL

Or link to existing content

IMAGES

  1. NPTEL Programming In Java WEEK 1 Programming Assignment Solutions

    programming in java week 1 assignment answers

  2. NPTEL Programming in Java Week 1 Assignment Solutions |@OPEducore

    programming in java week 1 assignment answers

  3. NPTEL PROGRAMMING IN JAVA WEEK 1 ASSIGNMENT ANSWERS

    programming in java week 1 assignment answers

  4. NPTEL PROGRAMMING IN JAVA WEEK 1 ASSIGNMENT ANSWERS

    programming in java week 1 assignment answers

  5. NPTEL Programming In Java Week 1 Assignment 1 Answers Solution Quiz

    programming in java week 1 assignment answers

  6. NPTEL Programming in Java week 1 all 5 programming assignment answer

    programming in java week 1 assignment answers

VIDEO

  1. NPTEL Programming In Java WEEK 1 Quiz Assignment Solutions💡

  2. NPTEL Programming In Java WEEK2 Quiz Assignment Solutions💡

  3. NPTEL Programming In Java: Week 1 Assignment 1 Solution June 2023

  4. NPTEL Programming In Java WEEK11 Quiz Assignment Solutions💡

  5. Java Programming 1

  6. NPTEL Programming In Java Week 3 Programming Assignment Answers Solution

COMMENTS

  1. NPTEL Programming In Java Week 1 Assignment 1 Answers

    These are NPTEL Programming In Java Week 1 Assignment 1 Answers. Question 3. Complete the code segment to find the perimeter and area of a circle given a value of radius. You should use Math.PI constant in your program. If radius is zero or less than zero then print " please enter non zero positive number ". Solution:

  2. Programming in Java

    Answers COMING SOON! Kindly Wait! Week 1: Overview of Object-Oriented Programming and Java. Programming Assignment. Week 2: Java Programming Elements. Programming Assignment. Week 3: Input-Output Handling in Java. Programming Assignment. Week 4: Encapsulation.

  3. NPTEL Week 1 Assignment: Programming in JAVA July 2023

    Welcome to the NPTEL Week 1 Assignment for the Programming in JAVA course in July 2023! This comprehensive video tutorial will guide you through the fundamen...

  4. NPTEL Programming in Java Week 1 Assignment Answer

    NPTEL Programming in Java Week 1 Assignment Answer. Q1. What is the incorrect statement about bytecode? Answer: c. Bytecode is not portable and it needs to be compiled separately for each platform. 1000+ students have already discovered the power of instant notifications - don't be the last to join in Telegram Channel.

  5. NPTEL Programming In Java WEEK 1 Programming Assignment Solutions

    🔊 Programming In Java NPTEL Elective Course 2023 | https://techiestalk.in/NPTEL Programming In Java WEEK 1 Programming Assignment Solutions | Swayam July 20...

  6. Programming in Java

    Programming in Java NPTEL Week 1 Assignment 1 Solutions. Complete the code segment to find the perimeter and area of a circle given a value of radius.. You should use Math.PI constant in your program. If radius is zero or less than zero then print " please enter non zero positive number ".

  7. Programming In Java Assignment 1 Answers 2022

    Programming In Java Assignment 1 Answers:-. Q1. Complete the code segment to find the perimeter and area of a circle given a value of radius. You should use Math.PI constant in your program. If radius is zero or less than zero then print " please enter non zero positive number ". Code:-.

  8. Programming In Java

    New name of thread 't2':Week 6 Assignment Q5 New----- Exercise6_4 - Execution of two or more threads occurs in a random order. The keyword 'synchronized' in Java is used to control the execution of thread .., Exercise6_5 - In the following program, a thread class Question62 is created using the Runnable interface Complete the main() to create a ...

  9. PDF Assignment 1

    02/07/2020 Programming in Java - - Unit 3 - Week 1 : https://onlinecourses.nptel.ac.in/noc20_cs08/unit?unit=2&assessment=93 2/5 Week 2 : Week 3 : Week 4 :

  10. PDF Java Week 1:Q2

    02/07/2020 Programming in Java - Course https://onlinecourses.nptel.ac.in/noc20_cs08/progassignment?name=102 3/3 Assignment Solution Books Live Interactive

  11. NPTEL Programming In Java Week 1 Assignment 1 Answers ...

    Join our Telegram Channel : https://telegram.me/SwayamSolverNPTEL - Programming in Java :https://telegram.me/ProgrammingInJavaNPTELLink of Code :-https://you...

  12. NPTEL Programming In Java Week 1 Assignment Answers 2024

    NPTEL Programming In Java Week 1 Assignment Answers 2024. 1. What is the primary focus of Java programming? a. Low-level optimizations. b. Hardware-specific operations. d. Assembly language programming.

  13. Java Programming

    Chapter 15: At Quizlet, we're giving you the tools you need to take on any subject without having to carry around solutions manuals or printing out PDFs! Now, with expert-verified solutions from Java Programming 9th Edition, you'll learn how to solve your toughest homework problems. Our resource for Java Programming includes answers to ...

  14. nptel-solutions · GitHub Topics · GitHub

    I am sharing my journey of studying a course on Programming in Java taught by Prof.Debasis Samanta Sir IIT Kharagpur . ... Solutions for NPTEL Course Getting started with competitive programming weekly assignment. ... Python code from week-3 to week-12 for the NPTEL course The Joy of Computing using Python.

  15. [July-Dec] NPTEL Programming In Java Assignment 1 Answers 2023

    Programming In Java Week 1 Programming Assignment Answers. Q1. Complete the code segment to find the perimeter and area of a circle given a value of radius. You should use Math.PI constant in your program. If radius is zero or less than zero then print " please enter non zero positive number ". Code:-.

  16. NPTEL Programming In Java Week 8 Assignment Answers 2024

    Programming Assignment Solutions. Question: 1 Write a program which will print a pyramid of "*" 's of height "n" and print the number of "*" 's in the pyramid. Answer: Click here to view Answer. These are NPTEL Programming In Java Week 8 Assignment 8 Answers. Question: 2 Write a program which will print a pascal pyramid of ...

  17. Coursera: Introduction to Object-Oriented Programming with Java by

    Coursera: Core Java Specialization | LEARNQUESTCourse 2 - Introduction to Object-Oriented Programming with JavaWeek 1 - Practice Quiz 1 ...

  18. [Week 1] NPTEL Programming In Java Assignment Answers 2024

    NPTEL Programming In Java Week 1 Assignment Answers. 1. What is the primary focus of Java programming? a. Low-level optimizations. b. Hardware-specific operations. d.

  19. NPTEL

    d. Writing and modifying the source code. If There is any changes in Answers. Please mention in comments before - 2024-02-07, 23:59 IST. Week 01 : Assignment 01 If There is any changes in Answers Please mention in comments before - 2024-02-07, 23:59 IST Due date: 2024-02-07...

  20. Swayam Solver: NPTEL Programming in Java Jan 2024 Week 9 to 10

    Write a Java program that utilizes multithreading to calculate and print the squares of numbers from a specified begin to a specified end. ... Week 10 : Programming Assignment 1. Due on 2024-04-04, 23:59 IST. Program to sort the elements of an array in ascending order. Follow the naming convention as given in the main method of the suffix code.

  21. [Week 1-12] NPTEL Programming In Java Assignment Answers 2024

    About Course. This Course will provide you the access for All 12 Weeks Assignment Answers of NPTEL Programming In Java. We have uploaded all Answers of Week 9. Note: Our Answers will be visible for only those who will buy this plan. Buy this plan if you have not bought yet.

  22. Programming In Java

    Programming In Java | Week 1 Answers 2024 | NPTEL | SWAYAMYour Queries : programming in java week- 0 assignment answersprogramming in java week 0 answersprog...

  23. Programming in Java|| NPTEL WEEK-11 Assignment Answers 2024

    Guys!!!For Exam preparation PDF MCQs, mail us at:[email protected]=====300 MCQS===== 1) 300/-(access ...

  24. nptel introduction to programming in java programming assignment answer

    here is, nptel introduction to programming in java programming assignment answer week 10 2024Welcome to NPTEL's Introduction to Programming in Java Week 10 A...