QuestionQuestion

QUESTION 1
What does the following CSS selector reference? p, span { }
Any 'span' element that occurs inside a 'p' element.
Only 'span' elements that are children of a 'p' element.
Only 'p' elements that contain 'span' elements.

QUESTION 2
What does the CSS :hover pseudo-class do?
Adds special style to an activated element.
Adds special style to an element while the element has focus.
Adds special style to an element when you move the mouse pointer over it.
Adds special style to a visited link.

QUESTION 3
Which of the following is not valid HTML?
<img href=’image1.jpg’ alt=’computer’ />
<input type=”text” name=”age” value=”16” />
<p>She really wants to get a <span>job</span>.</p>
<h1><a href=’home.html’>Home</a></h1>

QUESTION 4
Which of the following arrays holds information about files that were uploaded using a form?
$_SERVER
$_FILES
$_POST
$_GET
$_COOKIE

QUESTION 5
If a cookie is set using PHP’s setcookie() without an expiration date, which of the following is true?
The cookie expires after one use.
The cookie expires immediately.
The cookie expires after the browser is closed.
The cookie expires only if the user manually deletes it.
The cookie never expires.

QUESTION 6
What CSS property is used to change an inline element into a block element?
display: inline;
display: block;
convert: block;
mode: block;
inline => block;

QUESTION 7
You have an existing associative array, $user, and want to remove the 'password' key/value pair from it. What is the correct PHP statement to do this? Note: I don't want the password element set to blank or null. I want the password element completely removed from the array.
$user->password->delete();
isset($user->password);
unset($user->password);
unset($user['password']);
$user->unset('password');
   
QUESTION 8
How do you insert a comment in HTML content?
' this is a comment
// this is a comment //
/* this is a comment */
// this is a comment
<!--this is a comment -->
   
QUESTION 9
Which of the following attributes of the <img> tag displays alternate text for the image?
caption
text
alt
identify

QUESTION 10
Which of the following is the correct way to apply more than one class to an element?
class="editbox fancy"
class="editbox+fancy"
class="editbox.fancy"
class="editbox" class="fancy"

QUESTION 11
By default is a span an inline or block element?
inline
block

QUESTION 12
Which of the following is the most important (in fact, critical) to the ability to create a password protected web application?
The information in $_SERVER.
The ability to display an image so captchas can be implemented.
The ability to set and retrieve cookie information.
The use of javascript.

QUESTION 13
How do you display hyperlinks without an underline?
a {underline:none;}
a {text-decoration:none;}
a {decoration:no-underline;}
a {text-decoration:no-underline;}

QUESTION 14
Which of the following has correct CSS syntax?
body { color: blue; }
{body;color:blue}
{body}:{color='blue'};
body:color=blue
style for="body" set color="black";

QUESTION 15
True or false? Cookies are passed between client and server using HTTP headers.
True
False

QUESTION 16
What does the CSS float property do?
It allows a user to drag and drop an image to another location on the page.
It aligns an HTML element to the right or left while allowing content to flow around it.
It allows web designers to overlap elements or to stack them on top of each other.
   
QUESTION 17
Which of the following arrays contains information about the web browser that is accessing the PHP script?
$_COOKIE
$_GET
$_POST
$_SERVER

QUESTION 18
This question is with regard to the use of ‘id’ and ‘class’ in an HTML document. Is it appropriate to give more than one element in a page the same id?
Yes
No

QUESTION 19
Functions in PHP can return a result using the return() statement. return() can only return one variable. If that is the case, how can you return multiple values from a PHP function?
Use multiple return() statements to return the multiple values.
Use an associative array containing the multiple values.
Use a PHP function other than return() to return the multiple values.
Throw an exception.

QUESTION 20
Which sign does jQuery use as a shortcut for the jQuery function?
the $ sign
the % sign
the ? Sign
the # sign

QUESTION 21
True or false? JavaScript provides a means to add interactivity to web pages.
True
False

QUESTION 22
Which CSS selector will reference the span element in the HTML provided below?
<div id="note2">
<div class="fancy"><p>This is a <span class="emphatic">awesome</span> message.</p></div>
</div>
span#emphatic
span.emphatic p
div#fancy p.emphatic
.emphatic
#emphatic

