448

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

______ is used to convert the domain name given by the browser user into an IP address

DNS

HTTP stands for

Hyper text transfer protocol

Which type of selector can only be used once in an HTML document?

ID

Difference between $_GET and $_POST

Information sent with Post method is invisible to others, has no limits on the amount of information to send. Get method data is visible to others and is not suitable for large variable values.

What CSS style has higher precedence?

Inline style

Which of the following has higher precedence than document style sheets?

Inline style

What does the $_REQUEST function contain?

It contains the contents of both $_GET, $_POST, and $_COOKIE.

What does the strlen() function do?

It is used to return the length of a string (including spaces and !, etc.)

What does the strpos() function do?

It is used to search for character within a string

What does the ksort() function do?

It sorts an associative array in ascending order, according to the key

To change the shape of bullets one can use the following CSS property

List-style-type property

Is a variable defined in a PHP function local or global by default?

Local

Margin vs Padding

Margin is the space outside the border of an element, while padding is the space inside the border of it

______ are typically used to specify page description, keywords, author of the document, last modified, and other metadata

Meta Elements

In PHP, what are the 2 types of arrays?

Numerically indexed arrays and arrays indexed by user-specified strings

Where is PHP uploaded?

On the middle tier server

PHP stands for:

PHP: Hypertext Preprocessor

The style rule p { padding: 20px; border: 3px solid black; } creates

a paragraph with padding of 20px and a solid black border of width 3px

What is an Array

an object used to store multiple values in a single variable.

What are the two statements to output text with PHP?

echo and print

What function do you use to convert a string to an array?

explode()

In the following style rule which term is the CSS 'property'? p { font-family: Arial, Helvetica; }

font-family

The CSS Float property determines

if an element should be taken out of the normal flow of the document and placed along the left or right side of its container

What function do you use to convert an array to a string?

implode()

What function is used to create a cookie in PHP?

setcookie

What type of selector is the following CSS code using: h1 { font-size: 24pt; }

simple selector

What is the requested document in the following URL http://www.newwebsite.com/testpage.html

testpage.html

In CSS, what are class selectors used for?

to allow different occurrences of the same tag to use different style specifcations

DOM stands for

Document Object Model

DNS stands for

Domain name server

Identify what the following code will display: <select name = "dept"> <option>Information Systems</option> <option>Computer Science</option> </select>

Drop Down List Containing: Information Systems Computer Science

How is XHTML different from HTML?

- Tags must be lowercase - Attributes must have values - Each open tag must have a corresponding close tag - Enforces correct nesting of elements - <title> tag (inside <head> tag) is required for XHTML validation

What file extensions can PHP files have?

.php, .php3, or .phtml

How do you make comments in PHP?

// or /* */ for multi line comment

What type of comments are allowed in HTML?

<!-- -->

How does a PHP scripting block start?

<?php and ends with ?> A PHP scripting block can be placed anywhere in the document

Web search engines use info provided within the ____________ element to categorize and index web pages

<meta>

In CSS, what elements are removed from normal document flow?

Floating elements

Which of the following are HTML tag names? <form name="is448" action="newpage.php" method="POST"> User Name: <input type="text" id="newInfo" /> > </form>

Form Input

The <form> tag is a block level tag

T

The <select> tag must be used in forms instead of the <input> tag to create a select box.

T

The Accept header field in an HTTP request specifies the browser preference for the MIME type of the requested document.

T

The CSS Box Model provides a structured way to space elements in relationship to each other.

T

The WWW is a vast collection of software and protocols that has been installed on most computers on the Internet.

T

The cellpadding attribute of the table tag is used to specify the distance between the content of a cell and the inner walls of the cell.

T

The color property in CSS specifies the foreground color of an element.

T

The fgetc function returns a character from the file that is being read.

T

The flock function should be used to avoid concurrency issues during file read and write.

T

The fopen function returns a file handle for accessing a file

T

The setcookie function is used to create a cookie in PHP.

T

The span tag is useful when one wants to apply a style to less than a whole paragraph or line of text.

T

Tim Berners Lee was responsible for the creation of the WWW.

T

When we want an HTML form to send data to a PHP program, we should set the action attribute of the form tag to point to the PHP program.

T

What provides a structured way to space elements in relationship to each other?

The CSS Box Model

What array is an implicit array maintained by PHP that holds cookie names as keys and cookie values as values?

$_COOKIE

What predefined array in PHP is used to get the values entered by a user in HTML form, provided the form sends data using the HTTP GET method?

$_GET

How do you declare a variable in PHP?

$variablename = value;

The character entity for the '&' symbol is

&amp (AMPERSAND)

Why use XHTML instead of HTML?

- Interoperobility across browsers - Consistency emphasized - Can check correctness of document

