CIS 425 Final Exam Study Guide
Which of the following is NOT a proper value for the CSS property "float"? "left" "right" "none" "all"
"all"
Which of the following jQuery methods is NOT used for DOM manipulation? $(selector).append(); $(selector).remove(); $(selector).insert(); $(selector).empty();
$(selector).insert();
Which of the following jQuery methods is NOT used for 'traversing' the DOM tree structure? $(selector).prev(); $(selector).next(); $(selector).first(); $(selector).last(); $(selector).middle();
$(selector).middle();
What is the proper file extension for a CSS file?
.css
What is the proper file extension for an HTML file/document?
.html and .htl
Using the HTML code below, match the CSS rulesets to their correct selector category: <p id="xyz"><img class="important"...></p>
.important { property: value;} = Class selector category p img { property: value;} Descendant Selector Category #xyz { property: value; } ID Selector category img { property: value; }
Which of the following HTML elements is used by the search engines for indexing purposes? <body> <head> <p> <h1>
<h1>
Which of the following HTML elements is used to associate a HTML file with a CSS file?
<link>
Which of the following is NOT a HTML element? <html> <body> <separator> <title>
<separator>
Which of the following characters is NOT part of a proper CSS ruleset specification? : (colon) { (curly bracket) > (angle bracket) ; (semi-colon)
> (angle bracket)
(True/False) An ordered list cannot be nested inside an unordered list.
False
(True/False) Are the two CSS rulesets equivalent? Ruleset 1: p {color-blue;} li {color: blue;} a {color: blue;} Ruleset 2: p li a {color: blue;}
False
(True/False) HTML code validators correct errors or issues they detect.
False
(True/False) HTML is a true programming language (like C#, Java, etc.).
False
(True/False) HTML is case sensitive.
False
(True/False) Is the following CSS ruleset correct? p { font_size: 5em; line height: 200%; }
False
(True/False) Is the following CSS ruleset syntactically correct? (Note: 'lightblue' is an actual color name.)
False
(True/False) Node.js requires a web browser to execute its JavaScript code.
False
(True/False) The internet and the World Wide Web are the same.
False
(Ture/False) JavaScript considered the variables myName and myname to be the same variable.
False
(True/False) Is the following a properly structured CSS ruleset? p { margin: 5 px;}
False, there should not be a space between the numerical value and its unit of measure.
(True/False) HTML hyperlink elements (aka 'anchors') are created using the <link> elements.
False, they use <a>
Select the option that identifies the error(s), if any, in the following JavaScript code segment (assume all variables are properly declared and initialized): if (age > 65) {console.log ("Already retired...");} else; {console.log ("Still have to work!");}
Improper use of ";" (after 'else')
Which of the following is NOT one of the technologies that allow us to exchange data between client-side and server-side environments?
Java
In the context of MySQL column attributes, "NN" stands for
Not Null
Which of the following is NOT a method for associating CSS styling info with HTML content? External Styling Embedded Styling Inline Styling Outline Styling
Outline Styling
Which of the following is NOT a built -in object type in JavaScript? Time String Document Math
Time
What is the purpose of HTTP port?
To "listen" for web page requests
(True/False) A CSS ruleset is a collection of style settings applied to HTML elements.
True
(True/False) Are the two CSS rulesets equivalent? Ruleset 1: p {font-family: serif;} p {color: blue;} Ruleset 2: p {color: blue; font-family: serif;}
True
(True/False) Assuming that the "selector" selects multiple elements, the following jQuery statement sets markup content of ALL matched elements: $(selector).html (aString);
True
(True/False) Attributes can be coded only in the opening tag of a HTML element
True
(True/False) Block elements start on a new line when they are rendered by a browser
True
(True/False) HTML elements are denoted by one or more "tags" (which are angled brackets surrounding the element's name).
True
(True/False) Node.js allows for manipulation of file and folders on a device's system.
True
(True/False) Node.js runs on the same JavaScript engine that Google Chrome uses to execute JavaScript code.
True
(True/False) The <style and </style> tags can be used to embed CSS code within and HTML file.
True
(True/False) The client-side and server-side scripting are the two main programming components of Web development process.
True
(True/False) When the background-color property is specified for a block/box element, it is displayed behind the content, padding, and the border for the element.
True
(True/False)When specifying a primary key field in a new table (in a database), it is best to set its "Auto Increment option in order to let the database server handle the assignment of a value for each newly inserted row/record.
True
The "npm" manages the packages available to Node.js?
True
HTML elements that do not 'mark up' text (i.e. only have one tag) are named _________elements.
blank/empty/void
The ____ object has a "write" method associated with it.
document
Name the 2 basic/core modules that are installed when NOde.js is installed (which we used in our web server file, "server.js")
fs and url
In Node.js, the object equivalent to the browser's window object is the _____ object
global
The least significant (i.e. smallest size HTML heading element is named _________.
h6
The ____ statement is used to make decisions (by specifying a condition and a set of actions
if
Select the option that identifies the error(s), if any, in the following JavaScript code segment (assume all variables are properly declared and initialized): if (gender = 1) {console.log("Woman");} else {console.log("Man");}
incorrect if 'condition' statement
Select the option that identifies the error(s), if any, in the following JavaScript code segment: var x=1, total=0; while (x<= 10) {total = total +x; x++;}
no errors
Which of the following is NOT a keyword in JavaScript? for function script var
script
Every JavaScript statement must end with a(n)
semi-colon ;
Which of the following is the correct address/url for acessing the MyWebSQL site?
sql.wpc-is.online
The primary purpose for using CSS is to _______.
style content
In the context of MyWebSQL site a Boolean data type is converted to or represented as which of the following?
tinyint
What is "npm" used for?
to install non-core Node.js modules
Which of the following is a keyword that can be used to denote the beginning of a JavaScript function definition/declaration?
var
Which of the following is the incorrect way to define a JavaScript function named "mySummation"?
var main = mySummation() {...}
Using the MyWebSQL application, the context-menu option (following a right lick on a table name) to view the data in a table is labeled as ________.
view data