Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Determine the exact output of the code: for($val=1; $val b. & c. Print d. ; oftware Requirements: Web Server except for : Select one: a.

Determine the exact output of the code:

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

$tem[] = $val*=2;

}

echo max($tem);

Select one:

a. 92

b. 44

c. 250

d. 188

Join array elements to form a string.

Select one:

a. implode()

b. unset()

c. iInclude_once()

d. explode()

It is placed within the code of a loop to cause the program to stop the loop statement.

Select one:

a. else

b. break

c. continue

d. goto....label:

Functions that are provide by the user of the program.

Select one:

a. User Defined Functions

b. Predefined Functionsd

Undefined Functions

c. Functions

Key Categories: more libraries and thousands of functions

Select one:

a. Power

b. Practicality

c. Possibility

d. Price

his function is used to close the current session.

Select one:

a. session_close()

b. close_session()

c. destroy_session()

d. session_destroy()

Sorts by value in reverse order; keeps the same key

Select one:

a. sort()

b. arsort()

c. rsort()

d. asort()

PHP is based on C rather than ______.

Select one:

a. PEARL

b. JAVA

c. PERL

d. COBOL

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

Select one:

a. $_SESSION

b. $_REQUEST

c. $_SERVER

d. PHP_SELF

This function is used for checking or searching for patterns in a given text

Select one:

a. preg_match()

check()

b. regex()

c. regexp()

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

Select one:

a. uploaded

b. file

c. index

d. values

The Co -Developers of PHP are __________ and _________ .

Select one:

a. ZeevSuraski&AnditGutmans

b. ZeevZuraski&AndiGutman

c. Zachary Levi & Andrew Garfieldd

d. Zachary Leiv& Andrew Gharfield

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

Select one:

a. strcmp()

b. ltrim()

c. trim()

d. rtrim()

Capable of containing a single item of information.

Select one:

a. Scalar Datatypes

b. Global Variable

c. Local Variable

d. Compound Datatypes

It is a function that retrieves the number of rows from a query result set.

Select one:

a. mysql_result() mysqli_result()

b. mysql_num_rows()

mysqli_num_rows()

c. mysql_fetch_row()

mysqli_fetch_row()

d. mysql_affected_rows()

mysqli_affected_rows()

FOREACH, EXPLODE and MAIL are examples of crazy functions.

Select one:

a. False

b. True

c. Sometimes

d. None of these

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

Select one:

a. INSERT, INTO

b. UPDATE, SET

c. ADD, INTO

d. APPEND, INTO

This is what happens when you set your form method to get

Select one:

a. $_GET

b. get()

c. Empty String

d. Query String

In PHP, the only way to output text is with echo.

Select one:

True

False

Is a function also use for outputting strings.

Select one:

a. ?>

b. &

c. Print

d. ;

oftware Requirements: Web Server except for :

Select one:

a. Apache

b. Google Web Server

c. IIIS7

d. NGiNXTM

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

Select one:

a. Apache

b. server

c. Localhost

d. Root

Key Categories: offered more than 25 database products.

Select one:

a. Possibility

b. Price

c. Power

d. Practicality

It is a function that saves the uploaded file permanently into the server.

Select one:

a. save_uploaded_file()

b. store_uploaded_file()

c. make_uploaded_file()

d. move_uploaded_file()

Accepted identifier for a variable in PHP except:

Select one:

a. $_Puihaha

b. & Puihaha

c. $Pui_haha

d. $Puihaha

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

Select one:

True

False

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

Select one:

a. strchr()

b. strlen()

c. strcmp()

d. strcasecmp()

The default user of your phpmyadmin

Select one:

a. admin

b. superadmin

c. user

d. root

It is used to access submitted form values

Select one:

a. mysql_connect

b. 'name'

c. Name

d. select

e. $_POST

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

Select one:

a. Scalar Datatypes

b. Global Variable

c. Compound Datatypes

d. Local Variable

strlen("seven"); what is the output?

Select one:

a. 6

b. 5

c. 7

d. 8

And the Founder/Developer of PHP is ____________.

Select one:

a. RasmusLerderf

b. RasmusLerdorf

