September 2002
Intermediate to advanced
544 pages
13h 6m
English
The quiz questions are designed to strengthen the knowledge you gain each hour.
| 1: | How do the > and >> redirection operators differ? |
| 2: | What are the two arguments passed to a foreach loop? |
| 3: | Under what circumstance would you use the eq comparison operator? |
| 4: | What’s the name of the variable where the contents of the current line are stored when you’re iterating over a file? |
| 1: | Write a CGI script that counts down from 100 to 0 and prints each of the numbers on the page. |
| 2: | Write a script that redirects users, but that accepts a number as its parameter, and then looks up the URL based on that number. You’ll have to use an if statement to derive the URL to redirect to from the argument. |
| A1: | The > operator redirects ... |
Read now
Unlock full access