0% found this document useful (0 votes)
290 views7 pages

This Study Resource Was: For ($val 1 $val 100 $val+ 2) ($tem $val 2 )

This document contains questions and answers about various PHP concepts and functions including: 1) The sort() function is used to sort arrays in PHP. 2) The include() function is used to include and evaluate the specified file in PHP. 3) Rasmus Lerdorf is the founder and original developer of PHP.

Uploaded by

Joshua Xeju
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
290 views7 pages

This Study Resource Was: For ($val 1 $val 100 $val+ 2) ($tem $val 2 )

This document contains questions and answers about various PHP concepts and functions including: 1) The sort() function is used to sort arrays in PHP. 2) The include() function is used to include and evaluate the specified file in PHP. 3) Rasmus Lerdorf is the founder and original developer of PHP.

Uploaded by

Joshua Xeju
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

What is the correct method to use in Javascript Sorting Arrays?

sort() ////

It is used to jump to other section of the program to support labels.


goto....label: ///

This function is used for checking or searching for patterns in a given text
preg_match() ////

It is used to access submitted form values


$_POST ////

Determine the exact output of the code:

m
er as
for($val=1; $val<=100; $val+=2) {

co
$tem[] = $val*=2;

eH w
}
echo max($tem);

o.
188 ////
rs e
ou urc
How to use the include function?
include("int.php") ////
o

It proceeds the statement causes execution of the current loop iteration to end and commence at the
aC s

beginning of the next loop.


vi y re

Continue ///

It is the symbol used to mark the end of the string in regular expressions
$ ///
ed d
ar stu

And the Founder/Developer of PHP is ____________.


RasmusLerdorf ///
is

It reports the error message from the last failed database connection attempt.
mysql_error / mysqli_error ///
Th

PHP can be run on Microsoft Windows IIS(Internet Information Server):


True ///
sh

This is an example of: $AngusMaximus += 100;


Assignment Operator ////

Is a function also use for outputting strings.


Print/ ///

This study source was downloaded by 100000790435847 from CourseHero.com on 06-21-2021 08:19:34 GMT -05:00

https://www.coursehero.com/file/65612236/web-application-finaldocx/
It is a function that saves the uploaded file permanently into the server.
move_uploaded_file() ///

Array is special variable that can handle more than one value.
True ////

The Co -Developers of PHP are __________ and _________ .


ZeevSuraski&AnditGutmans ////

It is the default server name used to connect in MySQL server.


Localhost ////

m
er as
What is the statement terminator for PHP?

co
; ////

eH w
Allow for multiple items of the same type to be aggregated under a single representative entity.

o.
Compound Datatypes ////
rs e
ou urc
These are keywords used with mysql_query/ mysqli_queryto update records in a table.\
UPDATE, SET, WHERE ///
o
aC s

Is language construct that use to output one or more string.


vi y re

Echo ////

This function removes the white spaces and other predefined characters from both sides of a
string
ed d

trim() ////
ar stu

In PHP you can use both single quotes ( ' ' ) and double quotes ( " " ) for strings:
is

True ///
Th

It is a file function mode that is used to open a file for reading, writing or appending.
fopen() ////
sh

It is placed within the code of a loop to cause the program to stop the loop statement.
Break ////
A constant can only be assigned a scalar value, like a string or a number.
define() ////

This study source was downloaded by 100000790435847 from CourseHero.com on 06-21-2021 08:19:34 GMT -05:00

https://www.coursehero.com/file/65612236/web-application-finaldocx/
Which of the following that can be use to access session variables in PHP?
$_SESSION ////

It is the symbol used to mark the start of the string in regular expressions
^ //////

Join array elements to form a string.


implode() ////

Date() is a function that can also access time.


True ////

It is a function that retrieves the content of one cell from a MySQL result set.
mysql_fetch_row()
mysqli_fetch_row() ////

m
er as
This function starts a new session.
session_start() ////

co
eH w
In what year does PHP was developed?

o.
1994 ////
rs e
ou urc
In PHP, the only way to output text is with echo.
False ///
o

Functions that are provide by the user of the program.


aC s

User Defined Functions ////


vi y re

Managing of cookies can be done using this function


setcookie() ////
ed d

Which one of these variables has an illegal name?


ar stu

$my-Var ////

Sorts by value in reverse order; keeps the same key


is

arsort() ////
Th

Sort Sorts by value; assign new numbers as the keys.


sort() ////

It is a command used to add individual records in a table.


sh

INSERT, INTO ////

