Suppose you define two variables as follows:
var x = 5;
var y = "5";
Which statement will return the mathematical sum of these variables?
A. alert(x + int(y));
B. alert(x + parseInt(y));
C. alert(x + y);
D. alert((int)x + (int)y);
Consider the following code:
What output will appear in the browser when you run this script?
A. "1, 2, 3, 4, 5, 6, 7, 8, 9"
B. 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
C. 1, 2, 3, 4, 5, 6, 7, 8, 9,
D. "1, 2, 3, 4, 5, 6, 7, 8, 9, 10"
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 to the script in order to abort the submission if an invalid e- mail address is entered?
A. Add return false after the alert() statement.
B. Change return to validate in the function call.
C. Add validate false after the alert() statement.
D. Remove the return keyword from the function call and put it in front of the alert() statement.
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?
A. document.myForm.value(firstName)
B. document.myForm.firstName.value
C. window.myForm.firstName.value
D. window.myForm.text(firstName)
Consider the following code:
What will this alert display?
A. It is currently dark in the room
B. It is currently bright in the room
C. It is currently in the room
D. It is currently bright : dark in the room
Consider the following code:
What is the expected result when you run this script in the browser?
A. A window alert box will display Hello.
B. A window alert box will display Goodbye.
C. No window alert box will appear because there is an error in the code.
D. A window alert box will display Hello then a second alert box will display Goodbye.
Which statement will return the name of the browser being used to view the script?
A. navigator.appName
B. navigator.platform
C. navigator.userAgent
D. navigator.appVersion
Which choice demonstrates the correct syntax for declaring a variable?
A. var last name;
B. var andlastname;
C. var "lastname";
D. var lastName;
In an X/HTML form, which script block will retrieve an input value and display it back without errors or warnings?
A.
You entered:
C.
You entered:
E.
You entered:
F.
You entered:
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 enter her name. When the user enters text and clicks the OK button, an alert dialog box will appear and display the text "Welcome, name" (where name is the text entered by the user). Which choice shows the correct JavaScript code for this action?
A. alert("Welcome, " + prompt("What is your name?", ""));
B. alert("Welcome, ") + prompt("What is your name?", "");
C. prompt("What is your name?", "") + alert("Welcome, ");
D. prompt("What is your name?", "" + alert("Welcome, "));
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only CIW exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 1D0-635 exam preparations and CIW certification application, do not hesitate to visit our Vcedump.com to find your solutions here.