Consider only the following code:

Which of the following would properly supply the sum of the two numbers?
A. return sum(num1+num2);
B. mySum (num1+num2);
C. return num1+num2;
D. return sum;
正解:C
質問 2:
Which statement will correctly call a JavaScript function without error?
A. call myFunction()
B. var myFunction()
C. initiate myFunction()
D. myFunction()
正解:D
質問 3:
What basic code is needed to define a function in JavaScript?
A. define myFunction { return value; }
B. define myFunction() { }
C. function myFunction() { }
D. function myFunction { }
正解:C
質問 4:
Which of the following is a browser security issue that JavaScript developers should remember when developing a script?
A. Certain JavaScript functionality may be blocked by some browsers, which prevents the script from running as expected for all users.
B. JavaScript functionality is immune to viruses, trojans and malware.
C. JavaScript cannot be disabled in the client and will always run.
D. JavaScript is a cross-platform scripting language and will generate consistent results regardless of the client or server being used.
正解:A
質問 5:
How is the alert() method different from prompt() and confirm()?
A. The alert() method generates a modal dialog box, which requires user action before the next JavaScript instruction can be executed,whereas prompt() and confirm() do not.
B. The alert() method requires two parameters, whereas prompt() and confirm() require only one parameter.
C. The prompt() and confirm() methods return a value, whereas alert() does not.
D. The alert() method requires only one parameter, whereas prompt() and confirm() require two parameters.
正解:C
質問 6:
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 download the EXE file and install it on your browser. The plug-in will take effect afteryou restart the browser.
B. 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.
C. 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.
D. 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.
正解:B
1172 お客様のコメント





Fukuoka -
CIWお陰様で合格できました。本当に助かりました。ありがとうございました。