4444- All of the quizzes to date

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

Which of the following methods is used to create a cookie? setcookie() cookie_start() cookie() new cookie()

a

Which of the following tag is used to indicate a hyper link? <a> <body> <head> <p>

a

A user is directed to page2.php after submitting form data from page1.php. The user then clicks a link on page2.php to return to page1.php. The submitted form data _______________________________. are automatically filled in the form on page1.php are no longer available on page1.php are still available on page1.php are partially available on page1.php

b

Complete the following DELETE SQL statement. DELETE __________ lunch WHERE lunchid=10 AT FROM INTO <blank>

b

Complete the following SQL statement that lists unique manager IDs. SELECT __________ emp_mgrid FROM Employee SINGLE DISTINCT UNIQUE *

b

In DOM, an element is a/an ____________ and an attribute is a/an ___________. event, method object, property property, object method, event

b

An HTTP cookie is a small piece of data stored ___________________. remotely in the web server's cache memory remotely in the web server locally in the user's web browser locally in the user's computer cache memory.

c

Complete the following SQL statement that lists all employees in the departments of 'Sal' and 'Mkt'. SELECT * FROM Employee WHERE dept_code='Sal' _______ dept_code='Mkt' WHERE NOT OR AND

c

Which keyword in the html code, <meta charset="utf-8"> is an attribute name?

charset

The html <style> tag is used to reference the jQuery library.

f

Child elements do not inherit styles defined for parent elements.

false

Rich Internet Applications (RIA) are desktop applications that approximate the performance and rich GUI of web applications. (t/f)

false

XML tags are case insensitive.

false

JSON is a data format good for storing __________________.

hierarchical data

Which of the following XMLHttpRequest properties stores a function to be called automatically each time the readystate property changes?

onreadystatechange

In a 3-tier application architecture, the middle tier is located on a web server.

t

jQuery can achieve what JavaScript can do with less coding

t

A figurecaption can be displayed over several images.

true

Ajax applications run client-side user interaction and server communication in parallel. (t/f)

true

The XMLHttpRequest object is used to manage interaction with the server in Ajax applications. (t/f)

true

The summary element displays a right-pointing arrow next to a summary or caption.

true

XML allows document authors to create their own element tags.

true

The html node in a DOM tree is the parent node of all HTML elements in the page.

true

Which of the following XPath expressions selects nodes no matter where they are in the XML document? @ [text()] / //

d

Which of the following is not a valid DOM collection? links forms images tables

d

Which technology is mostly used at the logic tier? JavaScript MySql HTML PHP

d

XPath is a language of expressions used to ______________. modify data in XML documents search and modify data in XML documents None of the above search data in XML documents

d

A jQuery, $("p"), selects ______________. all paragraph elements the last paragraph element the first paragraph element a random paragraph element

a

Complete the following UPDATE SQL statement. UPDATE lunch __________ lunch_date='2016-09-02' WHERE lunchid=13 SET FROM INTO WHERE

a

In a multiple-tier application architecture, the ___________ tier implements business logic and controller logic. middle bottom information top

a

The first line of code in an html document is ____________. <!doctype html> <!-- This is an html page --> <head> <html>

a

Which of the following SQL statements lists the employees whose last name is four letters long and ends in 'e'? SELECT * FROM Employee WHERE emp_lastname = '_ _ _e' SELECT * FROM Employee WHERE emp_lastname='???e' SELECT * FROM Employee WHERE emp_lastname='*e' SELECT * FROM Employee WHERE emp_lastname='%e'

a

Which of the following data formats cannot be used by D3.js? XLS CSV JSON TSV

a

Which of the following is the correct syntax for modifying the content of this <p> element? <html> ... <p id="newp"> content to be modified </p> ... </html> getElementById("newp").style = "new content" getElementById("newp") = "new content" getElementById("newp").text = "new content" getElementById("newp").innerHTML = "new content"

d

