1D0-635 Exam Questions
64 real 1D0-635 exam questions with expert-verified answers and explanations. Page 1 of 2.
- Question #1
Which is the best technique to test a script for cross-browser compatibility?
- Question #2
Consider the following code: What is the expected result when you run this script in the browser?
- Question #3
Consider the following code: Which statement could be used to determine the value of the first radio button?
- Question #4
Which example correctly implements inline scripting with JavaScript?
- Question #5
Consider the following code: var myString= "Hello World"; alert(myString.length); What is the output when you run this script in the browser?
- Question #6
Consider the following code: What needs to be changed to allow this script to run without error?
- Question #7
Which of the following is a reason why a developer would use a JavaScript library?
- Question #8
Which of the following will correctly declare the EmployeeID variable as a string data type?
- Question #9
Consider the following code: <script> var x = 0; for (i=0; i<5; i++) { x += i; } alert("1+2+3+4 = " +x); </script> How many times will the program loop, and what will be the final...
- Question #10
A _________ custom object has only one level of properties and methods associated with it
- Question #11
alert(), prompt() and confirm() are all methods of the __________ object.
- Question #12
Maria, a 22-year old student, is testing her JavaScript application, which includes the following code: Assuming Maria enters truthful information, what is the value of z after exe...
- Question #14
Consider the following code using a checkbox object: Which checkbox property was used by JavaScript?
- Question #16
Jane has created a file with commonly used JavaScript functions and saved it as "allFunctions.js" in the application's root directory. She wants to load this file into a Web page t...
- Question #17
Consider the following declaration of a custom object: What needs to be changed to allow this script to run without error?
- Question #18
Consider the following code: What is the expected output when you run this script in a browser?
- Question #19
You are developing a Web page for your company's site, and you plan to use a library plug-in from the jQuery library. Which choice describes the proper steps for using the plug-in?
- Question #20
Assuming the function <body onload="DisplayName()"> is called, which script block will display Hello Joe in the document window after you enter the name Joe?
- Question #21
Consider the following code fragment, which sets up the retrieval of an XML document named fish.xml and calls a function named showFish(): var xmlhttp = new XMLHttpRequest(); xmlht...
- Question #22
Which of the following demonstrate the correct syntax for the switch statement?
- Question #23
Consider the following code: <script type="text/javascript"> var v1 = "alpha"; function f () { var v2 = "bravo"; alert (v1 + ", " + v2); } f(); v1="charlie"; alert (v1 + ", " + v2)...
- Question #24
Which of the following is a valid variable name in JavaScript?
- Question #25
What basic code is needed to define a function in JavaScript?
- Question #26
When using AJAX, what is the purpose of the XMLHttpRequest object?
- Question #27
Which statement will correctly call a JavaScript function without error?
- Question #28
Consider only the following code: Which of the following would properly supply the sum of the two numbers?
- Question #29
Which choice best defines events and event handlers?
- Question #30
Consider the following code: What is the output when you run this script in the browser?
- Question #31
Consider the following code: What is the expected result of this script?
- Question #32
Which statement about the JavaScript form object is true?
- Question #33
Which of the following comparison statements will return true?
- Question #34
Which statement is true about the getElementByID() method?
- Question #35
In an X/HTML form, which script block will retrieve an input value and display it back without errors or warnings?
- Question #36
Which language can create stand-alone applications or mini-applications called applets?
- Question #37
Which special character in JavaScript is interpreted as a new line?
- Question #38
Which special character in JavaScript is interpreted as a backslash?
- Question #39
JavaScript is most similar to which of the following languages?
- Question #40
Consider the following code: What is the appropriate parameter for the alert() method in line 5 to reference the text in the firstName text box?
- Question #41
Which of the following is a browser security issue that JavaScript developers should remember when developing a script?
- Question #44
You want to display a series of elements. Which choice demonstrates the correct syntax for an array in JavaScript?
- Question #45
When used in conjunction with SQL, a server-side language (such as PHP) and a database (such as mySQL), AJAX can perform which of the following database operations?
- Question #46
Consider the following code: When an invalid e-mail address is entered, an alert is displayed to the user, but the form submission is not interrupted. What changes need to be made...
- Question #47
You want to add a personalized interaction with your users when they enter your Web site. To do this, you can display a JavaScript prompt on the home page that asks the user to ent...
- Question #48
Consider the following code: What output will appear in the browser when you run this script?
- Question #49
Consider the following code: Will this function generate an error?
- Question #50
Which script block will display Hello World in the browser when the script is run?
- Question #51
Suppose you define two variables as follows: var x = 5; var y = "5"; Which statement will return the mathematical sum of these variables?
- Question #52
Consider the following code: What is the expected result when you run this script in the browser?
- Question #53
Consider the following statement: for (X; Y; Z) What does Z represent in this code?
- Question #54
Which of the following is a practice associated with the security risk known as cross-site scripting (XSS)?