- Wednesday, September 25, 2024
NPTEL Programming in Java Week 7 Assignment Solution 2023
NPTEL Programming in Java Week 7 All Programming Assignment Solutions – Jan 2023 | Swayam. 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
Course Name : âProgramming in Java 2023â
Question : 1 A byte char array is initialized. You have to enter an index value” n “. According to index your program will print the byte and its corresponding char value. Complete the code segment to catch the exception in the following, if any. On the occurrence of such an exception, your program should print â exception occur â .If there is no such exception, it will print the required output.
Question : 2 The following program reads a string from the keyboard and is stored in the String variable “ s1 “. You have to complete the program so that it should should print the number of vowels in s1 . If your input data doesn’t have any vowel it will print “ 0 “.
Question : 3 A string “s1” is already initialized. You have to read the index “n” from the keyboard. Complete the code segment to catch the exception in the following, if any. On the occurrence of such an exception, your program should print âexception occurâ .If there is no such exception, your program should replace the char “a” at the index value “n” of the “s1” ,then it will print the modified string.
Question : 4 Complete the following code fragment to read three integer values from the keyboard and find the sum of the values. Declare  a variable  “sum” of type int and store the result in it.
Question : 5 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 “.
Programming in Java | Week 7
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 7 Assignment 7 Answers
Q1. Which stream does Java application uses to read data from a source, it may be a file, an array, peripheral device or socket? a. InputStream b. OutputStream c. Input/OutputStream d. None of the above
Answer: a. InputStream
Q2. What is the primary purpose of input streams in Java? a. To write data to a file. b. To read data from a file. c. To append data to a file. d. To create directories.
Answer: b. To read data from a file.
Q3. Which class in Java is used to create a new directory? a. FileReader b. FileWriter c. File d. Directory
Answer: c. File
Q4. Which class in Java is used to read data line by line from a file? a. BufferedReader b. FileInputStream c. FileWriter d. OutputStream
Answer: a. BufferedReader
Q5. What does the following code do? FileInputStream fis = new FileInputStream(“test.dat”);
a. It creates a new file named test.dat if it does not exist and opens the file so you can write to it, if write permission is available. b. It thows an error if the file named test.dat does not exist and opens the file, if it exists, so you can read from it and write into it, if write permission is available.
c. It creates a new file named test.dat regardless of whether it exists or not and opens the file so you can write to it, if write permission is available. d. It creates a new file named test.dat regardless of whether it exists or not and opens the file so you can read from it and write to it, if write permission is available.
Answer: b. It thows an error if the file named test.dat does not exist and opens the file, if it exists, so you can read from it and write into it, if write permission is available.
Q6. What is the output of this program? (Assume ‘inputoutput.java’ file exists in the current directory) a. true b. false c. prints number of bytes in file d. prints number of characters in the file
Answer: c. prints number of bytes in file
Q7. What will be the output of the following Java program? a. abc b. abcd c. abcde d. none of the mentioned
Answer: d. none of the mentioned
Q8. What is the output of the following Java program? a. 30 b. Compiler Error c. Garbage value d. 0
Answer: b. Compiler Error
Q9. In order to restrict a variable of a class from inheriting to subclass, how variable should be declared? a. Protected b. Private c. Public d. Static
Answer: b. Private
Q10. A _________ is a type of object that organizes components in a container. a. Event adapter b. Event Handler c. Layout manager d. Grid Manager
Answer: c. Layout manager
Programming Assignment
Question 1 A Student class with private fields (name, age) is provided, Your task is to make the following: a parameterized constructor to initialize the private fields the getter/setter methods for each field Follow the naming convention as given in the main method of the suffix code.
Question 2 A BankAccount class with private field balance is provided, Your task is to make the following: a parameterized constructor to initialize the private field public void deposit(âŠ) // to deposit money public void withdraw(âŠ) // to withdraw money, should print “Insufficient funds!” if not enough money to withdraw public double getBalance() // to return the current balance Follow the naming convention as given in the main method of the suffix code.
Question 3 An abstract class shape is provided, Your task is to make the following: a parameterized constructor to initialize the Circle class @Override the area function to compute the area of a circle (Use Math.PI for value of pi, not 22/7) @Override the displayInfo() function to print exactly in the format provided by the test cases. Follow the naming convention as given in the main method of the suffix code.
Question 4 An interface shape is provided, Your task is to make the following: Create a class “Circle” that implements the “Shape” interface and provides its own implementation for calculateArea(). @Override the area function to compute the area of a circle (Use Math.PI for value of pi, not 22/7) Create another class “Rectangle” that implements the “Shape” interface and provides its own implementation for calculateArea(). @Override the area function to compute the area of a rectangle Follow the naming convention as given in the main method of the suffix code.
Question 5 Two interfaces are provided, namely Flyable and Swimmable, Your task is to make the following: Create a class “FlyingFish” that implements both interfaces and provides its own implementation for fly() and swim() It should have a private variable name, use a constructor to set the value and the functions fly() and swim() to print exactly as given in the test case. Follow the naming convention as given in the main method of the suffix 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
Question 1 Complete the following code fragment to read three integer values from the keyboard and find the sum of the values. Declare a variable “sum” of type int and store the result in it.
Question 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”.
Question 3 A byte char array is initialized. You have to enter an index value”n”. According to index your program will print the byte and its corresponding char value. Complete the code segment to catch the exception in the following, if any. On the occurrence of such an exception, your program should print âexception occurâ .If there is no such exception, it will print the required output.
Question 4 The following program reads a string from the keyboard and is stored in the String variable “s1”. You have to complete the program so that it should should print the number of vowels in s1 . If your input data doesn’t have any vowel it will print “0”.
Question 5 A string “s1” is already initialized. You have to read the index “n” from the keyboard. Complete the code segment to catch the exception in the following, if any. On the occurrence of such an exception, your program should print âexception occurâ .If there is no such exception, your program should replace the char “a” at the index value “n” of the “s1” ,then it will print the modified string.
More Nptel Courses: Click here
Session: JAN-APR 2023
Course Name: Programming in Java
Q1. Which of these is a type of IO stream in Java? a. Integer stream b. Short stream c. Byte stream d. Character stream
Answer: c, d
Q2. Which of the following is a class in java.io package? a. FileReader b. ObjectInput c. ObjectOutput d. Datalnput
Answer: a. FileReader
Q3. Consider the following program. What will be the output if the above program is executed? a. It will give compile-time error. b. B c. 66 d. r
Answer: d. r
Q4. Consider the following program. What is the output of the above code? a. java/programm/2023 b. java’programm/ c. java d. 2023
Answer: d. 2023
Q5. Which method is used to read b length bytes from the input stream into an array? a. public void read(int b)throws IOException { { b. public int read(byte[ ] b)throws IOException {} c. public void read(byte[ ] b)throws IOException {} d. public int read(int b)throws IOException {}
Answer: b. public int read(byte[ ] b)throws IOException {}
Q6. How many standard streams Java can support? a. 2 b. 3 c 4 d. 1
Answer: b. 3
Q7. Which of the following stream is different from others? a. System.in b. System.out c. PrintStream d. FileOutputStream
Answer: c. PrintStream
Q8. Which of the following is used to read a string from the input stream? a. get() b. readLine( ) c. getLine( ) d. read()
Answer: b. readLine( )
Q9. Which of the following class(es) can be used for handling files in Java? a. java files b. java.io.File c. java.io d. java Filehandling
Answer: b. java.io.File
Q10. Which of the following statement(s) is/are true? a. The default delimiters for a Scanner object are the white space characters. b. The Scanner class has instance methods for reading each of the Java primitive types except char. c. The Scanner methods do not throw any checked exceptions. d. The Scanner class can be found in the java.util package.
Answer: a, b, c, d
Programming Assignment of Programming in Java
A byte char array is initialized. You have to enter an index value”n”. According to index your program will print the byte and its corresponding char value. Complete the code segment to catch the exception in the following, if any. On the occurrence of such an exception, your program should print âexception occurâ .If there is no such exception, it will print the required output.
The following program reads a string from the keyboard and is stored in the String variable “s1”. You have to complete the program so that it should should print the number of vowels in s1 . If your input data doesn’t have any vowel it will print “0”.
A string “s1” is already initialized. You have to read the index “n” from the keyboard. Complete the code segment to catch the exception in the following, if any. On the occurrence of such an exception, your program should print âexception occurâ .If there is no such exception, your program should replace the char “a” at the index value “n” of the “s1” ,then it will print the modified string.
Complete the following code fragment to read three integer values from the keyboard and find the sum of the values. Declare a variable “sum” of type int and store the result in it.
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”.
More Weeks of Programming In Java: Click Here
Session: JULY-DEC 2022
Course Name: Programming in Java NPTEL
1) Which of these is method for testing whether the specified element is a file or a directory? a. IsFile() b. isFile() c. Isfile() d. isfile()
Answer: b. isFile()
2) Which of the following is/are NOT Standard Stream(s)? a. System.in b. System.out c. System.err d. System.console
Answer: d. System.console
3) What will be the output of the Java code? a. NPTEL b. NPTEL/JULY/2022 c. /NPTEL/JULY/2022 d. 2022
Answer: d. 2022
4) What will be the output if the above program is executed? a. It will give compile-time error b. It will give run-time error c. j d. 106
Answer: d. 106
5) Which method is used to write a byte to the current output stream? a. public void write(int b)throws IOException b. public void write(byte[] b)throws IOException c. public void flush()throws IOException d. public void close() throws IOException
Answer: b. public void write(byte[] b)throws IOException
6) Which method of Random AccessFile class reads a line from the file and returns String ? a. WriteInt() b. readLine() c. readInt() d. WriteDouble()
Answer: b. readLine()
7) Which of these class is not a member class of java.io package? a. File b. PrintStream c. StringReader d. Stream
Answer: d. Stream
8) Which of the following is/are interface(s) of java.io package? a. FileReader b. File Writer c. DataOutput d. DataInput
9) In which Java APIs the classes for handling all IO-streams are defined? a. java.lang b. java.util c. java.io d. java.awt
Answer: c. java.io
10) Consider the following program. If the program is executed, then what will be the output from the execution? a. length : 6 b. length : 5 c. length : 0 d. length : 1
Answer: b. length : 5
Programming Assignment Solutions
Question 1 Complete the following code fragment to read three integer values from the keyboard and find the sum of the values. Declare a variable âsumâ of type int and store the result in it.
Question 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â.
Question 3 A byte char array is initialized. You have to enter an index valueânâ. According to index your program will print the byte and its corresponding char value. Complete the code segment to catch the exception in the following, if any. On the occurrence of such an exception, your program should print âexception occurâ .If there is no such exception, it will print the required output.
Question 4 The following program reads a string from the keyboard and is stored in the String variable âs1â. You have to complete the program so that it should should print the number of vowels in s1 . If your input data doesnât have any vowel it will print â0â.
Question 5 A string âs1â is already initialized. You have to read the index ânâ from the keyboard. Complete the code segment to catch the exception in the following, if any. On the occurrence of such an exception, your program should print âexception occurâ .If there is no such exception, your program should replace the char âaâ at the index value ânâ of the âs1â ,then it will print the modified string.
More NPTEL Solutions: https://progiez.com/nptel
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 .
- Notifications You must be signed in to change notification settings
This site is to share the solution of prgramming and quiz assignment given during the Programming In java by Prof. Debasis Samantha on NPTEL.
bkkothari2255/Programming_In_Java_NPTEL
Folders and files.
Name | Name | |||
---|---|---|---|---|
44 Commits | ||||
Repository files navigation
Programming_in_java_nptel.
Navigate to Week
Week 1 Week 2 Week 3 Week 4 Week 5 Week 6 Week 7 Week 8 Week 9 Week 10 Week 11 Week 12
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.
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'.
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.
Java Week 4:Q1 To execute the following program successfully. You should import the correct package(s) and/or class(s) to complete the code.
Java Week 4:Q2 To print the current year.
Java Week 4:Q3 The program in this assignment is attempted to print the following output:
Java Week 4:Q4 To call the default method in the interface First and Second.
Java Week 4:Q5 To print the following output.
Java Week 5:Q1 An interface Number is defined in the following program. You have to declare a class A, which will implement the interface Number. Note that the method findSqr(n) will return the square of the number n.
Java Week 5:Q2 This program is to find the GCD (greatest common divisor) of two integers writing a recursive function findGCD(n1,n2). Your function should return -1, if the argument(s) is(are) other than positive number(s).
Java Week 5:Q3 Complete the code segment to catch the ArithmeticException in the following, if any. On the occurrence of such an exception, your program should print âException caught: Division by zero.â If there is no such exception, it will print the result of division operation on two integer values.
Java Week 5:Q4 In the following program, an array of integer data to be initialized. During the initialization, if a user enters a value other than integer value, then it will throw InputMismatchException exception. On the occurrence of such an exception, your program should print âYou entered bad data.â If there is no such exception it will print the total sum of the array.
Java Week 5:Q5 In the following program, there may be multiple exceptions. You have to complete the code using only one try-catch block to handle all the possible exceptions.
For example, if userâs input is 1, then it will throw and catch âjava.lang.NullPointerExceptionâ.
Java Week 6:Q1 Complete the code segment to print the following using the concept of extending the Thread class in Java:
Java Week 6:Q2 In the following program, a thread class ThreadRun is created using the Runnable interface which prints "Thread using Runnable interface". Complete the main class to create a thread object of the class ThreadRun and run the thread,
Java Week 6:Q3 A part of the Java program is given, which can be completed in many ways, for example using the concept of thread, etc. Follow the given code and complete the program so that your program prints the message "NPTEL Java". Your program should utilize the given interface/ class.
Java Week 6:Q4 Execution of two or more threads occurs in a random order. The keyword 'synchronized' in Java is used to control the execution of thread in a strict sequence. In the following, the program is expected to print some numbers. Do the necessary use of 'synchronized' keyword, so that, the program prints the output in the following order:
Java Week 6:Q5 Add necessary codes to print the following:
Java Week 7:Q1 Complete the following code fragment to read three integer values from the keyboard and find the sum of the values. Declare a variable "sum" of type int and store the result in it.
Java Week 7:Q2 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".
Java Week 7:Q3 A byte char array is initialized. You have to enter an index value"n". According to index your program will print the byte and its corresponding char value. Complete the code segment to catch the exception in the following, if any. On the occurrence of such an exception, your program should print âexception occurâ .If there is no such exception, it will print the required output.
Java Week 7:Q4 The following program reads a string from the keyboard and is stored in the String variable "s1". You have to complete the program so that it should should print the number of vowels in s1 . If your input data doesn't have any vowel it will print "0".
Java Week 7:Q5 A string "s1" is already initialized. You have to read the index "n" from the keyboard. Complete the code segment to catch the exception in the following, if any. On the occurrence of such an exception, your program should print âexception occurâ .If there is no such exception, your program should replace the char "a" at the index value "n" of the "s1" ,then it will print the modified string.
Java Week 8:Q1 Write a program which will print a pyramid of " " 's of height "n" and print the number of " " 's in the pyramid.
Java Week 8:Q2 Write a program which will print a pascal pyramid of "*" 's of height "l" .
Java Week 8:Q3 Write a program which will print a pyramid of "numbers" 's of height "n" and print the sum of all number's in the pyramid.
Java Week 8:Q4 Write a program to print symmetric Pascal's triangle of "*" 's of height "l" of odd length . If input "l" is even then your program will print "Invalid line number".
Java Week 8:Q5 Write a program to display any digit(n) from 0-9 using "7 segment display".
Java Week 9:Q1 Complete the code to develop a BASIC CALCULATOR that can perform operations like Addition, Subtraction, Multiplication and Division.
Java Week 9:Q2 Complete the code to develop an ADVANCED CALCULATOR that emulates all the functions of the GUI Calculator as shown in the image.
Java Week 9:Q3 Complete the code to perform a 45 degree anti clock wise rotation with respect to the center of a 5 Ă 5 2D Array as shown below:
Java Week 9:Q4 A program needs to be developed which can mirror reflect any 5 Ă 5 2D character array into its side-by-side reflection. Write suitable code to achieve this transformation as shown below:
Java Week 9:Q5 Write suitable code to develop a 2D Flip-Flop Array with dimension 5 Ă 5, which replaces all input elements with values 0 by 1 and 1 by 0. An example is shown below:
Java Week 10:Q1 The following code needs some package to work properly. Write appropriate code to import the required package(s) in order to make the program compile and execute successfully.
Java Week 10:Q2 Write the JDBC codes needed to create a Connection interface using the DriverManager class and the variable DB_URL. Check whether the connection is successful using 'isAlive(timeout)' method to generate the output, which is either 'true' or 'false'.
Java Week 10:Q3 Due to some mistakes in the below code, the code is not compiled/executable. Modify and debug the JDBC code to make it execute successfully.
Java Week 10:Q4 Complete the code segment to create a new table named âPLAYERSâ in SQL database using the following information.
Coulmn | UID | First_Name | Last_Name | Age |
---|---|---|---|---|
Type | Integer | Varchar(45) | Varchar(45) | Integer |
Java Week 10:Q5 Complete the code segment to rename an already created table named âPLAYERSâ into âSPORTSâ.
Java Week 11:Q1 Complete the code segment to insert the following data using prepared statement in the existing table âPLAYERSâ.
Coulmn | UID | First_Name | Last_Name | Age |
---|---|---|---|---|
Row 1 | 1 | Ram | Gopal | 26 |
Row 2 | 2 | John | Mayer | 22 |
Java Week 11:Q2 Write the required code in order to update the following data in the table âPLAYERSâ.
Coulmn | UID | First_Name | Last_Name | Age |
---|---|---|---|---|
From | 1 | Ram | Gopal | 26 |
To | 1 | Rama | Gopala | 24 |
Java Week 11:Q3 Write the appropriate code in order to delete the following data in the table âPLAYERSâ.
Coulmn | UID | First_Name | Last_Name | Age |
---|---|---|---|---|
Delete | 1 | Rama | Gopala | 24 |
Java Week 11:Q4 Complete the following program to calculate the average age of the players in the table âPLAYERSâ.
Structure of Table 'PLAYERS' is given below:
Java Week 11:Q5 Complete the code segment to drop the table named âPLAYERSâ.
Java Week 12:Q1 Complete the code to develop an extended version of the ADVANCED CALCULATOR with added special functions that emulates all the functions of the GUI Calculator as shown in the image.
Java Week 12:Q2 A partial code fragment is given. The URL class object is created in try block.You should write appropriate method( ) to print the protocol name and host name from the given url string.
Java Week 12:Q3 Write a program to create a record by taking inputs using Scanner class as first name as string ,last name as string ,roll number as integer ,subject1 mark as float,subject2 mark as float. Your program should print in the format
Java Week 12:Q4 A program code is given to call the parent class static method and instance method in derive class without creating object of parent class. You should write the appropriate code so that the program print the contents of static method() and instance method () of parent class.
Java Week 12:Q5 Write a recursive function to print the sum of first n odd integer numbers. The recursive function should have the prototype
Contributors 2
Programming in Java | NPTEL 2022 | Week 7 Programming Assignments Solutions
This article will help you with the answers of Programming in Java NPTEL 2022 Week 7 Programming Assignment Solutions .
Programming in Java NPTEL Week 7 Programming Assignment 1 Solutions
Complete the following code fragment to read three integer values from the keyboard and find the sum of the values. Declare a variable “sum” of type int and store the result in it.
Programming Assignment 2 Solution
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”.
Programming Assignment 3 Solution
A byte char array is initialized. You have to enter an index value”n”. According to index your program will print the byte and its corresponding char value. Complete the code segment to catch the exception in the following, if any. On the occurrence of such an exception, your program should print âexception occurâ .If there is no such exception, it will print the required output.
Week 7: Programming Assignment 4 Solution
The following program reads a string from the keyboard and is stored in the String variable “s1”. You have to complete the program so that it should should print the number of vowels in s1 . If your input data doesn’t have any vowel it will print “0”.
Week 7: Programming Assignment 5 Solution
A string “s1” is already initialized. You have to read the index “n” from the keyboard. Complete the code segment to catch the exception in the following, if any. On the occurrence of such an exception, your program should print âexception occurâ .If there is no such exception, your program should replace the char “a” at the index value “n” of the “s1” ,then it will print the modified string.
For discussion about any question, join the below comment section. And get the solution of your query. Also, try to share your thoughts about the topics covered in this particular quiz.
Related Posts
Html mcq : html basics (multiple choice question), html mcq : html web browsers (multiple choice question).
C programming MCQ : Preprocessor Directives(MULTIPLE CHOICE QUESTION)
C++ mcq : c++ basics(multiple choice question), 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.
- 1st Central Law Reviews: Expert Legal Analysis & Insights
COMMENTS
In this video, we provide detailed answers and explanations for the Week 7 assignment of the NPTEL course on "Programming in Java." W...
Contribute to brijeshvadalia/NPTEL-JAVA-PROGRAMMING-ASSIGNMENT-SOLUTIONS-2021 development by creating an account on GitHub. WILL HELP IN SOLVING NPTEL PROBELMS... Skip to content
Programming In Java Week 7 Assignment 7 Answers Solution Quiz | 2024-JanJoin NPTEL - Programming in Java : https://telegram.me/ProgrammingInJavaNPTELFollow W...
Scanner obj = new Scanner (System.in); int a = obj.nextInt (); int b = obj.nextInt (); int c = obj.nextInt (); int sum = a+b+c; System.out.println (sum); } } This repository in NPTEL course Programming in Java Question and Quiz answer.
đ Programming In Java NPTEL Elective Course 2023 | GATE NPTEL | https://techiestalk.in/NPTEL Programming In Java WEEK7 Programming Assignment Solutions | Sw...
This document contains solutions to NPTEL Programming In Java week 7 questions. It includes the answers to 10 multiple choice questions, 5 programming problems and their solutions.
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.
These are NPTEL Programming In Java Week 7 Assignment 7 Answers. Q1. Which stream does Java application uses to read data from a source, it may be a file, an array, peripheral device or socket? a. InputStream. b. OutputStream. c. Input/OutputStream. d. None of the above. Answer: a. InputStream. Q2.
Java Week 6:Q3 A part of the Java program is given, which can be completed in many ways, for example using the concept of thread, etc. Follow the given code and complete the program so that your program prints the message "NPTEL Java". Your program should utilize the given interface/ class.
This article will help you with the answers of Programming in Java NPTEL 2022 Week 7 Programming Assignment Solutions.