Complete the following INSERT SQL statement. INSERT _______ lunch(lunchid, lunch_date) VALUES(10, '2016-08-01') FROM AT TO INTO

d

In the jQuery syntax, $(selector:filter).action(), the selector is used to _____________. select form elements select style elements select script elements select html elements

d

MySQL is a _________________________. server-side scripting language client-side scripting language database query language relational database management system

d

What is the correct way to access the first <p>element in this html page? <html> ... <p> Monday </p> <p> Tuesday </p> <p> Wednesday </p> ... </html> getElementById("p") getElementsByTagName("p") getElementById("p")[0] document.getElementsByTagName("p")[0]

d

Which PHP function gets the number of affected database records when executing an INSERT, UPDATE, or DELETE sql statement? mysqli_query() isset() mysqli_connect() mysqli_affected_rows()

d

Which PHP method can get a row from the resultset of a SELECT statement and turn it into an array? mysqli_query mysqli_close mysqli_connect mysqli_fetch_array

d

Which method is used initialize the $_SESSION variable? session() new session() session_resume() session_start()

d

Which of the following PHP functions determines if a variable has a value and is not NULL. empty() hasvalue() unset() isset()

d

Data in hidden input values will not be sent to the action URL when the form is posted (submitted).

false

In an html document, an image cannot be used as a link. (t/f)

false

Radio input types should be used when more than one option can be selected.

false

When a synchronous web request is being processed on the server, the user can still interact with the client web page. (t/f)

false

You can define multiple head elements within an HTML5 page.

false

During a cookie's lifespan, its data will be transmitted to the web server each time the user visits the website that the cookie belongs to.

t

An Ajax application usually updates part of the web page after receiving a response from the server. (t/f)

true

An XML document is well-formed if an XML parser can process the document successfully.

true

D3.js can use CSS and jQuery selectors. (t/f)

true

DTDs and schemas are used to define element types, attributes, and their relationship.

true

Html code is case-insensitive. (t/f)

true

Specifying an element's position as absolute removes it from the normal flow of elements on the page.

true

Styles defined by the author of an HTML document take precedence over styles defined by a user agent (e.g., browser).

true

The <meta> element can be used to provide additional information for search engines to index. (t/f)

true

The D3.js Axis component allows for addition of a horizontal-axis and vertical-axis to any graph.

true

The Same Origin Policy prevents the XMLHttpRequest object from requesting resources from domains other than the one that serves the application. (t/f)

true

Which of the following elements are block-level elements? strong a div img

C

jQuery can completely separate JavaScript from HTML.

t

Which of the following input types sends form data to a URL? get reset submit post

C

Which of the following jQuery methods is used to initiate an asynchronous web request? $(.ajax()) $ajax() $.ajax() $(ajax())

C

Given this html page, <html> ... <img id="myImage" src="oldpic.jpg"> ... </html> What of the following statements can correctly access the <img> element's src attribute value? document.getElementById("myImage").src document.getElementById("src") document.getElementById("myImage.src") document.getElementsByTagName("img").src

A

In a CSS style rule, a pseudo class (e.g., hover) is preceded by a _________. colon (:) space ( ) semi-colon (;) period (.)

A

In an html page's DOM tree, a node can have _____________ child node(s) and ___________ parent node(s). multiple, one one, multiple multiple, multiple one, one

A

Two aspects of any document are ________ and _________. content and style word and grammar head and body width and length

A

What does this CSS rule mean? nav ul { display: block;} the element will be displayed as a block-level element the element will not be rendered at all the element is blocked by a display element the element will be displayed as an inline element

A

Which browser does not support the CSS -webkit- extension? Mozilla Firefox Chrome Safari IOS browser

A

Which of the following XMLHttpRequest methods is used to initialize an asynchronous web request? open('GET', 'dest.html', true) open('GET', 'dest.html', false) send('GET', 'dest.html', true) send('GET', 'dest.html', false)

A

Which of the following input types allows multiple lines of text entry? TextArea text password select

