CSIS 311- server-side scripting midterm review

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

What does CSS stand for? a. Cascading Style Sheets b. Creative Style Sheets c. Colorful Style Sheets d. Computer Style Sheets

a. Cascading Style Sheets

How do you get information from a form that is submitted using the "get" method? a. Request.QueryString; b. $_GET[]; c. Request.Form;

b. $_GET[];

What is the correct way to add 1 to the $count variable? a. count++; b. $count++; c. $count =+1 d. ++count

b. $count++;

How do you insert a comment in a CSS file? a. // this is a comment // b. /* this is a comment */ c. ' this is a comment d. // this is a comment

b. /* this is a comment */

What is a correct way to add a comment in PHP? a. <comment> this is a comment </comment> b. /* this is a comment */ c. *\ this is a comment \* d. <!-- this is a comment -->

b. /* this is a comment */

Which doctype is correct for HTML5? a. <!DOCTYPE HTML5> b. <!DOCTYPE html> c. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 5.0//EN" "http://www.w3.org/TR/html5/strict.dtd">

b. <!DOCTYPE html>

What is the correct HTML element for playing audio files? a. <mp3> b. <audio> c. <sound>

b. <audio>

What is the correct HTML element for inserting a line break? a. <break> b. <br> c. <lb> d. <linebreak>

b. <br>

What is the correct HTML for making a text input field? a. <textinput type="text"> b. <input type="text"> c. <textfield> d. <input type="textfield">

b. <input type="text">

Choose the correct HTML element to define important text. a. <b> b. <strong> c. <i> d. <important

b. <strong>

Which HTML element defines the title of a document? a. <meta> b. <title> c. <head>

b. <title>

Which operator is used to check if two values are equal and of same data type? a. == b. === c. = d. !=

b. ===

What does AJAX stand for? a. Annoying Jaded Association of Xylophones b. Asynchronous JavaScript And XML c. Antagonistic Jeweled Annual X-rays d. Anticipatory Joke And eXplanation

b. Asynchronous JavaScript And XML

In HTML, what does the <aside> element define? a. A navigation list to be shown at the left side of the page b. Content aside from the page content c. The ASCII character-set; to send information between computers on the Internet

b. Content aside from the page content

What does the DAV part of WebDAV stand for? a. Direct And Verily b. Distributed Authoring and Versioning c. Document Annotation Verification d. Data Analysis Vehicle

b. Distributed Authoring and Versioning

Of the following languages, which is most typically used to write code that interfaces with a database more directly than any of the other languages? a. CSS b. JavaScript c. HTML d. PHP

d. PHP

What does SGML stand for? a. Sliding General Modal Language b. Standard Gem Media Locale c. Socket Gem Media Link d. Standard Generalized Markup Language

d. Standard Generalized Markup Language

Block elements are normally displayed without starting a new line. True or False?

False

In PHP, the only way to output text is with echo. True or False?

False

Include files must have the file extension ".inc". True or False?

False

When using the POST method, variables are displayed in the URL: True or False?

False

How do you create an array in PHP? a. $cars = array("Volvo", "BMW", "Toyota"); b. $cars = "Volvo", "BMW", "Toyota"; c. $cars = array["Volvo", "BMW", "Toyota"];

a. $cars = array("Volvo", "BMW", "Toyota");

PHP server scripts are surrounded by delimiters, which? a. <?php...?> b.

a. <?php...?>

How can you open a link in a new tab/browser window? a. <a href="url" target="_blank"> b. <a href="url" new> c. <a href="url" target="new">

a. <a href="url" target="_blank">

Which HTML element is used to specify a footer for a document or section? a. <footer> b. <bottom> c. <section>

a. <footer>

Which HTML element defines navigation links? a. <nav> b. <navigation> c. <navigate>

a. <nav>

What is the correct HTML for making a drop-down list? a. <select> b. <input type="dropdown"> c. <list> d. <input type="list">

a. <select>