It is a field that contains a unique identifier for each record in a primary table
Primary key ////

This study source was downloaded by 100000790435847 from CourseHero.com on 06-21-2021 08:19:34 GMT -05:00

https://www.coursehero.com/file/65612236/web-application-finaldocx/
Capable of containing a single item of information.
Scalar Datatypes ////

It is a function that retrieves the number of rows from a query result set.
mysql_num_rows()
mysqli_num_rows()////

A group of PHP statements that performs a specific task.


Functions ////

The default user of your phpmyadmin


root ////

Sorts by value; keeps the same key.


asort() ////

m
er as
Key Categories: offered more than 25 database products.
Possibility ////

co
eH w
Declared inside a function and is only available within the function in which it is declared.

o.
require ////
rs e
ou urc
This is an example of: $Pui % $haha;
Arithmetic Operator ////
o

Determine the exact output of the code:


aC s
vi y re

for($val=1; $val<=100; $val+=2) {


$tem[] = $val*=2;
}
ed d

echo min($tem);
ar stu

2 ////

It opens a connection to a MySQL database server


is

mysql_connect / mysqli_connect ////


Th

Key Categories: more libraries and thousands of functions


Power ////
sh

FOREACH, EXPLODE and MAIL are examples of crazy functions.


False ////

It is an array containing information such as headers, paths and script locations wherein it is
created by the web server itself
$_SERVER ////

This study source was downloaded by 100000790435847 from CourseHero.com on 06-21-2021 08:19:34 GMT -05:00

https://www.coursehero.com/file/65612236/web-application-finaldocx/
Determine the exact output of the code:
$num = 3.14;
echo floor($num);
3 ////

Variables in PHP must begin with what symbol?


$ ////

This is an example of: $Ice <= $Crown;


Comparison Operator ////

One that declared outside a function and is available to all.


Global Variable ///

Format character of Date function that display the day of the month in 2 digits with leading zeros
such as 01 to 31

m
d /////

er as
co
This function searches for the first occurence of a string inside another string.

eH w
strchr() ////

o.
rs e
Functions that are built-in into PHP to perform some standard operations.
ou urc
Predefined Functions ////

Generate a warning.
o

include() /////
aC s
vi y re

Determine the exact output of the code $str = "The quick brown fox jumps over the the lazy
dog"; echo strpos($str, 'fox');
16 ////
ed d
ar stu

It is a function that ends the connection to the database.


mysql_close / mysqli_close /////
is

This is what happens when you set your form method to get
$_GET ////
Th

Generate fatal error.


require() ////
sh

It is a SQL keyword that creates an autoincrementing field.


AUTO_INCREMENT /////

Which of the following that can be use read cookies in PHP?


$_COOKIE ////

This study source was downloaded by 100000790435847 from CourseHero.com on 06-21-2021 08:19:34 GMT -05:00

https://www.coursehero.com/file/65612236/web-application-finaldocx/
Key Categories: free of charge.
Price ////

PHP is based on C rather than ______.


PERL ////

Accepted identifier for a variable in PHP except:


$Puihaha /////

It is an attribute that must be used in the form tag in specifying an input file type
enctype /////

Format character of Date function that display a full textual representation of the day of the week
such us Sunday to Saturday
j ////

m
er as
strlen("seven"); what is the output?
5 ////

co
eH w
How will you able to retrive data in your table?

o.
mysql_query("SELECT * FROM table");
rs e
mysqli_query("SELECT * FROM table"); ////
ou urc
Software Requirements: Web Server except for :
IIIS7 ////
o
aC s

It specifies the name of the field in the form to be processed by the $_FILES
vi y re

file /////

It specifies the parameter to be processed by the $_FILES


index ////
ed d
ar stu

Split a string by string.


explode() ////
is

This function is used to close the current session.


session_destroy() ////
Th

Key Categories: a loosely type language.


Practicality ////
sh

It is a function that removes an existing file from the server.


unlink() ////

This study source was downloaded by 100000790435847 from CourseHero.com on 06-21-2021 08:19:34 GMT -05:00

https://www.coursehero.com/file/65612236/web-application-finaldocx/
m
er as
co
eH w
o.
rs e
ou urc
o
aC s
vi y re
ed d
ar stu
is
Th
sh

This study source was downloaded by 100000790435847 from CourseHero.com on 06-21-2021 08:19:34 GMT -05:00

https://www.coursehero.com/file/65612236/web-application-finaldocx/
Powered by TCPDF (www.tcpdf.org)

You might also like