Exam 10: Exploring Arrays, loops, and Conditional Statements
Exam 1: Getting Started With Html5147 Questions
Exam 2: Getting Started With CSS148 Questions
Exam 3: Designing a Page Layout136 Questions
Exam 4: Graphic Design With CSS107 Questions
Exam 5: Designing for the Mobile Web112 Questions
Exam 6: Working With Tables and Columns89 Questions
Exam 7: Designing a Web Form91 Questions
Exam 8: Enhancing a Website With Multimedia90 Questions
Exam 9: Getting Started With Javascript89 Questions
Exam 10: Exploring Arrays, loops, and Conditional Statements90 Questions
Select questions type
Identify the letter of the choice that best matches the phrase or definition.
-This method duplicates items within an array.
(Multiple Choice)
4.9/5
(36)
The getDate()method in a calendar app returns an integer ranging from 0 (Sunday)to 6 (Saturday).
(True/False)
4.8/5
(36)
The map(callback [,thisArg])method returns the index of the first element in the array that passes a test in the callback function.
(True/False)
4.8/5
(41)
The slice()method reverses the order of items in an array,making the last items first and the first items last.
(True/False)
4.8/5
(30)
JavaScript supports logical operators that connect several expressions.
(True/False)
4.8/5
(37)
JavaScript allows for the creation of _________,in which some array values are undefined.
(Short Answer)
4.9/5
(35)
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;
}
(Multiple Choice)
4.8/5
(35)
When a pass statement is encountered,control is passed to the statement immediately following it.
(True/False)
4.8/5
(35)
Arrays can be used to store information in a data structure known as a _________ in which new items are added to the top or to the end of the array.
(Short Answer)
4.8/5
(35)
Gregor, a software developer, is developing a calendar application. He has to use several if conditional statements to ensure that the calendar displays the exact number of days present in each month of each year. He creates a dayCount array to keep track of the number of days in each month.
-Gregor wants to create a condition to ensure that all the years divisible by 4 should contain 29 days in February.Which of the following statements should he use?
(Multiple Choice)
4.8/5
(36)
Identify the general structure for accessing each value from an array using a for loop.
(Multiple Choice)
4.9/5
(46)
Identify the letter of the choice that best matches the phrase or definition.
-This method removes the last item from an array.
(Multiple Choice)
4.8/5
(45)
Statement labels are used to identify statements in JavaScript code so that the statements can be referenced elsewhere in a program.
(True/False)
4.9/5
(42)
Index values start with 1 so that the initial item in an array has an index value of 1,the second item has an index value of 2,and so on.
(True/False)
4.8/5
(33)
Identify a method that decreases array by keeping only those items that return a value of true from the callback function.
(Multiple Choice)
4.7/5
(42)
Showing 41 - 60 of 90
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)