CGS 4854 Exam 2 | UPDATED Questions with 100%
Verified Answers
Q1: In terminal, how do you know the names of the databases you
have
A: show databases;
Q2: What is the purpose of the <form> tag, as done in this class
A: To sent data to a program being called by it, after creating all fields in it
Q3: Find out which submit button was pressed, as done in
Controller2.php
A: if( $_POST['anyButtonName'])
{ echo 'You pressed the anyButtonName'; }
Q4: Write the code that will display an image called theGraph.png
that when pressed, it will load the web page called fiu.edu
A: <a href="http://fiu.edu"><img src="theGraph.png" /></a>
Q5: Write the code from delete.php program, as done in program
3
A: "DELETE FROM customers WHERE Telephone='$Telephone'";
Q6: In addition to HTML what other language was used to create
our customer table in our website
A: PHP
Q7: What is the purpose of the controller3.php page, as done in
program 3
A: To process the input of the program3.php front end
Q8: What is the purpose of the code in controller3.php
A: To Receive all information from the calling pages and process such data
Q9: Which of the following clears the Front End data as done in
Program3
A: <input name="clear" type="submit" value"Clear">
Q10: Write the code that finds out which button was pressed, Use
two buttons as an example
Verified Answers
Q1: In terminal, how do you know the names of the databases you
have
A: show databases;
Q2: What is the purpose of the <form> tag, as done in this class
A: To sent data to a program being called by it, after creating all fields in it
Q3: Find out which submit button was pressed, as done in
Controller2.php
A: if( $_POST['anyButtonName'])
{ echo 'You pressed the anyButtonName'; }
Q4: Write the code that will display an image called theGraph.png
that when pressed, it will load the web page called fiu.edu
A: <a href="http://fiu.edu"><img src="theGraph.png" /></a>
Q5: Write the code from delete.php program, as done in program
3
A: "DELETE FROM customers WHERE Telephone='$Telephone'";
Q6: In addition to HTML what other language was used to create
our customer table in our website
A: PHP
Q7: What is the purpose of the controller3.php page, as done in
program 3
A: To process the input of the program3.php front end
Q8: What is the purpose of the code in controller3.php
A: To Receive all information from the calling pages and process such data
Q9: Which of the following clears the Front End data as done in
Program3
A: <input name="clear" type="submit" value"Clear">
Q10: Write the code that finds out which button was pressed, Use
two buttons as an example