A

Which of the following input types has self-validating capability? email password text checkbox

A

Which of the following is a limitation for client-side scripting? Placing large amounts of JavaScript on the client can cause security issues It is difficult to provide user interactions. It requires intensive network communications It can enhance web pages.

A

Which of the following is an ordered list in html? 1. item 1 2. item 2 3. item 3 all of the above item 1 item 2 item 3 item 1 item 2 item 3

A

Which of the following sectioning elements should be used to describe content that's separate such as a news article? article aside nav summary

A

Which one of the CSS style specification methods achieves the best separation of content from presentation? External styles All of the above Inline styles Embedded styles

A

________ elements have a virtual box drawn around them. block-level head span inline

A

jQuery is a _______________. JavaScript library Java library query language Java Query language

A

Which one of the following is an advantage of using CSS? combining content with presentation cannot be reused for other documents reducing data transfer over a network choosing different styles for different documents

C

Ajax stands for ______________________________.

Asynchronous JavaScript and XML

A jQuery, $(":text"), selects _______________. all text elements all form elements with type="text" all html elements with a text attribute all html elements with content="text"

B

In the jQuery syntax, $(selector:filter).action(), the $ sign represents _____________. a jQuery operator a jQuery object a jQuery delimiter a jQuery command

B

The Document Object Model provides scripting access to _________ on a web page. the child elements within the <body> element all the elements some elements the child elements within the <head> element

B

The ________ attribute allows you to place temporary text in a text field. temp placeholder footer text

B

The _____________ command should be used to break a loop if the next command to be executed is the one follows the loop. continue break exit next

B

The html code <meta charset="utf-8" /> is a/an ____________. Tag Void Element Script Attribute

B

When PHP commands are processed, __________________ is/are sent by the web server to the client's web browser. both the input and the output only the output the command itself both the command and the output

B

Which CSS style can be used to center text in an element? text-decoration text-align text-indent color

B

Which animation property value specifies the amount of time each animation iteration takes? time-function duration iteration-count delay

B

Which bracket is used to specify a CSS style rule? ( ) { } < > [ ]

B

Which of the following PHP methods converts a row from a SELECT result table into a JSON object? mysqli_num_rows() mysqli_fetch_assoc() mysqli_fetch_row() mysqli_query()

B

Which of the following document methods returns a single element object? writeln() getElementById() getElementsByTagName() getElementsByClassName()

B

Which of the following event handlers can correctly handle a click event on an element with an id value="starter"? $("#starter").function(click){ ... } $("#starter").click(function(){ ... }) $(".starter").click(function(){ ... }) $(".starter").function(click){ ... }

B

Which of the following is not a limitation of server-side scripting? It causes increased network traffic. It relies on the client's computing resources. It causes increased demand for computing resources on the server. It requires a network connection

B

Which one of the following is a valid JSON object? (value1, value2) {propertyname1:value1, propertyname2:value2} [propertyname1:value1, propertyname2:value2] <propertyname1>value1</propertyname1><propertyname2>vavlue2</propertyname2>

B

Which one of the following is a valid inline CSS style? <p "font-size:20pt;"> <p style="font-size:20pt;"> <p "font-size:20pt"> <p style="font-size:20pt"

B

Which one of the following is not a core feature in jQuery? handling events storing structured data DOM element selection and manipulation creating animations

B

XML stands for _________________________. Hyper Text Markup Language Extensible Markup Language Expedite Markup Language Executable Markup Language

B

_____________ documents are specified in the Document Object Model (DOM). Only XML HTML and XML CSS stylesheet Only HTML

B

The tag used to indicate a table header is _________. <table> <td> <th> <tr>

C

The top level of the Document Object Model is ______________. browser the root element the document object the xml declaration

C

What the Structural Query Language cannot do? Manipulating database records Creating database and table structures Specifying how the data is stored at the database Querying the database

C

Which CSS style can specify the boldness of text? font-style font-size font-weight font-family

