search
HomeBackend DevelopmentPHP TutorialA written test question for Tencent PHP programmers_PHP tutorial

Said before:

  1. Except for programming tasks, all the following questions need to be written on the scratch paper provided to you. Paper is a precious earth resource, please use it sparingly. When there is a corresponding environment, programming tasks will require writing on the computer. If there are no conditions, you can only write on straw paper.
  2. Time: basic tasks + advanced tasks + design tasks = 90 minutes, programming tasks = 60 minutes.

Basic tasks:

  1. Please list the UNIX signals you can think of and explain their uses.
  2. Please list all the string search algorithms you can think of and briefly explain them with comments.
  3. There is an IP address (192.168.0.1), please write its 32-bit unsigned integer form.
  4. Write down all the HTTP return status values ​​you can think of and explain their uses (for example: returning 404 means page not found)

Basic task-choice (will get extra points):

  1. Draw a few server-side models that you are most familiar with (the format is not important, just try to make the drawings clear and explain the ideas)

Advanced tasks:

  1. What is PHP’s garbage collection mechanism?
  • If you are familiar with PHP source code, then please start from the source code and answer some questions, you will get extra points
  • If you are not familiar with PHP source code, then try your best to write more, including information obtained by using your own programming intuition.
  • If you are correct, you will get points. If you are wrong, you will not be deducted. If you do not write, you will get no points.
  • Please write the HTTP header 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 can't remember the command words in a certain HTTP protocol, then the last resort is to use "Chinese characters" instead.
    • If you can remember more HTTP protocol command words, then there is always no harm in writing a few more sentences, right?
    • The most important thing is that you only need to draw the correct "outline" (remember the head printed by tools such as httpwatch? That is the meaning of "outline"), there will also be points, but if, even the "outline" It's a pity if they are all written wrong.

    Design tasks:

    Some people have been harassing our voting module recently, and we need you to design something with voting restrictions. The requirements are as follows:

    1. It is required that each QQ number (assuming this QQ number can be expressed in UNIT32) can only cast 5 votes within 10 minutes.
    2. Our users are very enthusiastic, with an average of about 20 million people voting through this program every day.

      Description:

    1. No need to write code, just pictures and text.
    2. For the key logic, please use pictures and code to express it. This is also a test of your writing ability.
    3. List all the boundary conditions you can think of. This is a test of your comprehensiveness and agility in logical thinking.
    4. Storage part, do your best. If you need a storage layer designed by yourself, then describe the implementation of this storage layer clearly in words and pictures. If the design is reasonable, you will get gorgeous bonus points.

    Programming tasks:

    We ran into trouble. A new missionary annoyed God. God was very angry and asked us to memorize the Bible (bbe.txt). When he said a word, we had to answer it quickly. At which word position in which line. I heard that you are an excellent programmer, so help us complete this impossible task.

    The requirements are as follows:

    1. /myworks/example/bbe.txt, a 98 version English Bible
    2. The input part requirements are as follows: php ./example.php [word]
    3. The output part is as follows: [Word] 1,2 2,4 5,6 means: this word is in 1 row and 2 columns (the second word), 2 rows and 4 columns...

      Description:

    1. This text is 4MB huge...
    2. The meaning of the word: a string composed of English letters (upper and lower case) and numbers (0-9)
    3. The machine OS provided to you is ubuntu 9.10, and the memory is only 1G, and, unfortunately, 700M of it is used for other purposes
    4. The computer-based exam does not allow access to the Internet, but I installed the man document and a reader for reading CHM and PDF. There is a corresponding PHP reference manual in the CHM folder on the desktop of my computer
    5. The algorithm complexity requirement cannot be greater than O(N^2) (which is the square of N)
    6. What? PHP is inefficient and uncomfortable to use. Well, you can do it in other languages. But note: the machine provided to you only has python 2.4/perl 5.8/gcc[g++] 4.1

    www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/752428.htmlTechArticleSaid before: The following questions, except for programming tasks, all need to be written on the scratch paper provided to you. Paper is a precious earth resource, please use it sparingly. Programming tasks require corresponding environments...
    Statement
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    腾讯dns地址是多少腾讯dns地址是多少Feb 22, 2023 am 10:43 AM

    腾讯dns地址是“119.29.29.29”;类似于其他公共DNS,如Google的“8.8.8.8”和114dns的“114.114.114.114”,可以为全网用户提供域名的公共递归解析服务。

    qq是腾讯的吗qq是腾讯的吗Oct 09, 2022 am 11:34 AM

    qq是腾讯的。QQ是1999年2月由腾讯公司推出的一款基于互联网的即时通信网络工具,其标志是一只戴着红色围巾的小企鹅;QQ支持在线聊天、视频通话、点对点断点续传文件、共享文件、网络硬盘、自定义面板、QQ邮箱等多种功能,并可与多种通讯终端相连。

    腾讯宣布调整微信支付和视频号组织架构,加大对“直播带货”的投资腾讯宣布调整微信支付和视频号组织架构,加大对“直播带货”的投资Jan 12, 2024 pm 04:30 PM

    根据科创板日报的报道,微信视频号正在加大对直播带货的资源投入,为此已经对微信支付和视频号两个团队的组织架构进行了调整据知情人士透露,腾讯的目的是为了实现微信支付和视频号的互通,希望两个团队能够合作共同努力。据称,这次调整计划于今年双11之前后开始,旨在将更多资源投入到“直播带货”领域根据本站查询结果显示,腾讯是一家著名的互联网公司,自成立以来已经多次进行组织架构调整,目前包括六大事业群和S线企业发展事业群(CDG)云与智慧产业事业群(CSIG)互动娱乐事业群(IEG)平台与内容事业群(PCG)技

    提升用户体验:腾讯QQ NT桌面版内存优化再升级提升用户体验:腾讯QQ NT桌面版内存优化再升级Aug 11, 2023 pm 04:57 PM

    腾讯QQ桌面客户端近期进行了一系列重大改革,针对用户反馈的高内存占用、超大安装包和启动缓慢等问题,QQ技术团队在内存方面进行了专项优化,取得了一定进展据了解,新版QQ在内存方面面临几个主要挑战。首先,产品形态相对复杂,由一个大面板和多个独立功能窗口构成,窗口与渲染进程一一对应,窗口进程数量对Electron的内存占用产生影响。如果不能对这个复杂的大面板进行精细控制,很容易导致内存持续增加。其次,用户习惯长时间挂机,相对于Web页面,QQ用户可能会挂机一个月以上,因此需要控制内存使用,避免内存持续

    腾讯获得杭州亚运会转播权,电竞项目将于9月24日开始腾讯获得杭州亚运会转播权,电竞项目将于9月24日开始Sep 16, 2023 am 09:05 AM

    本站9月15日消息,今天是杭州第19届亚运会倒计时第8天,腾讯集团宣布与中央广播电视总台达成合作,成为杭州亚运会持权转播商。腾讯集团宣布,杭州亚运会将于2023年9月23日至10月8日举行。届时,用户可以通过腾讯视频、腾讯体育、腾讯新闻、腾讯网、微信、微视、王者营地、和平营地、掌上英雄联盟、虎牙直播等平台观看亚运会的所有比赛转播和回放值得一提的是,腾讯旗下4大竞技项目将作为正式竞赛项目登上本次亚运会舞台。据本站此前报道,杭州亚运会的电竞赛事赛程已经出炉,电子竞技将作为智力项目于9月24日开赛,连

    一文带你了解腾讯自主研发的通用大语言模型——混元大模型一文带你了解腾讯自主研发的通用大语言模型——混元大模型Sep 12, 2023 pm 08:21 PM

    2023年9月7日上午,在腾讯全球数字生态大会上,腾讯集团高级执行副总裁、腾讯云与智慧产业事业群CEO汤道生宣布,腾讯将进入“全面拥抱大模型”时代,并同时宣布,腾讯自主研发的通用大语言模型——混元,正式向产业亮相。根据腾讯官方表示,混元大模型的中文能力已经超过GPT3.5发布后混元大模型将作为腾讯云MaaS服务的底座,用户可以通过腾讯云官网进行体验,并且支持直接调用API接口,也可可以将混元作为基底模型,并在公有云上根据企业的实际需求进行自定义调整。一、混元大模型简介二、计费方面腾讯混元大模型将

    微信和腾讯地图升级“小修小补引路行动”,全国首张“一刻钟便民生活圈地图”上线微信和腾讯地图升级“小修小补引路行动”,全国首张“一刻钟便民生活圈地图”上线Nov 17, 2023 pm 02:45 PM

    本站11月16日消息,微信和腾讯地图在今年发起了“小修小补引路行动”,展现出200多座城市的超50万家修补小店。在商务部指导下,“小修小补引路行动”全面升级,在微信搜一搜“小修小补”“修鞋”“修自行车”“裁缝”“修表”“修电器”“修锁”“配钥匙”“管道疏通”“修手机”等关键词,不仅可以直达小修小补便民主题地图,附近小店的信息都会直接标记出来,大大增加了小店的曝光率。“小修小补便民地图”小程序列出了每家小店的营业时间、具体地址以及联系电话等重要信息,方便用户更快找到小店。本站注意到,此前腾讯利用A

    腾讯混元大模型正式亮相,我们抢先试了试它的生产力腾讯混元大模型正式亮相,我们抢先试了试它的生产力Sep 08, 2023 pm 07:57 PM

    国内首批大型模型备案上周获批,开始向全社会开放服务,标志着大型模型进入了规模应用的新阶段。在之前发布应用的公司中,一些科技巨头似乎还没有行动在2023年9月7日,腾讯在腾讯全球数字生态大会上正式公开了混元大模型,并向外界开放了腾讯云作为一个超千亿参数的大模型,混元使用的预训练语料超过两万亿token,凭借多项独有的技术能力获得了强大的中文创作能力、复杂语境下的逻辑推理能力,以及可靠的任务执行能力。腾讯集团副总裁蒋杰表示:「腾讯混元大模型是从第一个token开始从零训练的,我们掌握了从模型算法到机

    See all articles

    Hot AI Tools

    Undresser.AI Undress

    Undresser.AI Undress

    AI-powered app for creating realistic nude photos

    AI Clothes Remover

    AI Clothes Remover

    Online AI tool for removing clothes from photos.

    Undress AI Tool

    Undress AI Tool

    Undress images for free

    Clothoff.io

    Clothoff.io

    AI clothes remover

    AI Hentai Generator

    AI Hentai Generator

    Generate AI Hentai for free.

    Hot Article

    R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
    2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
    Repo: How To Revive Teammates
    4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
    Hello Kitty Island Adventure: How To Get Giant Seeds
    3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

    Hot Tools

    Zend Studio 13.0.1

    Zend Studio 13.0.1

    Powerful PHP integrated development environment

    SublimeText3 Chinese version

    SublimeText3 Chinese version

    Chinese version, very easy to use

    SublimeText3 Linux new version

    SublimeText3 Linux new version

    SublimeText3 Linux latest version

    Notepad++7.3.1

    Notepad++7.3.1

    Easy-to-use and free code editor

    Dreamweaver CS6

    Dreamweaver CS6

    Visual web development tools