sumitnce1 / Programming-in-Java-NPTEL

This repository in NPTEL course Programming in Java Question and Quiz answer.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Programming-in-Java-NPTEL

This repository in NPTEL course Programming in Java Question and Quiz answer.

Programming_In_Java_NPTEL

WEEK 1

Java Week 1:Q1 To find the perimeter and area of a circle given a value of radius.

Java Week 1:Q2 To find the largest among three numbers x, y, and z.

Java Week 1:Q3 Consider First n even numbers starting from zero(0) and calculate sum of all the numbers divisible by 3 from 0 to n. Print the sum.

Java Week 1:Q4 To check whether the number is an Armstrong number or not.

Java Week 1:Q5 To help Ram , find the highest mark and average mark secured by him in "s" number of subjects.

WEEK 2

Java Week 2:Q1 To call the method print() in class Student following the concept of inner class.

Java Week 2:Q2 To call the method print() of class Student first and then call print() method of class School.

Java Week 2:Q3 To call print() method of class Question by creating a method named ‘studentMethod()’.

Java Week 2:Q4 To call default constructor first and then any other constructor in the class Answer.

Java Week 2:Q5 To debug the program which is intended to print 'NPTEL JAVA'.

WEEK 3

Java Week 3:Q1 To the generation of Fibonacci numbers.

Java Week 3:Q2 Define a class Point with two fields x and y each of type double. Also , define a method distance(Point p1, Point p2) to calculate the distance between points p1 and p2 and return the value in double. Complete the code segment given below. Use Math.sqrt( ) to calculate the square root.

Java Week 3:Q3 A class Shape is defined with two overloading constructors in it. Another class Test1 is partially defined which inherits the class Shape. The class Test1 should include two overloading constructors as appropriate for some object instantiation shown in main( ) method. You should define the constructors using the super class constructors. Also, override the method calculate( ) in Test1 to calculate the volume of a Shape.

Java Week 3:Q4 This program to exercise the call of static and non-static methods. A partial code is given defining two methods, namely sum( ) and multiply ( ). You have to call these methods to find the sum and product of two numbers.

Java Week 3:Q5 To swap two numbers using call by object reference.

WEEK 4

Java Week 4:Q1

Java Week 4:Q2

Java Week 4:Q3

Java Week 4:Q4

Java Week 4:Q5

WEEK 5

Java Week 5:Q1

Java Week 5:Q2

Java Week 5:Q3

Java Week 5:Q4

Java Week 5:Q5

WEEK 6

Java Week 6:Q1

Java Week 6:Q2

Java Week 6:Q3

Java Week 6:Q4

Java Week 6:Q5

WEEK 7

Java Week 7:Q1

Java Week 7:Q2

Java Week 7:Q3

Java Week 7:Q4

Java Week 7:Q5

WEEK 8

Java Week 8:Q1

Java Week 8:Q2

Java Week 8:Q3

Java Week 8:Q4

Java Week 8:Q5

WEEK 9

Java Week 9:Q1

Java Week 9:Q2

Java Week 9:Q3

Java Week 9:Q4

Java Week 9:Q5

WEEK 10

Java Week 10:Q1

Java Week 10:Q2

Java Week 10:Q3

Java Week 10:Q4

Java Week 10:Q5

WEEK 11

Java Week 11:Q1

Java Week 11:Q2

Java Week 11:Q3

Java Week 11:Q4

Java Week 11:Q5

WEEK 12

Java Week 12:Q1

Java Week 12:Q2

Java Week 12:Q3

Java Week 12:Q4

Java Week 12:Q5

Thank You!

BEST OF LUCK!

About

This repository in NPTEL course Programming in Java Question and Quiz answer.


Languages

Language:Java 100.0%