Which of these elements are all <table> elements? a. <table><tr><td> b. <thead><body><tr> c. <table><head><tfoot> d. <table><tr><tt>

a. <table><tr><td>

What is the correct HTML for making a text area? a. <textarea> b. <input type="textarea"> c. <input type="textbox">

a. <textarea>

Which one of these variables has an illegal name? a. $my_Var b. $myVar c. $my-Var

c. $my-Var

Which character is used to indicate an end tag? a. < b. * c. / d. ^

c. /

How do you insert a comment in an HTML file? a. // this is a comment b. # this is a comment c. <!-- this is a comment --> d. /* this is a comment */

c. <!-- this is a comment -->

What is the correct HTML for adding a background color? a. <body bg= "yellow"> b. <background> yellow </background> c. <body style= "background-color:yellow;">

c. <body style="background-color:yellow;">

What is the correct HTML for inserting a background image? a. <background img="background.gif"> b. <body bg="background.gif"> c. <body style="background-image:url(background.gif)">

c. <body style="background-image:url(background.gif)">

Choose the correct HTML element to define emphasized text. a. <italic> b. <i> c. <em>

c. <em>

Choose the correct HTML element for the largest heading: a. <h6> b. <heading> c. <h1> d. <head>

c. <h1>

What is the correct HTML for making a checkbox? a. <check> b. <input type="check"> c. <input type="checkbox"> d. <checkbox>

c. <input type="checkbox">

How can you make a numbered list? a. <list> b. <dl> c. <ol> d. <ul>

c. <ol>

How can you make a bulleted list? a. <list> b. <dl> c. <ul> d. <ol>

c. <ul>

What is the correct HTML element for playing video files? a. <media> b. <movie> c. <video>

c. <video>

What is the correct way to include the file "time.inc" ?

<

An <iframe> is used to display a web page within a web page. True or False?

True

In HTML, you can embed SVG elements directly into an HTML page. True or False?

True

In PHP you can use both single quotes ( ' ' ) and double quotes ( " " ) for strings: True or False?

True

Inline elements are normally displayed without starting a new line. True or False?

True

PHP allows you to send emails directly from a script True or False?

True

PHP can be run on Microsoft Windows IIS(Internet Information Server): True or False?

True

The die() and exit() functions do the exact same thing. True or False?

True

The if statement is used to execute some code only if a specified condition is true. True or False?

True

What does PHP stand for? a. PHP: Hypertext Preprocessor b. Private Home Page c. Personal Hypertext Processor d. Pragmatic Hadoop Processor

a. PHP: Hypertext Preprocessor

The PHP syntax is most similar to: a. Perl and C b. JavaScript c. VBScript

a. Perl and C

An <iframe> is used to display a web page within a web page. a. True b. False c. There is no such thing as an <iframe>

a. True

Graphics defined by SVG is in which format? a. XML b. CSS c. HTML

a. XML

Which HTML attribute specifies an alternate text for an image, if the image cannot be displayed? a. alt b. title c. longdesc d. src

a. alt

What is the correct way to open the file "time.txt" as readable? a. fopen("time.txt","r"); b. fopen("time.txt","r+"); c. open("time.txt","read"); d. open("time.txt");

a. fopen("time.txt","r");

What is the correct way to create a function in PHP? a. function myFunction() b. new_function myFunction() c. create myFunction()

a. function myFunction()

How do you create a cookie in PHP? a. setcookie() b. createcookie c. makecookie()

a. setcookie()

The HTML <canvas> element is used to: a. manipulate data in MySQL b. draw graphics c. create draggable elements d. display database records

b. draw graphics

How do you write "Hello World" in PHP? a. Document.Write("Hello World"); b. echo "Hello World"; c. "Hello World";

b. echo "Hello World";

In HTML, which attribute is used to specify that an input field must be filled out? a. placeholder b. required c. validate d. formvalidate

b. required

All variables in PHP start with which symbol? a. ! b. & c. $

c. $

