207

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

command block

A ______ is a group of statements contained within a set of braces, similar to the way fucntion statements are contained within a set of braces.

case label

A ______ represents a specific value and contains one or more statements that execute if the value of the case label matches the value of the switch statement's expression.

case

A __________ statment consists of a case label, the executable statements, and the keyword break.

If else

A statement that includes an "else" clause is called an ____ statement

Break

A switch statement contain the following components: keyword switch, an expression, opening brace, case label, executable statements, the keyword ______, default label, and a closing label:

counter

A____ is a variable that increments or decrements with each iteration of a looping statement.

local variable

A________ is declared inside a function and is only available within that fuction.

$_ENV

An array of environment information

$_COOKIE

An array of values passed to the current script as HTTP cookies

iteration

Each repetition of a looping statement

iteration

Each repetition of a looping statement is called a _____.

Iteration

Each repetition of a looping statement is called a(n):

False

If the conditional expression within the if statement in the preceding code evaluates to ___________ only the echo statement following the command block executes.

mail ()

In PHP, an email message is sent using the _____ function.

sticky form

In a _____ ,the user does not have to retype data that was entered correctly the first time.

two-part form

In a _____, you have one page that displays the form and one page that processes the form data.

single

In a complex control structure, a _____ statement does not use multiple sets of braces to contain the different groups of statements

infinite loop

In an ______, a loop statements never ends because its conditional expression is never false.

URL tokens

Name/value pairs appended to the end of a URL are called ____.

True

One of the primary differences between a while statement and a for statement is that the for statement can also include code that initializes a counter and changes the value with each iteration

autoglobals/superglobals

PHP includes various predefined global arrays called ___________, which contain client, server, and environment information that you can use in your scripts

autoglobals

PHP includes various predefined global arrays, called superglobals or _______________.

Do while

Process of determining whether a set of statements will repeat after always executing once requires using a ______ statement

put: send private/secure information

The GET form method does not allow programmers to _______________

do while

The ____ statement executes a statement or statements once, then repeats the execution as long as a given conditional expression evaluates to TRUE.

Default

The _____ label contains statements that execute when the value returned by the switch statement expression that does not match a case label

Switch

The _____ statement controls the program flow by executing a specific set of statements, depending on the value of the 'case' label.

include once/ require_once

The _______ and __________ statements are similar to the file is added to the script only once, which helps to avoid conflicts with variable values or fucntion names that might occur if the file was include multiple times.

Period(.)

The concatenation operator in PHP is a __

Parenthesis ()

The conditional expression in the while statement is enclosed within ______ following the keyword while

fields that are filled out on the form

The elements that are available with the form-oriented superglobal arrays depend on the ____

XHTML

The most convenient way to embed large portion of XHTML code within a PHP script is to use advance escaping from ______.

include / require

The primary use of the _____ and ______ statements is to reuse content on multiple Web pages by allowing you to insert the content of an exterial file, called an include file, in your PHP scripts.

Decision making/ flow control

The process of determining the order in which statements must execute to complete the transaction

Do while

The process of determining whether a set of statements will repeat after always executing once requires using a _____ structure.

false

The statements in a do while statement always execute repeatedly before the conditional expression evaluates the count variable.

What are PHP superglobals?

They are global arrays that are already defined Ex: $_FILES, $_POST

isset()

To determine if a form variable contains values, use _______________________

$_GET

Two most commonly used superglobals, _____ and $_POST, allow you to access the values of forms that are submitted to a PHP script

Get

What form method gives the most flexibility for submitting form values?

true?

When form fields allow you to pass values from one web form to another web form by allowing you to include the original values as non-visible values in the new form. This allows you to retain and access the original form values in the PHP file that second form calls

nested decision-making structures

When one decision-making statement is contained within another decision-making statement

skipped

When the condition evaluates to FALSE, the command block is __________, and the statements that follow execute.

variable's scope

When you use a variable in a PHP program, particularly a complex program, you need to be aware of the ______ that is, you need to think about where in your program a declared variable can be used.

statements

When you write a computer program, you often must execute different sets of _____, depending on some predetermined criteria.

$_FORM

Which of the following is not a superglobal array that allows you to access form, state, or environment information?

$_ENV

Which of the following superglobals is an array of environment information?

if and if else

You use nested _______ and _________ statements to perform conditional evaluations that must be executed after the original conditional evaluation

