Web Programming

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

The HTML is a markup language that specifies ____ and ____ of a webpage.

Structure & Content

An HTML tag notifies the ____?

Web browsers what the element is

How do you add a background color of red to all h1 elements?

h1{background-color:red;}

CSS inheritance means ____.

if you apply a property to one element, the property will apply to all nested elements

Which CSS property is used to change the left margin of an element?

margin-left

In mysql, suppose an SQL statement is stored in a variable called $query and the connection is stored in $conn, how do you execute the statement?

mysqli_query($conn, $query);

In PHP, why should you use mysqli_real_escape_string() function? A) You will get the real string from the HTML form B) The codes will run faster C) The codes will be more secure

none of the above.

How do you display a border for all paragraphs?

p{border: solid 1px red;}

What is the CSS definition for making all the <p> elements bold?

p{font-style:bold;}

How do you make each word in a paragraph start with a capital letter?

p{text-transform: capitalize;}

In CSS color, the RGB stands for ____.

red green blue

Which of the following is NOT a valid RGB color?

rgb(100%, 0%, 0%)

How do you select an element with id "MyColor"?

#mycolor

All variables in PHP start with which symbol?

$

In PHP, which of the following is NOT a correct variable name?

$3val

In PHP, how do you retrieve the content from a file called feedback.txt and store the content in an array called $fileContent?

$fileContent = "feedback.text";

Which of the following is a correct way to create an array in PHP?

$grades = array(78, 87, 95, 53);

Which of the following measurements is a relative one?

% and em

Which character is used to indicate the end tag of an HTML element?

/

Which of the following is a correct way to comment out a line of CSS code?

/*This is a line of comment*/

In PHP, which of the following is the correct way to comment a single line?

//This is a line of comment.

A PHP statement is terminated with which symbol?

;

All PHP statements should be surrounded by which delimiters?

<?php and ?>

Which of the following HTML elements is used to create a hyperlink?

<a href ="http://www.createspace.com">CreateSpace</a>

Which HTML element is used to specify content aside from the page content?

<aside>

The ____ element contains the metadata of the web page file. Information inside this element is for browsers, servers, and search engines.

<body>

The ____ element includes all information you want to show to the viewers of the web page.

<body>

Which of the following elements inserts a line break in HTML file?

<break>

Which of the following is a correct way to use comments in the HTML?

<comment>This is a line of comments in HTML</comment>

Which of the following HTML elements is used to define emphasized text?

<em>

Which HTML element is used to specify a footer for a document or section?

<footer>

Which HTML element is used to specify a header for a document or section?

<head>

Which of the following should be used for the most important heading of a web page?

<head>

Which of the following tags marks the beginning of an HTML file?

<html>

Which HTML element is used to display a web page within the current web page?

<iframe>

Which HTML element is used to insert an image?

<img src ="myimage.jpg" alt="MyImage">

Which HTML element is used to make a checkbox in a form?

<inputtype ="checkbox">

Which HTML element is used to make a dropdown list for a form?

<inputtype ="dropdown">

Which HTML element is used to make a text input field in a form?

<inputtype ="input">

Which HTML element is used to make a text area in a form?

<inputtype ="textarea">

Which HTML element is used to specify a navigation for a page?

<navigation>

Which HTML element is used to make a numbered list?

<ol>

A paragraph in a web document is typically included in ____ element.

<p>

Which of the following HTML elements is used to define important text?

<strong>

Where is an HTML document is the correct place to refer to an external style sheet?

<style> and </style>

If you use the embedded style, all the css definitions should be included inside ____ element.

<style>and</style>

Which of the following HTML elements are used to mark up a table?

<table><tr><td>

The ____ element shows what the title of this web page is. It will appear in the title bar of the browser (located at the top left of a browser or at the status bar when minimized).

<title>

Which HTML element is used to make a bulleted list?

<ul>

Which of the following statements is correct? A) A database is used to create a DBMS. B) A DBMS is used to create a database. C) A DBMS is the same as a database. D) A DBMS and a database are not the same.

A DBMS is used to create a database.

In the following HTML code, if you need a few extra spaces between 2017 and your name, what can you do? <p>COPYRIGHT & copy; 2017YourName</p>

Add a few &nbsp; in where you want the space

HTML elements can have attributes. These attributes are used to ____.

Add additional info for the element

Which of the following is NOT a data type in MySQL?

BOOLEAN

A tag such as <br> is often called ____ because it does not require a closing tag for the element.

