Question
?Identify a true statement of array .find( callback [, thisArg ])method. a ?It tests whether the condition returned by the callback function holds for at
?Identify a true statement of array.find(callback [, thisArg])method.
a | ?It tests whether the condition returned by the callback function holds for at least one item in array. |
b | ?It returns the value of the first element in the array that passes a test in the callback function. |
c | ?It tests whether the condition returned by the callback function holds for all items in array. |
d | ?It returns the index of the first element in the array that passes a test in the callback function. |
?The appearance of any form element can be changed by modifying style sheets instead of the JavaScript code.
True |
False |
?The _____ method creates a new array by passing the original array items to the callback function, which returns the equivalent value of the array items.
a | ?array.every(callback [, thisArg]) |
b | ?array.map(callback [, thisArg]) |
c | ?array.some(callback [, thisArg]) |
d | ?array.find(callback [, thisArg]) |
?Increasing the value of the length property adds more items to an array, but the items have null values until they are defined.
True |
False |
?The value of the length property can be reduced without removing items from an array.
True |
False |
?Which of the following determines the current size of an array?
?array(length) |
?array[length] |
?array.length |
?array::length |
?Identify a compare function that sorts numeric values in descending order.
a | function descending(a, b) { return a - b; } |
b | function descending(b, a) { return b; } ? |
c | function descending(a, b) { return b - a; } |
d | function descending(b, a) { return a; } |
?Identify a true statement of array.some(callback [, thisArg])method.
a | ?It tests whether the condition returned by the callback function holds for at least one item in array. |
b | ?It returns the value of the first element in the array that passes a test in the callback function. |
c | ?It tests whether the condition returned by the callback function holds for all items in array. |
d | ?It returns the index of the first element in the array that passes a test in the callback function. |
?The _____ statement stops processing the commands in the current iteration of the loop and proceeds to the next iteration instead of stopping the program loop altogether.
a | ?switch |
b | ?else |
c | ?continue |
d | ?pass |
?Identify the general structure of a for loop.
a | for (start;continue;update) { commands } |
b | ?for (start;update) { commands } |
c | ?for (start;stop) { commands } |
d | ?for (start;stop;continue) { commands } |
?Identify the structure of an if statement
a | if (condition) { commands } |
b | ?if { }(condition) |
c | if { commands } |
d | ?if { } (condition){ commands |
?A _____, which employs the first-in-first-out (FIFO) principle in which the first item added to the data list is the first removed, is similar to a stack.
a | ?frame |
b | ?bitmap |
c | ?queue |
d | ?binary tree |
?The getDate() method in a calendar app returns an integer ranging from 0 (Sunday) to 6 (Saturday).
True |
False |
?Identify the syntax of the statement label.
a | ?label = {statements} |
b | ?statement!(label) |
c | ?label: statements |
d | ?statements.label |
?Statement labels are used to identify statements in JavaScript code so that the statements can be referenced elsewhere in a program.
True |
False |
What is the output of the following code? for (var i = 0; i <= 360; i+=60)
a | ?i = 0, 60, 120, 180, 240, 360 |
b | ?i = 360, 240, 180, 120, 60, 0 |
c | ?i = 60, 120, 240, 480, 960 |
d | ?i = 600, 300, 240, 180, 120, 60 |
?Identify the expression in which the initial value of the day variable will be set to match the first day of the calendar month.
a | ?var day = Date(calDate(), calDate.getDay(), 1); |
b | ?var day = new Day(calDate.getDD(), calDate.getMM(),calDate.getYY(),1); |
c | ?var day = new Day(calDay.getFullMonth(), calDay.getDate(), 1); |
d | ?var day = new Date(calDate.getFullYear(), calDate.getMonth(), 1); |
?A(n) _____ is a collection of values organized under a single name.
a | ?index |
b | ?heap |
c | ?array |
d | ?tuple |
What is the output of the following code?
var sum = 0;
var x = [1, 3, 7, 11];
?
x.forEach(sumArray);
?
function sumArray(value) {
sum += value;
}
?
a | ?0 |
b | ?231 |
c | ?11 |
d | ?22 |
?JavaScript supports logical operators that connect several expressions.
True |
False |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started