CGS 4854 Exam 1 Study Guide | UPDATED Questions
with 100% Verified Answers
Q1: Write the code to display your last name, first name, and exam
1 at the title section of the website
A: <html>
<head> <title> Vigueras, Ariel, Exam 1 </title> </head>
</html>
Q2: Write the code for a textarea input box as done in program 2
A: <textarea name = "comments"> </textarea>
Q3: What is the purpose of controller2.php as used in program 2
A: The controller2.php will allow access to all of the data that was submitted under the form
tag
Q4: As discussed/explained in class, what are the purposes of
A) Back-end section
A: What the user does not see and they don't interact with, it is all of the code written that
computes the front end.
Q5: As discussed/explained in class, what are the purposes of
B) Front-end section
A: What the user sees and interacts with where they input data and get
information.
Q6: As discussed/explained in class, what are the purposes of
C) Controller
A: Serves as the back end section that receives all user input and calls other programs.
Q7: Name the programming languages that we have used so far in
this class
A: Html, CSS, PHP
Q8: Write the code to display the label and contents of ANY TWO
FIELDS as done in controller2.php
A: $FirstName = $_POST['FirstName'];
Echo 'FirstName is . $FirstName';
$LastName = $_POST['LastName'];
Echo 'LastName is . $LastName';
, Q9: What is the purpose of the <form> tag as done in program 2
A: The <form> tag will send all the data in the current page, HIDDEN, to the page assigned
to the action command.
Q10: Name the sections used to create a CSS3 menu as done in
program 2. Not the CSS3 code just the section names.
A: //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>
Q11: What will this code do: chmod 755 ../../../*
A: it would cause an error
Q12: Create a CENTERED horizontal menu using hyperlinks for
page4 and Home. Remember all pages must be inside the
includes folder.
A: <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>
Q13: What does cellpadding do?
A: space between the cell wall and the cell content
Q14: What does cell spacing do?
A: Space between two cells
Q15: Write the code to extract and display the data from the field
name FirstName inputted in program 2 as done in
controller2.php program
A: $FirstName = $_POST['FirstName'];
Echo 'FirstName . $FirstName';
with 100% Verified Answers
Q1: Write the code to display your last name, first name, and exam
1 at the title section of the website
A: <html>
<head> <title> Vigueras, Ariel, Exam 1 </title> </head>
</html>
Q2: Write the code for a textarea input box as done in program 2
A: <textarea name = "comments"> </textarea>
Q3: What is the purpose of controller2.php as used in program 2
A: The controller2.php will allow access to all of the data that was submitted under the form
tag
Q4: As discussed/explained in class, what are the purposes of
A) Back-end section
A: What the user does not see and they don't interact with, it is all of the code written that
computes the front end.
Q5: As discussed/explained in class, what are the purposes of
B) Front-end section
A: What the user sees and interacts with where they input data and get
information.
Q6: As discussed/explained in class, what are the purposes of
C) Controller
A: Serves as the back end section that receives all user input and calls other programs.
Q7: Name the programming languages that we have used so far in
this class
A: Html, CSS, PHP
Q8: Write the code to display the label and contents of ANY TWO
FIELDS as done in controller2.php
A: $FirstName = $_POST['FirstName'];
Echo 'FirstName is . $FirstName';
$LastName = $_POST['LastName'];
Echo 'LastName is . $LastName';
, Q9: What is the purpose of the <form> tag as done in program 2
A: The <form> tag will send all the data in the current page, HIDDEN, to the page assigned
to the action command.
Q10: Name the sections used to create a CSS3 menu as done in
program 2. Not the CSS3 code just the section names.
A: //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>
Q11: What will this code do: chmod 755 ../../../*
A: it would cause an error
Q12: Create a CENTERED horizontal menu using hyperlinks for
page4 and Home. Remember all pages must be inside the
includes folder.
A: <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>
Q13: What does cellpadding do?
A: space between the cell wall and the cell content
Q14: What does cell spacing do?
A: Space between two cells
Q15: Write the code to extract and display the data from the field
name FirstName inputted in program 2 as done in
controller2.php program
A: $FirstName = $_POST['FirstName'];
Echo 'FirstName . $FirstName';