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

Nptel programming in java week 2 assignment answers 2023.

NPTEL Programming in Java Week 2 Assignment Answers 2023

Excited for NPTEL’s Java programming week 2 quiz assignment answers?

Look no further! I’ve got you covered with probable answers for all 10 questions. Use these as a helpful guide in completing your assignment with confidence before the deadline.

Table of Contents

NPTEL Programming in Java Week 2 Assignment Answers

Q1. Following is a program given for this question.

What will be the output of the above program?

Answer: a. 22221010

1000+ subscribers getting help from instant notifications, Join us on telegram.

Q2. When an array is passed to a method, what value does the method receive?

Answer : a. Reference of the array.

Q3. Following is a program given for this question.

Answer: c. 30

Q4. How many bits are needed for float and double in Java, respectively?

Answer: a. 32 and 64

Q5. Which of the following is a valid automatic type conversion in Java?

Answer: d. int to long

Q6. Consider the following program and identify the output.

Answer: d. Compilation error

Q7. Which of the following is a valid declaration of an object of class say, Student?

Answer: b. Student obj = new Student();

Q8. What is the output of the following program?

Answer: c. 012

Q9. Consider the following piece of code.

Which of the following option is the output of the above program?

Answer: d. nptel

Q10. What is the output of the following program?

Programming Answers to Java Assignment

Q1. Complete the code segment to call the method  print()  of class School first  and then call print()  method of class Student .

Disclaimer: These answers are intended only as reference material. No guarantee of accuracy is made. It is strongly recommended to complete the assignment independently.

Also Available:

NPTEL Programming in Java Week 1 Assignment Answers

NPTEL Programming In Java Week 3 Assignment Answers

Related Posts

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

NPTEL Cloud Computing Assignment 5 Answers 2023

NPTEL Cloud Computing Assignment 5 Answers 2023

Navigation Menu

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 61 public repositories matching this topic..., kishanrajput23 / nptel-the-joy-of-computing-using-python.

Study materials related to this course.

  • Updated Oct 27, 2023

progiez / nptel-assignment-answers

NPTEL Assignment Answers and Solutions 2024 (July-Dec). Get Answers of Week 1 2 3 4 5 6 7 8 8 10 11 12 for all courses. This guide offers clear and accurate answers for your all assignments across various NPTEL courses

  • Updated Sep 18, 2024

kishanrajput23 / NPTEL-Programming-In-java

  • Updated Apr 14, 2022

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

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

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

  • Updated Jul 24, 2024

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

12 Weeks long NPTEL Elective MOOC Course's codes, assignments and solutions. If you want to contribute and keep it updated with the new content, then please fork and raise pull request.

  • Updated Oct 30, 2023
  • Jupyter Notebook

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

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

  • Updated Apr 20, 2023

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

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

  • Updated Jun 25, 2024

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

FarhaKousar1601 / Cloud_Computing_NPTEL_JULY-DEC_2024

The Cloud_Computing_NPTEL_JULY-DEC_2024 repository holds notes, assignments, and project materials for the NPTEL Cloud Computing course (July-Dec 2024). It covers cloud architecture, service models (IaaS, PaaS, SaaS), deployment models, virtualization, and practical resources to strengthen cloud infrastructure skills.

  • Updated Oct 31, 2024

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

  • Updated Jan 26, 2020

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

  • Updated Apr 28, 2021

iamrudhresh / NPTEL-JAVA-PROGRAMMING

Welcome to the NPTEL "Programming in Java" course repository! This repository hosts a comprehensive collection of programming assignments, quizzes, and test solutions for the NPTEL "Programming in Java" course offered in the years 2024, 2022, and 2020.

  • Updated Apr 18, 2024

NPTEL-Course / Google-Cloud-Computing-Foundations

Nptel Course Solution : Google Cloud Computing Foundations

  • Updated Nov 19, 2020

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

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

CGreenP / NPTEL-Introduction-to-Programming-in-C-Assignment-4-Question-3

NPTEL Introduction to Programming in C Assignment 4 Question 3

  • Updated Apr 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."