Code Challenge 1
Posted on 24. Feb, 2010 by admin in Basics
So far we have learned a number of different PHP concepts, and now it is time to test how much you were paying attention. Answer the following questions, and try some of the programming projects below. Don’t cheat!
Questions
Q: Which tags are placed between our PHP code?
Q: Which statement is used to print text to the browser window?
Q: What character must every PHP statement end with?
- Quotation Mark
- Semicolon
- Colon
- Period
Q: True or false? A single line comment starts with \\.
Q: Which of the following are incorrect variable names?
- A: 1stnumber
- B: MyString
- C: i_like_wildphp
- D: me too
Q: What values can an integer hold? What values can a string hold?
Q: What is the shortest statement to increase a variable by one?
Programming Projects
Project One: Write a script that prints out “WildPHP.com is Cool”
Project Two: Write a script prints out the degrees Celsius, from a given value in Fahrenheit.

