Question
Which of the following is the correct syntax for an if statement? if ($aVariable == 1)() if ($aVariable == 1); if $aVariable == 1 if
Which of the following is the correct syntax for anifstatement?
if ($aVariable == 1)()
if ($aVariable == 1);
if $aVariable == 1
if ($aVariable == 1)
Question 2
An if statement can execute multiple lines of PHP code if they are
are within a command { ... } block
are excluded from the PHP code
are within an always false if statement
are within a code segment /* ... */
Question 3
Which is the correct PHP syntax for else:
else { echo "the else statement"; }
else \/ { echo "the else statement"; }
else - echo "the else statement"
else ; { echo "the else statement"; }
Question 4
Each time a loop run through the code, it's called a
deduplication
iteration
looping
recurrence
Question 5
Which while loop syntax is correct?
while $i < 100 { }
while ($i < 100) { }
while ($i < 100; i++) { }
while $i < 100 ...
Question 6
Theforstatement can initialize a counter.
True
False
Question 7
Thedo ... whilestatement will always executeat least once.
True
False
Question 8
Thewhilestatement will execute a series of statements as long as a given conditional expression evaluates to FALSE.
True
False
Question 9
A if . . . else statement allows a program to make decisions about what statements to execute.
True
False
Question 10
The if/else statement will contain at least one condition statement to make the decision to run one block of code and skip over another block of code.
True
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