Exam 2: Functions and Control Structures

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Using parentheses to enclose the conditional expression of an if statement is optional.

(True/False)
4.9/5
(36)

A ____________________ statement keeps repeating until its conditional expression evaluates to FALSE.

(Short Answer)
4.8/5
(43)

You can use the terminate statement to halt a looping statement and restart the loop with a new iteration.

(True/False)
4.9/5
(36)

The include statement and the require statement perform the same function and can be used interchangeably.

(True/False)
4.9/5
(39)

Which of the following terms is not associated with the switch statement?

(Multiple Choice)
4.9/5
(38)

If a command block is missing either the opening or closing brace, an error occurs.

(True/False)
4.8/5
(32)

A(n) ____ statement is a control structure that repeatedly executes a statement or series of statements while a specific condition is TRUE or until a specific condition becomes TRUE.

(Multiple Choice)
4.9/5
(36)

A function executes automatically.

(True/False)
4.9/5
(33)

____________________ are added to both the if and else portions of the if...else statement if a section contains more than one statement.

(Short Answer)
4.7/5
(40)

The ____ statement halts the processing of the web page and displays an error if an include file cannot be found.

(Multiple Choice)
4.8/5
(36)

The ____________________ statement is used for repeating a statement or series of statements as long as a given conditional expression evaluates to TRUE.

(Short Answer)
4.9/5
(30)

Global variables are automatically available to all parts of your program, including functions.

(True/False)
4.9/5
(35)

Function arguments are the statements that do the actual work of the function and must be contained within the function braces.

(True/False)
4.9/5
(35)

In PHP, you must declare a global variable with the global keyword inside a function definition for the variable to be available within the scope of that function.

(True/False)
4.9/5
(38)

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

(True/False)
4.9/5
(37)

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

(Short Answer)
4.9/5
(28)

A(n) ____________________ statement is 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.

(Short Answer)
4.8/5
(42)

The function ____________________ is the lines of code that make up a function

(Short Answer)
4.9/5
(32)

Include statements support only absolute path notation.

(True/False)
4.8/5
(38)

A ____________________ statement is a statement that returns a value to the statement that called the function.

(Short Answer)
4.8/5
(33)
Showing 21 - 40 of 83
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)