1/41
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
A web page is a document that is viewed in a web browser. A collection of related web pages are organized into a website. A web server is a program that serves web pages to web browsers.
true
A domain name is a name for a payment system, such as the name google.com for the googlepay.
true
Only a registered business may register an unused domain name with a domain name registrar.
false
HTTPS was an early way for transferring files over the Internet. Users used HTTPS programs to connect to servers, look at listings of available documents, and download documents of interest.
false
HipText markup language (HTML) is the standard markup language for web documents.
false
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.
Tim Berners-Lee
Many addresses do not include a filename, but simply point to a directory, like these:
http://www.example.com
http://www.example.com/resume/
true
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.
accessible
Your web pages will be viewed on all manner of devices, large and small, fast and slow, visual and non-visual. One of the challenges of being a web designer is creating a good experience regardless of the browsing device.
true
Domain names are hierarchical. A domain name belongs to one of numerous top-level domains (TLD), such as .com, .net, .org, .edu, and .gov. Also, each country is assigned a unique two-letter country code top-level domain (ccTLD) like .uk (United Kingdom), .ru (Russia), and .de (Germany). ICANN, the organization that manages TLDs, now allows companies and organizations to create customized TLDs, like .church, .pizza, and .music.
true
PHP code has to start with the PHP opening tag. What does this look like?
<?php
What will be the result of executing this code?
$name = "Jesse";
A variable called $name will be created and assigned the value "Jesse"
When creating a variable in PHP, you have to declare the type of the data it's going to contain.
false
What will be the result of running this code?
$price = 1.99;
$currency = "GBP";
echo $price . $currency;
"1.99GBP" will be displayed
Where is PHP code executed?
On the server
What is the value of $colours[2] ?
$colours = [ "red", "green", "blue", "orange" ];
blue
How many elements can an array have in PHP?
As many as you like
Which is not correct syntax for creating an array?
$data = new array();
Which data type can not be used as an array index?
boolean
What is the index of the last element of this array, "Wednesday"?
$data = array(
"Monday",
3 => "Tuesday",
"Wednesday"
);
4
What is displayed when this code is executed?
if (false) {
echo "stop!";
} else {
echo "go!";
}
go!
What is the value of $message after running this code?
$size = 40;
if ($size <= 40) {
$message = "Forty or under";
} else {
$message = "More than forty";
}
forty or under
What is HTML used for?
To markup text to tell a browser how it's structured
What is displayed with the following markup?
<a href="https://www.wikipedia.org/">Wikipedia</a>
A link with the text Wikipedia
In the code below, assuming the $hour variable has been defined earlier on in the code, when is the else block executed?
if ($hour < 12) {
echo "Good morning";
} elseif ($hour < 18) {
echo "Good afternoon";
} elseif ($hour < 22) {
echo "Good evening";
} else {
echo "Good night";
}
Only if none of the conditions in the if statement and elseif statements match
What does the PHP closing tag look like?
?>
Which of the following will NOT display the value of the $message variable?
<?php $message ?>
Is this the correct format for a comment in HTML?
<!-- this is a comment -->
true
Whitespace in an HTML document (tabs, newlines, spaces etc.) affects how the document is displayed in the browser
False
True
Are these the four pieces of data that are required to connect to a database from a PHP script?
hostname, database name, username, password
true
Given this URL with this query string:
http://example.comshow.phppage=3&print=true&lang=en
What does the $_GET array in PHP contain
An array: [ "page" => 3, "print" => "true", "lang" => "en" ]
An SQL injection attack occurs when:
When you insert values directly into an SQL string without checking them first
.htaccess files allow you to configure the web server.
True
Which form method should be used for a search form?
GET
If you don't specify an action attribute on a form, the data is submitted to the same script where the form is
True
Which form method should be used for a login form?
POST
In MySQLi, which character is used as a placeholder in a prepared statement?
?
Which is the correct syntax for inserting multiple records at once in one statement?
INSERT INTO table_name (column1, column2) VALUES (value1, value2), (value3, value4), (value5, value6);
The alt attribute provides alternative text for those who are not able to see it. It is required for every img element in order for the HTML to be valid. It is used by screen readers, search engines, and graphical browsers when the image fails to load
true
Who was the creator of PHP
Rasmus Lerdorf
What are used for comments in PHP?
“#” or “//” or “/*”