• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/99

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

99 Cards in this Set

  • Front
  • Back
(28) __________ is generally embedded in webpages making them dynamic.
JavaScript
(28) What term refers to the embedding of JavaScript in a webpage?
Client-side scripting
(28) What did client-side scripting do that made Internet browsing faster?
Took a huge load off of web servers, reducing the amount of network traffic
(28) What type of language is JavaScript?
A scripting language
(28) What does JavaScript need for its language to work?
An interpreter
(28) What is the most common interpreter for JavaScript?
A web browser
(28) T/F? JavaScript behaves the same way regardless of the browser used (Firefox, Internet Explorer, Google Chrome, etc.).
False. JavaScript is interpreted by the web browser. The browser may view the code differently from browser to browser.
(28) Where would JavaScript typically be found on a webpage?
In the head or body elements of an HTML document
(28) What element in an HTML document represents JavaScript?
< script >
(28) What JavaScript elements would be stored in HTML head elements?
Functions and event handlers
(28) T/F? JavaScript is executed in any order that works for the interpreting browser.
False. JavaScript elements stored in the head element are executed before elements stored in the body element.
(28) What is the JavaScript command used to send text to the screen?
document.write
(29) What programming language has a high influence on JavaScript syntax?
C programming
(29) What type of programming language is JavaScript?
Object-oriented language
(29) What are object attributes and behaviors referred to in JavaScript programming?
Properties and methods
(29) How are object properties and methods referenced in JavaScript?
The object name, a dot, followed by the name of the property or method (example: document.write)
(29) What JavaScript object is the global object that refers to the webpage currently being displayed by the web browser?
Document object
(29) Which JavaScript document object property returns all name/value pairs of cookies in the document?
cookie
(29) Which JavaScript document object property returns the mode used by the browser to render the document?
document Mode
(29) Which JavaScript document object property returns the domain name of the server that loaded the document?
domain
(29) Which JavaScript document object property returns the date and time the document was last modified?
lastModified
(29) Which JavaScript document object property returns the (loading) status of the document?
readyState
(29) Which JavaScript document object property returns the URL of the document that loaded the current document?
referrer
(29) Which JavaScript document object property sets or returns the title of the document?
title
(29) Which JavaScript document object property returns the full URL of the document?
URL
(29) Which JavaScript document object property returns an array of all the anchors in a document?
anchors []
(29) Which JavaScript document object property returns an array of all the forms in the document?
forms []
(29) Which JavaScript document object property returns an array of all the images in the document?
images []
(29) Which JavaScript document object property returns an array of all the links in a document?
links []
(30) Which JavaScript document object method closes the output stream previously opened with document.open ()?
close ()
(30) Which JavaScript document object method accesses the first element with the specified id?
getElementById ()
(30) Which JavaScript document object method accesses all elements with a specified name?
getElementsByName ()
(30) Which JavaScript document object method accesses all elements with a specified tagname?
getElementsByTagName ()
(30) Which JavaScript document object method opens in output stream to collect the output from document.write () or document.writeIn ()?
open ()
(30) Which JavaScript document object method writes HTML expressions or JavaScript code to the document?
write ()
(30) Which JavaScript document object method operates the same as write () but adds a newline character after each statement?
writeIn ()
(30) What JavaScript object refers to the web browser itself?
Navigator object
(30) Are all JavaScript navigator object’s properties and methods identical regardless of the web browser used?
No. they vary by browser (example: FireFox’s navigator object has a plugin property which is not available in Internet Explorer)
(30) What JavaScript navigator object property returns the code name of the browser?
appCodeName
(30) What JavaScript navigator object property returns the name of the browser?
appName
(30) What JavaScript navigator object property returns the version information of the browser?
appVersion
(30) What JavaScript navigator object property determines whether cookies are enabled in the browser?
cookieEnabled
(30) What JavaScript navigator object property returns for which platform the browser is compiled?
platform
(30) What JavaScript navigator object property returns the user-agent header sent by the browser to the server?
userAgent
(30) Which JavaScript navigator object method specifies whether or not the browser has Java enabled?
javaEnabled ()
(30) Which JavaScript navigator object method specifies whether or not the browser has data tainting enabled?
taintEnabled ()
(33) When declaring variables in JavaScript, how are the type of variables identified?
They aren’t. Variables in JavaScript are loosely typed.
(33) What would the output be if a variable (x) had the value of x and was added to the variable string x += “miles to the nearest exit”;?
It would have the value “10 miles to the nearest exit”
(33) Are variable names case sensitive in JavaScript?
Yes
(33) What is a block of code meant to perform a specific task when needed?
Function
(34) What are functions that react to specific events such as mouse-overs and mouse-clicks?
Event handlers
(34) Which JavaScript event handler occurs when an element looses focus?
onblur
(34) Which JavaScript event handler occurs when the content of a field changes?
onchange
(34) Which JavaScript event handler occurs when the mouse clicks on an object?
onclick
(34) Which JavaScript event handler occurs when the mouse double-clicks on an object?
ondblclick
(34) Which JavaScript event handler occurs when an error occurs when loading a document or an image?
onerror
(34) Which JavaScript event handler occurs when an element gets focus?
onfocus
(34) Which JavaScript event handler occurs when a keyboard key is pressed?
onkeydown
(34) Which JavaScript event handler occurs when a keyboard is pressed or held down?
onkeypress
(34) Which JavaScript event handler occurs when a keyboard key is released?
onkeyup
(34) Which JavaScript event handler occurs when a page or image is finished loading?
onload
(34) Which JavaScript event handler occurs when a mouse button is pressed?
onmousedown
(34) Which JavaScript event handler occurs when the mouse is moved?
onmousemove
(34) Which JavaScript event handler occurs when the mouse is moved off an element?
onmouseout
(34) Which JavaScript event handler occurs when the mouse is moved over an element?
onmouseover
(34) Which JavaScript event handler occurs when a mouse button is released?
onmouseup
(34) Which JavaScript event handler occurs when a window or frame is resized?
onresize
(34) Which JavaScript event handler occurs when text is selected?
onselect
(34) Which JavaScript event handler occurs when the user exits the page?
onunload
(35) What are the two JavaScript variable scoping rules?
Global and local
(35) Which JavaScript variable scoping rule refers to variables that can be used and modified by any script on the webpage?
Global variables
(35) Which JavaScript variable scoping rule refers to variables that can be used only in the function they are declared in?
Local variables
(40) What is an enumerated list of variables in JavaScript?
An array
(40) What are two ways to declare an array in JavaScript?
1. var varName = new Array(var1, var2, var3, var4, var5);<br/>2. var varName = [var1, var2, var3, var4, var5];
(40) What are the values contained in an array called?
Elements
(40) What term refers to the slot numbers of array elements?
Indexes
(40) What is the first index number in JavaScript?
Zero (0)
(40) How is the first element of an array printed to the screen in JavaScript?
document.write(varName[0] + “< br/ >”);
(40) Do elements of a JavaScript array have to contain the same data type?
No. It can be a mix of strings, integers, floats, and other data types
(40) T/F? JavaScript arrays are objects?
TRUE
(40) Which JavaScript array object property sets or returns the number of elements in an array?
Length
(41) Which JavaScript array object method joins multiple arrays?
concat()
(41) Which JavaScript array object method joins all the Array elements together into a string?
join()
(41) Which JavaScript array object method searches the Array for specific elements?
indexOf()
(41) Which JavaScript array object method returns the last item in the Array and removes it from the Array?
pop()
(41) Which JavaScript array object method adds the item to the end of the Array?
push()
(41) Which JavaScript array object method reverses the array so the last item becomes the first and vice-versa?
reverse()
(41) Which JavaScript array object method sorts the elements of an array?
sort()
(41) Which JavaScript array object method returns the first item in the Array and removes it from the array?
shift()
(41) Which JavaScript array object method inserts the item(s) to the beginning of the array?
unshift()
(41) Which JavaScript array object method returns a new array from the specified index and length?
slice()
(41) Which JavaScript array object method returns the array as a string?
toString()
(44) What programming term refers to variables that contain a collection of printable characters?
Strings
(45) Which JavaScript string object property returns the length of a string?
length
(45) Which JavaScript string object method joins two or more strings, and returns a copy of the joined strings?
concat()
(45) Which JavaScript string object method converts a string to lowercase letters?
toLowerCase()
(45) Which JavaScript string object method converts a string to uppercase letters?
toUpperCase()
(46) T/F? JavaScript string methods can produce an array and JavaScript arrays can produce a string.
TRUE
(46) Which JavaScript string object method will, by default, break a string up based on the current white space in the string into an array where each element is a ‘word’ from the string?
split()