Question 26
Refer to the code below:
Let inArray - [ [1, 2] , [3, 4, 5] ];
Which two statements result in the array [1, 2, 3, 4, 5 ]?
Let inArray - [ [1, 2] , [3, 4, 5] ];
Which two statements result in the array [1, 2, 3, 4, 5 ]?
Question 27
Refer to the following array:
Let arr1 = [ 1, 2, 3, 4, 5 ];

Which two lines of code result in a second array, arr2 being created such that arr2 is not a reference to arr1?
Let arr1 = [ 1, 2, 3, 4, 5 ];

Which two lines of code result in a second array, arr2 being created such that arr2 is not a reference to arr1?
Question 28
Refer to the code below:
Function changeValue(obj) {
Obj.value = obj.value/2;
}
Const objA = (value: 10);
Const objB = objA;
changeValue(objB);
Const result = objA.value;
What is the value of result after the code executes?
Function changeValue(obj) {
Obj.value = obj.value/2;
}
Const objA = (value: 10);
Const objB = objA;
changeValue(objB);
Const result = objA.value;
What is the value of result after the code executes?
Question 29
Refer to the code below:

What is the output if this function when called with an empty array?

What is the output if this function when called with an empty array?
Question 30
A developer wrote a fizzbuzz function that when passed in a number, returns the following:
Fizz if the number is divisible by 3.
Buzz if the number is divisible by 5.
Fizzbuzz if the number is divisible by both 3 and 5.
Empty string if the number is divisible by neither 3 or 5.
Which two test cases will properly test scenarios for the fizzbuss function?
Fizz if the number is divisible by 3.
Buzz if the number is divisible by 5.
Fizzbuzz if the number is divisible by both 3 and 5.
Empty string if the number is divisible by neither 3 or 5.
Which two test cases will properly test scenarios for the fizzbuss function?
