Module 13: Classes - Quiz

  • A It defines a method called "new" that initializes variables x and y to default values of 10 each.
  • B It creates a constructor named "new" with parameters _x and _y, and initializes variables x and y with the provided values.
  • C It defines a default constructor that initializes variables x and y to the values of _x and _y.
  • D It declares a class with default values of 10 for variables x and y, which can be accessed using the "new" method.
  • A where sampleTable.AccountNum == “1234”
  • B locate sampleTable.AccountNum == “1234”
  • C join sampleTable.AccountNum == “1234”
  • D forUpdate sampleTable.AccountNum == “1234”
  • A Methods declared with the keyword final
  • B Private methods
  • C Protected and public methods
  • D Methods tagged with the attribute hookable(false)
  • A <pre class = "prettyprint"><xmp>internal final class +MyClassName{ }</xmp></pre>
  • B <pre class = "prettyprint"><xmp>internal final class MyClassName{ }</xmp></pre>
  • C <pre class = "prettyprint"><xmp>internal final class 1MyClassName{ }</xmp></pre>
  • D <pre class = "prettyprint"><xmp>internal final class MyClassName{ }</xmp></pre>
  • A A public method
  • B A private method
  • C An access method
  • D A protected method
  • A protected 
  • B public
  • C static
  • D private