Section 1

Preview this deck

the type attribute of a script tag looks like?

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (91)

Section 1

(50 cards)

the type attribute of a script tag looks like?

Front

<script type="text/javascript">

Back

How can a JavaScript developer be certain that the types of arguments to a function call are those that are expected?

Front

Use the typeof operator and check the result.

Back

What are characteristics of a well-formed XML document?

Front

All tags are closed, elements are properly nested, and there is only one root element.

Back

HTML character entities

Front

provide characters normally not included in the HTML ex: &nbsp = non-break space

Back

what goes in the action= attribute of a form element?

Front

the URL to receive the form

Back

write the <div> tag for this spec: #stories {color: green}

Front

<div class="stories">

Back

What is the value of variable b after the following JavaScript fragment is evaluated? What is the value of a? a = 3; b = ++a * 4;

Front

The variable b is 16 and a is 4.

Back

What JavaScript method presents the user with an "OK/Cancel" dialog box?

Front

confirm( )

Back

You can define your own entity (tag) names in XML. How are name conflicts avoided?

Front

use of XML namespaces.

Back

What does it mean to describe HTTP as a stateless protocol?

Front

server doesn't retain memory from prior transactions

Back

What is necessary to invoke "call by reference" in a PHP function?

Front

Place an ampersand before either the parameter in the function definition or the argument in the function call.

Back

XML

Front

extensible markup language meta-markup language; used for defining new markup languages. can provide semantic information like <price>

Back

When would a JavaScript developer use a regular expression.

Front

When testing data for conformance to a pattern,

Back

anchor ex:/^pearl/

Front

Match starts at beginning of string "pearls are..." but not "my pearls..."

Back

What does the JavaScript setTimeout method do?

Front

Waits for the specified time period, then calls the given function.

Back

What is the value of variable b after the following JavaScript fragment is evaluated? Why? a = '3'; b = a * 4;

Front

12 because JavaScript coerced the string to a number and multiplied.

Back

What are two ways to provide a formal definition of an XML application?

Front

DTD and XML Schema.

Back

boundary ex:/Fred\b/

Front

Matches "Fred is" but not "Frederick is..."

Back

how does the <span> tag differ from <div>?

Front

span is inline, Div is block level

Back

XML attribute vs XML element

Front

Use attributes for: • unique identifying numbers or names • atomic (single-valued) data associated with an element Use elements for everything else.

Back

what HTML5 element do<article>,<section>,<heander> and <nav> replace?

Front

<div>

Back

a client asks you to put a photograph on a webpage, but the photo is too big, what do you do?

Front

resize it in a photography program

Back

Given the ID of an HTML element, how can the JavaScript developer obtain a pointer to the element within the document object?

Front

Use the document.getElementById( ) method.

Back

what is the purpose of the HTML <label> tag?

Front

defines a label for an <input> element, for forms ONLY

Back

boundary ex:/Fred\B/

Front

Matches "Frederick is" but not "Fred is..."

Back

What is the difference between the && operator and the & operator in JavaScript?

Front

The && operator is the logical (Boolean) and operator, and & is the bitwise and operator.

Back

Schema

Front

outline model; defines a namespace ex: books in a library authors year

Back

What does the JavaScript confirm( ) method do?

Front

Displays a dialog box with the message given as an argument and with OK/Cancel buttons; returns true if OK is pressed, false if Cancel is pressed.

Back

What is the value of the variable $people after the following PHP code fragment is executed? $people = array('Bob','Carol','Ted','Alice'); $people[]='George';

Front

('Bob','Carol','Ted','Alice','George') because empty square brackets cause addition at the end of the array.

Back

what goes within the @media print{} CSS spec?

Front

style specifications that apply to the printed version

Back

What happens when the event handler for the onsubmit event returns false?

Front

Submission of the form is suppressed; no other action is taken.

Back

Some CSS names contain hyphens, for example, margin-left. JavaScript must be able to refer to CSS properties. How are such names expressed in JavaScript?

Front

Delete the hyphen and capitalize the following letter: marginLeft.

Back

A Web developer wants to let the browser determine the initial positions of an element on a page, but wants to be able to move it later by using JavaScript. What position parameter should the developer code?

Front

Relative

Back

What is the result when the following PHP code fragment is executed? $people = array('Bob','Carol','Ted','Alice'); foreach ($people as $x) { echo $x; }

Front

"BobCarolTedAlice"

Back

Character data

Front

<![CDATA[ holds ANY content ]]> CDATA content is not parsed by XML parsers. Container for meta-markup

Back

schema datatypes

Front

Simple datatypes: restricted to strings complex datatypes: have attributes and other elements

Back

Why does the XML standard include support for a cdata section?

Front

To enclose character data that is not valid XML

Back

One would use JavaScript to check the validity of form entries before sending the form to the server because:

Front

JavaScript validation provides a faster user experience

Back

The purpose of XML is:

Front

To store and transport data.

Back

how can a developer keep his pages from being "cut off" when displayed in a reduced size browser?

Front

use percentages instead of unit values

Back

whats the difference between <th> and <td>?

Front

th= only contains whats in he header td=defines a standard cell in a table

Back

What makes a valid XML name?

Front

must begin with a letter or underscore, no limit

Back

if two or more conflicting style specifications at different levels are provided, which will the browser use?

Front

the lowest level possible

Back

What are advantages of an XML Schema over a DTD?

Front

XML Schemas use XML syntax and can express more data types.

Back

purpose of markup language?

Front

add meaning to text

