The Java Language | Module 1

Course Name: The Java Language (Java as a Second Language Specialization)

Course Link: The Java Language

These are The Java Language Week 1 Coursera Answers


Q1. Which of the following are Java comment indicators? (Select all that apply)

  • !@
  • #
  • /* */
  • //

Answer: /* */, //


Q2. True or False: int is a primative data type.

  • True
  • False
Answer: True

Q3. True or False: A float data type cannot have numbers after the decimal point.

  • True
  • False
Answer: False

Q4. True or False: A String is NOT a primitive data type.

  • True
  • False
Answer: False

These are The Java Language Week 1 Coursera Answers


Q5. A Date data type is a special ______ .

  • space in memory
  • primitive
  • class
Answer: class

Q6. A variable’s data type determines the _______ it may contain, plus the ________ that may be performed on it.

  • keyword, operations
  • integer, boolean
  • values, operations
Answer: values, operations

Q7. Which primitive data type has only 2 possible values?

  • double
  • float
  • char
  • boolean
Answer: boolean

Q8. In String literals, always use ________.

  • parenthesis ( )
  • double quotes ” “
  • single quotes ‘ ‘
Answer: double quotes " "

These are The Java Language Week 1 Coursera Answers


More Weeks of the course: Click Here

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

These are The Java Language Week 1 Coursera Answers
See also  Writing Java Application Code | Module 1