PHP beginners can test their abilities and obtain comprehensive answers ~

Source: Internet
Author: User

PHP entry-level CODER self-test 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)

 

 

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.