QUESTION 23
With jQuery, look at the following selector: $("div"). What does it select?
All div elements
The first div element
The jQuery div function

QUESTION 24
What is the correct jQuery code to set the background color of all p elements to red?
$("p").manipulate("background-color","red");
$("p").css("background-color","red");
$("p").style("background-color","red");
$("p").layout("background-color","red");

QUESTION 25
If you want to load an external PHP file into a PHP script and DO WANT a fatal error to be generated if the external PHP file could not be found, which of the following PHP statements would you use?
include
require
Both a and b. include and require both generate a fatal error if the external file can't be found.

QUESTION 26
What will be the output from the following PHP code?
$user = array('name' => 'joe', 'age' => 23, 'class' => 'senior');
foreach ($user as $key => $value) {
print "$key,$value,";
}
name = joe, age = 23, class = senior
name,joe,
name,joe,age,23,class,senior,
joe,23,senior,
name,age,class,
name,age,class,joe,23,senior,

QUESTION 27
What will be the value of $result after the following PHP code is executed?
$i = 11;
$result = ($i <= 10) ? $i : $i + 10;
10
11
20
21
undefined

QUESTION 28
True or false? There is no function in PHP that will randomize the order of items in array. To randomize the order of items in an array you must write a function to do it.
True
False

QUESTION 29
Yes or no? The following code defines a class named Example1 in PHP. Can the get_v2 method be called on an instance of an Example1 object?

class Example1 {
protected $v1;
protected $v2;

public function __construct($a, $b) {
$this->v1 = $a;
$this->v2 = $b
}

protected function get_v1() {
return $this->v1;
}

public function get_v2() {
return $this->v2;
}
}

Yes
No

QUESTION 30
The following code generates a syntax error or errors. The purpose of the line of code is to create an associative array and store it in the $pet variable. Which rewrite of the line will correct the error or errors?

$pet = ('name' = 'scratchy', 'type' = 'cat', 'age' = 3);
$pet = ('name' -> 'scratchy', 'type' -> 'cat', 'age' = 3);
$pet = ('name' => 'scratchy', 'type' => 'cat', 'age' = 3);
$pet = array('name' => 'scratchy', 'type' => 'cat', 'age' = 3);
$pet = array('name' => 'scratchy', 'type' => 'cat', 'age' => 3);
$pet = new array('name' => 'scratchy', 'type' => 'cat', 'age' => 3);

QUESTION 31
Which CSS statement causes the table borders to collapse into a single border?
border: 1;
collapse: 1;
border-collapse: separate;
border-collapse: collapse;

QUESTION 32
True or false: it is a good practice to separate the code that performs processing tasks that change the state of the system from the code that generates output.
True
False

QUESTION 33
Which of the following CSS selectors will match any <a> element inside any <p> element?
p a
p .a
p.a
p > a

QUESTION 34
A student on babbage.cs.missouri.edu has an account (pawprint) named 'mjgc24'. In their 'public_html' directory they have a directory named 'webapp'. In the 'webapp' directory they have an 'images' directory that contains the image 'image1.jpg'. What is the correct URL for accessing 'image1.jpg' in a web browser?
http://babbage.cs.missouri.edu/mjgc23/public_html/images/image1.jpg
http://babbage.cs.missouri.edu/images/image1.jpg
http://babbage.cs.missouri.edu/~mjgc24/image1.jpg
http://babbage.cs.missouri.edu/~mjgc24/public_html/images/image1.jpg
http://babbage.cs.missouri.edu/~mjgc24/webapp/images/image1.jpg
http://babbage.cs.missouri.edu/mjgc24/webapp/images/image1.jpg
http://babbage.cs.missouri.edu/images/image1.jpg?user=mjgc24&app=webapp

QUESTION 35
Where in an HTML document is the correct place to refer to an external style sheet?
In the <head> section.
In the <body> section.
At the top of the document.
At the end of the document.