Back

anchor ex:/gold$/

Front

Anchors to end of string "I like gold" but not "sunset is golden"

Back

^

Front

inverts a class /[^aeiou]/ matches all except a,e,i,o,u

Back

XSLT

Front

can transform one XML document into another, and also into non-XML documents.

Back

Why is the DOM 2 event model not frequently used in JavaScript programming?

Front

It is not supported by Internet Explorer.

Back

Why should a JavaScript developer NOT use the document.write( ) method in an event handler?

Front

Calling document.write( ) after the page has loaded makes an automatic call to document.open( ).

Back

Section 2

(41 cards)

what is a database

Front

An organized, self-defining collection of logically-related data

Back

what is AJAX

Front

"Asynchronous JavaScript and XML." allows dynamic updating of pages after they are served, using data from a server.

Back

PHP strings

Front

are scalar types, but the characters of a string are accessible with array-like notation.

Back

What is the type of the variable $a after the following PHP code fragment is executed? $a = 8; $b = 3; $a = $a / $b;

Front

Double

Back

What is displayed after the following PHP code fragment is executed? $name = 'Bob'; switch ($name){ case 'Bob': echo "Hi, Bob!"; case 'Betty': echo "Hello, Betty!"; default: echo "Howdy, stranger!"; }

Front

"Hi, Bob!Hello,Betty!Howdy, stranger!"

Back

An HTTP URL has:?

Front

http:// www.spsu.edu/home/index.html Scheme- Host- Path- File

Back

The World Wide Web

Front

A collection of software and servers

Back

Call by value:

Front

the function receives a copy of the argument.

Back

What is the correct rule for forming PHP variable names?

Front

Must start with a dollar sign, followed by a letter or underscore, followed by any number of letters, digits, or underscores.

Back

What is an important functional difference between JavaScript and PHP when used on the Web?

Front

JavaScript usually runs on the client and PHP always runs on the server.

Back

Static variables

Front

created when a function is first called and survive until the script terminates.

Back

PHP interpret mode

Front

starts with <?php, ends with ?> PHP statements are interpreted and their output is sent to the browser.

Back

What operator is used to associate a key with a value in a PHP associative (hashed) array?

Front

=>

Back

whats the difference between string and Interpolation?

Front

Interpolation is only available with doublequotes.

Back

What will allow a dollar sign ($) to be included in a PHP string?

Front

a backslash before the dollar sign ex: "The price is \$5.00."

Back

what is a script?

Front

a collection of programming statements and HTML elements.

Back

Foreign keys

Front

identifiers that enable a dependent relation to refer to its parent relation

Back

How can you have one image dynamically replace another after a webpage has been served?

Front

You could use 'visible' and 'hidden' and have it change which is visible during the event of the page loading

Back

what is a cookie

Front

Name value pair

Back

What is necessary to declare a variable to be local in a PHP function?

Front

nothing

Back

what is the difference between copy mode and interpret mode?

Front

copy mode: lines are copied directly from the file to the web browser interpret mode: php gets processed and result is sent to browser

Back

what is the Internet?

Front

A "Network of Networks" • A common address space • A common name space • A collection of common communication protocols

Back

What is the value of the variable $x after the following PHP code fragment is executed? $x = 100; $y= -2; if ($y) $x = 137;

Front

137, because non-zero numbers are evaluated as true when uses in the Boolean context.

Back

What will be displayed by the following PHP fragment? $answer=42; echo 'The answer is $answer'.;

Front

The answer is $answer. because double quotes are required for interpolation. ex: "The answer is $answer"; would be 42

Back

What is the value of the variable $x after the following PHP code fragment is executed? $x = 5; $myString='George'; $x = myString{3};

Front

"r" because r is in the third place, counting from zero, in the string.

Back

primary key

Front

unique identifiers of the relation CANNOT be null

Back

What is the value of the variable $a after the following PHP code fragment is executed? $a = 3; $b = 5; $a += $b;

Front

8

Back

In PHP one implements a counter-controlled loop with the?

Front

the for operator.

Back

Information Architecture

Front

"The art and science of structuring Web sites to help people find and manage information."

Back

How does PHP communicate with a relational database manager like MySQL?

Front

SQL statements are built in a string and passed to the database management system using function calls.

Back

Call by reference:

Front

the function receives a pointer to the argument.

Back

PHP copy mode

Front

PHP always starts in "copy mode." lines are copied directly from the file to the web browser 'include' files start in copy

Back

What is the value of the variable $x after the following PHP code fragment is executed? $x = 3 + '4 bananas';

Front

$x is 7, because only the numeric portion of the string is used.

Back

TCP/IP:

Front

Transmission Control Protocol Internet Protocol; the basic transport protocol of the Internet. lower level

Back

what can a developer do to be sure only available features are called when using the page?

Front

see if the method that implements the feature is available in the DOM

Back

What is the z-index used for?

Front

specifies the stack order of an element.

Back

what is JQuery?

Front

a JavaScript library

Back

What is displayed after the following PHP code fragment is executed? What is the value of $i? $i=11; do { echo $i; $i++; } while ($i < 10);

Front

Prints 11 $i is 12.

Back

HTTP:

Front

Hypertext Transfer Protocol the protocol of the World Wide Web. Uses TCP/IP for transport higher level

Back

relations

Front

a collection of tables

Back

What is the value of the variable $x after the following PHP code fragment is executed? $ stooges=array ('Curly', 'Larry', 'Moe'); $ x=current($stooges);

Front

"Curly"

Back