Web Data Management - Test #2 assesses knowledge in web development, focusing on form handling, JavaScript operations, and PHP conditional logic. It evaluates understanding of hidden fields, type coercion, loop control, and conditional statements.
OK
Forbidden
Not Found
Unknown Status
Rate this question:
A. ==
B. ===
C. >=
D. !=
Rate this question:
L: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
L: 0, 1, 2, 3, 4, 5, 6, 7,
L: 1, 3, 5, 7, 9,
L: 1, 3, 5, 7
Rate this question:
$days = new DateInterval('P90D'); $due_date = date(); $due_date = $due_date->add($days);
b. $days = new DateInterval('P90D'); $due_date = new DateTime(); $due_date = $due_date->add($days); (Technically, the book says that: $due_date->add($checkout_length); is the proper way to use the ->add() method without the $due_date = to the left.
$days = new DateInterval('P90D'); $due_date = date(); $due_date = $due_date + $days;
$days = new DateInterval('P90D'); $due_date = new DateTime(); $due_date = $due_date + $days;
Rate this question:
0 years, 1 months, and 7 days overdue.
-0 years, -1 months, and -7 days overdue.
1 month and 7 days overdue.
Overdue_message won’t be set because the if clause won’t be executed
Rate this question:
A. appears on the form but its data is hidden
B. has data that is obscured by bullets or asterisks
C. doesn’t appear on the form but its data is sent to the server
D. appears on the form with its data grayed out
Rate this question:
Number_format
Sprintf
Round
Option 4
Rate this question:
The file is in C:\My Documents
B. The file is in "C:\My Documents"
C. The file is in C:\\My Documents\
The file is in "C:\\My Documents\"
Rate this question:
A. if ($a < $b)
B. if ((strtolower($a) < (strtolower($b))
C. if (strcomp($a, $b) < 1)
D. if (strnatcomp($a, $b) < 1)
Rate this question:
Is case-sensitive
Is case-insensitive
Puts both “09” and “9” before “10”
Puts “10” before both “09” and “9”
Rate this question:
The characters in the substring that you’re looking for
The starting position of the substring
The length of the substring
The separators for the substring
Rate this question:
Loan approved.
Cosigner needed.
Two cosigners needed.
Load denied.
Rate this question:
$birthdate = mktime(0, 0, 0, 12, 2, 1969);
$birthdate = mktime(12, 2, 1969);
$birthdate = strtotime('1969-12-02');
$birthdate = strtotime('12/02/1969');
Rate this question:
Rate is not a number.
Rate cannot be less than zero.
Rate cannot be greater than 20%.
Rate is valid.
Rate this question:
A TimeStamp object
A DateTime object
A DateInterval object
A TimeInterval object
Rate this question:
A. $name = implode(', ', $name); $last_name = $name[0]; $first_name = $name[1];
B. $name = implode(', ', $name); $last_name = $name[1]; $first_name = $name[0];
C. $name = explode(', ', $name); $last_name = $name[0]; $first_name = $name[1];
D. $name = explode(', ', $name); $last_name = $name[1]; $first_name = $name[0];
Rate this question:
Years, months, days
Hours, minutes, seconds
Years, months, days, hours, minutes, seconds
Years, months, weeks, days, hours, minutes, seconds
Rate this question:
$number = mt_rand(1000,500000);
$number = mt_rand(100,50000); $number *= 10;
$number = mt_rand(1,500); $number *= 1000;
$number = mt_rand(10,5000); $number *= 100;
Rate this question:
$i = strpos($name, ', '); $first_name = substr($name, 0, $i); $last_name = substr($name, $i+1);
B. $i = strpos($name, ', '); $first_name = substr($name, 0, $i); $last_name = substr($name, $i+2);
C. $i = strpos($name, ', '); $last_name = substr($name, 0, $i); $first_name = substr($name, $i+1);
D. $i = strpos($name, ', '); $last_name = substr($name, 0, $i); $first_name = substr($name, $i+2);
Rate this question:
While
Do-while
For
For-in
Rate this question:
Quiz Review Timeline (Updated): Mar 21, 2023 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.