QUESTION 36
Which of the following CSS settings will display text colored blue?
color: #0f2;
color: #fff000;
color: #ff0;
color: #0000ff;

QUESTION 37
Given the following, what method is used to submit the data in the URI to the web server?
http://mybusiness.com?id=25&page=4&access=All
COOKIE
GET
POST
FORM

QUESTION 38
Which CSS selector will reference both div elements in the HTML provided below?
<div id="message">
<div class="attention"><p>This is a <span class="bright">awesome</span> message.</p></div>
</div>

div
div.message, div#attention
div.message div#attention
.bright
div:all

QUESTION 39
Which of the following CSS selectors will match only div elements that have a class of 'advert'?
.advert
#advert
div.advert
div#advert

QUESTION 40
What is the output if the follow PHP is executed?
$j = 1;
for ($i = 0; $i < 5; $i++) {
if ($i == 4) {
continue;
}
$j = $j+ 2;
}
print "j = $j";
j = 4
j = 8
j = 9
j = 10
j = 11
j = 13

QUESTION 41
Which of the following JavaScript statements will locate an object on a web page with an id of ‘lastitem’?
var lastitem
document.getElementById(‘lastitem’)
lastitem.object
document.getObject(lastitem)

QUESTION 42
Which of the following form tags is correctly formatted for a form that supports file uploads?
<form name="form1" id="form1" method="POST" action="proc.php"></form>
<form name="form1" id="form1" method="POST" action="proc.php" enctype="file/upload"></form>
<form name="form1" id="form1" method="GET" action="proc.php" enctype="multipart/form- data"></form>
<form name="form1" id="form1" method="POST" action="proc.php" enctype="multipart/form- data"></form>

QUESTION 43
You have an existing associative array, $user, that already contains username and email values. What is the PHP statement to add a ‘role’ element to the array that has a value of ‘student’ while keeping the username and email elements unchanged?
$user = ('role' => 'student');
$user->role = 'student';
$user=>role = 'student';
$user['role'] = 'student';
$user->array->push('role', 'student');

QUESTION 44
Which of the following is the assignment operator in PHP?
=
==
===
   
QUESTION 45
The following is a listing of the entire contents of the $_POST array:
'name' => 'Tom Jacksby'
'email' => 'tjac097@mizzou.edu' 'age' => 22
'action' => ''

What value will $action have after the following PHP statement is executed?
$action = (empty($_POST['action'])) ? 'default' : $_POST['action'];
''
'default'
false
null

QUESTION 46
Which jQuery function is used to prevent code from running, before the document is finished loading?
$(window).loaded()
$(window).onload()
$(document).ready()

QUESTION 47
A div element has the following style:
div {
width: 220px;
padding-left: 30px;
padding-right: 10px;
border: 2px solid blue;
margin-right: 10px;
}

Using the standard CSS box model, what horizontal distance does the div occupy on the web page? In other words, what is its physical width?
220 pixels
260 pixels
262 pixels
264 pixels
274 pixels
284 pixels

QUESTION 48
Which of the following indicates 10px padding on the right, 20px padding on the left, 5px padding on the top, and 15px padding on the bottom?
padding: 5px 10px 15px 20px;
padding: 15px 20px 5px 10px;
padding: 5px 20px 15px 10px;
padding: 10px 20px 5px 15px;

QUESTION 49
Is the following statement true or false? “AJAX (Asynchronous JavaScript And XML) allows a web page to retrieve content from a web server without refreshing the web page.”
True
False

QUESTION 50
True or false? AJAX requests and responses can NOT contain cookies.
True
False

Solution PreviewSolution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

Question 1: Any 'span' element that occurs inside a 'p' element.
Question 2: Adds special style to an element when you move the mouse pointer over it.   
Question 3: <img href=’image1.jpg’ alt=’computer’ />
Question 4: $_FILES
Question 5: The cookie expires after the browser is closed.
Question 6: display: block;
Question 7: unset($user['password']);...
$33.00 for this solution

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Web Development (HTML, XML, PHP, JavaScript, Adobe, Flash, etc.) Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Decision:
Upload a file
Continue without uploading

SUBMIT YOUR HOMEWORK
We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats