Interview Questions

1.Difference between span and div?.
2.Javascript validation for Date?.
3.What is Absolute and relative position in Javascript?.
4.What is OOps?.
5.What is Ajax?.and XMLHTTPRequest?How it works?.
6.Why session will work?.
7.What is inheritance?.
8.What is the difference between PHP4 and PHP5?.Mysql4 and 5?.

1. what is the procees that takes place when u type a url on the address bar? eg www.yahoo.com
2. There is a class which has many methods, if there is an error in one of the method which error function will display the error?
3. In which variable is the last occured error stored?
4. difference between CGI PHP and Apache PHP module. (http://blog.dreamhosters.com/kbase/index.cgi?area=2933)
5. difference between require and include.
6. There is file, u include another file in it, which actually does not exist. when u run the file it will show an error. how do u avoid the error being shown. (this should be done in the code not in any configuration setting)
7. difference between sessions and cookies.
8. how to handle error?
9. In how many ways can you submit a form. (not how many methods, how many ways)
10.difference between GET and POST.
11.what is the process that takes place when you upload a file.
12.what is the process that takes place when you download a file.
13.$str=""; what will empty($str) and !isset($str) and is_null($str) return?
14.what is the regular expression to trim the spaces before and after a string?
15.which javascript function to use to get the text of the selected option in a drop down menu.
16.what does the javascript function characterat(am not sure what the name function name is) do.
17.difference between mysql_connect and mysql_pconnect.
18.what cookies should not contain.
19.what is variable variable?

1. what is myql_connect() and mysql_pconnect()?

2. what is the use of session_set_save_handler?

3. write a PHP code 'getimage.php' to tget the binary data from the database, so that the following line of code works

4. write a PHP code to get the user remote IP address.

5. write a PHP code to display a random number between 0 to 100.

6. why is register_global used?

7. In PHP can we use start and end tags?

8. Write a PHP code to produce a thumbnail. how do you resize an image in PHP?

9. how do you POST and information to another URL?
note: do not use form and hidden variables.

10.what is PEAR? Have you ever used PEAR, if yes give example.



1. When do you use classes as compared to functions?

2. Which is the function to display the configuration variables in PHP?

3. What are the four ways we can pass variables from one page to another?

4. What is the difference between asp subroutine and function?

5. What function do you use to open a page in a new window?

6. How can you send a request to the server without leaving the page or relaoding it?

7. Which function do you use to hide or show a div in a web page?

8. Which function will you use to change an image when the mouse moves on a page and then change the image when it comes out of the page?