Writing Java Application Code | Module 1

Course Name: Writing Java Application Code (Java as a Second Language Specialization)

Course Link: Writing Java Application Code

These are Writing Java Application Code Week 1 Coursera Answers


Q1. Java Console Applications instantiate classes for _________ .

  • sending output to users
  • taking command line input
  • sending email
  • closing the application

Answer: taking command line input


Q2. True or False: Console applications are intended for beginners.

  • True
  • False

Answer: False


Q3. The IO Input Stream classes process input as what kind of data?

  • int
  • bool
  • String
  • Date
Answer: String

Q4. If you use IO Input Stream classes the input can be converted to an int using which method?

  • Integer.parseInt(input)
  • toInt(input)
  • int(input)
  • It cannot be done
Answer: Integer.parseInt(input)

These are Writing Java Application Code Week 1 Coursera Answers


Q5. The IO Input Stream classes require which of the following for error handling?

  • No error handling
  • InputError
  • IOException
  • InputException
Answer: IOException

Q6. True or False: Scanner class requires an error handler.

  • True
  • False
Answer: False

Q7. The Scanner class has all the methods below except __________ .

  • nextLine()
  • nextInt()
  • nextWord()
  • nextDouble()
Answer: nextWord()

Q8. True or False: Scanner requires fewer lines of code for executing Java Console applications.

  • True
  • False
Answer: True

Q9. True or False: Like all Console applications written in any language, Java Console applications deliver a low user experience.

  • True
  • False
Answer: True

Q10. When building a Java Console application, all classes and depencies are compressed into which kind of file?

  • .exe file
  • jar file
  • .go file
  • .asm file
Answer: jar file

These are Writing Java Application Code Week 1 Coursera Answers

See also  The Java Language | Module 1

More Weeks of the course: Click Here

More Coursera courses: https://progiez.com/coursera

Writing Java Application Code Week 1 Coursera Answers