PHP Language Synthesis Review test questions (vi)

Source: Internet
Author: User
Keywords PHP Language Synthesis Review test questions (vi)
PHP Language Synthesis Review test questions (vi) one, single choice (a total of 52 small items) 1, d01ea1001 about information collection The following statement is correct is () (1 points) A, file_get_contents can be collected in the Web page introduced CSS or JSB, If the browser directly access a URL address can display pictures, then through the file_get_contents directly capture the URL can be directly obtained to the picture file C, PDO is an information collection class can be easily collected information D, Information acquisition can be realized by Fsockopen functions

August 2012 Software Engineering PHP Professional stage 1109PHPA class

PHP Language Synthesis Review test questions (vi)

One, the individual choice question (total 52 small questions)

1, d01ea1001 about information collection The following statement is correct (1 points)

A, file_get_contents can be collected in the Web page introduced CSS or JS

B, if the browser directly access a URL address can display pictures, then through the file_get_contents directly capture the URL can be directly obtained to the picture file

C, PDO is an information acquisition class can be very convenient to collect information D, through the fsockopen and other functions can achieve information Collection 2, d01ma2002 The following statement is correct (2 points)

A, Snoopy is an information acquisition class that has been integrated into the PHP extension and can be instantiated in any file via new Snoopy ();

B, using Snoopy can be used to forge access to the source address of the function

C, Snoopy can achieve acquisition, but can not achieve similar to the function of submitting a form

D, there is a fetch method in Snoopy, call the method can directly return the collected data 3, d01ma2003 the following statements correct is () (2 points)

A, if you do not use Snoopy then only the file_get_contents function can achieve information acquisition B, the data collected can be displayed on the page can also be saved to the database or saved to a file C, collect only the local server data, can not capture the data of the external network

D, if a website language is a JSP, then can not be collected through the PHP program Data 4, d01ma2004 the following statements correct is () (2 points)

A, there is a Submit method in Snoopy, you can implement similar form submission function B, Snoopy has a fetchlinks method, which is equivalent to the fetch

C, there is a Fetchtext method in the Snoopy method the user obtains the input box data on the page D, Snoopy in the Fetchform method can also achieve similar form submission function 5, d01ma2005 The following statement is correct (2 points)

A, Snoopy can achieve file upload function B, using Snoopy can not instantiate the class C, Snoopy is the database operation class and collection class set D, Snoopy class is written in C language 6, d01ea1006 the following statement is correct (1 points)

A, Curl Series function can realize the function of simulating form submission B, Curl series functions can only be simulated form submissions in Get mode

C, if you want to simulate the form submission via PHP only through the Curl series function D, if you use the Curl series function to simulate the form submission, you can only submit one data 7, d01ea1007 the following statements correct is () (1 points)

A, using the Curl series function must introduce the Snoopy class to B, using the Curl series function must open Memcache extension C, using the Curl series function must open PDO extension D, Curl series functions can realize the function of information acquisition 8, d02ma2008 The following statement is correct (2 points)

A, in the implementation of pure static Web site usually use Session_Start () function B, if the implementation of the site's pure static, then each page can not appear floating section C, when accessing a purely static page does not query the database

D, in general, purely static to facilitate search optimization, but can not reduce the server pressure 9, d02ma2010 has a program

Echo 1; $data = Ob_get_contents (); Echo $data;

Please write out the output () (2 points) A, 1 B, 2 C, one D, blank 10, d02ma2011 the following statements are correct () (2 points)

A, in the implementation of pure static must use Ob_clean this function, otherwise you will not be able to generate static page B, static page once generated can no longer overwrite the

C, the page file is associated with the database after the static page is generated, and when the data in the database changes, the static page is updated with it.

D, when accessing static page, can also introduce css,js in static page 11, d03ea1012 The following statements correct is () (1 points)

A, URL rewriting function can implement pseudo-static B, URL rewrite function can be implemented in PHP code

C, after the use of URL rewriting, in the code can not exist in the connection to the database code D, URL rewriting can be achieved purely static

12, d03ma1013 The following statements correct is () (2 points)

A, write in PHP file rewriteengine on can open the URL rewrite function B, in PHP, INI write rewriteengine on can turn on the URL rewrite function

C, URL Rewrite does not rely on any configuration, as long as the htaccess file is placed in the directory of the site can be D, modified, htaccess file without restarting Apache can be effective 13, d04ea1014 the following statement is correct (1 points)

A, Memcache server is a cache server, must be installed on the same machine as Apache server B, memcache Server cache data for a maximum of 24 hours C, Memcache server can only run under Windows

D, a PHP program can get data from multiple Memcache servers 14, d04ea1015 the following statements correct is () (1 points)

A, the purpose of using Memcache server is to solve the problem of insufficient hard disk space

B, if the PHP and Memcache server running on different servers will not be able to access data on the Memcache server operation

C, the data in the Memcache server is updated synchronously with the update of the database D, using the Memcache server can reduce the pressure on the database server 15, d04ma2016 The following statement is correct (2 points)

A, when using memcache cache data, usually the program first in the database query and then to Memcache query

B, when using memcache, usually the program first in the Memcache query, if the data can not be obtained in the database query C, when using memcache, in order to ensure that the data accurate every time the execution of the program will access the database, and compare the data in the database with the data in the Memcache

D, when using Memcache, the program will randomly access the Memcache server or database, so as to ensure the equalization of access pressure

16, d04ma2017 The following statements correct is () (2 points)

A, PHP default is support Memcache do not need any extension of configuration B, PHP operation Memcache must introduce the PDO class to

C, once the data is stored in the Memcache server cannot be modified again, unless expired D, data storage to the Memcache server can be deleted before the expiration of 17, d04ma2018 the following statements correct is () (2 points)

A, the Get method can get the data that has expired in memcache

B, an array of $ A = array (' id ' = ' + ', ' user ' = ' zhangsan '); can be unset ($a [' Zhangsan ']); the array will be changed to an array (' ID ' =>10);

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