For which of these symbols should one use the character entity when using the symbol in an HTML page.

<

What kind of scripting language is PHP?

A server-side scripting language. It is also an open source software and is compatible with almost all servers used today.

What does it mean when stated that PHP is a "loosely typed language"

A variable does not need to be declared before adding a value to it, you do not need to tell which data type the variable is

Naming rules for variables:

A variable name must start with a letter or _, and can only contain alpha-numeric characters and underscores. Should not contain spaces

Which of the following are attribute names? <form name="is448" action="newpage.php" method="POST"> User Name: <input type="text" id="newInfo" /> </form>

Action Type ID

What parameters are in the call to a function?

Actual parameters

What is true about each code line in PHP?

Each one must end with a semicolon

____ style sheets can be applied to multiple documents

External

<a> is an example of a block tag

F

<ul> and <li> tags are used to create definition lists

F

A <div> tag can be nested inside of a <span> tag

F

A response code of 200 indicates an internal server error.

F

All HTML tags must have content.

F

An HTTP response code of 400 indicates the request succeeded.

F

As per the nesting rules, a block tag <ul> can be nested within the block tag <p> .

F

Comments of type // are allowed in HTML

F

HTML5 only allows 2 different audio container types: MP3 and Wav

F

HTTP is a stateful protocol, i.e., it stores information about a session that is available to a subsequent session.

F

In CSS, floating elements are not removed from normal document flow.

F

In the copy mode of PHP processor, the processor interprets the code and the output from that code is sent to an output file returned to the user

F

It is not possible to set an image as a background in a XHTML page using CSS.

F

Padding of an element, in the CSS Box model refers to the space between the border of the current element and the adjacent element.

F

Strings in PHP can be enclosed only in double quotes

F

The <audio> tag is used to include a video file in HTML5.

F

The border attribute is an attribute of the <tr> tag.

F

The ksort function, sorts an array by its values

F

The ol tag allows you to create an unordered list

F

The preg_split function matches a given pattern with a string.

F

What are the two types of sessions?

Server side and Cookies

How do you tell an HTML form to send data to a PHP program?

Set the action attribute of the <form> tag to point to the PHP program

A list can be classified as a block level tag

T

A session is the time span during which a browser interacts with a particular web server.

T

A variable defined in a PHP function, by default, is local to the function

T

Actual parameters is the name given to parameters that are in the call to a function

T

All variable names in PHP must start with the $ symbol

T

At the time of creation, a cookie is assigned a lifetime beyond which, the cookie is deleted from the browser host machine

T

CSS style rules can be written in separate files and the link to the external style sheet must appear in the head of the document.

T

Cookies store information about sessions on the browser machine itself.

T

GET and POST are two types of HTTP request methods

T

In CSS, class selectors are used to allow different occurrences of the same tag to use different style specifications.

T

In PHP, two types of arrays that exist are numerically indexed arrays and arrays indexed by user-specified strings

T

In XHTML, the title element must go within the head element.

T

It is possible to convert an array to a string and a string to an array using pre-defined PHP functions.

T

It is possible to create nested ordered lists in HTML.

T

Margin property is used to specify the distance between the page content and the border of the element

T

The $_COOKIE array is an implicit array maintained by PHP that holds cookie names as keys and cookie values as values.

T

The $_GET array is a pre-defined array in PHP that can be used to get the values entered by a user in an HTML form, provided the form sends the data by using the HTTP GET method.

T

The <div> element can be used to apply special styles to an entire section of the XHTML document.

T

In the CSS box model, what is the padding of an element?

The space around an element's content

What is the <tr> tag used for?

To define a row in a table

What are character entities used for?

To display reserved characters in HTML

URL stands for

Uniform resource locator

Are PHP files returned to the browser as plain HTML?

Yes

At the time of creation, are cookies assigned a lifetime beyond which the cookie is deleted from the browser host machine?

Yes

Can PHP files contain text, HTML tags, and scripts?

Yes

Can strings in PHP be enclosed in either single or double quotes?

Yes

Is it possible to create nested ordered lists in XHTML?

Yes

Can CSS style rules can be written in separate files?

Yes, and the link to the external style sheet must appear in the head of the document

Is it possible to set an image as the background in a XHTML page using CSS?

Yes, with the property background-image Ex. background-image: url(" ");


Ensembles d'études connexes

Head Region Muscles - Origin, Insertion, Action, Innervation

View Set

Chapter 27 Non infectious Lower Respiratory Problems

View Set

Chapter 13, Cardiovascular system

View Set

OS 210 Organizational Communications - Chapter 14 Review

View Set

Youth In Conflict Terms Exam 1, Youth Exam 2

View Set

Pharmacology Ch 50 Online Questions (Exam 2)

View Set

Life Insurance Policy Provisions, Options, & Riders

View Set