VTU Updates

Programming in Java NPTEL Assignment Answers of Week 7(2023)

In this post We are solving the Programming in Java NPTEL Assignment Answers of Week 7(2023)

1] 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

2] Which of the following is a class in java. io package? a] FileReader b] ObjectInput c] ObjectOutput d] Datalnput

3] Consider the following program.

What will be the output if the above program is executed? a] It will give compile-time error.

4] Consider the following program.

What is the output of the above code? a] java/programm/2023 b] java/programm/ c] java d] 2023

5] 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 ] b)throws IOException{} d] public int read(int b)throws IOException { }

6] How many standard streams Java can support?

7] Which of the following stream is different from others? a] System.in b] System.out c] PrintStream d] FileOutputStream

8] Which of the following is used to read a string from the input stream?

a] get() b] readLine( ) c] getLine( ) d] read( )

9] 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

10] 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, d

Week 7 : Programming Assignment 1

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.

Week 7 : Programming Assignment 2

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

Week 7 : Programming Assignment 3

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.

Week 7 : Programming Assignment 4

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.

Week 7 : Programming Assignment 5

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

Related Posts

Explain network layer design issues..

  • April 4, 2024

AngularJS application that displays the date

  • March 12, 2024

AngularJS application to convert student details to Uppercase

Leave a reply cancel reply.

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

Add Comment  *

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

Post Comment

nptel week 7 assignment answers 2023 java

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

These are NPTEL Programming In Java Week 7 Assignment 7 Answers

Quizermania Logo

Programming in Java | NPTEL | Week 7 quiz solutions

This set of MCQ(multiple choice questions) focuses on the  Programming in Java Week 7 Solutions .

Course layout (Answers Link)

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 Programming Assignment Week 5: Inheritance Programming Assignment Week 6: Exception Handling Programming Assignment Week 7: Multithreaded Programming Programming Assignment Week 8: Java Applets and Servlets Programming Assignment Week 9: Java Swing and Abstract Windowing Toolkit Programming Assignment Week 10: Networking with Java Week 11: Java Object Database Connectivity Week 12: Interface and Packages for Software Development

NOTE:  You can check your answer immediately by clicking show answer button. Programming in Java Week 7 Solutions” contains 10 questions.

Now, start attempting the quiz.

Programming in Java Week 7 Solutions

Q1. Consider the following program. What will be the output of the above program is executed?

a) It will give compile-time error b) 102 c) 42 d) f

Answer: d) f

Q2. Which method is used to write an array of byte to the current output stream?

a) public void write(int b) throws IOException {{ b) public void flush(byte[] b) throws IOException {} c) public void write(byte[] b) throws IOException {} d) public int write(int b) throws IOException {}

Q3. Which of the followng is NOT a Standard Stream?

a) System.in b) System.out c) System.err d) System.console

Answer: d) System.console

Q4. Which of the following method(s) not included in OutputStream class?

a) close() b) write() c) skip() d) flush()

Answer: c) skip()

Q5. Which of the following method of the BufferedReader class is used for reading lines of text from the console, the file or other input streams?

a) read() b) readLine() c) readByte() d) read(byte[] b)

Answer: b) readLine()

Q6. Consider the following program. What is the output of the above code?

a) java/course/july/2023 b) java/course/july/ c) java/course/ d) 2023

Answer: a) java/course/july/2023

Q7. Which of the following is/are interface(s) in java.io package?

a) FileWriter b) FileFilter c) ObjectOutput d) DataOutput

Answer: b), c), d)

Q8. Fill in the blanks. The class DataInputStream extends _________ and implements the interface _____________.

a) FileInputStream, FileInput b) FilterInputStream, DataInput c) FilterInputStream, FileInput d) FileInputStream, DataInput

Answer: b) FilterInputStream, DataInput

Q9. Which of the following method(s) not included in InputStream class?

a) available() b) reset() c) read() d) flush()

Answer: d) flush()

Q10. Which of the following package contains a large number of stream classes that provide capabilities for processing all types of data?

a) java.awt b) java.io c) java.net d) java.util

Answer: b) java.io

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) DataInput

Q3. What will be the output if the above program is executed?

a) It will give compile-time error b) B c) 66 d) r

Q4. What is the output of the above code?

a) java/program/2023 b) java/programm/ c) java 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(bute[] b) throws IOException{} c) public void read(byte[] b) throws IOException{} d) public int read(int b) throws IOException{}

Q6. How many standard streams Java can support?

a) 2 b) 3 c) 4 d) 1

Q7. Which of the following stream is different from others?

a) System.in b) System.out c) PrintStream d) FileOutputStream

Q8. Which of the following is used to read a string from the input stream?

a) get() b) readLine() c) getLine() d) read()

Q9. Which of the following class(es) can be use for handling files in Java?

a) java.files b) java.io.File c) java.io d) java.Filehandling

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), d)

Previous – Programming in Java Week 7 Solutions

Q1. 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()

Q2. Which of the following is/are NOT Standard Stream(s)?

Q3. What will be the output of the Java code?

a) NPTEL b) NPTEL/JULY/2022 c) /NPTEL/JULY/2022 d) 2022

Answer: d) 2022

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

Q5. 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: a) public void write(int b) throws IOException

Q6. Which method of RandomAccessFile class reads a line from the file and returns it as a String?

a) WriteInt() b) readLine() c) readInt() d) WriteDouble()

Q7. Which of these class is not a member class of java.io package?

a) File b) PrintStream c) StringReader d) Stream

Answer: d) Stream

Q8. Which of the following is/are interface(s) of java.io package?

a) FileReader b) FileWriter c) DataOutput d) DataInput

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

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

Previous Course – Week 7 Quiz Solutions

Q1. Which of the following streams contains the classes which can work on character stream?

a) InputStream b) OutputStream c) FileReader d) FileWriter

Q2. In which Java APIs the classes for handling all IO-streams are defined?

Answer: c) j

Q4. Which of the following is the correct output for the ‘try’ portion of the code?

