Exam 10: Exploring Arrays Loops and Conditional Statements Tutorial
Exam 1: Getting Started With Html5118 Questions
Exam 2: Getting Started With Css Tutorial117 Questions
Exam 3: Designing a Page Layout Tutorial106 Questions
Exam 4: Graphic Design With Css Tutorial87 Questions
Exam 5: Designing for the Mobile Web Tutorial90 Questions
Exam 6: Working With Tables and Columns Tutorial69 Questions
Exam 7: Designing a Web Form Tutorial71 Questions
Exam 8: Enhancing a Website With Multimedia Tutorial73 Questions
Exam 9: Getting Started With Javascript Tutorial72 Questions
Exam 10: Exploring Arrays Loops and Conditional Statements Tutorial73 Questions
Exam 11: Working With Events and Styles Tutorial76 Questions
Exam 12: Working With Document Nodes and Style Sheets Tutorial76 Questions
Exam 13: Programming for Web Forms Tutorial78 Questions
Exam 14: Exploring Object-Based Programming77 Questions
Select questions type
The _____ method performs an action similar to the forEach() method except that the function it calls returns a value that can be used to match the contents of an existing array into a new array.
(Multiple Choice)
5.0/5
(36)
Identify the letter of the choice that best matches the phrase or definition.
Correct Answer:
Premises:
Responses:
(Matching)
4.9/5
(34)
The appearance of any form element can be changed by modifying style sheets instead of the JavaScript code.
(True/False)
4.8/5
(34)
Which of the following examples tests whether x is equal to 5 or y is equal to 8?
(Multiple Choice)
4.8/5
(40)
Which of the following functions increases the value of each item in an array by 1?
(Multiple Choice)
4.7/5
(44)
The _____ operator tests whether two items are equal in value and have the same data type.
(Multiple Choice)
4.8/5
(34)
When each entry in an array matches the entry in another array, it is called a linear array.
(True/False)
4.8/5
(40)
Identify the expression in which the initial value of the day variable will be set to match the first day of the calendar month.
(Multiple Choice)
4.9/5
(33)
T he value of the length property can be reduced without removing items from an array.
(True/False)
4.9/5
(37)
Case-Based Critical Thinking Questions Case 9-2 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
(40)
When a pass statement is encountered, control is passed to the statement immediately following it.
(True/False)
4.7/5
(35)
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
(39)
What is the output of the following code? var x = ["a", "b", "c"]; x.push("d", "e"); x.pop(); x.pop();
(Multiple Choice)
4.8/5
(33)
Case-Based Critical Thinking Questions Case 9-1 Melissa, a computer science engineering student, is learning the basics of programming by exploring arrays. She learns about different array methods. She wishes to learn more on inserting and deleting array items. She creates monthName array to extract only the three spring months-March, April, and May-from a calendar. Melissa wants to insert abbreviations of spring months into the monthName array. Which of the following methods should she use?
(Multiple Choice)
4.9/5
(32)
Case-Based Critical Thinking Questions Case 9-2 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 ensure February contains 29 days only in the year 2020 as it is a leap year. Which of the following should Gregor use to set the value in the dayCount array?
(Multiple Choice)
4.8/5
(37)
Identify a method that decreases array by keeping only those items that return a value of true from the callback function.
(Multiple Choice)
4.8/5
(37)
Identify the output of the following code. var x = [3, 45, 1234, 24]; x.sort();
(Multiple Choice)
4.9/5
(40)
Case-Based Critical Thinking Questions Case 9-1 Melissa, a computer science engineering student, is learning the basics of programming by exploring arrays. She learns about different array methods. She wishes to learn more on inserting and deleting array items. She creates monthName array to extract only the three spring months-March, April, and May-from a calendar. Melissa wants to extract the spring months and store them in the monthName array. Identify a method Melissa should choose to perform this task.
(Multiple Choice)
4.9/5
(37)
Showing 21 - 40 of 73
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)