Question
1. How can you use PHP to redirect the browser to another page? 2. Which one of the following can be used to instantiate an
1. How can you use PHP to redirect the browser to another page?
2. Which one of the following can be used to instantiate an object in PHP assuming the class named foo exists?
$obj = new $foo; | ||
$obj = new foo; | ||
$obj = new foo(); | ||
obj = new foo(); |
3.
In html, you can embed one form within another form.a. True
b. False
4.
To make your class part of a particular namespace, which key word do you use?
namespace | ||
use | ||
include | ||
package |
5. What additional attribute needs to be include in your html
csv | ||
uploaded | ||
file | ||
enctype |
6. In mysql, an index can speed up a SELECT statement?
a. True
b. False
7. PHP supports overwriting parent functions.
a. True
b. False
8. Explain the difference between the =, ==, and === operators in PHP.
9. What is mysqldump?
An executable that releases memory consumed by mysql. | ||
An executable that archives the mysql data blob to save disk space. | ||
An executable that creates a backup of a mysql database. | ||
The uninstaller for mysql. |
10. What 3 digit number is used with the chmod command to set file permissions to: owner=read/write group=read everyone=no access
11. In OOP, what keyword is used to make functions and properties accessible without needing an instantiation of the class.
private | ||
extends | ||
static | ||
access |
12. In the PHP code given below, what is/are the properties?
13.
echo "This is an example"; | ||
public $name; | ||
class Example | ||
function sample() |
14. In mysql, an index can speed up an INSERT statement?
a. True
b. False
15. Suppose you have a php variable called $fileName that contains a full file name of a jpeg file. Write some code to read the jpeg file data and convert it into a base 64 string.
16. PHP can be run on Microsoft Windows IIS(Internet Information Server).
a. True
b. False
17. When using svn, what command needs to be executed to save local changes to the repository?
save | ||
copy | ||
upload | ||
commit |
18. An outer join will only return records that exist in both the left and right tables.
a. True
b. False
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started