a) Prints the number of bytes in the file b) Prints the number of characters in the file c) Prints ‘true’, if the file is present; else prints ‘false’ d) Prints nothing, as an exception will be caught

Answer: b) Prints the number of characters in the file

Q5. Which methods is used to write an array of 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

Q6. Which of the following is/are Standard Stream(s)?

Answer: a), b), c)

Q7. Which of the following method in java.io package help in clearing the contents of the buffer?

a) flush() b) clear() c) append() d) exit()

Answer: a) flush()

Q8. Which method of RandomAcessFile class reads a line from the file and returns it as a String?

Q9. Which of the following is/are interface(s) of java.io package?

a) DataStreams detects an end-of-file condition by using EOFException, instead of testing for an invalid return value b) DataStreams uses floating point numbers to represent monetary values c) Data streams support I/O of primitive data types d) Object streams support I/O of objects

Answer: a), b), c), d)

>> Next- Programming in Java Week 6 Assignment Solutions

>> Next- Programming in Java Week 8 Assignment Solutions

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

Preprocessor Directives

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
  • Amazon Quiz
  • Flipkart Quiz
  • Play & Win 50,000 Coins
  • Privacy Policy

NPTEL Programming In Java Assignment 7 Answers 2022

  • by QuizXp Team
  • March 12, 2022 March 14, 2022

NPTEL Programming In Java Assignment 7

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

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 NPTEL Programming In Java Assignment 7

NPTEL Programming In Java Assignment 7 Answers:-

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.

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

For Online programming test help and final exam preparation material Click Me

Next Week Answers: Assignment 07

quizxp telegram

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.

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

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.

For other courses answers:- Visit

For Internship and job updates:- Visit

Disclaimer: We do not claim 100% surety of answers, these answers are based on our sole knowledge, and by posting these answers we are just trying to help students, so we urge do your assignment on your own.

if you have any suggestions then comment below or contact us at  [email protected]

If you found this article Interesting and helpful, don’t forget to share it with your friends to get this information.

x

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 7 assignment answers 2022.

Students, it’s time to reveal the hint of programming in java NPTEL week 7 assignment answers. And, identify where you can improve your marks in this assignment.

NPTEL banner to Programming in Java Assignment

NPTEL Programming In Java Week 7 Assignment Answers

Q1. 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()

1000+ Students are taking advantage of instant notifications on telegram .

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

Q3. What will be the output of the Java code?

b. NPTEL/JULY/2022

c. /NPTEL/JULY/2022

Answer: d. 2022

Q4. What will be the output if the below program is executed?

a. It will give compile-time error

b. It will give run-time error

Answer: d. 106

Q5. 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: a. public void write(int b) throws IOException

Q6. Which method of RandomAccessFile class reads a line from the file and returns it as aString?

a. WriteInt().

b. readLine()

c. readInt()

d. WriteDouble()

Answer: b. readLine()

Q7. Which of these class is not a member class of java.io package?

b. PrintStream

c. StringReader

Answer: d. Stream

Q8. Which of the following is/are interface(s) of java.io package?

a. FileReader

b. FileWriter

c. DataOutput

d. DataInput

Answer: c. DataOutput

Q9. In which Java APIs the classes for handling all IO-streams are defined?

a. java.lang

b. java.util

d. java.awt

Answer: c. java.io

Q10. Consider the following program.

The file nptel.txt when browse with the Notepad text editor. it shows the content, which is shown below.

__________________________nptel.txt__________________________

____________________________________________________________

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

Disclaimer: These answers are provided only for the purpose to help students to take references. This website does not claim any surety of 100% correct answers. So, this website urges you to complete your assignment yourself.

Also Available:

NPTEL Programming In Java Week 6 Assignment Answers

NPTEL Java Week 8 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

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.

swayam-logo

  • Review Assignment
  • Announcements
  • About the Course
  • Explore Courses

Thank you for learning with NPTEL!!

Dear Learner, Thank you for taking the course with NPTEL!! Hope you enjoyed the journey with us. The results for this course have been published and we are closing this course now.  You will still have access to the contents and assignments of this course, if you click on the course name from the "Mycourses" tab on swayam.gov.in. For any further queries please write to [email protected] . - Team NPTEL

Ethical Hacking : Result Published!!

                                      ***THIS IS APPLICABLE ONLY FOR EXAM REGISTERED CANDIDATES***                             ****Please don't click on below link, if you are not registered/not present for the Exam****                          Dear Candidate, The exam scores and E Certificates have been released for October 2023 Exam(s). Step 1 - Are the results of my courses released? Please check the Results published courses list in the below links.:- Oct 2023 Exam - Click here Step 2 - How to check Results? Please login to internalapp.nptel.ac.in/ . and check your exam results. Use the same login credentials as used to register to the exam. What's next? Please read the pass criteria carefully and check against what you have gotten. If you still have any issues, please report the same here. internalapp.nptel.ac.in/ . We will reply within a week. Last date to report queries: 3 days within publishing of scores. Note : Hard copies of certificates will not be dispatched. The duration shown in the certificate will be based on the timeline of offering of the course in 2023, irrespective of which Assignment score that will be considered. Thanks and Best wishes. NPTEL Team

Ethical Hacking : Final Feedback Form !!!

Dear students, We are glad that you have attended the NPTEL online certification course. We hope you found the NPTEL Online course useful and have started using NPTEL extensively. In this regard, we would like to have feedback from you regarding our course and whether there are any improvements, you would like to suggest.   We are enclosing an online feedback form and would request you to spare some of your valuable time to input your observations. Your esteemed input will help us in serving you better. The link to give your feedback is: https://docs.google.com/forms/d/13AnQnFgEZ9e9ADaKAyZ4JBfuR1NCWhSE8eC62ZEVctE/edit?usp=drivesdk We thank you for your valuable time and feedback. Thanks & Regards, -NPTEL Team

Ethical Hacking : Assignment 12: Question no 3

Dear Students, There is change in answers in assignment 12 question no 3. The re-evaluation has been done. The updated score is displayed under Progress tab. Sorry for the inconvenience. -NPTEL Team

