Friday, June 14, 2013

Online php exam


Part 1: Apache
Question 1:
Assume PHP5 and apache 2.2 is installed on XP, what need to be done on Apache configuration file to make it able to run PHP as Apache module?
Question 2:
If there is one IP address(10.111.203.25), then how to host two web sites(web1.test.com,web2.test.com) on server ?
Question 3:
How to benchmark apache server?
Question 4:
How to enable basic authentication in apache for a directory?
Question 5:
How do I turn automatic directory listings on or off in Apache configuration?

Part 2: MySQL

Question 6:
Use MySQL command line to create/execute a store procedure with one integer input to return its factorial value (5! = 5*4*3*2*1)
Question 7:
Explain difference between two MySQL storage engine: InnoDB and MyISAM?
Question 8:
How to backup and restore a MySql database between servers?
Question 9:
Select records from 'pet' table which 'name' attribute start with either case of B
Question 10:
Assume you have no knowledge of its metadata, how to you try to find out the tables and then check the schema of a table in the database of MySQL?

Part 3: JQuery

Question 11:
Using short JQuery script to set 'Toronto' in the 'CanCity' list to invisible but keep its space.
Question 12:
Wrote Jquery code to dim the text Remarque and disable the button after user click on the dialog button.
Question 13:
Explain the difference of function bind, live, delegate in Jquery
Question 14:
How to check element with id 'divTxt' exist or not?
Question 15:
How to increment all li node's value by 1?

Part 4: CodeIgniter

Question 16:
Why CodeIgniter does not use template engine?
Question 17:
To remove the index.php file in CodeIgniter, assume you are using Apache as web server, you could ...
Question 18:
You usually save your controller in which folder?
Question 19:
In CodeIgniter, the second segment of the URI typically determines ...
Question 20:
If you want to auto load a model what will you do?

Part 5: AJAX

Question 21:
Write short code to initialize AJAX asynchronous connection which works in all browsers.
Question 22:
The server returns your AJAX call in XML format with following status string <div id='status'>good</div>.
Write short code to update the responseOutput element to show the status of the ajax call. <div id='responseOutput'> </div>
Question 23:
Server is expecting a JSON string for your AJAX call. How do you send the name(John Doe) and time(2pm) to server?
Question 24:
How do I create a thread to do AJAX polling?
Question 25:
How do you update ajax response with id results using Jquery.

Part 6: HTML5

Question 26:
What is the sessionStorage Object in html5 ? How to create and access ?
Question 27:
How to define doctype in html5
Question 28:
How to do Geolocation in HTML5? Wrote a short code to get current latitude and longitude.
Question 29:
How to do video using HTML5?
Question 30:
Wrote a short snippet using new HTML5 tags which include a header, navigation bar, sidebar, footer and a main section. The main section includes an article.

Part 7: REST/SOAP/JSON

Question 31:
What is the main difference between RESTful and SOAP?
Question 32:
How to retrieve array object from PHP while requesting from an URL which returns a JSON string?
Question 33:
Explain standards used in web services?
Question 34:
What's the main use of SOAP header?
Question 35:
Which HTTP methods are supported by RestFul web service?

Part 8: PHP

Question 36:
Tell me about basic types of runtime errors in PHP.
Question 37:
The form below is for file upload. How do you retrieve the upload file name and size in PHP on server end?
Question 38:
How do you print following PHP string into output HTML as it is?
Question 39:
How to construct header object to send mail with file attachment in following PHP function call?
mail($to,$subject,$message,$header)
Question 40:
How can we extract domain name scotiabank.com from URL 'http://webmaster@scotiabank.com/cgi-bin/a.cgi?lang=FR' using regular expression in PHP?

No comments:

Post a Comment

Contact Form

Name

Email *

Message *