--:--









Quiz for Scanner and PrintWriter

Course: JAVA | Subject: Java | Topic: Java I/O



Logo

Q1: Which package contains the Scanner and PrintWriter classes?

Logo

Q2: What is the purpose of the Scanner class in Java?

Logo

Q3: Which method of Scanner reads a full line of input?

Logo

Q4: Which method of Scanner checks if another token exists?

Logo

Q5: How do you create a Scanner to read from a file?

Logo

Q6: What is the default delimiter used by Scanner?

Logo

Q7: Which class is used to write formatted output to files?

Logo

Q8: What method is used to write a string in PrintWriter?

Logo

Q9: Which PrintWriter method adds a new line automatically?

Logo

Q10: What should you do after using a Scanner or PrintWriter?

Are you ready to start test? Set your time limit