CIW 1D0-635 - CIW JavaScript Specialist Exam

Question #6 (Topic: )
Consider the following code:
[CIW-1D0-635-6.0/CIW-1D0-635-4_2.png]
What is the expected result of this script?
A. When you leave the page, the alert box will display. B. The page will ignore the function, so a blank page will display on entry and exit. C. When you enter the page, you will be warned that there is unfinished JavaScript to run. D. When you leave the page, there will be a JavaScript error because you cannot unload an alert box.
Answer: A
Question #7 (Topic: )
Which choice demonstrates the correct syntax for declaring a variable?
A. var last name; B. var &lastname; C. var "lastname"; D. var lastName;
Answer: D
Question #8 (Topic: )
Which of the following is a practice associated with the security risk known as cross-site
scripting (XSS)?
A. Inserting JavaScript code in a URL query string to perform an unintended or malicious action B. Using a look-alike site to impersonate a trusted site so the user will enter sensitive information C. Using a certificate authority validation to persuade users to accept a specialized script that can override certain security restrictions in thebrowser D. Launching a JavaScript statement that has no conditions for ending, thus requiring the user to close the browser in order to end the script
Answer: A
Question #9 (Topic: )
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?
A. After locating the plug-in that you want to use, you then copy the code from the jQuery site and paste it into your CSS file using the <script>tag. B. After locating the plug-in that you want to use, you then download the EXE file and install it on your browser. The plug-in will take effect afteryou restart the browser. C. After locating the plug-in that you want to use, you download the plug-in, compile the code and upload it to your server, then you reference thecompiled code with a <script> tag in your X/HTML file. D. After locating the plug-in you want to use, you add to your X/HTML file a <script> tag referencing the jQuery library and a <script> tagreferencing the external plug-in file.
Answer: D
Question #10 (Topic: )
Maria, a 22-year old student, is testing her JavaScript application, which includes the
following code:
[CIW-1D0-635-6.0/CIW-1D0-635-6_2.png]
Assuming Maria enters truthful information, what is the value of z after executing this code?
A. No value ?error in line 1 due to missing var keyword for userAge. B. No value ?error in line 1 due to multiple declarations in one line. C. Maria "is" 22 "years old" D. Maria is 22 years old
Answer: D
Download Exam
Page: 2 / 11
Total 55 questions