c. Erasmus Lerdurf

d. Erasmus Lerdorf

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

Select one:

a. remove()

b. unlink()

c. delete()

d. drop()

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

Select one:

a. continue

b. break

c. goto....label:

d. else

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

Select one:

a. ?>

b. &

c. ;

d. echo

Functions that are built-in into PHP to perform some standard operations.

Select one:

a. User Defined Functions

b. Predefined Functions

c. Undefined Functions

d. Functions

Determine the exact output of the code:

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

$tem[] = $val*=2;

}

echo min($tem);

Select one:

a. 2

b. 8

c. 4

d. 1

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

Select one:

a. sort()

b. arsort()

c. asort()

rsort()

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

Select one:

a. Arithmetic Operator

b. Comparison Operator

c. Logical Operator

d. Assignment Operator

It proceeds the statement causes execution of the current loop iteration to end and commence at the beginning of the next loop.

Select one:

a. goto....label:

b. continue

c. else

d. break

Sorts by value; keeps the same key.

Select one:

a. asort()

b. sort()

c. arsort()

d. rsort()

What will be the color if today is Saturday?

Select one:

a. arsort()

b. rsort()

c. sort()

d. asort()

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

Select one:

a. |

b. $

c. ^

d. .

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

Select one:

a. Assignment Operator

b. Comparison Operator

c. Logical Operator

d. Arithmetic Operator

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

Select one:

a. False

b. None of these

c. True

d. Sometimes

It is a function that retrieves the content of one cell from a MySQL result set.

Select one:

a. mysql_result()

mysqli_result()

b. mysql_num_rows()

mysqli_num_rows()

c. mysql_affected_rows()

mysqli_affected_rows()

d. mysql_fetch_row()

mysqli_fetch_row()

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

Select one:

a. Foreign key

b. Index

c. Primary key

d. unique

Which of the following that can be use to access session variables in PHP?

Select one:

a. $_SESSION

b. start_session()

c. session_start()

d. $_SESSIONS

Generate fatal error.

Select one:

a. require()

b. include()

c. iInclude_once()

d. define()

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

Select one:

a. True

b. None of these

c. False

d. Sometimes

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

Select one:

a. method

b. action

c. enctype

d. post

Which one of these variables has an illegal name?

Select one:

a. $my_Vars

b. $my_Var

c. $my-Var

d. $myVar

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

Select one:

a. /*...*/

b. ...

c. < ! --..-->

d. *\...\*

It is a SQL keyword that creates an autoincrementing field.

Select one:

a. AUTOINCREMENT

b. INCREMENT

c. AUTO_INCREMENT

d. AUTO

These are keywords used with mysql_query/ mysqli_queryto update records in a table.

Select one:

a. ALTER, CHANGE, COLUMN

b. UPDATE, SET, WHERE

c. ALTER, ADD, COLUMN

d. INSERT, INTO, VALUES

Managing of cookies can be done using this function

Select one:

a. $_COOKIE

b. cookie()

c. setcookie()

d. $COOKIE[]

It is a file function mode that is used to open a file for reading, writing or appending.

Select one:

a. fopen()

b. feof()

c. fgets()

d. fgetc()

This is an example of: $Pui % $haha;

Select one:

a. Logical Operator

b. Assignment Operator

c. Comparison Operator

d. Arithmetic Operator

It is the symbol used to mark the end of the string in regular expressions

Select one:

a. .

b. $

c. |

d. ^

It opens a connection to a MySQL database server

Select one:

a. mysql_error / mysqli_error

b. mysql_close / mysqli_close

c. mysql_query / mysqli_query

d. mysql_connect / mysqli_connect

How to use the include function?

Select one:

a. include function("int.php")

b. include("int.php")

c. function include("int.php")

d. inc("int.php")

Split a string by string.

Select one:

a. explode()

b. implode(

c. unset()

d. iInclude_once()

Generate a warning.

Select one:

a. define()

b. include()

c. iInclude_once()

d. require()

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Algorithmic Trading Navigating The Digital Frontier

Authors: Alex Thompson

1st Edition

B0CHXR6CXX, 979-8223284987

More Books

Students also viewed these Databases questions