True

You use the while statement as a type of decision structure to control the flow of your program/application

form handler

____ a program or script that processes the infomration submitted from a Web form.

loop statement

_____ a control structure that repeatedly executes a statement or a series of statements while a specific condition is TRUE or until a specific condition becomes TRUE.

trim ()

_____ function removes any leading or trailing white space form a string.

Environmental variables

______ are variables that programs uses to interact with the system.

do..while

_______ statements always execute once before a conditional expression is evaluated

foreach

________ statement is used to iterate or loop through the elements in an array

command block

_________ must have opening and closing brace, or an error occurs

default label

a ________ consists of the keyword default followed by a colon

switch

a ________ statement consists of the keyword switch, an expression, an opening brace, one or more case statements, a default label, and a closing brace.

loop statement

a control structure that repeatedly executes a statement

command block

a group of statements contained within a set of braces, similar to the way function statements are contained within a set of braces.

infinate loop

a loop statement never ends because its conditional expression

concatenation operator(.)

combine several string variables and literal strings and assigns the new value to another variable.

switch statement

compares the value of an expression to a value contained within a special statement called a case label

case label

consist of the keyword case, followed by a literal value or variable name, followed by a colon.

switch statements

controls program flow by executing a specific set of statements depending on the value of an expression

All in One form

for simple forms that require only minimal processing, it's often easier to use an ______ a single script used to display a Webform

foreach statement syntax

foreach ($array_name as $variable_name) { statements;}

syntax for if.. else statement

if (conditional expression) { statements; } else { statements; }

for statement

is used for repeating a statement or series of statements as long as a condition is TRUE

if statement

most common type of decision-making statement

while statement

one of the simplest types of loop statements is the ___ which repeats a statement or series of statements as long as a given condtional expression evaluates to TRUE.

autoglobals or superglobals

predefined global arrays called ______ which contain client, server , and enviroment information that you can use in your scripts.

case label

represents a specific value and contains one or more statements that execute if the value of the case label matches the value of the switch statement's expression.

if else

statements are used when you might want to execute one set of statements

Switch statement syntax

switch (expression) { case label: statements; break; case label: statements; break; ... default: statements; break; }

foreach statement

the ____ is used to iterate or loop through the elements in an array.

default label

the _____ contains statements that execute when the value returned by the switch statement expression does not match any case label.

is_*()

the ______ family of function can be used to ensure that the user enters numeric values where necessary.

isset()

the ______ function can be used to determine if the $_POST['Submit'] variable has been set.

round ()

the ______ function can be used to ensure that numbers have the appropriate number of digits after the decimal point , if any.

for statement

the____ is used for repeating a statement or series of statements as long as a given condtional expression evaluates to TRUE.

if statement

the_______ is used to execute specific programming code if the evaluation of a conditional expression returns a value of true

switch statement

the_______ statement controls program flow by executing a specific set of statements depending on the value of expression to a value contained within a special statement called a ______ label.

if statement

used to execute specific programming code if the evaluation of a conditional expression returns a value of TRUE.

concatenation assignment(.=)

what is used to combine strings

nested decision making structure

when one decision-making statement is contained within another decision-making statement, they are referred to as__________.

repeating code

you would use ________________If you need to use it again within the program for example decision statements such as if else, do while, while, for loop statements.

break statement

A _____ is used to exit control structures.

While

A _____ structure is a type of control structure that repeatedly executes a statement or a series of statements while a specific condition is true.

global variable

A _______ is declared outside a function and is available to all parts of your program.

if... else statement

An if statement that includes an else clause is called an _________.

associative arrays

Autoglobals are _________, which are arrays whose elements are referred to with an alphanumeric key instead of an index number.

decision making or flow control

The process of determining the order in which statements execute in a program is called

If statement

The process of determining which statements execute next in a program is called decision making and requires using a ______.

Brackets

You must use what when referring to array elements?

true

conditional expressions must be enclosed within parenthesis

empty()

the _______ function can be used to determine if a varaible contains value.

while

the for function performs the same as the ____________ statement.

break statement

used to exit control structures

command block

you can use a ______________ to construct a decision-making structure for performing multiple statements with a single if statement


संबंधित स्टडी सेट्स

Social Psychology (Chapters 1-6 Myers)

View Set

Chapter 2 - Data Management - Foundations.

View Set