October 2023 NPTEL Exams - Hall Tickets Released!

nptel week 7 assignment answers 2023 java

Ethical Hacking - Assignment- 11 and 12 Solution Released

Dear Learners, The   Assignment- 11, 12  of   Week- 11, 12 Solution  for the course " Ethical Hacking " has been released in the portal. Please go through the solution and in case of any doubt post your queries in the forum. Link for assignment 11 solution:    https://drive.google.com/file/d/1comSW3C5ZyayjSg2uDFEBTi--oxk5FY4/view?usp=drive_link Link for assignment 12 solution:  https://drive.google.com/file/d/1W1V_sQQbDqsrIsOGvGTWXTkTd-OIcQZz/view?usp=share_link Happy Learning! Thanks & Regards, NPTEL Team

Ethical Hacking - Assignment- 10 Solution Released

Dear Learners, The   Assignment- 10  of   Week- 10 Solution  for the course " Ethical Hacking " has been released in the portal. Please go through the solution and in case of any doubt post your queries in the forum. Link for assignment 10 solution:    https://drive.google.com/file/d/1GM-u1Ee-_p_WxXwy4bb63525Va7srJk0/view?usp=drive_link Happy Learning! Thanks & Regards, NPTEL Team

Exam Format - October, 2023 !!

Dear Candidate, ****This is applicable only for the exam registered candidates**** Type of exam will be available in the list: Click Here You will have to appear at the allotted exam center and produce your Hall ticket and Government Photo Identification Card (Example: Driving License, Passport, PAN card, Voter ID, Aadhaar-ID with your Name, date of birth, photograph and signature) for verification and take the exam in person.  You can find the final allotted exam center details in the hall ticket. The hall ticket is yet to be released.  We will notify the same through email and SMS. Type of exam: Computer based exam (Please check in the above list corresponding to your course name) The questions will be on the computer and the answers will have to be entered on the computer; type of questions may include multiple choice questions, fill in the blanks, essay-type answers, etc. Type of exam: Paper and pen Exam  (Please check in the above list corresponding to your course name) The questions will be on the computer. You will have to write your answers on sheets of paper and submit the answer sheets. Papers will be sent to the faculty for evaluation. On-Screen Calculator Demo Link: Kindly use the below link to get an idea of how the On-screen calculator will work during the exam. https://tcsion.com/ OnlineAssessment/ ScientificCalculator/ Calculator.html NOTE: Physical calculators are not allowed inside the exam hall. Thank you! -NPTEL Team

Ethical Hacking - Week 12 Feedback Form

Dear Learners, Thank you for enrolling in this NPTEL course and we hope you have gone through the contents for this week and also attempted the assignment. We value your feedback and wish to know how you found the videos and the questions asked - whether they were easy, difficult, as per your expectations, etc We shall use this to make the course better and we can also know from the feedback which concepts need more explanation, etc. Please do spare some time to give your feedback - comprises just 5 questions - should not take more than a minute, but makes a lot of difference for us as we know what the Learners feel. Here is the link to the form:  https://docs.google.com/forms/d/13kovMs5WO8aiwDOg5gaXRgnrSw_xRVZhHEpngLMTmAw/viewform NPTEL Team

NPTEL: Ethical Hacking: Week 12 Content and Assignment is live now !

Dear Students, The lecture videos for  Week 12  have been uploaded for the course  Ethical Hacking . The lectures can be accessed using the following link:  https://onlinecourses.nptel.ac.in/noc23_cs75/unit?unit=122&lesson=123 The other lectures of this week are accessible from the navigation bar to the left. Please remember to login into the website to view contents (if you aren't logged in already). Assignment 12  for  Week 12  is also released and can be accessed from the following link:  https://onlinecourses.nptel.ac.in/noc23_cs75/unit?unit=122&assessment=183 The assignment has to be submitted on or before  Wednesday, [18/10/2023], 23:59 IST . As we have done so far, please use the discussion forums if you have any questions on this module. Note:  Please check the due date of the assignments in the announcement and assignment page if you see any mismatch write to us immediately. Thanks and Regards, --NPTEL Team

Ethical Hacking : Assignment 9: Question no 6

Dear Students, There are mistakes in  assignment 9 question no 6 . Hence the questions are not considered for evaluation. The re-evaluation has been done. The updated score is displayed under Progress tab. Sorry for the inconvenience. -NPTEL Team

Ethical Hacking - Week 11 Feedback Form

Ethical hacking - assignment- 9 solution released.

Dear Learners, The   Assignment- 9  of   Week- 9 Solution  for the course " Ethical Hacking " has been released in the portal. Please go through the solution and in case of any doubt post your queries in the forum. Link for assignment 9 solution:    https://drive.google.com/file/d/1-WVlyvwQIrWIIx_gyMQh_q1Yy_cUIJ6U/view?usp=drive_link Happy Learning! Thanks & Regards, NPTEL Team

NPTEL: Ethical Hacking: Week 11 Content and Assignment is live now !

Dear Students, The lecture videos for  Week 11  have been uploaded for the course  Ethical Hacking . The lectures can be accessed using the following link:  https://onlinecourses.nptel.ac.in/noc23_cs75/unit?unit=111&lesson=112 The other lectures of this week are accessible from the navigation bar to the left. Please remember to login into the website to view contents (if you aren't logged in already). Assignment 11  for  Week 11  is also released and can be accessed from the following link:  https://onlinecourses.nptel.ac.in/noc23_cs75/unit?unit=111&assessment=182 The assignment has to be submitted on or before  Wednesday, [11/10/2023], 23:59 IST . As we have done so far, please use the discussion forums if you have any questions on this module. Note:  Please check the due date of the assignments in the announcement and assignment page if you see any mismatch write to us immediately. Thanks and Regards, --NPTEL Team

Ethical Hacking - Week 10 Feedback Form

Nptel: ethical hacking: week 10 content and assignment is live now .

