• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 2 fuera de 14 páginas
Examen

CMSC389N Final Exam Study Guide

Document preview thumbnail
Vista previa 2 fuera de 14 páginas

CMSC389N Final Exam Study Guide ...

Vista previa del contenido

CMSC389N Final Exam Study Guide


Using the <img> tag define a image entry where the image name is myPhoto.jpg and the
message "Customer Photo" will appear when the image cannot be displayed. - ANSWER
<img src="myPhoto.jpg" alt="Customer Photo">

Define a CSS rule that associates the color blue with links that have not been visited. -
ANSWER a:visited {

color: purple;

}

What is the difference between an id selector and a class selector? - ANSWER Class
selector allow us to apply the same rules to many elements; an id selector allows to
apply rules to only one element. Another difference: class selectors are defined using #;
id selectors using a period.

Which of the following are considered false in PHP? Circle all that apply.

a. 0

b. "" (empty string)

c. false

d. 10

e. "0" - ANSWER a., b., c., e.

What is the difference between == and === while comparing objects? - ANSWER = = true
if two objects have same attributes and values and are instances of the same class; = = =

true if and ony if the two variables refer to the same object instance

Using PHP define a constant called MAX_LENGTH that has a value of 50. - ANSWER
define("MAX_LENGTH", 50);

What takes place when a file included using require_once is not found? - ANSWER A
fatal error will take place and the script will be terminated.

What is an empty variable? (PHP) - ANSWER a variable that has a value that evaluates to
false.

Name two differences that exits between echo and print. - ANSWER i. Print returns a
value; echo does not

ii. echo can print expressions separated by commas

, What is HTTP? - ANSWER Protocol that defines how user agents (e.g., browser) and web
server can communicate. Accept as valid Hypertext Transfer Protocol

Provide an example of what is possible by using server side includes. - ANSWER file
inclusion, timestamp for file modification, timestamp for local date / time or any other
valid one they may have provided.

In HTML what is the difference between an inline element and a block element? -
ANSWER Block elements begin on new lines whereas inline elements don't. Any other
valid difference receives full credit.

Which of the following are VALID variable names (will not cause an error during script
execution) in PHP? Circle the valid ones.

a. $age_55

b. $LOCATION

c. Area

d. window_position$ - ANSWER a. and b.

Name three PHP superglobals seen in class. - ANSWER $_GET, $_POST, $_COOKIE,
$_FILES, $_SERVER, $_ENV, $_REQUEST, $_SESSION

We have defined a PHP function as follows:

function process() { echo "hello"; }

Which of the following are VALID ways to call the function?

a. Process();

b. process();

c. PROcess();

d. None of the above. - ANSWER a., b., c.

Name two uses we saw in class for the header function. - ANSWER Redirection to a site
(e.g., header("Location:http://www.cs.umd.edu")) Authentication (to ask for a username
and password via a pop-up window)

Name one reason why you want to use post over get when submitting data to a server. -
ANSWER Security (password information will not be in the URL),

Amount of information to be sent is large,

The request changes the state of the server (e.g., adding or removing data from a
database)

Información del documento

Subido en
7 de abril de 2025
Número de páginas
14
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$11.49

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
Evergreenview
4.8
(5)
Vendido
19
Seguidores
1
Artículos
3302
Última venta
1 semana hace



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes