Final Exam Flashcards

1
Q

HipText markup language (HTML) is the standard markup language for web documents.

A

false

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Developing ______________ web pages requires knowledge of disabilities, assistive technologies and software used by users with disabilities, and following design practices to ensure content is compatible with those assistive tools.

A

accessible

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

In the early 1990s, ______________________ was working at a Swiss research institute named CERN and developed a more convenient way for computers to communicate files over the Internet.

A

Tim Berners-Lee

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

PHP code has to start with the PHP opening tag. What does this look like?

A

php

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Where is PHP code executed?

A

On the server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the value of $colours[2] ?

$colours = [ “red”, “green”, “blue”, “orange” ];

A

blue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which data type can not be used as an array index?

A

boolean

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the index of the last element of this array, “Wednesday”?

$data = array(

“Monday”,

3 => “Tuesday”,

“Wednesday”

);

A

4

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is displayed with the following markup?

<a>Wikipedia</a>

A

A link with the text Wikipedia

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is HTML used for?

A

To markup text to tell a browser how it’s structured

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

is the control to use for multiple lines of text.

A

true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Given this URL with this query string:

http://example.com/show.php?page=3&print=true&lang=en

What does the $_GET array in PHP contain?

A

An array: [ “page” => 3, “print” => “true”, “lang” => “en” ]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Are these the four pieces of data that are required to connect to a database from a PHP script?

hostname, database name, username, password

A

true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which form method should be used for a search form?

A

GET

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Which form method should be used for a login form?

A

POST

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What will be displayed when the following code is executed?

function getMessage() {

$message = “Hello”;

return $message;

$message .= “ there!”;

}

echo getMessage();

A

Hello

17
Q

When should you use the htmlspecialchars function?

A

Whenever you display data coming from the user or a third-party.

18
Q

What is the correct syntax for redirecting to another page from PHP?

A

header(“Location: https://example.com/index.php”);

19
Q

Which form method should be used for a login form?

A

POST

20
Q

What is the correct SQL syntax for deleting data from a table?

A

DELETE FROM table_name WHERE condition;

21
Q

What does HTML stand for?

A

HyperText Markup Language