Dear Students, The lecture videos for  Week 10  have been uploaded for the course  Ethical Hacking . The lectures can be accessed using the following link:  https://onlinecourses.nptel.ac.in/noc23_cs75/unit?unit=102&lesson=103 The other lectures of this week are accessible from the navigation bar to the left. Please remember to login into the website to view contents (if you aren't logged in already). Assignment 10  for  Week 10  is also released and can be accessed from the following link:  https://onlinecourses.nptel.ac.in/noc23_cs75/unit?unit=102&assessment=181 The assignment has to be submitted on or before  Wednesday, [04/10/2023], 23:59 IST . As we have done so far, please use the discussion forums if you have any questions on this module. Note:  Please check the due date of the assignments in the announcement and assignment page if you see any mismatch write to us immediately. Thanks and Regards, --NPTEL Team

Ethical Hacking - Assignment- 8 Solution Released

Dear Learners, The   Assignment- 8  of   Week- 8 Solution  for the course " Ethical Hacking " has been released in the portal. Please go through the solution and in case of any doubt post your queries in the forum. Link for assignment 8 solution:    https://drive.google.com/file/d/1cQWzc-vxG6ti8mSN6lmp377CMvuSea2T/view?usp=drive_link Happy Learning! Thanks & Regards, NPTEL Team

NPTEL: Ethical Hacking: Week 9 Content and Assignment is live now !

Dear Students, The lecture videos for  Week 9  have been uploaded for the course  Ethical Hacking . The lectures can be accessed using the following link:  https://onlinecourses.nptel.ac.in/noc23_cs75/unit?unit=92&lesson=93 The other lectures of this week are accessible from the navigation bar to the left. Please remember to login into the website to view contents (if you aren't logged in already). Assignment 9  for  Week 9  is also released and can be accessed from the following link:  https://onlinecourses.nptel.ac.in/noc23_cs75/unit?unit=92&assessment=180 The assignment has to be submitted on or before  Wednesday, [27/09/2023], 23:59 IST . As we have done so far, please use the discussion forums if you have any questions on this module. Note:  Please check the due date of the assignments in the announcement and assignment page if you see any mismatch write to us immediately. Thanks and Regards, --NPTEL Team

Ethical Hacking - Week 9 Feedback Form

Ethical hacking - assignment- 7 solution released.

Dear Learners, The   Assignment- 7  of   Week- 7 Solution  for the course " Ethical Hacking " has been released in the portal. Please go through the solution and in case of any doubt post your queries in the forum. Link for assignment 7 solution:    https://drive.google.com/file/d/1XJnvMsNWE5DLse2wt6THzr8WrCquytJB/view?usp=drive_link Happy Learning! Thanks & Regards, NPTEL Team

NPTEL: Ethical Hacking: Week 8 Content and Assignment is live now !!

Dear Students, The lecture videos for  Week 8  have been uploaded for the course  Ethical Hacking . The lectures can be accessed using the following link:  https://onlinecourses.nptel.ac.in/noc23_cs75/unit?unit=83&lesson=84 The other lectures of this week are accessible from the navigation bar to the left. Please remember to login into the website to view contents (if you aren't logged in already). Assignment 8  for  Week 8  is also released and can be accessed from the following link:  https://onlinecourses.nptel.ac.in/noc23_cs75/unit?unit=83&assessment=179 The assignment has to be submitted on or before  Wednesday, [20/09/2023], 23:59 IST . As we have done so far, please use the discussion forums if you have any questions on this module. Note:  Please check the due date of the assignments in the announcement and assignment page if you see any mismatch write to us immediately. Thanks and Regards, --NPTEL Team

Ethical Hacking - Assignment- 6 Solution Released

Dear Learners, The   Assignment- 6  of   Week- 6 Solution  for the course " Ethical Hacking " has been released in the portal. Please go through the solution and in case of any doubt post your queries in the forum. Link for assignment 6 solution:    https://drive.google.com/file/d/1StHWuPlj-FgCjED7AwfK-sMAaKFgYeAw/view?usp=drive_link Happy Learning! Thanks & Regards, NPTEL Team

Ethical Hacking - Week 8 Feedback Form

Ethical hacking - assignment- 5 solution released.

Dear Learners, The   Assignment- 5  of   Week- 5 Solution  for the course " Ethical Hacking " has been released in the portal. Please go through the solution and in case of any doubt post your queries in the forum. Link for assignment 5 solution:    https://drive.google.com/file/d/1mIC1sDaOXdohYTW2vHyBqTYHk01aZKzY/view?usp=drive_link Happy Learning! Thanks & Regards, NPTEL Team

Ethical Hacking - Week 7 Feedback Form

Ethical hacking : assignment 3: question no 1.

Dear Students, There are mistakes in  assignment 3 question no 1 . Hence the questions are not considered for evaluation. The re-evaluation has been done. The updated score is displayed under Progress tab. Sorry for the inconvenience. -NPTEL Team

NPTEL: Ethical Hacking: Week 7 Content and Assignment is live now !!

Dear Students, The lecture videos for  Week 7  have been uploaded for the course  Ethical Hacking . The lectures can be accessed using the following link:  https://onlinecourses.nptel.ac.in/noc23_cs75/unit?unit=74&lesson=75 The other lectures of this week are accessible from the navigation bar to the left. Please remember to login into the website to view contents (if you aren't logged in already). Assignment 7  for  Week 7  is also released and can be accessed from the following link:  https://onlinecourses.nptel.ac.in/noc23_cs75/unit?unit=74&assessment=178 The assignment has to be submitted on or before  Wednesday, [13/09/2023], 23:59 IST . As we have done so far, please use the discussion forums if you have any questions on this module. Note:  Please check the due date of the assignments in the announcement and assignment page if you see any mismatch write to us immediately. Thanks and Regards, --NPTEL Team

Ethical Hacking - Week 6 Feedback Form

Nptel: ethical hacking: week 6 content and assignment is live now .

Dear Students, The lecture videos for  Week 6  have been uploaded for the course  Ethical Hacking . The lectures can be accessed using the following link:  https://onlinecourses.nptel.ac.in/noc23_cs75/unit?unit=65&lesson=66 The other lectures of this week are accessible from the navigation bar to the left. Please remember to login into the website to view contents (if you aren't logged in already). Assignment 6  for  Week 6  is also released and can be accessed from the following link:  https://onlinecourses.nptel.ac.in/noc23_cs75/unit?unit=65&assessment=177 The assignment has to be submitted on or before  Wednesday, [06/09/2023], 23:59 IST . As we have done so far, please use the discussion forums if you have any questions on this module. Note:  Please check the due date of the assignments in the announcement and assignment page if you see any mismatch write to us immediately. Thanks and Regards, --NPTEL Team

Ethical Hacking - Assignment- 4 Solution Released

Dear Learners, The   Assignment- 4  of   Week- 4 Solution  for the course " Ethical Hacking " has been released in the portal. Please go through the solution and in case of any doubt post your queries in the forum. Link for assignment 4 solution:    https://drive.google.com/file/d/1Vp0eAF_rf-hfFKS5kZmqas_J6G27WG-l/view?usp=drive_link Happy Learning! Thanks & Regards, NPTEL Team

Ethical Hacking - Assignment- 3 Solution Released (Revised QS 3)

Dear Learners, The   Assignment- 3  of   Week- 3 Solution (Revised QS 3)  for the course " Ethical Hacking " has been released in the portal. Please go through the solution and in case of any doubt post your queries in the forum. Link for assignment 3 solution  (Revised QS 3) :    https://drive.google.com/file/d/1OQImzjTu2Y3rnNVeLJrw7TAQki6mElkS/view?usp=drive_li nk Happy Learning! Thanks & Regards, NPTEL Team

Ethical Hacking - Assignment- 3 Solution Released

Dear Learners, The   Assignment- 3  of   Week- 3 Solution  for the course " Ethical Hacking " has been released in the portal. Please go through the solution and in case of any doubt post your queries in the forum. Link for assignment 3 solution:    https://drive.google.com/file/d/1XQtqDUqoNvNL0VWHWoNmKBmFcLWeph76/view?usp=drive_link Happy Learning! Thanks & Regards, NPTEL Team

Ethical Hacking - Week 5 Feedback Form

Nptel: ethical hacking: week 5 content and assignment is live now .

Dear Students, The lecture videos for  Week 5  have been uploaded for the course  Ethical Hacking . The lectures can be accessed using the following link:  https://onlinecourses.nptel.ac.in/noc23_cs75/unit?unit=56&lesson=57 The other lectures of this week are accessible from the navigation bar to the left. Please remember to login into the website to view contents (if you aren't logged in already). Assignment 5  for  Week 5  is also released and can be accessed from the following link:  https://onlinecourses.nptel.ac.in/noc23_cs75/unit?unit=56&assessment=176 The assignment has to be submitted on or before  Wednesday, [30/08/2023], 23:59 IST . As we have done so far, please use the discussion forums if you have any questions on this module. Note:  Please check the due date of the assignments in the announcement and assignment page if you see any mismatch write to us immediately. Thanks and Regards, --NPTEL Team

Exam Registration for NPTEL courses extended !!

Dear Learner,

Registration for the certification exam has been extended.

CLICK HERE to register for the exam.

Choose from the Cities where exam will be conducted: Exam Cities

Last date for exam registration is extended : August 28, 2023, 5:00 PM (Monday).

Click here to view Timeline and Guideline : Guideline

Note: Kindly ignore if registered already.

Happy Learning!

Thanks and Regards,

NPTEL TEAM.

Ethical Hacking - Week 4 Feedback Form

Nptel: ethical hacking: week 4 content and assignment is live now .

Dear Students, The lecture videos for  Week 4  have been uploaded for the course  Ethical Hacking . The lectures can be accessed using the following link:  https://onlinecourses.nptel.ac.in/noc23_cs75/unit?unit=47&lesson=48 The other lectures of this week are accessible from the navigation bar to the left. Please remember to login into the website to view contents (if you aren't logged in already). Assignment 4  for  Week 4  is also released and can be accessed from the following link:  https://onlinecourses.nptel.ac.in/noc23_cs75/unit?unit=47&assessment=172 The assignment has to be submitted on or before  Wednesday, [23/08/2023], 23:59 IST . As we have done so far, please use the discussion forums if you have any questions on this module. Note:  Please check the due date of the assignments in the announcement and assignment page if you see any mismatch write to us immediately. Thanks and Regards, --NPTEL Team

Ethical Hacking - Assignment- 0, 1 & 2 Solution Released

Dear Learners, The   Assignment- 0, 1 & 2  of   Week- 0, 1 & 2 Solution  for the course " Ethical Hacking " has been released in the portal. Please go through the solution and in case of any doubt post your queries in the forum. Link for assignment 0 solution:   https://drive.google.com/file/d/1UMt2ygNr59vV6jH1vatmeeu8Gv0GUDyH/view?usp=drive_link Link for assignment 1 solution:   https://drive.google.com/file/d/1TrBT2Yk5c51ausARzmukKcBlRB2TrNeA/view?usp=drive_link Link for assignment 2 solution:   https://drive.google.com/file/d/1VJ5JUcCLki11EJlTitvsNq17oXuSSGRI/view?usp=drive_link Happy Learning! Thanks & Regards, NPTEL Team

Ethical Hacking - Week 3 Feedback Form

Nptel: ethical hacking: week 3 content and assignment is live now .

Dear Students, The lecture videos for  Week 3  have been uploaded for the course  Ethical Hacking . The lectures can be accessed using the following link:  https://onlinecourses.nptel.ac.in/noc23_cs75/unit?unit=38&lesson=39 The other lectures of this week are accessible from the navigation bar to the left. Please remember to login into the website to view contents (if you aren't logged in already). Assignment 3  for  Week 3  is also released and can be accessed from the following link:  https://onlinecourses.nptel.ac.in/noc23_cs75/unit?unit=38&assessment=170 The assignment has to be submitted on or before  Wednesday, [16/08/2023], 23:59 IST . As we have done so far, please use the discussion forums if you have any questions on this module. Note:  Please check the due date of the assignments in the announcement and assignment page if you see any mismatch write to us immediately. Thanks and Regards, --NPTEL Team

