CGS 4854 Exam 1 Study Guide

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

What does cellpadding do?

space between the cell wall and the cell content

Connect to ssh

ssh -X [email protected]

Write the code to display your project/company name, as done in program 2

<table> <tr> <font face = "Calibri" size ="11" align ="center"> Apple </font> </tr> </table>

Display table to the left of the screen showing the frames of the borders.

<table width="50%" border="5" align="left"> <tr> <td valign="middle" align="center"> <font face ="courier"> hi baby you are my favorite </face> </td> </tr> </table>

Create one row and one column that will display something with different colors, sizes, and fonts

<table width="100%" bordercolor ="black> <tr> <td> <font face ="arial" color="blue> you ain't gunna get the chance </font> </td> </tr> </table>

As discussed/explained in class, what are the purposes of: B) Front-end section

What the user sees and interacts with where they input data and get information.

Write the code to extract and display the data from the field name FirstName inputted in program 2 as done in controller2.php program

$FirstName = $_POST['FirstName']; Echo 'FirstName . $FirstName';

Assuming that you are inside constructor 2 write that code that will extract the data from the front end

$FirstName = $_POST['FirstName']; Echo 'FirstName is . $FirstName';

Write the code to display the label and contents of ANY TWO FIELDS as done in controller2.php

$FirstName = $_POST['FirstName']; Echo 'FirstName is . $FirstName'; $LastName = $_POST['LastName']; Echo 'LastName is . $LastName';

Name the sections used to create a CSS3 menu as done in program 2. Not the CSS3 code just the section names.

//this section is used to align the menu in the center <nav align ="center"> </nav> //this section is a row rul is row <ul> </ul> //this section is a column lic is column <li></li> //we use this to include links within each column <a></a>

Create a horizontal menu with hyperlinks.

//we have this repeated <tr> <td align="center"> <a href="page4.html" Page4> Page 4 </a> </td> <td align="center"> <a href="../index.html" Page5> Home </a> </td> </tr>

Write the headings and the closing of the form that calls the constructor2.

<form method="post" action="constructor2.php"> </form>

Write the code of two input text fields in program 2

<Input type = text name = "text" value = "Hi there"> <Input type = text name = "text" value = "d and d">

Write the code to create a radio button.

<Input type=radio name="rad" value="1997">

Display welcome using x font x size x color.

<font face ="Arial" color ="blue" size= "11" align="center"> welcome</font>

Write the heading and closing of the form that calls the controller2.php program

<form method = "post" action = controller2.php"> </form>

Create a CSS section named whatever and change that background color and change the font and color of letters. As shown on the html head section in this class. (CSS in the HEAD, not BODY).

<html> <head> Text // instead of text maybe <style type="text/css"> { background: red; color: blue; font family: Arial; } </head> <body> </body> </html>

Write the code to display your last name, first name, and exam 1 at the title section of the website

<html> <head> <title> Vigueras, Ariel, Exam 1 </title> </head> </html>

What is the code that will clear the screen in program 2?

<input type="reset" name="ClearScreen" value="Clear Screen">

Create another menu to display 2 vertical links.

<nav align = "center"> <ul> //row <li><a href="../includes/pgm1.html">Program 1 </a> </li> //column <ul> //row <li><a href="page1.html">page 1</li> //vertical column <li><a href="page2.html">page 2</li> //vertical column </ul> </li> <li<a href="pgm2.php"> Program 2 </a> </li> </ul> </nav>

Using CSS create 2 horizontal options with links that will take you to different pages (a dropdown menu).

<nav align = "center"> <ul>//row <li><a href="page1.html">Page 1 </a> </li> //horizontal column <li<a href="page2.html"> Page 2 </a> </li> //horizontal column </ul> </nav>

Write the code to create a drop down.

<select name="age" style="width: 100%;"> <option value="Under 20"> Under 20 </option> <option value="20-30"> 20-30 </option> </select>

Write the code for a textarea input box as done in program 2

<textarea name = "comments"> </textarea>

Create a CENTERED horizontal menu using hyperlinks for page4 and Home. Remember all pages must be inside the includes folder.

<tr> <td align="center"> <a href="page4.html" Page4> Page 4 </a> </td> <td align="center"> <a href="../index.html" Page5> Home </a> </td> </tr>

Name the programming languages that we have used so far in this class

Html, CSS, PHP

As discussed/explained in class, what are the purposes of: C) Controller

Serves as the back end section that receives all user input and calls other programs.

What does cell spacing do?

Space between two cells

What is the purpose of the <form> tag as done in program 2

The <form> tag will send all the data in the current page, HIDDEN, to the page assigned to the action command.

As discussed/explained in class, what are the purposes of: A) Back-end section

What the user does not see and they don't interact with, it is all of the code written that computes the front end.

What will this code do: chmod 755 ../../../*

it would cause an error

In two different lines create "We are the Webs Design" using different alignment to the left, center, right/color/etc.

<center> <font face ="times" color ="blue"> we </font> </center> <font face ="arial" color ="red"> are </font> //something like this ^

Assume you're in the same folder in the index, create a form that will call the program and send the data hidden and send data to another file.

<form method="post" action="controller2.php"> </form>

Write the code to create a checkbox.

<input type = checkbox name="sally" value="sally"> <input type = checkbox name="sam" value="sam">

Write the code to create a submit button as done in program 2

<input type=submit name ="submit" value="submit">

Create a table with one row and inside that row create two columns

<table width ="100%" bordercolor="blue"> <tr> <td> <font face="times" color ="red"> darien </font> </td> <td> <font face="Arial" color ="black"> durnita </font> </td> </tr> </table>

What is the name of the folder to place all your program and folders for your website in this class.

public_html

What is the purpose of controller2.php as used in program 2

The controller2.php will allow access to all of the data that was submitted under the form tag

Assume that you are in the folder where the index file is found, create hyperlink that will call page 1 located in the includes folder

<tr> <td align="center"> <a href="page1.html" Page1> Page 1</a> </td> </tr>

Write the modified menu in program 1 (that calls program 2).

<tr> <td align="center"> <a href="program2.php" Program 2> Program 2</a> </td> </tr>

Write the code in constructor 2 to find out which button was pressed. Just an example.

If($_POST['save'] { Echo "saved"; }


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

Microbiology: Fundamentals of Microbial Growth (Ch 7)

View Set

Lesson 8 - Chapter 11 (Part A: Nervous System and Tissues)

View Set

Humanities 1: Discovering the Humanities- Chapters 4, 5, 6, 7, 8, 11, & 12

View Set

Safety/Infection Control - Saunders Quiz 3

View Set

Mastering Astronomy, Astronomy 2, Chapter 2

View Set

Brain and Behavior Exam 1: Chapters 1-3

View Set

Chapter 4: Genes and Their Evolution

View Set

Titanic-Voices from the Disaster Boat Vocabulary

View Set