Quiz#2 JavaScript - Florida State University
Duration: 30 minutes
Quiz#2
JavaScript
Date: 06-09-14 CGS3066: Web Programming and Design
Summer 2014
Total: 30
Answer all questions. Each MCQ is worth 1 point. For other question, it is written after each question.
1. When a user views a page containing a JavaScript program, which machine actually executes the script?
A. The User's machine running a Web browser B. The Web server C. A central machine deep within Netscape's corporate offices D. None of the above
2. Which of the following syntax is correct to refer an external script called "formValidation.js"? A. B. C. D.
3. Which of the following is the correct way for writing Java Script array? A. var salaries = new Array(1:39438, 2:39839 3:83729) B. var salaries = new (Array1=39438, Array 2=39839 Array 3=83729) C. var salaries = new Array(39438, 39839,83729) D. var salaries = new Array() values = 39438, 39839 83729
4. If para1 is the DOM object for a paragraph, what is the correct syntax to change the text within the paragraph?
A. "New Text"? B. para1.value="New Text"; C. para1.firstChild.nodeValue= "New Text"; D. para1.nodeValue="New Text";
5. JavaScript is interpreted by _________ A. Client B. Server C. Object D. None of the above
6. Using _______ statement is how you test for a specific condition. A. Select B. If C. Switch D. For
7. How do you write "Hello World" in an alert box? A. alertBox("Hello World"); B. msgBox("Hello World"); C. msg("Hello World"); D. alert("Hello World");
8. How do you create a function in JavaScript? A. function:myFunction() B. function myFunction() C.function = myFunction()
9.How does a FOR loop start? A. for (i = 0; i ................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- how to return a function from another function in swift
- return function javascript example
- are callbacks in javascript return statements elan
- passing an array to and from a function or subprocedure in vb6
- java built in arrays university of san francisco
- javascript anonymous function return object
- informer javascript guide entrinsik
- chapter 16 javascript 3 functions university of cape town
- beginner s essential javascript cheat sheet websitesetup
- quiz 2 javascript florida state university
Related searches
- florida state university education department
- florida state university course catalog
- florida state university online certificates
- florida state university employee salaries
- florida state university pay scale
- florida state university map printable
- florida state university certificate programs
- florida state university football schedule
- florida state university pictures
- florida state university football roster
- florida state university application status
- florida state university college scholarships