PHP beginners can test their abilities and obtain comprehensive answers ~ _ PHP Tutorial

Source: Internet
Author: User
PHP beginners can test their abilities and obtain comprehensive answers ~. PHP entry-level CODER self-test question description: This test scored 100 points, involving a comprehensive WEB (Php direction) knowledge, 90 points pass. BY: PIG2009.07.14 this question was issued once, now sort it out, PHP entry-level CODER self-testing questions


Note: The full score of this test is 100 points, involving the comprehensive knowledge of WEB (Php direction) and passing the score of 90 points.

BY: PIG 2009.07.14

This question was posted once. now, sort it out and try again.

-------------------------------------

I. basic PHP
1. explain the differences between echo, print, require, and include. (3 points)
2. remove duplicate elements in an array in at least two ways. (3 points)

3. briefly describe the usage and difference of $ _ GET and $ _ POST. (4 points)

4. try to describe the usage and differences between cookies and sessions, and the relationship between them. (6 points)

5. exchange values of two variables without using intermediate variables. (3 points)

6. what is escape? Why escape? (3 points)

7. construct an array from a to z. (2 points)

8. explain the usage of the symbol >,=> and $ this, $ that. (3 points)

9. define an abstract class student, which is then inherited by the sub-class cs and implemented by an abstract method do_homework (). (5 points)

II. foreground WEB basics

10. try to explain the difference between class and id. (2 points)

11. obtain the content of a DIV with the ID as KEY, and add a LI tag to the DIV. the content of the text node is
"I am a li ". (4 points)

12. use CSS technology to implement horizontal menus. (5 points)

13. how to refresh the parent framework in the subwindow. (2 points)

III. database basics

14. the code changes the table names of all data tables in the MUSIC database. (5 points)

15. there is a data table containing five fields (cid, ctitle, cbody, cauthor, ctime). all fields of the 40 records after 800,000th records must be retrieved. (4 points)

16. how to store an array object to a field in the data table. (2 points)

17. compare the advantages and disadvantages of MYISAM and INNODB in MYSQL. (3 points)

18. try some MYSQL optimization methods. (4 points)

4. algorithms and others.

19. is md5 () an encryption algorithm? How can I protect my password from being easily cracked during member registration? (3 points)

20. try to explain the idea and code implementation of the "password retrieval" function. (5 points)

21. sort a small sorted array. (4 points)

22. to create a public transit query site for a city, please design its database structure. (5 points)

23. construct a regular expression that matches all current mobile phones, including mobile, Unicom, and telecom. (3 points)

24. use regular expressions or other methods to add a comma for a number, such as 32,995,145. (4 points)
25. the UPC code is known, that is, the commodity code we often call. There are 13 digits in total. the first three digits are the country code (China is 691,692,693), and the last digit is the check digit. the verification rules are as follows:


Sum = (a1 + 3a2 + a3 + 3a4 +... + An-1)


Sum + check = 0 mod 10. Use the code to implement the verification process. (3 points)

26. obtain the number of prime numbers smaller than 10 billion and the number of 9-digit prime numbers. (4 points)

27. understand MVC and its static directory implementation. (6 points)

Tips: The full score of this test is 100 points, involving comprehensive WEB (Php direction) knowledge, 90 points pass. BY: PIG 2009.07.14 this question was sent once, now sort it out ,...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.