CodeWorkout Pre-knowledge test

Score: 0 / 14.0


Exercises

0 / 2.0

Write a method that takes as argument an integer size and returns an integer array of that size. The method should allocate a new array...

0 / 2.0

Write a method that takes two arguments, the first is an integer size and the second argument, init, is a default value to use to...

0 / 2.0

Complete the function getArraySize() so that it returns the size of the array passed in as an argument into the function. You cannot use...

0 / 2.0

Complete the function getElementAt() so that it returns the element nth in the array numbers. You may assume that the array has at least...

0 / 2.0

Write a method that will make a copy of an array. The method takes one parameter, orig. The method should make a new array the same size...