The possible answers are all things that occur in a particular order. The first thing to occur is "The user submits a form on a web page that was already loaded into their browser." Of the remaining three things, which of the following occurs in the middle of those three? a. The server receives a request from the browser and identifies what file to access and how to access it (whether to read it or execute it). b. The browser receives data from the server and displays it to the user. c. A server-side script, possibly written in PHP, is executed.

c. A server-side script, possibly written in PHP, is executed.

In HTML, onblur and onfocus are: a. Style attributes Your answer b. HTML elements c. Event attributes

c. Event attributes

What does HTML stand for? a. Hyperlinks and Text Markup Language b. Home Tool Markup Language c. Hyper Text Markup Language d Hyped-up Technical Media Language

c. Hyper Text Markup Language

What does HTTP stand for? a. Hyped Texting Talking Person b. Hyper Transformed Textual Path c. HyperText Transfer Protocol d. Hip Trendy Talking President

c. HyperText Transfer Protocol

The HTML global attribute, "contenteditable" is used to: a. Specifies a context menu for an element. The menu appears when a user right-clicks on the element b. Update content from the server c. Specify whether the content of an element should be editable or not d. Return the position of the first found occurrence of content inside a string

c. Specify whether the content of an element should be editable or not

Who is making Web standards? a. Mozilla b. Google c. The World Wide Web Consortium d. Microsoft

c. The World Wide Web Consortium

What does XHTML stand for? a. eXtended Hip Trendy Media Locale b. Xerox Happy Tech Micro Link c. eXtensible HyperText Markup Language d. Xtra Hyped Trans Macro Lingo

c. eXtensible HyperText Markup Language

Which superglobal variable holds information about headers, paths, and script locations? a. $_SESSION b. $_GET c. $GLOBALS d. $_SERVER

d. $_SERVER

What is the correct way to end a PHP statement? a. . b. New line c. </php> d. ;

d. ;

What is the correct HTML for creating a hyperlink? a. <a url="http://www.w3schools.com">W3Schools.com</a> b. <a name="http://www.w3schools.com">W3Schools.com</a> c. <a>http://www.w3schools.com</a> d. <a href="http://www.w3schools.com">W3Schools</a>

d. <a href="http://www.w3schools.com">W3Schools</a>

Which HTML element is used to specify a header for a document or section? a. <head> b. <top> c. <section> d. <header>

d. <header>

What is the correct HTML for inserting an image? a. <img alt="MyImage">image.gif</img> b. <image src="image.gif" alt="MyImage"> c. <img href="image.gif" alt="MyImage"> d. <img src="image.gif" alt="MyImage">

d. <img src="image.gif" alt="MyImage">

Which HTML element is used to display a scalar measurement within a range? a. <measure> b. <range> c. <gauge> d. <meter>

d. <meter>

What does JSON stand for? a. JIT Scaling Object Node b. Java Scripting Objective Node c. Java Scaling Objective Need d. JavaScript Object Notation

d. JavaScript Object Notation

What does XML stand for? a. eXtended Media Layout b. X-ray Metadata Logicality c. X-windows Meta Link d. eXtensible Markup Language

d. eXtensible Markup Language

Which input type defines a slider control? a. search b. controls c. slider d. range

d. range

Which of the following is NOT a valid HTTP request? a. HEAD b. POST c. PUT d. GET e. TAIL

e. TAIL


Ensembles d'études connexes

Chapter 37 Patients w/ HIV & AIDs

View Set

Chpt 38 Into to Animal organization and physiology

View Set

Ch. 24 Asepsis and Infection Control

View Set

Chapter 41: Disorders of Endocrine Control of Growth and Metabolism

View Set

Variable, Indexed, and Market-Value Adjusted Annuities

View Set

Vocab from classical roots boob b lesson 4

View Set

W3Schools HTML, CSS, and XML Quiz (Web Development Foundations - D276)

View Set

Soci 100 - Homework - Chapter 6. Social Control and Deviance

View Set

Foundation of Professional Nursing Practice

View Set

Lesson 18: Personality Disorders Multiple Choice

View Set