Ethical Hacking - Week 2 Feedback Form

Nptel: ethical hacking: week 2 content and assignment is live now .

Dear Students, The lecture videos for Week 2 have been uploaded for the course Ethical Hacking . The lectures can be accessed using the following link:  https://onlinecourses.nptel.ac.in/noc23_cs75/unit?unit=29&lesson=30 The other lectures of this week are accessible from the navigation bar to the left. Please remember to login into the website to view contents (if you aren't logged in already). Assignment 2 for Week 2 is also released and can be accessed from the following link:  https://onlinecourses.nptel.ac.in/noc23_cs75/unit?unit=29&assessment=169 The assignment has to be submitted on or before Wednesday, [09/08/2023], 23:59 IST . As we have done so far, please use the discussion forums if you have any questions on this module. Note: Please check the due date of the assignments in the announcement and assignment page if you see any mismatch write to us immediately. Thanks and Regards, --NPTEL Team

Ethical Hacking - Week 1 Feedback Form

Ethical hacking - download video links are available now.

Dear Learners, The download video link for the course  Ethical Hacking is available now in the course outline. Please check the download video link:  https://nptel.ac.in/courses/106105217 -NPTEL Team

NPTEL: Ethical Hacking: Week 1 Content and Assignment is live now !!

Dear Students, The lecture videos for Week 1 have been uploaded for the course Ethical Hacking . The lectures can be accessed using the following link:  https://onlinecourses.nptel.ac.in/noc23_cs75/unit?unit=18&lesson=19 The other lectures of this week are accessible from the navigation bar to the left. Please remember to login into the website to view contents (if you aren't logged in already). Assignment 1 for Week 1 is also released and can be accessed from the following link:  https://onlinecourses.nptel.ac.in/noc23_cs75/unit?unit=18&assessment=168 The assignment has to be submitted on or before Wednesday, [09/08/2023], 23:59 IST. As we have done so far, please use the discussion forums if you have any questions on this module. Note : Please check the due date of the assignments in the announcement and assignment page if you see any mismatch write to us immediately. Thanks and Regards, --NPTEL Team

Stay Ahead of the Curve: Follow NPTEL for a Bright Future!!

Dear Learners Don't let knowledge pass you by! Stay in the loop with all the latest updates from NPTEL!  Follow us on social media to never miss a beat in your educational journey. Be the first to know about new courses, insightful articles, and exciting announcements.  Join our growing community. Tap those links below and let the learning adventure begin! Twitter: https://twitter.com/nptelindia?t=Yv1BextATpcwg7K2kOxbhg&s=08 Facebook:  https://www.facebook.com/NPTELNoc/ Instagram:  https://www.instagram.com/nptel_india/ LinkedIn: https://www.linkedin.com/mwlite/company/nptel YouTube: https://www.youtube.com/user/nptelhrd Happy learning!  Team NPTEL

Ethical Hacking- Assignment-0-RELEASED

Dear Learners, We welcome you all to this course. The assignment 0 for the course Ethical Hacking has been released.  This assignment is based on a prerequisite of the course. Kindly note that marks obtained in this assignment will not be considered for the final assessment.  You can find the assignment under Week 0 unit on the left-hand side of your screen. You can submit the assignment multiple times. All the best !!     --NPTEL Team

NPTEL: Exam Registration is open now for July 2023 courses!

Dear Learner, 

Here is the much-awaited announcement on registering for the July 2023 NPTEL course certification exam. 

1. The registration for the certification exam is open only to those learners who have enrolled in the course. 

2. If you want to register for the exam for this course, login here using the same email id which you had used to enroll to the course in Swayam portal. Please note that Assignments submitted through the exam registered email id ALONE will be taken into consideration towards final consolidated score & certification. 

3 . Date of exam: October 29, 2023

4. Exam fees: 

If you register for the exam and pay before Aug 14, 2023, 5:00 PM, Exam fees will be Rs. 1000/- per exam .

5. 50% fee waiver for the following categories: 

Students belonging to the SC/ST category: please select Yes for the SC/ST option and upload the correct Community certificate.

Students belonging to the PwD category with more than 40% disability: please select Yes for the option and upload the relevant Disability certificate. 

6. Last date for exam registration: Aug 18, 2023, 5:00 PM (Friday). 

7. Between Aug 14, 2023, 5:00 PM & Aug 18, 2023, 5:00 PM late fee will be applicable.

8. Mode of payment: Online payment - debit card/credit card/net banking/UPI. 

9. HALL TICKET: 

The hall ticket will be available for download tentatively by 2 weeks prior to the exam date. We will confirm the same through an announcement once it is published. 

10. FOR CANDIDATES WHO WOULD LIKE TO WRITE MORE THAN 1 COURSE EXAM:- you can add or delete courses and pay separately – till the date when the exam form closes. Same day of exam – you can write exams for 2 courses in the 2 sessions. Same exam center will be allocated for both the sessions. 

11. Data changes: 

Last date for data changes: Aug 18, 2023, 5:00 PM :  

We will charge an additional fee of Rs. 200 to make any changes related to name, DOB, photo, signature, SC/ST and PWD certificates after the last date of data changes.

The following 6 fields can be changed(until the form closes) ONLY when there are NO courses in the course cart. And you will be able to edit those fields only if you: - 

REMOVE unpaid courses from the cart And/or - CANCEL paid courses 

1. Do you come under the SC/ST category? * 

2. SC/ST Proof 

3. Are you a person with disabilities? * 

4. Are you a person with disabilities above 40%? 

5. Disabilities Proof 

6. What is your role ? 

Note: Once you remove or cancel a course, you will be able to edit these fields immediately. 

But, for cancelled courses, refund of fees will be initiated only after 2 weeks. 

12. LAST DATE FOR CANCELLING EXAMS and getting a refund: Aug 18, 2023, 5:00 PM  

13. Click here to view Timeline and Guideline : Guideline

Domain Certification

