Answers 100% Solved
How to use Array variables Correct Answ_1. Declare the variable
2. Initialize it
3. Access its value
What number does the array indices starts Correct Answ_0
How to determine the length of an array Correct Answ_Use the Length property of an array
to determine its size.arrayIdentifier.Length
How array elements are stored in memory? Correct Answ_Array elements are stored in
contiguous memory, one right after another.
what is the formula to calculate the memory address of an array element, given the element's
index, the array's base memory address and the size of each element? Correct
Answ_elementAddress = arrayAddress + index * size
, What's a method? Correct Answ_Defines the behavior specific to a class
What are the 2 key principles of good programming? Correct Answ_modularity and
reusability
How modularity works Correct Answ_Break down code into smaller, related parts
More manageable and readable
Reduce the number of local variables inside a module
How reusability works? Correct Answ_Duplicated code (copy/paste) is not good
Must maintain same code in multiple places
Better to put duplicate code in a new method and 'call' it from multiple places
What all methods must have? Correct Answ_A return type and a method identifier.
Parameters are optional.
What can end a method early? Correct Answ_A return statement in a void method