1/19
Reviewer for 3rd QTR (For comproggers only)
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Name 5 position values
Static (default), relative, absolute, fixed and sticky. These are values that determine how an element is positioned in relation to its normal position in a document.
How to place an element in the middle? (6 codes/commands)
Position: absolute;
Top: 0px;
Bottom: 0px;
Right: 0px;
Left: 0px;
Margin: auto;
(True or False) If you input the element “input type text”. When executing it, does it require a space in between?
False, there shouldn’t be no space in between. It should be written as "input[type=text]" without spaces.
(True or False) Is the command “$num1” correct?
False, the command $num1
alone is incorrect in PHP because it is just a variable without assignment or usage. Instead, it should be implemented properly as shown in the picture:
State the definition of relative value
It’s a value that allows an element to be positioned relative to its normal position in the document flow, enabling adjustments of its location without affecting the layout of surrounding elements.
What are the commands/codes to start and end the PHP script? (Tip: 2 codes)
“<?php” is to start the PHP script and “?>” to end.
(True or False) Is the command ecko "T.L.E.”; correct?
False, the command ecko "T.L.E.";
is incorrect in PHP because ecko
is not a valid PHP command.
What is an echo command?
It can be used to display text, HTML, or variables.
(True or False) Can variable names contain letters, numbers, or an underscore?
True, variable names can contain letters, numbers, and underscores, but must begin with a dollar sign.
Name the 5 arithmetic operators in PHP
Addition, subtraction, multiplication, division, and modulus (percentage).
Display the following output:
The sum is 50
The difference is 12
The product is 50
The quotient is 1.6315789473684
The remainder is 12
Is the command “<?” correct?
False, the command <?
alone is incorrect in PHP. It should be written properly as shown in the picture: (Although <? might work in some instances, it’s not required to use the command. Instead, use <?php for better compatibility).
What is the purpose of $_GET Function?
It’s a function in PHP that is used to collect data sent in the URL query string, allowing access to variables passed via the HTTP GET method.
Define the single line comment
It’s a comment in PHP that starts with //
or #
and is ignored during execution.
What is the purpose of $_POST Function?
It’s a function in PHP that is used to collect data from the HTML form that uses the post method.
Name the 8 comparison operators (PHP)
It’s classified into 8 operators, these are: == (equal), === (identical), != (not equal), !== (not identical), > (greater than), < (less than), >= (greater than or equal to), and <= (less than or equal to).
Name the 3 If Else statement
It’s classified into 3 statements, these are: if statement, if...else statement, and if...else...if statement.
If the element “=” is equal, then what do we call “==”?
The equality operator. It’s used to compare 2 values.
Name the 3 logical operators
The 3 logical operators in PHP are: && (and), || (or), and ! (not).
What is a concatenation operator?
It’s used to join two strings or values together. It’s symbolized by a period (.)