Domain Certification helps learners to gain expertise in a specific Area/Domain. This can be helpful for learners who wish to work in a particular area as part of their job or research or for those appearing for some competitive exam or becoming job ready or specialising in an area of study.  

Every domain will comprise Core courses and Elective courses. Once a learner completes the requisite courses per the mentioned criteria, you will receive a Domain Certificate showcasing your scores and the domain of expertise. Kindly refer to the following link for the list of courses available under each domain: https://nptel.ac.in/domains

Outside India Candidates

Candidates who are residing outside India may also fill the exam form and pay the fees. Mode of exam and other details will be communicated to you separately.

Thanks & Regards, 

Ethical Hacking:Welcome to NPTEL Online Course - July 2023!!

  • Every week, about 2.5 to 4 hours of videos containing content by the Course instructor will be released along with an assignment based on this. Please watch the lectures, follow the course regularly and submit all assessments and assignments before the due date. Your regular participation is vital for learning and doing well in the course. This will be done week on week through the duration of the course.
  • Please do the assignments yourself and even if you take help, kindly try to learn from it. These assignments will help you prepare for the final exams. Plagiarism and violating the Honor Code will be taken very seriously if detected during the submission of assignments.
  • The announcement group - will only have messages from course instructors and teaching assistants - regarding the lessons, assignments, exam registration, hall tickets, etc.
  • The discussion forum (Ask a question tab on the portal) - is for everyone to ask questions and interact. Anyone who knows the answers can reply to anyone's post and the course instructor/TA will also respond to your queries.
  • Please make maximum use of this feature as this will help you learn much better.
  • If you have any questions regarding the exam, registration, hall tickets, results, queries related to the technical content in the lectures, any doubts in the assignments, etc can be posted in the forum section
  • The course is free to enroll and learn from. But if you want a certificate, you have to register and write the proctored exam conducted by us in person at any of the designated exam centres.
  • The exam is optional for a fee of Rs 1000/- (Rupees one thousand only).
  • Date and Time of Exams: October 29, 2023 Morning session 9am to 12 noon; Afternoon Session 2 pm to 5 pm.
  • Registration URL: Announcements will be made when the registration form is open for registrations.
  • The online registration form has to be filled and the certification exam fee needs to be paid. More details will be made available when the exam registration form is published. If there are any changes, it will be mentioned then.
  • Please check the form for more details on the cities where the exams will be held, the conditions you agree to when you fill the form etc.
  • Once again, thanks for your interest in our online courses and certification. Happy learning.

A project of

nptel week 7 assignment answers 2023 java

In association with

nptel week 7 assignment answers 2023 java

  • Thursday, May 2, 2024

NPTEL Programming in Java Week 7 Assignment Solution 2023

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

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

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

Study materials related to this course.

  • Updated Oct 27, 2023

souraavv / NPTEL-DAA-Programming-Assignment-Solutions

Programming assignments of NPTEL DAA course taken by Prof. Madhavan Mukund of Chennai Mathematical Institute.

  • Updated Dec 8, 2022

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 Sep 6, 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

roopeshsn / embedded-system-design-nptel

Embedded System Design Course Materials - NPTEL

  • Updated May 6, 2022

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

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

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

  • Updated Apr 28, 2021

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 / Programming-Data-Structures-And-Algorithms-Using-Python

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

  • Updated Nov 30, 2020

ShishiraB / Programming-Data-Structures-And-Algorithms-Using-Python

This is a repository where i have tried to give explaination

  • Updated Mar 1, 2023

Rahulnisanth / Python-ZTM-Hub

Complete python repository from zero to mastery experience

  • Updated Apr 30, 2024

NPTEL-Course / Google-Cloud-Computing-Foundations

Nptel Course Solution : Google Cloud Computing Foundations

  • Updated Nov 19, 2020

code-reaper08 / NPTEL-Practice-Repo

Practice repo for NPTEL 📚 Programming, Data Structures and Algorithms.

  • Updated Aug 27, 2021

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

NPTEL Introduction to Programming in C Assignment 4 Question 1

  • Updated Apr 2, 2024

lonebots / python-programming-joc-nptel

Python programming repository for NPTEL joy of computing course

  • Updated Dec 21, 2020

Improve this page

Add a description, image, and links to the nptel-assignments 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-assignments topic, visit your repo's landing page and select "manage topics."

IMAGES

  1. Programming In Java

    nptel week 7 assignment answers 2023 java

  2. Programing in java nptel week 7 quiz assignment answers 2023

    nptel week 7 assignment answers 2023 java

  3. Programming in Java

    nptel week 7 assignment answers 2023 java

  4. NPTEL INTRODUCTION TO MACHINE LEARNING WEEK 7 ASSIGNMENT ANSWERS

    nptel week 7 assignment answers 2023 java

  5. nptel Programming in Java Week 7 assignment solution.

    nptel week 7 assignment answers 2023 java

  6. NPTEL Programming In Java Week 7 Assignment Solution Quiz

    nptel week 7 assignment answers 2023 java

VIDEO

  1. Cloud Computing || WEEK-7 Quiz assignment Answers 2023||NPTEL||#nptel||#cloudcomputing||#SKumarEdu

  2. Cloud Computing Week 7 Assignment Answers

  3. Nptel Leadership and Team Effectiveness Week 5 Assignment 5 Answers and Solutions 2024

  4. NPTEL||DISCRETE MATHEMATICS||WEEK 7 ASSIGNMENT ANSWERS||LAST DATE 13 TH SEP||CSIT_CODING

  5. Deep Learning week 7 || assignment 7 nptel || nptel solution 2023

  6. Data Science For Engineers

