Sample test blueprint
Test Blueprint |
Categories |
|||||||
|
Knowledge |
Comprehension |
Application |
Analysis |
Synthesis |
Evaluation |
Total |
(percentage) |
Content Outline |
(number of items) |
|||||||
1. The student can state the purposes for various string, database, and graphics functions in PHP. (2, 3, 5, 6, 8, 9) |
6 |
|
|
|
|
|
6 |
30 |
2. Given a line of code, the student will be able to identify parse errors. (1, 4, 7, 10) |
|
|
|
4 |
|
|
4 |
20 |
3. The student can distinguish standard from PECL modules. (11, 12) |
2 |
|
|
|
|
|
2 |
10 |
4. Given a programmatic situation, the student can apply a PHP function as a solution. (13, 14, 15, 16) |
|
|
4 |
|
|
|
4 |
20 |
5. Given generic character types for regular expressions, the student can identify the function of each escape sequence. (17, 18, 19, 20) |
4 |
|
|
|
|
|
4 |
20 |
Total |
12 |
0 |
4 |
4 |
0 |
0 |
20 |
|
Percentage |
60 |
|
20 |
20 |
|
|
100 |
|
Directions
Circle the best answer that either correctly completes each statement or correctly answers the questions.
- echo ‘Hello World!’;
- echo ‘Hello “World”!’;
- echo “Hello World’s!”;
- echo ‘Hello World’s’;
- find the first position of an array in a string
- find the first occurrence of a string
- insert a string in a specific position of a different string
- delete the first occurrence of a string
- add two variables together mathematically.
- join array elements with a string.
- concatenate to strings.
- merge two arrays.
- if(strcmp($foo, $bar)) {
- if strcmp($foo, $bar) {
- if(substr($foo, $bar)) {
- if(strtr($foo, $bar)) {
- sort a string starting with capital letters
- sort an array by values
- sort an array by keys
- reverse sort an array by keys
- attempt to open a connection to MySQL
- return boolean TRUE on success
- produce a parse error
- return an array of connection information on success
- turn on or off auto-committing database modifications on InnoDB tables
- turn on or off auto-committing database modifications on MyISAM tables
- turn on or off auto-committing database modifications on HEAP tables
- commit uncommitted SQL transactions
- $stmt = $mysqli->prepare(“SELECT * FROM foo WHERE bar=?”);
- $stmt = $mysqli->prepare(‘SELECT * FROM foo WHERE bar=?’);
- $stmt = mysqli_prepare($link, “SELECT * FROM foo WHERE bar=?”);
- $stmt = mysqli->prepare(‘SELECT * FROM foo WHERE bar=?’);
- end execution for 3 levels
- pause execution for 2 levels and resume at the third level
- pause execution for 3 seconds
- cause a parse error during the execution
- requires a specific variable parameter for continued execution
- includes and evaluates a specific file
- requires an end user to enter a password
- will not cause a parse error on failure
- $i += $factor;
- $i *= $factor;
- $i #= $factor;
- $i |= $factor;
Directions
Each statement is either true or false. Circle True for each statement that is true and False for each statement that is false.
- True
- False
- True
- False
Directions.
Write a PHP function answer to each question in the space below each question.
13. What function would most accurately compare two string passwords?
strcmp()
14. What function would calculate the sha1 hash of a file?
sha1_file()
15. What function would convert a string into variables?
str_parse()
16. How would an administrator remove erroneous spaces from the end of a string?
rtrim()
Directions
Complete each sentence with the missing PCRE character match.
17. \s represents any _________ character/digit
whitespace
18. \W represents any __________ character/digit
non-word
19. \d represents any _________ character/digit
decimal
20. \w represents any __________ character/digit
word


Post new comment