C

Which of the following displays shadow to the right and the bottom sides of the h1 block-level element? h1 {box-shadow: -25px 25px 50px dimgrey;} h1 {box-shadow: -25px -25px 50px dimgrey;} h1 {box-shadow: 25px 25px 50px dimgrey;} h1 {box-shadow: 25px -25px 50px dimgrey;}

C

Elements that have lower z-index property values are displayed __________ elements with higher z-index values. in front of below behind above

C

How many percentages can you define in a keyframes rule? no less than 3 5 and only 5 unlimited no more than 2

C

The HTML SVG element is a/an _______________________________. circle rectangle container element for SVG graphics image

C

In html, the special character operator is __________. # % / &

D

In the DOM, two nodes are ________ nodes when they have the same parent node. parent cousin ancestor sibling

D

PHP stands for _____________________. Placed Hypertext Processing Page Hypertext Processing Peer Hypertext Preprocessing PHP: Hypertext Preprocessing

D

The box model means that the content is surrounded by _________, ___________, and ________ (from the closest to the content to the farthest). border, margin, and padding border, padding, and margin margin, border, and padding padding, border, and margin

D

What is the IP address of the loopback address, localhost? 255.255.255.0 192.168.1.1 192.168.0.1 127.0.0.1

D

Which of the following D3 methods is used to open a JSON file? d3.open("json", filename) d3.open() d3.tsv() d3.json()

D

D3.js is a ________________________ for producing dynamic and interactive data visualizations.

JavaScript Library

SVG stands for?

Scalable Vector Graphics

In the following html DOM tree, the <h1> element is the ____________ of the <a> element. <html> element |-----<head> element | |-----<title> element | |-----<body> element |-----<a> element |-----<h1> element firstChild nextSibling previousSibling lastChild

b

Which of the following is the correct way to specify that a cookie expires in 2 days? 60*60*24*2 time()+60*60*24*2 2 60*60*24*2*1000

b

Which one of the following is not a solution to the data persistence problem? databases Form submission using the POST method sessions cookies

b

Which symbol is used to declare a variable in PHP? % $ # @

b

One of the following PHP statements has the correct syntax and will load the same PHP code page when the user clicks the Submit button. Which one? <form method="post" action="<?php echo $_POST['PHP_SELF']; ?>"> <form method="post" action="<?php echo $_SERVER['SELF']; ?>"> <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <form method="post" action="<?php echo $_POST['SELF']; ?>">

c

Session data ____________________ after the user has left the website or closed the browser. will expire after a specific length of time will expire in 1 hour are deleted are still available

c

Session data are stored _______________________. in the local browser as a cache file on the client's computer on the remote web server as a local file on the client's computer

c

Which PHP system variable is initialized when a HTTP POST request is sent to the web server? $POST $_SERVER $_POST $_GET

c

Which of the following SQL statements lists the full details of those employees who were hired in 1997? SELECT * FROM Employee WHERE emp_hiredate IN 1997 SELECT * FROM Employee SELECT * FROM Employee WHERE emp_hiredate>='1997-01-01' AND emp_hiredate<='1997-12-31' SELECT * FROM Employee WHERE emp_hiredate > '1997-01-01'

c

Which of the following statements is TRUE about using a session which has already been initialized in another PHP file? A new session array, $_SESSION, must be initialized. You cannot use a session initialized in another PHP file. The method, session_start(), is needed to use the session already initialized in another page. You must use the include command or require_once() function to include the PHP file where the session is initialized.

c


Kaugnay na mga set ng pag-aaral

Pharaoh Khufu and the Great Pyramid

View Set

MSN5050 Management of Chronic Diseases: Week 1A & 1B

View Set

Spotlight on Obesity - Nutrition

View Set

Forensics Chapter 13: metals, paints, and soil

View Set

The Relational Model: Advanced Topics

View Set

Neuro HESI Pt. Review: Mrs. Thorne

View Set