Skip to the content.

Practice MCQ 1 Results CSA

Practice MCQ 1 CSA Results

Image

Units I struggled with

Image

Specific Topics I Struggled With

Image

Top 3 Mitsakes:

Image

  • The correct answer is B
  • A is incoreect: This expression evaluates to ”HID”. The call original.substring(4) returns ”HI”, which is the substring starting at index 4 and going through the end of the string. The call original.substring(0, 1) returns ”D”, which is the substring starting at index 0 and ending at index 1 - 1.
    Image
  • Correct answer is B
  • A is Incorrect. This code segment produces the following output. 1 2 2 3 3 3
    Image Image
    Answer is D C is incorrect becuase the incrementAge method is a mutator method that modified the value of an instance variable, so it does not need to return a value.

Plans to Study

1. Learn Java More in Depth


[] Keep practicing basic Java syntax [] Review how variables, data types, and returns work. [] Write short programs every day


2. Fixing and Understanding Errors


[] When a program won’t compile, read the error message and fix one issue at a time. [] Practice spotting common mistakes: [] Missing ; or { } [] Wrong variable type [] Method doesn’t return the right value