Break Tag

In mysql, which of the following statements is used to create a database?

CREATE DATABASE schoolDB

An HTML file ____/

Can be created with any text editor like notepad and is basically a text file with HTML element

Firefox, Internet Explorer/Edge, Chrome, and Safari are examples of _____?

Client Software

All HTML elements must be ____.

Closed with a tag

In sql, what does the following statement do? DELETE FROM student;

Delete all rows in a table called abc.

In PHP file upload in regards to security, which of the following is a true statement?

Do not allow file uploads.

In PHP, $content ="<p>Hello World</p>". Write a PHP statement that displays the content on the browser screen.

Echo "Hello World";

The HTML ____ is/are the building blocks of HTML documents.

Elements

CSS padding property allows negative value.

False

HTML5 was the result of hard work of W3C from the first day.

False

In PHP, a session is used so that the server can remember the browser.

False

When using the get method to submit an HTML form to a PHP file, the variables are displayed in the URL.

False

mysql is a database.

False

Which of the following is NOT a benefit of validating your HTML code?

For web page aesthetics

The ____ is a standard for the browsers and the web servers to communicate with each other.

HTTP

In sql, what does the following statement do? INSERT INTO abc (field1Name, field2Name) VALUES (field1Value, field2Value)

Insert two rows into a table called abc.

What will the following HTML line of code do? <meta charset = "utf-8">

It defines the document's character encoding

In mysql, if you add AUTO_INCREMENT attribute to a field of a table, ____.

MySQL will automatically add a unique integer to the field when a new record is inserted.

If the following connection is used in your PHP statement, what is the password for the account? $conn=mysqli_connect('a','b','c');

No password

What is the primary key of a table?

One or more fields that can uniquely identify each record.

In sql, what does the following statements do? SELECT * FROM student;

Select all rows and columns from a table called student.

In sql, what does the following statement do? UPDATE students SET studentGpa = 4.0 WHERE studentId = 4;

Set the Student's GPA to 4.0 whose student ID is 4 in the student table.

What is special about the following URL? Contentupdate.php?id=2

The browser requests a page called contentupdate.php and passes an id value of 2 that the contentupdate.php page usually needs.

In PHP, what will $i+=2 do?

The value in the variable i is increased by 2

Who is making the standard for the web?

The world wide web consortium

An inline element is normally displayed without starting a new line.

True

In MySQL, data in a database is often stored in one or more tables.

True

In Php, you can use either single quotes ('This is a string') or double quote ("This is a string") for strings.

True

www.google.com is an example of a

URL

Which attribute in HTML form is used to specify that an input field must be filled out?

Value

The _____ is an information system that allows the user to use client software to request documents stored in a server through the Uniform Resource Locators.

Web

The ____ contains instructions for client and server software to follow.

Web Programming

In mysql, before executing an SQL CREATE TABLE statement, what must be done?

You must know the data for the table

In mysql, what is a table column called?

a field

A CSS definition includes three parts:

a selector, a property and a value

Which HTML attribute specifies an alternate text for an image, if the image cannot be displayed?

alt

What is the CSS definition for displaying hyperlink without and underline?

a{text-decoration: no-underline;}

If you want to define different styles for the same selector and use them in different places, you can use a ____ selector.

class

In mysql, after all the SQL statements are executed, you must ____ to the database.

close the connection

In mysql, before you can execute any SQL statement, you must ____ to the database.

connect

An element defines the ____ of a document while the CSS determines the ____ of the document.

content ... appearance

How do you select all p elements inside a div element?

div p

How do you select all p elements as a child of a div element?

div>p

Which of the following CSS will override the browser default style?

embedded, external, and inline

Suppose you want to apply CSS to more than one Web pages, you probably will use ____ CSS.

external

CSS can be specified in 3 ways. When more than one style information is specified for an HTML element, these styles cascade into a new style sheet by following the cascading order. From highest priority to the lowest priority orders are:

external, embedded, and inline

Which CSS property is used to change the front of an element?

font

How do you apply CSS to a group of selectors

separate each selector with a dot

Which CSS property is used to change the text color of an element?

text-color

Which CSS property determines the text size?

text-size

How do you make a list without its bullet points?

ul{list-style-type: none;}


संबंधित स्टडी सेट्स

14.4 Forming and Changing Attitudes

View Set

Anatomy and Physiology Unit 9 Lesson 8

View Set

Give Me An Answer -- Communicative, Unit 6A

View Set