Tencent PHP programmer a pen Test _php tutorial

Source: Internet
Author: User
Tags php source code

Say in front:

    1. The following topics, in addition to programming tasks, need to be written on the papyrus provided to you. Paper is precious Earth resources, please save the use. Programming tasks in the corresponding environment, will require the computer to write, there is no conditions, it can only be written on the papyrus.
    2. Time: Basic task + Advanced task + Design task = 90 minutes, programming task = 60 Minutes.

Basic tasks:

    1. Please list the UNIX signals you can think of and indicate the purpose of the signal.
    2. Please list all the string lookup algorithms that you can think of, and add a comment to the simple description.
    3. has an IP address (192.168.0.1), please write out its 32-bit unsigned integer form.
    4. Write out all of the HTTP return status values you can think of, and explain the purpose (e.g., return 404 means page not found)

Basic Tasks-selected (additional points will be obtained):

    1. Draw a few of your most familiar server-side models come out (the format is not important, try to clear the picture, explain the ideas can be)

Advanced tasks:

    1. What is the garbage collection mechanism of PHP?
      • If you are familiar with PHP source code, then please start from the source, answer some questions, you will get extra points
      • If you are not familiar with PHP source code, then do your best, write more things, including the use of your own programming intuition to get information, can be.
      • Yes, then there are points, mistakes do not buckle, do not write no points.
    2. Please write out the HTTP headers and meet the following requirements:
      • This is a POST request
      • Target: Http://www.example.com:8080/test
      • Post variables: username:test, Pwd:test2, Intro:hello world!
      • Contains the following cookie information: Cur_query:you&me
      • Description

      • If you do not remember the instruction word in an HTTP protocol, then the alternative is to use "kanji" instead.
      • If you can remember more HTTP protocol instruction words, then write a few more words, always no harm, right?
      • Most critical, just draw the correct "contour" (remember HttpWatch and other tools to print out the head?). That is the meaning of "contour", there will be scores, but if, even the "outline" are written wrong, then it is regrettable.

Design tasks:

There has been a recent harassment of our voting module, which requires you to design a voting limit. Requirements are as follows:

    1. Ask for each QQ number (assuming this QQ number can be expressed in UNIT32) 10 minutes This can only vote 5 votes.
    2. Our users are enthusiastic, with an average of 20 million people per day voting through this program.

      Description

    1. No need to write code, just the diagram and text.
    2. For the key logic, please use the graph plus code to express, this is also a test of your ability to express your words.
    3. List all the boundary conditions you can think of, which is the test of your logical thinking in general and agility.
    4. Storage section, do what you can. If you need a storage layer of your own design, then the implementation of this storage layer, with the text + picture to describe clearly, if the design is reasonable, you will get gorgeous award points.

Programming tasks:

We met with a new missionary who annoyed God, and God was angry and asked us to memorize the Bible (bbe.txt) until he said the word, and we would quickly answer the word in the first few words. I heard that you are a good programmer, so help us to accomplish this impossible task.

Requirements are as follows:

    1. /myworks/example/bbe.txt,98 version English Bible book
    2. The input section requires the following: PHP./example.php [Words]
    3. The output section is as follows: [Word] 2,4 5,6 said: This word in 1 rows 2 columns (second word), 2 rows 4 columns ...

      Description

    1. This text 4MB of giant ...
    2. The meaning of the word: a string consisting of a letter (case), a number (0-9)
    3. Available to your machine OS for Ubuntu 9.10, memory only 1 g, and, unfortunately, where 700M is used to do something else
    4. The internet is not allowed on the computer test, but I have the man document and read the CHM and the PDF reader, there is a corresponding PHP reference manual in the CHM folder of the desktop of the PC.
    5. Algorithm complexity requirements cannot be greater than O (n^2) (N squared)
    6. What the? PHP is inefficient and easy to use, so you can do it in a different language. But note: Available to you on the machine only Python 2.4/perl 5.8/gcc[g++] 4.1

http://www.bkjia.com/PHPjc/752428.html www.bkjia.com true http://www.bkjia.com/PHPjc/752428.html techarticle say in front: The following topics, in addition to programming tasks need to be written on the papyrus provided to you. Paper is precious Earth resources, please save the use. Programming tasks in a corresponding environment ...

  • 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.