Imagine you saw the following line in code.

              int x = 76;
            
Which of the concepts you learned about in this module would you recognize it as?

x is a variable
  • x is a method
  • x is a comment
  • x is an object

There are no hints for this question

Imagine you saw the following line in code.

              calculateArea()
            
Which of the concepts you learned about in this module would you recognize it as?

a method call
  • a variable declaration
  • a precondition
  • an object being created

There are no hints for this question

Imagine you saw the following line in code.

              // this code was written by Herlock Sholmes
            
Which of the concepts you learned about in this module would you recognize it as?

a single line comment
  • a variable declaration
  • a method being called
  • an object being created

There are no hints for this question