Exam 11: Object-Oriented Programming and Arrays
Exam 1: Introduction to Web Programming28 Questions
Exam 2: Coding Standards, Block Elements, Text Elements, and Character References30 Questions
Exam 3: Cascading Style Sheets (CSS)29 Questions
Exam 4: Organizing a Pages Content With Lists, Figures, and Various Organizational Elements30 Questions
Exam 5: Tables and Css Layout30 Questions
Exam 6: Links and Images30 Questions
Exam 7: Image Manipulations, Audio, and Video30 Questions
Exam 8: Introduction to Javascript: Functions, Dom, Forms, and Event Handlers28 Questions
Exam 9: Additional Javascript Basics: Window Object, If Statement, Strings, Numbers, and Input Validation30 Questions
Exam 10: Loops, Additional Controls, Manipulating Css With Javascript29 Questions
Exam 11: Object-Oriented Programming and Arrays30 Questions
Exam 12: Canvas30 Questions
Exam 13: Web Development and HTML/CSS98 Questions
Select questions type
Suppose an <code>onclick</code> event-handler function includes an <code>e</code> parameter for its passed-in event object. What code could be used to access the mouse pointer's x coordinate position?
(Multiple Choice)
4.9/5
(36)
Suppose that you have a class named Student with a method named payFees and that you have instantiated an object named student. Which of the following is a proper call to the payFees method?
(Multiple Choice)
4.8/5
(36)
If the following code executes, what message displays in the resulting dialog box?
var x = 3.5;
alert(x > 3 ? x + 1 : x - 1);
(Short Answer)
5.0/5
(38)
Sort the following three strings so they are in ascending lexicographical order (words that are considered less than other words should be at the left).
"aardvark", "African polecat", "AARP"
(Short Answer)
4.8/5
(34)
The Array object's concat method returns a new array that is formed by concatenating the argument array to the end of the calling object array.
(True/False)
4.8/5
(36)
Suppose you have a subclass Truck, a superclass Vehicle, and a property in Vehicle named year. How can a method in Truck access the year property?
(Multiple Choice)
4.7/5
(39)
Provide code that instantiates an array named carMakes such that the new array contains "Ford" and "Honda".
(Short Answer)
4.9/5
(40)
A(n) __________ is a special method that gets called when there is an attempt to create an object.
(Short Answer)
5.0/5
(37)
Showing 21 - 30 of 30
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)