COMMENTS

  1. NPTEL Programming In Java WEEK7 Quiz Assignment Solutions

    🔊 NPTEL Programming In Java WEEK7 Quiz Assignment Solutions | Swayam July 2023 | IIT Kharagpur | GATE NPTEL⛳ABOUT THE COURSE :With the growth of Information...

  2. NPTEL Programming In Java Week 7 Assignment 7 Answers ...

    Programming In Java Week 7 Assignment 7 Answers Solution Quiz | 2023-JulyJoin NPTEL - Programming in Java :https://telegram.me/ProgrammingInJavaNPTELJoin our...

  3. NPTEL Programming In Java WEEK 7 Quiz Assignment Solutions

    🔊 Programming In Java NPTEL Elective Course 2023🔗Programming Assignment Link : https://bit.ly/3kG26bXNPTEL Programming In Java WEEK 7 Quiz Assignment Solut...

  4. NPTEL Programming in Java Week7 Assignment Solution July 2023

    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)

  5. bkkothari2255/Programming_In_Java_NPTEL

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

  6. nptel-java-solutions · GitHub Topics · GitHub

    To associate your repository with the nptel-java-solutions topic, visit your repo's landing page and select "manage topics." GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 420 million projects.

  7. Programming in Java NPTEL Assignment Answers of Week 7(2023)

    Answer : a , b, d. Week 7 : Programming Assignment 1. 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.

  8. nptel-solutions · GitHub Topics · GitHub

    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." GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 420 million projects.

  9. NPTEL Programming In Java Week 7 Assignment 7 Answers

    These are NPTEL Programming In Java Week 7 Assignment 7 Answers. 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".

  10. NPTEL Programming In Java WEEK7 Programming Assignment ...

    🔊 Programming In Java NPTEL Elective Course 2023 | GATE NPTEL | https://techiestalk.in/NPTEL Programming In Java WEEK7 Programming Assignment Solutions | Sw...

  11. Programming in Java

    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. Programming Assignment. Week 5: Inheritance.

  12. Programming In Java

    The assignment 0 for the course Programming In Java has been released. This assignment is based on a prerequisite of the course. Kindly note that marks obtained in this assignment will not be considered for the final assessment. You can find the assignment under Week 0 unit on the left-hand side of your screen.

  13. NPTEL Programming In Java Assignment 7 Answers 2022

    NPTEL Programming In Java Assignment 7 Answers:-. 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. public class Question1{. public static void main (String[] args){. int i,number=0,sum=0;

  14. PDF Java Week 7 : Q1

    02/07/2020 Programming in Java - Course https://onlinecourses.nptel.ac.in/noc20_cs08/progassignment?name=148 3/3 DOWNLOAD VIDEOS Assignment Solution

  15. NPTEL Java Week 7 Assignment 2023: Answers Revealed

    NPTEL Programming in Java Week 7 Programming Assignment 7 Solution. Q1) 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 ...

  16. NPTEL Programming In Java Week 7 Assignment Answers 2022

    Students, it's time to reveal the hint of programming in java NPTEL week 7 assignment answers. And, identify where you can improve your marks in this assignment. Spread the word. Share the link on social media. ... NPTEL Programming In Java Week 6 Assignment Answers 2023. Sidebar. Stats. Questions 1k . Answers 1k . Posts 133 . Best Answers 76 .

  17. Ethical Hacking

    The Assignment- 7 of Week- 7 Solution for the course "Ethical Hacking" has been released in the portal. Please go through the solution and in case of any doubt post your queries in the forum. ... Here is the much-awaited announcement on registering for the July 2023 NPTEL course ... Anyone who knows the answers can reply to anyone's post and ...

  18. NPTEL Programming in Java Week 7 Assignment Solution 2023

    March 4, 2023. Faheem Ahmad. 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.

  19. NPTEL Programming In Java Week 7 Programming Assignment Answers

    Programming In Java Week 7 Programming Assignment Answers Solution Quiz | 2023-JulyJoin our Telegram Channel : https://telegram.me/SwayamSolverFor unproctore...

  20. NPTEL Programming In Java Week 7 Assignment Answers 2024

    Importance of Week 7 Assignments. Week 7 assignments in the NPTEL Java programming course are crucial as they typically cover advanced topics and concepts. These assignments serve as a litmus test for your grasp of Java programming fundamentals and your ability to apply them to solve real-world problems. Excelling in these assignments not only ...

  21. NPTEL NLP Week 8 Assignment Answers 2024: Homonymy & Synonymy

    a. Fruit is a hypernym of mango. b. Animal is hyponym of cat. c. Homographs are the words with the same pronunciation but di³erent spelling d. Bank (±nancial organization) vs Bank (riverside) is an example of homonym Answer: c. Homographs are the words with the same pronunciation but di³erent spelling Reason: Homographs are words that share the same spelling but have di³erent meanings ...

  22. nptel-assignments · GitHub Topics · GitHub

    To associate your repository with the nptel-assignments topic, visit your repo's landing page and select "manage topics." GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 420 million projects.

  23. Week 7

    Week 7 - 2024 Assignment.pdf - NPTEL Online Certification... Doc Preview. Pages 8. Identified Q&As 11. ... The following data are related to a company for the financial year 2023-2024. (All figures are in Rupees except when specifically ... 1870 c) 1980 d) 1700 Answer: c Detailed solution Book value as of 31.03.2023: Rs. 1,500 Purchase of new ...

  24. NPTEL Programming in Java Week 7 Quiz Assignment Answers 2023

    Get the complete solution to NPTEL Programming in Java week 7 assignment in just 2 minutes and 9 seconds! Watch our video and learn how to solve all 10 quest...

  25. NPTEL NLP Week 6 Assignment Solutions: Parsing & Dependency

    View NPTEL Natural Language Processing Week 6 Assignment Answers 2023 - DBC Itanagar.pdf from CS 8602 at Govt. Postgraduate College, Gujranwala. NPTEL Natural Language Processing Week 6

  26. NPTEL Programming in Java Week 7 Quiz answers with detailed ...

    NPTEL Programming in Java Week 8 Quiz answers with detailed proof of each answerhttps://youtu.be/YkFbKv6_w24NPTEL Programming in Java week 7 all 5 programmin...

  27. NPTEL Natural Language Processing Assignment Solutions

    View [Week 4] NPTEL Natural Language Processing Assignment Answers 2023 - DBC Itanagar.pdf from CS 8791 at Govt. Postgraduate College, Gujranwala. Notifications Powered by iZooto [Week 4] NPTEL