<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1646341427015703287</id><updated>2012-02-16T14:01:59.872-08:00</updated><category term='ORACLE'/><category term='CAKE PHP'/><category term='JAVA QUESTION'/><category term='JAVA SCRIPT'/><category term='SEO TIPS AND TRICKS'/><category term='TESTING'/><category term='PHP SESSIONS'/><category term='SQL'/><category term='JSP'/><category term='CSS'/><category term='PHP QUESTIONS'/><category term='C'/><category term='AJAX'/><category term='PHP STRING FUNCTIONS'/><category term='PHP MYSQL'/><category term='PHP DATE FORMATE'/><category term='PHP DATE DIFFERENCE'/><category term='ARRAY'/><category term='C++'/><category term='PHP FUNCTIONS'/><category term='SAP'/><category term='POINTER'/><category term='PHP COOKIES'/><category term='FILE HANDLING FUNCTIONS'/><category term='HTML'/><category term='BLUETOOTH'/><category term='ACCOUNTS'/><category term='PHP IF....ELSE STATEMENTS'/><category term='MYSQL QUERY OF PHP'/><category term='PHP JOOMLA'/><category term='PHP STRING'/><title type='text'>SEO TIPS AND PHP INTERVIEW QUESTIONS</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://phpuse.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://phpuse.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>priyanka</name><uri>http://www.blogger.com/profile/09324732571496665305</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>34</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1646341427015703287.post-5044666146525440994</id><published>2010-11-06T10:26:00.000-07:00</published><updated>2010-11-06T10:37:05.943-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP FUNCTIONS'/><title type='text'>PHP FUNCTIONS</title><content type='html'>&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;PHP FUNCTIONS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A function will be executed by a call to the function.&lt;br /&gt;You may call a function from anywhere within a page.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;CREATE A PHP FUNCTIONS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A function will be executed by a call to the function.&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;Syntax&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;function functionName()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;code to be executed;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;Example&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A simple function that writes my name when it is called:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;function writeName()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;echo "kem john Refsnes";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;echo "My name is ";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;writeName();&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;OUTPUT:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;My name is Kem john&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;PHP FUNCTIONS - ADDING PARAMETERS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To add more functionality to a function, we can add parameters. A parameter is just like a variable.Parameters are specified after the function name, inside the parentheses.&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;Example:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The following example will write different first names, but equal last name:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;function writeName($fname)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;echo $fname . " Refsnes";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;echo "My name is ";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;writeName("John");&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;echo "My sister's name is ";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;writeName("Alba");&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;echo "My brother's name is ";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;writeName("Kem");&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;OUTPUT:&lt;/span&gt;&lt;br /&gt;My name is John Refsnes.&lt;br /&gt;My sister's name is Alba Refsnes.&lt;br /&gt;My brother's name is Kem Refsnes.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;PHP FUNCTIONS - RETURN VALUES&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To let a function return a value, use the return statement.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;Example&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;function add($a,$b)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;$totalvalue=$a+$b;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;return $totalvalue;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;echo "4 + 22 = " . add(4,22);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;Output:&lt;/span&gt;&lt;br /&gt;4 + 22 = 26&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646341427015703287-5044666146525440994?l=phpuse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpuse.blogspot.com/feeds/5044666146525440994/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpuse.blogspot.com/2010/11/php-functions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/5044666146525440994'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/5044666146525440994'/><link rel='alternate' type='text/html' href='http://phpuse.blogspot.com/2010/11/php-functions.html' title='PHP FUNCTIONS'/><author><name>priyanka</name><uri>http://www.blogger.com/profile/09324732571496665305</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646341427015703287.post-5376600469935098522</id><published>2010-11-06T01:58:00.000-07:00</published><updated>2010-11-06T02:21:02.641-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP IF....ELSE STATEMENTS'/><title type='text'>PHP IF....ELSE STATEMENTS</title><content type='html'>&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;The if Statement&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Use the if statement to execute some code only if a specified condition is true.&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;Syntax&lt;/span&gt;&lt;br /&gt;if (condition) code to be executed if condition is true;&lt;br /&gt;&lt;br /&gt;The following example will output "Have a nice weekend!" if the current day is Friday:&lt;br /&gt;&lt;br /&gt;$d=date("D");&lt;br /&gt;if ($d=="Fri") echo "Have a nice weekend!";&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;The if...else Statement&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Use the if....else statement to execute some code if a condition is true and another code if a condition is false.&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;Syntax&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;if (condition)&lt;br /&gt;  code to be executed if condition is true;&lt;br /&gt;else&lt;br /&gt;  code to be executed if condition is false;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;Example&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The following example will output "How do you do!" if the current day is Friday, otherwise it will output "How do you do!":&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$d=date("D");&lt;br /&gt;if ($d=="Fri")&lt;br /&gt;  echo "How do you do!";&lt;br /&gt;else&lt;br /&gt;  echo "How do you do!";&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If more than one line should be executed if a condition is true/false, the lines should be enclosed within curly braces:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$d=date("D");&lt;br /&gt;if ($d=="Fri")&lt;br /&gt;  {&lt;br /&gt;  echo "Hi!";&lt;br /&gt;  echo "How do you do!";&lt;br /&gt;  echo "What r u doing!";&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;The if...elseif....else Statement&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Use the if....elseif...else statement to select one of several blocks of code to be executed.&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;Syntax&lt;/span&gt;&lt;br /&gt;if (condition)&lt;br /&gt;  code to be executed if condition is true;&lt;br /&gt;elseif (condition)&lt;br /&gt;  code to be executed if condition is true;&lt;br /&gt;else&lt;br /&gt;  code to be executed if condition is false;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;Example&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;$d=date("D");&lt;br /&gt;if ($d=="Fri")&lt;br /&gt;  echo "Have a nice weekend!";&lt;br /&gt;elseif ($d=="Sun")&lt;br /&gt;  echo "Have a nice Sunday!";&lt;br /&gt;else&lt;br /&gt;  echo "Have a nice day!";&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646341427015703287-5376600469935098522?l=phpuse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpuse.blogspot.com/feeds/5376600469935098522/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpuse.blogspot.com/2010/11/php-ifelse-statements.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/5376600469935098522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/5376600469935098522'/><link rel='alternate' type='text/html' href='http://phpuse.blogspot.com/2010/11/php-ifelse-statements.html' title='PHP IF....ELSE STATEMENTS'/><author><name>priyanka</name><uri>http://www.blogger.com/profile/09324732571496665305</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646341427015703287.post-5525353825203519402</id><published>2010-11-04T01:38:00.000-07:00</published><updated>2010-11-04T02:02:32.985-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MYSQL QUERY OF PHP'/><title type='text'>PHP MYSQL DATABASE</title><content type='html'>&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;1. &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;MYSQL QUERY OF PHP&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;INSERT QUERY:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;"Insert into Table_Name ( field1, field2,...fieldN )&lt;br /&gt;                    VALUES&lt;br /&gt;                    ( value1, value2,...valueN )";&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;Example:&lt;/span&gt;&lt;br /&gt;     "INSERT INTO info_tb (name, address, phone) VALUES ('Rakesh', 'Kestopur', '9681212112')";&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;SELECT QUERY:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;"select * from table_name";&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;Example:&lt;/span&gt;&lt;br /&gt;     "select * from info_tb";&lt;br /&gt;     Where info_tb is table name.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;UPDATE QUERY:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;"update table_name set field1=new-value1, field2=new-value2&lt;br /&gt;[WHERE Clause]";&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;Example:&lt;/span&gt;&lt;br /&gt;    "update info_tb set name='$a',addr='$b',phone='$c'where id='$x'";&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;DELETE QUERY:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;"Delete from table_name where (condition)";&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;Example:&lt;/span&gt;&lt;br /&gt;     "Delete *  from Emp_tb Where  e_name = "john"";&lt;br /&gt;&lt;br /&gt;     Where Emp_tb is table name.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;DELETE TABLE QUERY:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;"DROP TABLE emp_data";&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646341427015703287-5525353825203519402?l=phpuse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpuse.blogspot.com/feeds/5525353825203519402/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpuse.blogspot.com/2010/11/php-mysql-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/5525353825203519402'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/5525353825203519402'/><link rel='alternate' type='text/html' href='http://phpuse.blogspot.com/2010/11/php-mysql-database.html' title='PHP MYSQL DATABASE'/><author><name>priyanka</name><uri>http://www.blogger.com/profile/09324732571496665305</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646341427015703287.post-317515852312318108</id><published>2010-11-01T15:14:00.000-07:00</published><updated>2010-11-03T00:01:48.364-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SEO TIPS AND TRICKS'/><title type='text'>SEO TIPS AND TRICKS FOR WEBSITES AND BLOG</title><content type='html'>1. Should be unique content not duplicate content in website or blog.You need to provide content that has different information than what is on other sites and other Web pages.&lt;br /&gt;&lt;br /&gt;2. The primary thing you should do when working on search engine optimization is find a great keyword phrase for that page.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3. Keyword density should be between 3 and 7% for your primary keyword phrase and 1-2% for any secondary keywords or keyword phrases.&lt;br /&gt;&lt;br /&gt;4. (H1,H2,H3 etc.) is headline tags. This tak should be used in the all pages of website because at first search engine catch of headline tag.&lt;br /&gt;&lt;br /&gt;5. Its necessary condition for website:&lt;br /&gt;   a) Shold be title of page.&lt;br /&gt;   b) Should be META Description Tag.&lt;br /&gt;   c) Should be META Keywords Tag.&lt;br /&gt;   d) Should be META Robots Tag.&lt;br /&gt;   e) Should be META Author Tag.&lt;br /&gt;&lt;br /&gt;6. Create a sitemap (MEDIUM PRIORITY)&lt;br /&gt;Search engines love sitemaps - not necessarily for ranking, but for finding links on your site.It's not critical that you create an XML sitemap or Google sitemap, plain HTML sitemaps work just as well.&lt;br /&gt;&lt;br /&gt;7. Add new content all the time (HIGH PRIORITY)&lt;br /&gt;Sites that have new content added on a regular basis are seen as more reliable than sites that rarely do.This also helps you to increase the amount of relevant content on your site, which also improves your rankings.&lt;br /&gt;&lt;br /&gt;8. Use strong and em where appropriate to make your keyword phrases stand out.Search engines can read those tags, and will recognize that text that is emphasized is often more important than the surrounding text.&lt;br /&gt;&lt;br /&gt;9. As long as your scripts are valid and don't break your HTML, most search engines will ignore them. But don't rely on JavaScript to improve your rankings - most search engines ignore content inside JavaScript.&lt;br /&gt;&lt;br /&gt;10. In most text that is available on a website or blog, more information than a search engine can select from a Website.This has a positive effect of the website.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646341427015703287-317515852312318108?l=phpuse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpuse.blogspot.com/feeds/317515852312318108/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpuse.blogspot.com/2010/11/seo-tips-and-tricks-for-websites.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/317515852312318108'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/317515852312318108'/><link rel='alternate' type='text/html' href='http://phpuse.blogspot.com/2010/11/seo-tips-and-tricks-for-websites.html' title='SEO TIPS AND TRICKS FOR WEBSITES AND BLOG'/><author><name>priyanka</name><uri>http://www.blogger.com/profile/09324732571496665305</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646341427015703287.post-147838753833903442</id><published>2010-08-20T02:08:00.000-07:00</published><updated>2010-08-20T02:14:49.971-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ACCOUNTS'/><title type='text'>QUESTION OF BANK ACCOUNTS WTH ANSWER</title><content type='html'>&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.1 What is debit and credit from the banks point of view?&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;debit balance of our books of a/c will be the credit balance of bank a/c. and the credit balance of our books of a/c will be debit balance in the books of a/c of bank.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.2 What is difference between consiner and consinee?&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;Consigner is the person who is the owner of the goods and who deliver the goods to the consignee.&lt;br /&gt;&lt;br /&gt;Consignee is the person who receives the goods and he just possesses the goods and not the owner.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.3 What step would you take before approving an invoice for payment?&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;Before hand over the invoice or dispatch the materials&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1.&lt;/span&gt; we have to receive perchase order from the customer&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2. &lt;/span&gt;Then PDC cheque, cash or current dated chq for dispatch the materials&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3.&lt;/span&gt; have to take signature from the customer for the proof of goods recieve&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.4 What is the full form of SOX in accounts?&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;Sarbanes Oxley&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.5 Explain about accounts payable?&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;Accounts payable is a file or account that contains money that a person or company owes to suppliers, but has not paid yet (a form of debt). When you receive an invoice you add it to the file, and then you remove it when you pay. Thus, the A/P is a form of credit that suppliers offer to their purchasers by allowing them to pay for a product or service after it has already been received.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.6  What is difference between debenture and perference share?&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;When the capital of the company is not sufficient to carry on business the company raise loan by issuing what is known as debenture debenture holder money treated as a loan whereas preference shareholder money treated as a capital of the company. Debenture holder is not a properitor of the company in the contest preference share holder is a properitor of the company. Preference share holder has a right to get bonus or dividend from the company but debenture holder has no right to get dividend.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646341427015703287-147838753833903442?l=phpuse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpuse.blogspot.com/feeds/147838753833903442/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpuse.blogspot.com/2010/08/question-of-bank-accounts-wth-answer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/147838753833903442'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/147838753833903442'/><link rel='alternate' type='text/html' href='http://phpuse.blogspot.com/2010/08/question-of-bank-accounts-wth-answer.html' title='QUESTION OF BANK ACCOUNTS WTH ANSWER'/><author><name>priyanka</name><uri>http://www.blogger.com/profile/09324732571496665305</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646341427015703287.post-3377460979568079186</id><published>2010-08-19T14:46:00.000-07:00</published><updated>2010-08-19T15:45:13.114-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TESTING'/><title type='text'>TYPE OF PERFORMANCE TESTING</title><content type='html'>&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.1 Type of performance testing?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER: &lt;/span&gt;Performance testing can be categorized as follows&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1. Benchmark Testing:&lt;/span&gt; It is a kind of performance testing that compares the performances of new target of test to existing s/w.It provides performance camparison for s/w, h/w and systems. It is used to understand that how a new product will withstand in the competitive environment.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2. Contention Testing:&lt;/span&gt; This test, a test that does a system can handle multiple demands of clients on the same resource. A resource could be data records,memory or something else which could be accessed by clients.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Example:&lt;/span&gt;&lt;br /&gt;  &lt;span style="font-weight: bold;"&gt;  a:&lt;/span&gt; Only a single thread on a single process.&lt;br /&gt;   &lt;span style="font-weight: bold;"&gt; b:&lt;/span&gt; Multiple processes&lt;br /&gt;  &lt;span style="font-weight: bold;"&gt;  c:&lt;/span&gt; Multiple processes, each with multiple threads&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3. Performance Profiling:&lt;/span&gt; This is the kind of performance testing that verifies that a system must perform correctly under different configuration while the operational conditions such as number of users,number of transaction remain constant.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;4. Load Testing:&lt;/span&gt; Load testing means at a time giving more load by the expectation and checking the performance at that level&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;5. Stress Testing:&lt;/span&gt; Stress testing means increasing the load and checking the performance at each level.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;6. Volume Testing:&lt;/span&gt; Volume testing means testing the software with large volume&lt;br /&gt;of data in the database.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;7. Configuration Testing:&lt;/span&gt; This tests the various s/w and h/w configuration. Configuration testing is the system testing of different variations of an integrated,black box application against its configurability requirements&lt;br /&gt;The typical objective of configuration testing are to:-&lt;br /&gt;Report these failures to the development teams so that the associated defects can be fixed.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;8. Recovery Testing:&lt;/span&gt; Recovery testing is a system test that forces the s/w to fail in a variety of way and verifies that recovery is properly performed. If recovery requires human intervention, the mean time to repair is evaluated to determine whether it is within acceptable limits&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646341427015703287-3377460979568079186?l=phpuse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpuse.blogspot.com/feeds/3377460979568079186/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpuse.blogspot.com/2010/08/type-of-performance-testing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/3377460979568079186'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/3377460979568079186'/><link rel='alternate' type='text/html' href='http://phpuse.blogspot.com/2010/08/type-of-performance-testing.html' title='TYPE OF PERFORMANCE TESTING'/><author><name>priyanka</name><uri>http://www.blogger.com/profile/09324732571496665305</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646341427015703287.post-6741224197319090982</id><published>2010-08-19T14:32:00.000-07:00</published><updated>2010-08-19T15:22:34.095-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TESTING'/><title type='text'>TYPE OF TESTING</title><content type='html'>&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.1 What is unit testing?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;Unit testing is a single modules testing, basically done by developer. This is a white box testing.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.2 What is alpha testing?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;Testing of an application when development is nearing completion minor design changes may still be made as a result of such testing. Typically done by end user or other not by programmer or tester.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q3: What is beta testing?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;Testing when development and testing are essentially completed and find bugs and problems need to be found before find release. Typically done by end user or other not by programmer or tester.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.4 What is gamma testing?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;A gamma testing is testing of s/w that has all the required features, but it did not go through all the in-house quality checks. Cynics tend to refer to s/w releases as "gamma testing".&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.5 What is acceptance testing?&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;ANSWER:&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Acceptance testing is a final test action before deploying the software. The goal of acceptance testing is to verify that the s/w is ready and can be used by your end user to perform those functions and tasks for which the s/w was built.&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Q.6 What is monkey testing?&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;ANSWER:&lt;/span&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Monkey testing refers broadly to any form of automated testings done randomly and without any "typical user" bias. Calling such tools monkeys derives from variation of this popular aphorism.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.7 What is black box testing?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1:-&gt;&lt;/span&gt;In the black box testing the tester should not need to know the internal code and design.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2:-&gt;&lt;/span&gt;Tester should be must to know the legal input and expected output, but they do not need to know how the internal program works.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.8 What is white box testing?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;Tester should be must to know the legal input and expected output and need to know how the internal program works.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646341427015703287-6741224197319090982?l=phpuse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpuse.blogspot.com/feeds/6741224197319090982/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpuse.blogspot.com/2010/08/type-of-testing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/6741224197319090982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/6741224197319090982'/><link rel='alternate' type='text/html' href='http://phpuse.blogspot.com/2010/08/type-of-testing.html' title='TYPE OF TESTING'/><author><name>priyanka</name><uri>http://www.blogger.com/profile/09324732571496665305</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646341427015703287.post-1131622773459270228</id><published>2010-08-19T13:49:00.000-07:00</published><updated>2010-08-19T13:55:45.123-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TESTING'/><title type='text'>INTERVIEW QUESTION OF TESTING WITH ANSWER</title><content type='html'>&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.1 What is testing?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;Testing is process by which by can detected a bug an error in a program.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.2 What is software testing?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;Software testing is the process of executing the software to determine whether it matches its specifications and executes in its intended environment.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.3 What is the difference between QA and QC?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1:-&lt;/span&gt;Quality assurance makes sure you are doing the right things, the right way whereas quality    control makes sure the re4sults of what you have done are what you expected.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2:-&lt;/span&gt;QA deals with process whereas QC deals with product.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3:-&lt;/span&gt;QA is a preventive process whereas QC is a corrective process.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;4:-&lt;/span&gt;QA for entire life cycle whereas QC for testing part in SDLC.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.4 What is difference between verification and validation?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;Verification is the process of confirming that software meets its specification whereas validation is the process of confirming that it meets the user's requirements.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.5 Software quality assurance ?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;Software quality assurance is defined as a planned and systematic approach to the evaluation of the quality and adherence to software product standards process and procedure.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.6 What are the phase of SDLC?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1:-Status quo-&gt;&lt;/span&gt;The phase,which represents the current state of affairs.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2:-Problem definition-&gt;&lt;/span&gt;During this phase the specific problem to bo solved is defined and analyzed.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3:-Technical developer-&gt;&lt;/span&gt;The phase solve the problem through the application of any technology.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;4:-Solution integration-&gt;&lt;/span&gt;Delivers the result (e.g doccument,program,data,new product) to those who requested the solution in the first phase&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.7 Why does s/w have bugs?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1:-&lt;/span&gt;Miscommunication or no communication.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2:-&lt;/span&gt;Software complexity.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3:-&lt;/span&gt;Programming error.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;4:-&lt;/span&gt;Changing requirements.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;5:-&lt;/span&gt;Time pressures.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;6:-&lt;/span&gt;Poorly documented code.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;7:-&lt;/span&gt;Software development tools.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646341427015703287-1131622773459270228?l=phpuse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpuse.blogspot.com/feeds/1131622773459270228/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpuse.blogspot.com/2010/08/interview-question-of-testing-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/1131622773459270228'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/1131622773459270228'/><link rel='alternate' type='text/html' href='http://phpuse.blogspot.com/2010/08/interview-question-of-testing-with.html' title='INTERVIEW QUESTION OF TESTING WITH ANSWER'/><author><name>priyanka</name><uri>http://www.blogger.com/profile/09324732571496665305</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646341427015703287.post-6377135708005970585</id><published>2010-08-19T12:56:00.000-07:00</published><updated>2010-08-19T13:09:51.122-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JSP'/><title type='text'>INTERVIEW QUESTIONS OF JSP WITH ANSWER</title><content type='html'>&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.1 what is JSP? a technology ,a language or something else ?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;JavaServer Pages (JSP) is a Java technology that helps software developers serve dynamically generated web pages based on HTML, XML.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.2 How to get session in Jsp other than session object?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt; &lt;span style="font-weight: bold;"&gt;1-&gt;&lt;/span&gt;Url Rewritting&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2-&gt;&lt;/span&gt;Cookies&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3-&gt;&lt;/span&gt;Hidden Filed&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.3 how to extends one jsp page to another jsp page with realtime example?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;To test the one JSP to another JSP by using the djsp.we can&lt;br /&gt;arrange the parameters one by one.this is short cut method&lt;br /&gt;to arrange the one JSP to another JSP.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.4What are actions and directives in JSP&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:   &lt;/span&gt;java server  page contains three actions&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1:-&lt;/span&gt;try    &lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2:-&lt;/span&gt;catch  &lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3:-&lt;/span&gt;through.&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;it contains two derivaties&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1:-&lt;/span&gt;poly derivatives&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2:-&lt;/span&gt;post derivatives.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.5What is the most needed for &lt;span style="color: rgb(0, 0, 0);"&gt;STRUTS&lt;/span&gt; ?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:  &lt;/span&gt; &lt;br /&gt;"ActionServlet" to implement and establish the MVC&lt;br /&gt;functionality.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646341427015703287-6377135708005970585?l=phpuse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpuse.blogspot.com/feeds/6377135708005970585/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpuse.blogspot.com/2010/08/interview-questions-of-jsp-with-answer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/6377135708005970585'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/6377135708005970585'/><link rel='alternate' type='text/html' href='http://phpuse.blogspot.com/2010/08/interview-questions-of-jsp-with-answer.html' title='INTERVIEW QUESTIONS OF JSP WITH ANSWER'/><author><name>priyanka</name><uri>http://www.blogger.com/profile/09324732571496665305</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646341427015703287.post-74565556159206304</id><published>2010-03-01T05:38:00.000-08:00</published><updated>2010-03-01T05:44:03.738-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CAKE PHP'/><title type='text'>INTERVIEW QUESTIONS OF CAKE PHP WITH ANSWER</title><content type='html'>&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q1. What is meant by MVC (MODEL-VIEW-CONTROLLER)?&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;model view controller, it is a software architecture, used to isolates business logic from presentation logic. cakephp is&lt;br /&gt;&lt;br /&gt;based on mvc pattern.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q2. What are 3 important parts of MVC (MODEL-VIEW-CONTROLLER)?&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;   1. The Model represents the application data&lt;br /&gt;   2. The View renders a presentation of model data&lt;br /&gt;   3. The Controller handles and routes requests made by the client&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q3. What is features in cake php?&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;list some of the features in Cake php&lt;br /&gt;&lt;br /&gt;   1. Compatible with versions 4 and 5 of PHP&lt;br /&gt;   2. MVC architecture&lt;br /&gt;   3. Built-in validations&lt;br /&gt;   4. Caching&lt;br /&gt;   5. scaffolding&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q4.what is the name of Cake's database configuration file?&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;by default it is database.php.default, you can find it in /app/config/database.php.default&lt;br /&gt;for connecting to database, it should be renamed to database.php&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646341427015703287-74565556159206304?l=phpuse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpuse.blogspot.com/feeds/74565556159206304/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpuse.blogspot.com/2010/03/interview-questions-of-cake-php-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/74565556159206304'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/74565556159206304'/><link rel='alternate' type='text/html' href='http://phpuse.blogspot.com/2010/03/interview-questions-of-cake-php-with.html' title='INTERVIEW QUESTIONS OF CAKE PHP WITH ANSWER'/><author><name>priyanka</name><uri>http://www.blogger.com/profile/09324732571496665305</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646341427015703287.post-5408994084213083185</id><published>2009-12-17T22:48:00.000-08:00</published><updated>2009-12-18T09:19:20.197-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP QUESTIONS'/><title type='text'>PHP INTERVIEW QUESTIONS WITH ANSWER</title><content type='html'>&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q.1 What's PHP&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;The PHP Hypertext Preprocessor is a programming language that allows web developers to create dynamic content that interacts with databases. PHP is basically used for developing web based software applications.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q.2  What is meant by PEAR in php?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER :&lt;/span&gt;&lt;br /&gt;PEAR is the next revolution in PHP. This repository is bringing higher level programming to PHP. PEAR is a framework and distribution system for reusable PHP components. It eases installation by bringing an automated wizard, and packing the strength and experience of PHP users into a nicely organised OOP library. PEAR also provides a command-line interface that can be used to automatically install "packages"&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q.3 How can we repair a MySQL table?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;The syntex for repairing a mysql table is:&lt;br /&gt;REPAIR TABLE tablename&lt;br /&gt;REPAIR TABLE tablename QUICK&lt;br /&gt;REPAIR TABLE tablename EXTENDED&lt;br /&gt;&lt;br /&gt;This command will repair the table specified.&lt;br /&gt;If QUICK is given, MySQL will do a repair of only the index tree.&lt;br /&gt;If EXTENDED is given, it will create index row by row.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q.4  What are the differences between require and include, include_once?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER 1:&lt;/span&gt;&lt;br /&gt;require_once() and include_once() are both the functions to include and evaluate the specified file only once. If the specified file is included previous to the present call occurrence, it will not be done again.&lt;br /&gt;&lt;br /&gt;But require() and include() will do it as many times they are asked to do.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER 2:&lt;/span&gt;&lt;br /&gt;The include_once() statement includes and evaluates the specified file during the execution of the script. This is a behavior similar to the include() statement, with the only difference being that if the code from a file has already been included, it will not be included again. The major difference between include() and require() is that in failure include() produces a warning message whereas require() produces a fatal errors.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q.5 What are the differences between DROP a table and TRUNCATE a table?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;DROP TABLE table_name - This will delete the table and its data.&lt;br /&gt;TRUNCATE TABLE table_name - This will delete the data of the table, but not the table definition.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q.6 How can we register the variables into a session?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;session_register($session_var);&lt;br /&gt;&lt;br /&gt;$_SESSION['var'] = 'value';&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q.7 How many error types in php? &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;1:fatal&lt;br /&gt;2:notice&lt;br /&gt;3:warning&lt;br /&gt;4:parse&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q.8 difference of move(), and copy() function in php?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;copy() function copy images for temp folder on server to&lt;br /&gt;move other location. move() function cut images for temp&lt;br /&gt;folder on server to move other location.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q.9 What are the differences between mysql_fetch_array(), mysql_fetch_object(), mysql_fetch_row()?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;mysql_fetch_array() -&gt; Fetch a result row as a combination of associative array and regular array.&lt;br /&gt;mysql_fetch_object() -&gt; Fetch a result row as an object.&lt;br /&gt;mysql_fetch_row() -&gt; Fetch a result set as a regular array().&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q.10 What is the difference between PHP4 and PHP5?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;PHP4 cannot support oops concepts and Zend engine 1 is used.&lt;br /&gt;PHP5 supports oops concepts and Zend engine 2 is used.&lt;br /&gt;Error supporting is increased in PHP5.&lt;br /&gt;XML and SQLLite will is increased in PHP5.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646341427015703287-5408994084213083185?l=phpuse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpuse.blogspot.com/feeds/5408994084213083185/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpuse.blogspot.com/2009/12/php-interview-questions-with-answer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/5408994084213083185'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/5408994084213083185'/><link rel='alternate' type='text/html' href='http://phpuse.blogspot.com/2009/12/php-interview-questions-with-answer.html' title='PHP INTERVIEW QUESTIONS WITH ANSWER'/><author><name>priyanka</name><uri>http://www.blogger.com/profile/09324732571496665305</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646341427015703287.post-501041516732724196</id><published>2009-12-17T12:14:00.000-08:00</published><updated>2009-12-17T12:54:08.725-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JAVA QUESTION'/><title type='text'>JAVA INTERVIEW QUESTION WITH ANSWER</title><content type='html'>&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q.1 What is garbage collection? What is the process that is responsible for doing that in java? &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;Reclaiming the unused memory by the invalid objects. Garbage collector is responsible for this process&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q.2 What kind of thread is the Garbage collector thread? &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;It is a daemon thread.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q.3 What is a daemon thread? &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;These are the threads which can run without user intervention. The JVM can exit when there are daemon thread by killing them abruptly.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q.4 How will you invoke any external process in Java? &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;Runtime.getRuntime().exec(….)&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q.5 What is the finalize method do? &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;Before the invalid objects get garbage collected, the JVM give the user a chance to clean up some resources before it got garbage collected.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q.6 What is mutable object and immutable object? &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;If a object value is changeable then we can call it as Mutable object. (Ex., StringBuffer, …) If you are not allowed to change the value of an object, it is immutable object. (Ex., String, Integer, Float, …)&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q.7 What is the basic difference between string and stringbuffer object? &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;String is an immutable object. StringBuffer is a mutable object.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q.8 What is the purpose of Void class? &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;The Void class is an uninstantiable placeholder class to hold a reference to the Class object representing the primitive Java type void.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q.9 What is reflection? &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;Reflection allows programmatic access to information about the fields, methods and constructors of loaded classes, and the use reflected fields, methods, and constructors to operate on their underlying counterparts on objects, within security restrictions.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q.10 What is a package? &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;To group set of classes into a single unit is known as packaging. Packages provides wide namespace ability.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q.11 What are the approaches that you will follow for making a program very efficient? &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;By avoiding too much of static methods avoiding the excessive and unnecessary use of synchronized methods Selection of related classes based on the application (meaning synchronized classes for multiuser and non-synchronized classes for single user) Usage of appropriate design patterns Using cache methodologies for remote invocations Avoiding creation of variables within a loop and lot more.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q.12 What is a DatabaseMetaData? &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;Comprehensive information about the database as a whole.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q.13 What is Locale? &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0);"&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;A Locale object represents a specific geographical, political, or cultural region&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q.14 How will you load a specific locale? &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;Using ResourceBundle.getBundle(…);&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q.15 What is JIT and its use? &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;Really, just a very fast compiler… In this incarnation, pretty much a one-pass compiler — no offline computations. So you can’t look at the whole method, rank the expressions according to which ones are re-used the most, and then generate code. In theory terms, it’s an on-line problem.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q.16 What is the final keyword denotes? &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;final keyword denotes that it is the final implementation for that method or variable or class. You can’t override that method/variable/class any more.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646341427015703287-501041516732724196?l=phpuse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpuse.blogspot.com/feeds/501041516732724196/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpuse.blogspot.com/2009/12/mysql-create.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/501041516732724196'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/501041516732724196'/><link rel='alternate' type='text/html' href='http://phpuse.blogspot.com/2009/12/mysql-create.html' title='JAVA INTERVIEW QUESTION WITH ANSWER'/><author><name>priyanka</name><uri>http://www.blogger.com/profile/09324732571496665305</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646341427015703287.post-2650461438458141099</id><published>2009-12-17T11:26:00.000-08:00</published><updated>2009-12-17T11:49:08.667-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP STRING'/><title type='text'>PHP STRING</title><content type='html'>&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q.1 String Variables in PHP&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;String variables are used for values that contains characters.&lt;br /&gt;we create a string we can manipulate it. A string can be used directly in a function or it can be stored in a variable.&lt;br /&gt;Below, the PHP script assigns the text "Hello World" to a string variable called $txt:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;The output of the code above will be:&lt;/span&gt;&lt;br /&gt;Hello World&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q.2 The Concatenation Operator&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;There is only one string operator in PHP.&lt;br /&gt;The concatenation operator (.)  is used to put two string values together.&lt;br /&gt;To concatenate two string variables together, use the concatenation operator:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;The output of the code above will be:&lt;/span&gt;&lt;br /&gt;Hello World! What a nice day!&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q.3 The strlen() function&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The strlen() function is used to return the length of a string.&lt;br /&gt;Let's find the length of a string:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;The output of the code above will be:&lt;/span&gt;&lt;br /&gt;12&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q.4 The strpos() function&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The strpos() function is used to search for character within a string.&lt;br /&gt;If a match is found, this function will return the position of the first match. If no match is found, it will return FALSE.&lt;br /&gt;Let's see if we can find the string "world" in our string:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;The output of the code above will be:&lt;/span&gt;&lt;br /&gt;6&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q.5 What is String?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A string is a data type used in programming, such as an integer and floating point unit, but is used to represent text rather than numbers. It is comprised of a set of characters that can also contain spaces and numbers. For example, the word "hamburger" and the phrase "I ate 3 hamburgers" are both strings. Even "12345" could be considered a string, if specified correctly. Typically, programmers must enclose strings in quotation marks for the data to recognized as a string and not a number or variable name.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;For example&lt;/span&gt;, in the comparison:&lt;br /&gt;&lt;br /&gt;if (Option1 == Option2) then ...&lt;br /&gt;&lt;br /&gt;Option1 and Option2 may be variables containing integers, strings, or other data. If the values are the same, the test returns a value of true, otherwise the result is false. In the comparison:&lt;br /&gt;&lt;br /&gt;if ("Option1" == "Option2") then ...&lt;br /&gt;&lt;br /&gt;Option1 and Option2 are being treated as strings. Therefore the test is comparing the words "Option1" and "Option2," which would return false. The length of a string is often determined by using a null character.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646341427015703287-2650461438458141099?l=phpuse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpuse.blogspot.com/feeds/2650461438458141099/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpuse.blogspot.com/2009/12/php-string.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/2650461438458141099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/2650461438458141099'/><link rel='alternate' type='text/html' href='http://phpuse.blogspot.com/2009/12/php-string.html' title='PHP STRING'/><author><name>priyanka</name><uri>http://www.blogger.com/profile/09324732571496665305</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646341427015703287.post-6827988625584490553</id><published>2009-11-09T06:13:00.000-08:00</published><updated>2009-12-08T05:26:40.734-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='POINTER'/><title type='text'></title><content type='html'>&lt;span style="font-weight: bold; color: rgb(0, 51, 0);"&gt;Q.1 &lt;span style="color: rgb(0, 51, 0);"&gt;What is pointer?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 0);"&gt;ANSWER: &lt;/span&gt;A pointer in a programming language is a variable that holds the address of another type. For instance, an "int pointer" is the address of the location in which an integer is stored. Pointers are more often used for dynamically allocated types, and much more often for complex types. A pointer (a 32-bit memory location) to store the address of a 32-bit integer is wasteful, but the address of a hashtable is useful.&lt;br /&gt;&lt;br /&gt;Pointers do not officially (as a native type) show up in high level languages like C# and Java. In the days that C and C++ were popular, pointers were an essential part of programming.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3 style="color: rgb(0, 51, 0);"&gt;Q.2 What is a Function Pointer?&lt;/h3&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;&lt;p&gt;Function Pointers are pointers, i.e. variables, which point to the address of a function. You must keep in mind, that a running program gets a certain space in the main-memory. Both, the executable compiled program code and the used variables, are put inside this memory. Thus a function in the program code is, like e.g. a character field, nothing else than an address. It is only important how you, or better your compiler/processor, interpret the memory a pointer points to.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt; &lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q.3 How do I find out the number of parameters passed into function?&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt; - func_num_args() function returns the number of parameters passed in.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 51, 0);"&gt;Q.4 What’s the output of the ucwords function in this example?&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;    $formatted = ucwords(" PHPUSE IS COLLECTION OF INTERVIEW QUESTIONS");&lt;br /&gt;    print $formatted;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;ucwords&lt;/span&gt;() makes every first letter of every word capital, but it does not lower-case anything else. To avoid this, and get a properly formatted string, it’s worth using &lt;span style="color: rgb(51, 51, 255);"&gt;strtolower&lt;/span&gt;() first.&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646341427015703287-6827988625584490553?l=phpuse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpuse.blogspot.com/feeds/6827988625584490553/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpuse.blogspot.com/2009/11/q.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/6827988625584490553'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/6827988625584490553'/><link rel='alternate' type='text/html' href='http://phpuse.blogspot.com/2009/11/q.html' title=''/><author><name>priyanka</name><uri>http://www.blogger.com/profile/09324732571496665305</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646341427015703287.post-8409667260117069686</id><published>2009-08-31T16:51:00.000-07:00</published><updated>2009-08-31T16:53:46.472-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C'/><title type='text'>C INTERVIEW QUESTIONS WITH ANSWERS</title><content type='html'>&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.1 What is c language?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;The C programming language is a standardized programming language developed in the early 1970s by Ken Thompson and Dennis Ritchie for use on the UNIX operating system. It has since spread to many other operating systems, and is one of the most widely used programming languages. C is prized for its efficiency, and is the most popular programming language for writing system software, though it is also used for writing applications.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.2 What are the different storage classes in C ?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;C has three types of storage: automatic, static and allocated.&lt;br /&gt;&lt;br /&gt;Variable having block scope and without static specifier have automatic storage duration.&lt;br /&gt;&lt;br /&gt;Variables with block scope, and with static specifier have static scope. Global variables (i.e, file scope) with or without the the static specifier also have static scope.&lt;br /&gt;&lt;br /&gt;Memory obtained from calls to malloc(), alloc() or realloc() belongs to allocated storage class.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646341427015703287-8409667260117069686?l=phpuse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpuse.blogspot.com/feeds/8409667260117069686/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpuse.blogspot.com/2009/08/c-interview-questions-with-answers_31.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/8409667260117069686'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/8409667260117069686'/><link rel='alternate' type='text/html' href='http://phpuse.blogspot.com/2009/08/c-interview-questions-with-answers_31.html' title='C INTERVIEW QUESTIONS WITH ANSWERS'/><author><name>priyanka</name><uri>http://www.blogger.com/profile/09324732571496665305</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646341427015703287.post-8548263704073978786</id><published>2009-08-31T16:40:00.000-07:00</published><updated>2009-08-31T16:44:22.759-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C++'/><title type='text'>C++ INTERVIEW QUESTIONS WITH ANSWERS</title><content type='html'>&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.1 What is C++?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;Released in 1985, C++ is an object-oriented programming language created by Bjarne Stroustrup. C++ maintains almost all aspects of the C language, while simplifying memory management and adding several features - including a new datatype known as a class (you will learn more about these later) - to allow object-oriented programming. C++ maintains the features of C which allowed for low-level memory access but also gives the programmer new tools to simplify memory management.&lt;br /&gt;&lt;br /&gt;C++ used for:&lt;br /&gt;&lt;br /&gt;C++ is a powerful general-purpose programming language. It can be used to create small programs or large applications. It can be used to make CGI scripts or console-only DOS programs. C++ allows you to create programs to do almost anything you need to do. The creator of C++, Bjarne Stroustrup, has put together a partial list of applications written in C++.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.2 How do you find out if a linked-list has an end? (i.e. the list is not a cycle)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;You can find out by using 2 pointers. One of them goes 2 nodes each time. The second one goes at 1 nodes each time. If there is a cycle, the one that goes 2 nodes each time will eventually meet the one that goes slower. If that is the case, then you will know the linked-list is a cycle.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.3 What is the difference between realloc() and free()?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;The free subroutine frees a block of memory previously allocated by the malloc subroutine. Undefined results occur if the Pointer parameter is not a valid pointer. If the Pointer parameter is a null value, no action will occur. The realloc subroutine changes the size of the block of memory pointed to by the Pointer parameter to the number of bytes specified by the Size parameter and returns a new pointer to the block. The pointer specified by the Pointer parameter must have been created with the malloc, calloc, or realloc subroutines and not been deallocated with the free or realloc subroutines. Undefined results occur if the Pointer parameter is not a valid pointer.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.4 What is function overloading and operator overloading?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;Function overloading: C++ enables several functions of the same name to be defined, as long as these functions have different sets of parameters (at least as far as their types are concerned). This capability is called function overloading. When an overloaded function is called, the C++ compiler selects the proper function by examining the number, types and order of the arguments in the call. Function overloading is commonly used to create several functions of the same name that perform similar tasks but on different data types.&lt;br /&gt;Operator overloading allows existing C++ operators to be redefined so that they work on objects of user-defined classes. Overloaded operators are syntactic sugar for equivalent function calls. They form a pleasant facade that doesn't add anything fundamental to the language (but they can improve understandability and reduce maintenance costs).&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.5 What is the difference between declaration and definition?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;The declaration tells the compiler that at some later point we plan to present the definition of this declaration.&lt;br /&gt;E.g.: void stars () //function declaration&lt;br /&gt;The definition contains the actual implementation.&lt;br /&gt;E.g.: void stars () // declarator&lt;br /&gt;{&lt;br /&gt;for(int j=10; j &gt; =0; j--) //function body&lt;br /&gt;cout &lt;&lt; *;&lt;br /&gt;cout &lt;&lt; endl; }&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.6 What are the advantages of inheritance?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;It permits code reusability. Reusability saves time in program development. It encourages the reuse of proven and debugged high-quality software, thus reducing problem after a system becomes functional.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646341427015703287-8548263704073978786?l=phpuse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpuse.blogspot.com/feeds/8548263704073978786/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpuse.blogspot.com/2009/08/c-interview-questions-with-answers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/8548263704073978786'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/8548263704073978786'/><link rel='alternate' type='text/html' href='http://phpuse.blogspot.com/2009/08/c-interview-questions-with-answers.html' title='C++ INTERVIEW QUESTIONS WITH ANSWERS'/><author><name>priyanka</name><uri>http://www.blogger.com/profile/09324732571496665305</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646341427015703287.post-7392385627380722811</id><published>2009-08-31T16:30:00.000-07:00</published><updated>2009-08-31T16:36:08.509-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='BLUETOOTH'/><title type='text'>BLUETOOTH INTERVIEW QUESTIOS WITH ANSWERS</title><content type='html'>&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.1 Why is Bluetooth 2.0 better?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;The main features of Bluetooth Core Specification Version 2.0 + EDR are:&lt;br /&gt;• 3 times faster transmission speed (up to 10 times in certain cases)&lt;br /&gt;• Lower power consumption through reduced duty cycle&lt;br /&gt;• Simplification of multi-link scenarios due to more available bandwidth&lt;br /&gt;• Backwards compatible to earlier versions&lt;br /&gt;• Further improved BER (Bit Error Rate) performance&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.2 Name few applications of Bluetooth?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;* Wireless control of and communication between a cell phone and a hands free headset or car kit. This is the most popular use.&lt;br /&gt;* Wireless networking between PCs in a confined space and where little bandwidth is required.&lt;br /&gt;* Wireless communications with PC input devices such as mouses and keyboards and output devices such as printers.&lt;br /&gt;* Transfer of files between devices via OBEX.&lt;br /&gt;* Transfer of contact details, calendar appointments, and reminders between devices via OBEX.&lt;br /&gt;* Replacement of traditional wired serial communications in test equipment, GPS receivers and medical equipment.&lt;br /&gt;* For remote controls where infrared was traditionally used.&lt;br /&gt;* Sending small advertisements from Bluetooth enabled advertising hoardings to other, discoverable, Bluetooth devices.&lt;br /&gt;* Wireless control of a games console, Nintendo’s Wii and Sony’s PlayStation 3 will both use Bluetooth technology for their wireless controllers.&lt;br /&gt;* Sending commands and software to the upcoming LEGO Mindstorms NXT instead of infra red.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.3 How many devices can communicate concurrently?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;A Bluetooth device playing the role of the “master” can communicate with up to 7 devices playing the role of the “slave”. This network of “group of up to 8 devices” (1 master + 7 slaves) is called a piconet. A piconet is an ad-hoc computer network of devices using Bluetooth technology protocols to allow one master device to interconnect with up to seven active slave devices (because a three-bit MAC address is used). Up to 255 further slave devices can be inactive, or parked, which the master device can bring into active status at any time.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.4 What is Pairing?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;Pairs of devices may establish a trusted relationship by learning (by user input) a shared secret known as a “passkey”. A device that wants to communicate only with a trusted device can cryptographically authenticate the identity of the other device. Trusted devices may also encrypt the data that they exchange over the air so that no one can listen in. The encryption can however be turned off and passkeys are stored on the device’s file system and not the Bluetooth chip itself. Since the Bluetooth address is permanent a pairing will be preserved even if the Bluetooth name is changed. Pairs can be deleted at any time by either device. Devices will generally require pairing or will prompt the owner before it allows a remote device to use any or most of its services. Some devices such as Sony Ericsson phones will usually accept OBEX business cards and notes without any pairing or prompts. Certain printers and access points will allow any device to use its services by default much like unsecured Wi-Fi networks.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.5 How secure a Bluetooth device is?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;Bluetooth uses the SAFER+ algorithm for authentication and key generation. The E0 stream cipher is used for encrypting packets. This makes eavesdropping on Bluetooth-enabled devices more difficult.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.6 What is Bluetooth SIG?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;Bluetooth Special Interest Group (SIG)&lt;br /&gt;Bluetooth wireless technology is revolutionizing personal connectivity by providing freedom from wired connections. It is a specification for a small-form factor, low-cost radio solution providing links between mobile computers, mobile phones, other portable handheld devices and automobiles, as well as connectivity to the Internet. The Bluetooth SIG, comprised of leaders in the telecommunications, computing, automotive and consumer electronics industries, is driving development of the technology and bringing it to market. The Bluetooth SIG includes Promoter member companies Agere, Ericsson, IBM, Intel, Microsoft, Motorola, Nokia and Toshiba, and thousands of Associate and Adopter member companies. The Bluetooth SIG, Inc. headquarters are located in Overland Park, Kansas, U.S.A.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646341427015703287-7392385627380722811?l=phpuse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpuse.blogspot.com/feeds/7392385627380722811/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpuse.blogspot.com/2009/08/bluetooth-interview-questios-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/7392385627380722811'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/7392385627380722811'/><link rel='alternate' type='text/html' href='http://phpuse.blogspot.com/2009/08/bluetooth-interview-questios-with.html' title='BLUETOOTH INTERVIEW QUESTIOS WITH ANSWERS'/><author><name>priyanka</name><uri>http://www.blogger.com/profile/09324732571496665305</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646341427015703287.post-3621145893866167564</id><published>2009-08-30T14:27:00.000-07:00</published><updated>2009-08-30T14:50:38.300-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FILE HANDLING FUNCTIONS'/><title type='text'>WHAT IS FILE HANDLING FUNCTIONS</title><content type='html'>&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;WHAT IS FILE HANDLING FUNCTIONS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;PHP file handling functions are used in different conditions in any script development. You can use them to create a simple file upload or image upload or gallery script for storing images and many more. These built in functions gives flexibility in developing complex scripts. We will discuss some of the PHP file handling functions with their detail uses and code samples.&lt;br /&gt;&lt;br /&gt;Reading a file&lt;br /&gt;We can read file in our server or external server by using fread function. We can create a&lt;br /&gt;pointer to the file and read the content by specifying the size of data to be collected.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646341427015703287-3621145893866167564?l=phpuse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpuse.blogspot.com/feeds/3621145893866167564/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpuse.blogspot.com/2009/08/what-is-javascript-form-validation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/3621145893866167564'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/3621145893866167564'/><link rel='alternate' type='text/html' href='http://phpuse.blogspot.com/2009/08/what-is-javascript-form-validation.html' title='WHAT IS FILE HANDLING FUNCTIONS'/><author><name>priyanka</name><uri>http://www.blogger.com/profile/09324732571496665305</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646341427015703287.post-8875932758330168973</id><published>2009-08-30T14:18:00.000-07:00</published><updated>2009-08-30T14:22:22.775-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP STRING FUNCTIONS'/><title type='text'>WHAT IS STRING FUNCTIONS</title><content type='html'>&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;PHP String Functions&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;PHP is equally powerful than any other server side scripting languages in handling strings.We will experiment with some of the string functions of PHP with some examples. There are powerful functions like regular expressions to manage complex string handling requirements.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646341427015703287-8875932758330168973?l=phpuse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpuse.blogspot.com/feeds/8875932758330168973/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpuse.blogspot.com/2009/08/what-is-string-functions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/8875932758330168973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/8875932758330168973'/><link rel='alternate' type='text/html' href='http://phpuse.blogspot.com/2009/08/what-is-string-functions.html' title='WHAT IS STRING FUNCTIONS'/><author><name>priyanka</name><uri>http://www.blogger.com/profile/09324732571496665305</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646341427015703287.post-5898737148878802462</id><published>2009-08-30T14:04:00.000-07:00</published><updated>2009-08-30T14:13:34.181-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP DATE FORMATE'/><title type='text'>WHAT IS DATE FORMATE IN PHP</title><content type='html'>&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Date Format in PHP for date month year and time&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;Characters used for formating string in PHP date format&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;a&lt;/span&gt;        'am' or 'pm'&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;A&lt;/span&gt;       'AM' or 'PM'&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;B   &lt;/span&gt; Internet time&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;d   &lt;/span&gt;    day of the month, 2 digits with leading zeros; i.e. '01' to '31'&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;D   &lt;/span&gt;    day of the week, textual, 3 letters; i.e. 'Fri'&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;F&lt;/span&gt;       month, textual, long; i.e. 'January'&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;g&lt;/span&gt;        hour, 12-hour format without leading zeros; i.e. '1' to '12'&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;G   &lt;/span&gt;    hour, 24-hour format without leading zeros; i.e. '0' to '23'&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;h&lt;/span&gt;       hour, 12-hour format; i.e. '01' to '12'&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;H   &lt;/span&gt;   hour, 24-hour format; i.e. '00' to '23'&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;i    &lt;/span&gt;    minutes; i.e. '00' to '59'&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;I&lt;/span&gt;   (capital i)     '1' if Daylight Savings Time, '0' otherwise.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;j    &lt;/span&gt;    day of the month without leading zeros; i.e. '1' to '31'&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;l&lt;/span&gt;   (lowercase 'L')     day of the week, textual, long; i.e. 'Friday'&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;L  &lt;/span&gt;    boolean for whether it is a leap year; i.e. '0' or '1'&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;m   &lt;/span&gt;    month; i.e. '01' to '12'&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;M   &lt;/span&gt;    month, textual, 3 letters; i.e. 'Jan'&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;n&lt;/span&gt;        month without leading zeros; i.e. '1' to '12'&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;r&lt;/span&gt;    RFC 822 formatted date; i.e. 'Thu, 21 Dec 2000 16:01:07 +0200' (added in PHP 4.0.4)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;s&lt;/span&gt;        seconds; i.e. '00' to '59'&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;S    &lt;/span&gt;   English ordinal suffix, textual, 2 characters; i.e. 'th', 'nd'&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;t   &lt;/span&gt;    number of days in the given month; i.e. '28' to '31'&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;T    &lt;/span&gt;   Timezone setting of this machine; i.e. 'MDT'&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;U   &lt;/span&gt;    seconds since the epoch&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;w    &lt;/span&gt;   day of the week, numeric, i.e. '0' (Sunday) to '6' (Saturday)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Y   &lt;/span&gt;    year, 4 digits; i.e. '1999'&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;y    &lt;/span&gt;    year, 2 digits; i.e. '99'&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;z   &lt;/span&gt; day of the year; i.e. '0' to '365'&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Z   &lt;/span&gt;     timezone offset in seconds (i.e. '-43200' to '43200'). The offset for timezones west of UTC is always negative, and for those east of UTC is always positive.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646341427015703287-5898737148878802462?l=phpuse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpuse.blogspot.com/feeds/5898737148878802462/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpuse.blogspot.com/2009/08/what-is-date-formate-in-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/5898737148878802462'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/5898737148878802462'/><link rel='alternate' type='text/html' href='http://phpuse.blogspot.com/2009/08/what-is-date-formate-in-php.html' title='WHAT IS DATE FORMATE IN PHP'/><author><name>priyanka</name><uri>http://www.blogger.com/profile/09324732571496665305</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646341427015703287.post-8245177370229850055</id><published>2009-08-30T13:59:00.000-07:00</published><updated>2009-08-30T14:03:45.515-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP DATE DIFFERENCE'/><title type='text'>WHAT IS PHP DATE DIFFERENCE</title><content type='html'>&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;What is php date difference&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;If you want to get the difference between to dates or time values, then you first need to get the values in the same format. The best way is to convert both dates into Unix timestamp format. In this case the date and time information is stored as an integer so we can calculate the difference easily. You can get the Unix timestamp in various ways as you can see below:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;Code:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;   1.&lt;br /&gt;      &lt;?php&lt;br /&gt;   2.&lt;br /&gt;      // Get current time&lt;br /&gt;   3.&lt;br /&gt;      $date1 = time();&lt;br /&gt;   4.&lt;br /&gt;      &lt;br /&gt;   5.&lt;br /&gt;      // Get the timestamp of 2006 October 20&lt;br /&gt;   6.&lt;br /&gt;      $date2 = mktime(0,0,0,10,20,2006);&lt;br /&gt;   7.&lt;br /&gt;      ?&gt;&lt;br /&gt;&lt;br /&gt;Now as you have the values getting the difference is quite easy. However the result will be an integer value, but you probably want to get it in days, hours and minutes. To do so we need to convert back our int value into a usable date format. We know that the difference is in seconds so we can get how many full days it is. To get it we use the following code:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;Code:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;   1.&lt;br /&gt;      &lt;?php&lt;br /&gt;   2.&lt;br /&gt;      $dateDiff = $date1 - $date2;&lt;br /&gt;   3.&lt;br /&gt;      $fullDays = floor($dateDiff/(60*60*24));&lt;br /&gt;   4.&lt;br /&gt;      echo "Differernce is $fullDays days";&lt;br /&gt;   5.&lt;br /&gt;      ?&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;We used the floor function as we want to get only the complete days. Besides this the 60*60*24 represents that a day has 24 ours and each hour has 60 minutes and each minute has 60 seconds.As next step we need to get how many hours are still present in the remaining seconds.  So from the original difference we need to  remove the complete days in seconds and  from the remaining value we can calculate the full hours similar to as we calculated the full days. Repeating  these steps for minutes as well at the end we get the difference between the original dates. The complete calculation looks like this:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;Code:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;   1.&lt;br /&gt;      &lt;?php&lt;br /&gt;   2.&lt;br /&gt;      $dateDiff = $date1 - $date2;&lt;br /&gt;   3.&lt;br /&gt;      $fullDays = floor($dateDiff/(60*60*24));&lt;br /&gt;   4.&lt;br /&gt;      $fullHours = floor(($dateDiff-($fullDays*60*60*24))/(60*60));&lt;br /&gt;   5.&lt;br /&gt;      $fullMinutes = floor(($dateDiff-($fullDays*60*60*24)-($fullHours*60*60))/60);&lt;br /&gt;   6.&lt;br /&gt;      echo "Differernce is $fullDays days, $fullHours hours and $fullMinutes minutes.";&lt;br /&gt;   7.&lt;br /&gt;      ?&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646341427015703287-8245177370229850055?l=phpuse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpuse.blogspot.com/feeds/8245177370229850055/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpuse.blogspot.com/2009/08/what-is-php-date-difference.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/8245177370229850055'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/8245177370229850055'/><link rel='alternate' type='text/html' href='http://phpuse.blogspot.com/2009/08/what-is-php-date-difference.html' title='WHAT IS PHP DATE DIFFERENCE'/><author><name>priyanka</name><uri>http://www.blogger.com/profile/09324732571496665305</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646341427015703287.post-8796859196037179271</id><published>2009-08-30T13:18:00.000-07:00</published><updated>2009-08-30T13:24:46.011-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SAP'/><title type='text'>SAP INTERVIEW QUESTIONS WITH ANSWERS</title><content type='html'>&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.1 What is SAP?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;SAP is the name of the company founded in 1972 under the German name (Systems, Applications, and Products in Data Processing) is the leading ERP (Enterprise Resource&lt;br /&gt;Planning) software package.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.2 SAP Basics feature&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;* Configuration of the SAP modules&lt;/span&gt;&lt;br /&gt;o Transaction SPRO - this is the main tree for all the configuration.&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;* Function Key&lt;/span&gt;&lt;br /&gt;o F1 - Help&lt;br /&gt;o F4 - Possible entries or matchcode for the field you are accessing&lt;br /&gt;o F5 - Selection screen&lt;br /&gt;o F7 - Previous screen&lt;br /&gt;o F8 - Next screen&lt;br /&gt;o F9 - Technical info&lt;br /&gt;o CTRL+X - Cut&lt;br /&gt;o CTRL+C - Copy&lt;br /&gt;o CTRL+V - Paste&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;* Navigation&lt;/span&gt;&lt;br /&gt;o /n Skip to the next record if you are processing one batch input session&lt;br /&gt;o /bend Cancel a batch input foreground process&lt;br /&gt;o /nend Close all R/3 sessions and logoff&lt;br /&gt;o /nxxx x Call the transaction xxxx in the same session&lt;br /&gt;o /o Generate a session list&lt;br /&gt;o /oxxx x Call the transaction xxxx in an additional session&lt;br /&gt;o /i Delete the current session&lt;br /&gt;o /h Turn the debug mode on&lt;br /&gt;o /$tab Reset all buffers (for System Administrators)&lt;br /&gt;o /$syn c Synchronize instances buffers (for System Administrators)&lt;br /&gt;&lt;br /&gt;In 4.x, you can have long SAP transaction code up to a maximum of 20 character&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.3 Different types of ERP ?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;SAP, BAAN, JD Edwards, Oracle Financials, Siebel, PeopleSoft. Among all the ERP’s most of the companies implemented or trying to implement SAP because of number of&lt;br /&gt;advantages aver other ERP packages.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.4 What is ERP?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;ERP is a package with the techniques and concepts for the integrated management of business as a whole, for effective use of management resources, to improve the&lt;br /&gt;efficiency of an enterprise. Initially, ERP was targeted for manufacturing industry mainly for planning and managing core business like production and financial&lt;br /&gt;market. As the growth and merits of ERP package ERP software is designed for basic process of a company from manufacturing to small shops with a target of integrating&lt;br /&gt;information across the company.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.5 Why do you usually choose to implement SAP?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;There are number of technical reasons numbers of companies are planning to implement SAP. It’s highly configurable, highly secure data handling, min data redundancy,&lt;br /&gt;&lt;br /&gt;max data consistency, you can capitalize on economics of sales like purchasing, tight integration-cross function.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646341427015703287-8796859196037179271?l=phpuse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpuse.blogspot.com/feeds/8796859196037179271/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpuse.blogspot.com/2009/08/sap-interview-questions-with-answers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/8796859196037179271'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/8796859196037179271'/><link rel='alternate' type='text/html' href='http://phpuse.blogspot.com/2009/08/sap-interview-questions-with-answers.html' title='SAP INTERVIEW QUESTIONS WITH ANSWERS'/><author><name>priyanka</name><uri>http://www.blogger.com/profile/09324732571496665305</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646341427015703287.post-3917836465690178747</id><published>2009-08-29T16:27:00.000-07:00</published><updated>2009-08-29T16:31:32.450-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ARRAY'/><title type='text'>ARRAY INTERVIEW QUESTIONS WITH ANSWERS</title><content type='html'>&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;ARRAY&lt;/span&gt;&lt;br /&gt;array() is a language construct used to represent literal arrays, and not a regular function.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Syntax "index =&gt; values", separated by commas, define index and values. index may be of type string or integer. When index is omitted, an integer index is automatically generated, starting at 0. If index is an integer, next generated index will be the biggest integer index + 1. Note that when two identical index are defined, the last overwrite the first.&lt;br /&gt;&lt;br /&gt;Having a trailing comma after the last defined array entry, while unusual, is a valid syntax.&lt;br /&gt;&lt;br /&gt;The following example demonstrates how to create a two-dimensional array, how to specify keys for associative arrays, and how to skip-and-continue numeric indices in normal arrays.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Example: array() example&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;?php&lt;br /&gt;$fruits = array (&lt;br /&gt;    "fruits"  =&gt; array("a" =&gt; "orange", "b" =&gt; "banana", "c" =&gt; "apple"),&lt;br /&gt;    "numbers" =&gt; array(1, 2, 3, 4, 5, 6),&lt;br /&gt;    "holes"   =&gt; array("first", 5 =&gt; "second", "third")&lt;br /&gt;);&lt;br /&gt;?&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Example . Automatic index with array()&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;?php&lt;br /&gt;$array = array(1, 1, 1, 1,  1, 8 =&gt; 1,  4 =&gt; 1, 19, 3 =&gt; 13);&lt;br /&gt;print_r($array);&lt;br /&gt;?&gt;&lt;br /&gt;The above example will output:&lt;br /&gt;&lt;br /&gt;Array&lt;br /&gt;(&lt;br /&gt;    [0] =&gt; 1&lt;br /&gt;    [1] =&gt; 1&lt;br /&gt;    [2] =&gt; 1&lt;br /&gt;    [3] =&gt; 13&lt;br /&gt;    [4] =&gt; 1&lt;br /&gt;    [8] =&gt; 1&lt;br /&gt;    [9] =&gt; 19&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Note that index '3' is defined twice, and keep its final value of 13. Index 4 is defined after index 8, and next generated index (value 19) is 9, since biggest index was 8.&lt;br /&gt;&lt;br /&gt;This example creates a 1-based array.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Example 1-based index with array()&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;?php&lt;br /&gt;$firstquarter = array(1 =&gt; 'January', 'February', 'March');&lt;br /&gt;print_r($firstquarter);&lt;br /&gt;?&gt;&lt;br /&gt;The above example will output:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Array&lt;br /&gt;(&lt;br /&gt;    [1] =&gt; January&lt;br /&gt;    [2] =&gt; February&lt;br /&gt;    [3] =&gt; March&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;   &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;As in Perl, you can access a value from the array inside double quotes. However, with PHP you'll need to enclose your array between curly braces.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Example . Accessing an array inside double quotes&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;?php&lt;br /&gt;&lt;br /&gt;$foo = array('bar' =&gt; 'baz');&lt;br /&gt;echo "Hello {$foo['bar']}!"; // Hello baz!&lt;br /&gt;&lt;br /&gt;?&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646341427015703287-3917836465690178747?l=phpuse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpuse.blogspot.com/feeds/3917836465690178747/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpuse.blogspot.com/2009/08/array-interview-questions-with-answers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/3917836465690178747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/3917836465690178747'/><link rel='alternate' type='text/html' href='http://phpuse.blogspot.com/2009/08/array-interview-questions-with-answers.html' title='ARRAY INTERVIEW QUESTIONS WITH ANSWERS'/><author><name>priyanka</name><uri>http://www.blogger.com/profile/09324732571496665305</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646341427015703287.post-342994036449197378</id><published>2009-08-29T16:13:00.000-07:00</published><updated>2009-08-29T16:17:30.275-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><title type='text'>SQL INTERVIEW QUESTIONS WITH ANSWERS</title><content type='html'>&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;SQL&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;SQL is an English like language consisting of commands to store, retrieve, maintain &amp;amp; regulate access to your database.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;SQL*Plus&lt;/span&gt;&lt;br /&gt;SQL*Plus is an application that recognizes &amp;amp; executes SQL commands &amp;amp; specialized SQL*Plus commands that can customize reports, provide help &amp;amp; edit facility &amp;amp; maintain system variables.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;NVL&lt;/span&gt;&lt;br /&gt;NVL : Null value function converts a null value to a non-null value for the purpose of evaluating an expression. Numeric Functions accept numeric I/P &amp;amp; return numeric values. They are MOD, SQRT, ROUND, TRUNC &amp;amp; POWER.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Date Functions&lt;/span&gt;&lt;br /&gt;Date Functions are ADD_MONTHS, LAST_DAY, NEXT_DAY, MONTHS_BETWEEN &amp;amp; SYSDATE.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Character Functions&lt;/span&gt;&lt;br /&gt;Character Functions are INITCAP, UPPER, LOWER, SUBSTR &amp;amp; LENGTH. Additional functions are GREATEST &amp;amp; LEAST. Group Functions returns results based upon groups of rows rather than one result per row, use group functions. They are AVG, COUNT, MAX, MIN &amp;amp; SUM.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;TTITLE &amp;amp; BTITLE&lt;/span&gt;&lt;br /&gt;TTITLE &amp;amp; BTITLE are commands to control report headings &amp;amp; footers.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;COLUMN&lt;/span&gt;&lt;br /&gt;COLUMN command define column headings &amp;amp; format data values.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;BREAK&lt;/span&gt;&lt;br /&gt;BREAK command clarify reports by suppressing repeated values, skipping lines &amp;amp; allowing for controlled break points.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;COMPUTE&lt;/span&gt;&lt;br /&gt;command control computations on subsets created by the BREAK command.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;SET&lt;/span&gt;&lt;br /&gt;SET command changes the system variables affecting the report environment.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;SPOOL&lt;/span&gt;&lt;br /&gt;SPOOL command creates a print file of the report.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;JOIN&lt;/span&gt;&lt;br /&gt;JOIN is the form of SELECT command that combines info from two or more tables.&lt;br /&gt;Types of Joins are Simple (Equijoin &amp;amp; Non-Equijoin), Outer &amp;amp; Self join.&lt;br /&gt;Equijoin returns rows from two or more tables joined together based upon a equality condition in the WHERE clause.&lt;br /&gt;Non-Equijoin returns rows from two or more tables based upon a relationship other than the equality condition in the WHERE clause.&lt;br /&gt;Outer Join combines two or more tables returning those rows from one table that have no direct match in the other table.&lt;br /&gt;Self Join joins a table to itself as though it were two separate tables.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Union&lt;/span&gt;&lt;br /&gt;Union is the product of two or more tables.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Intersect&lt;/span&gt;&lt;br /&gt;Intersect is the product of two tables listing only the matching rows.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Minus&lt;/span&gt;&lt;br /&gt;Minus is the product of two tables listing only the non-matching rows.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646341427015703287-342994036449197378?l=phpuse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpuse.blogspot.com/feeds/342994036449197378/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpuse.blogspot.com/2009/08/sql-interview-questions-with-answers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/342994036449197378'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/342994036449197378'/><link rel='alternate' type='text/html' href='http://phpuse.blogspot.com/2009/08/sql-interview-questions-with-answers.html' title='SQL INTERVIEW QUESTIONS WITH ANSWERS'/><author><name>priyanka</name><uri>http://www.blogger.com/profile/09324732571496665305</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646341427015703287.post-3369301399945246405</id><published>2009-08-29T10:42:00.000-07:00</published><updated>2009-08-29T10:49:29.181-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ORACLE'/><title type='text'>ORACLE INTERVIEW QUESTIONS WITH ANSWER</title><content type='html'>&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.1 What are the components of physical database structure of Oracle database?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER&lt;/span&gt;: Oracle database is comprised of three types of files. One or more datafiles, two are more redo log files, and one or more control files.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.2 What are the components of logical database structure of Oracle database?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt; There are tablespaces and database's schema objects.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.3 What is a tablespace?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt; A database is divided into Logical Storage Unit called tablespaces. A tablespace is used to grouped related logical structures together.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.4 What is SYSTEM tablespace and when is it created?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt; Every Oracle database contains a tablespace named SYSTEM, which is automatically created when the database is created. The SYSTEM tablespace always contains the data dictionary tables for the entire database.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.5 Explain the relationship among database, tablespace and data file ?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt; Each databases logically divided into one or more tablespaces one or more data files are explicitly created for each tablespace.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.6 What is schema?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt; A schema is collection of database objects of a user.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.7 What are Schema Objects?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt; Schema objects are the logical structures that directly refer to the database's data. Schema objects include tables, views, sequences, synonyms, indexes, clusters, database triggers, procedures, functions packages and database links.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646341427015703287-3369301399945246405?l=phpuse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpuse.blogspot.com/feeds/3369301399945246405/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpuse.blogspot.com/2009/08/oracle-interview-questions-with-answer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/3369301399945246405'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/3369301399945246405'/><link rel='alternate' type='text/html' href='http://phpuse.blogspot.com/2009/08/oracle-interview-questions-with-answer.html' title='ORACLE INTERVIEW QUESTIONS WITH ANSWER'/><author><name>priyanka</name><uri>http://www.blogger.com/profile/09324732571496665305</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646341427015703287.post-5756665744093904235</id><published>2009-08-29T10:23:00.000-07:00</published><updated>2009-08-29T10:36:28.232-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><title type='text'>CSS INTERVIEW QUESTIONS WITH ANSWER</title><content type='html'>&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.1 What is CSS?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1.&lt;/span&gt; CSS stands for Cascading Style Sheets and is a simple styling language which allows attaching style to HTML elements. Every element type as well as every occurrence of a specific element within that type can be declared an unique style, e.g. margins, positioning, color or size.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2.&lt;/span&gt; CSS is a web standard that describes style for XML/HTML documents.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3.&lt;/span&gt; Cascading Style Sheets (CSS) is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents. This is also where information meets the artistic abilities of a web-designer. CSS helps you spice up your web-page and make it look neat in wide variety of aspects.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.2 What are Cascading Style Sheets?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;A Cascading Style Sheet (CSS) is a list of statements (also known as rules) that can assign various rendering properties to HTML elements. Style rules can be specified for a single element occurrence, multiple elements, an entire document, or even multiple documents at once. It is possible to specify many different rules for an element in different locations using different methods. All these rules are collected and merged (known as a "cascading" of styles) when the document is rendered to form a single style rule for each element.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.3 If background and color should always be set together, why do they exist as separate properties?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;There are several reasons for this. First, style sheets become more legible -- both for humans and machines. The background property is already the most complex property in CSS1 and combining it with color would make it even more complex. Second, color inherits, but background doesn't and this would be a source of confusion.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.4 What is external Style Sheet? How to link?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;External Style Sheet is a template/document/file containing style information which can be linked with any number of HTML documents. This is a very convenient way of formatting the entire site as well as restyling it by editing just one file. The file is linked with HTML documents via the LINK element inside the HEAD element. Files containing style information must have extension .css, e.g. style.css.  &lt;link rel="STYLESHEET" href="style.css" type="text/css"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.5 Is CSS case sensitive?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;Cascading Style Sheets (CSS) is not case sensitive. However, font families, URLs to images, and other direct references with the style sheet may be.&lt;br /&gt;The trick is that if you write a document using an XML declaration and an XHTML doctype, then the CSS class names will be case sensitive for some browsers.&lt;br /&gt;&lt;br /&gt;It is a good idea to avoid naming classes where the only difference is the case, for example:&lt;br /&gt;&lt;br /&gt;div.myclass { ...}&lt;br /&gt;div.myClass { ... }&lt;br /&gt;&lt;br /&gt;If the DOCTYPE or XML declaration is ever removed from your pages, even by mistake, the last instance of the style will be used, regardless of case.&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646341427015703287-5756665744093904235?l=phpuse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpuse.blogspot.com/feeds/5756665744093904235/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpuse.blogspot.com/2009/08/css-interview-questions-with-answer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/5756665744093904235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/5756665744093904235'/><link rel='alternate' type='text/html' href='http://phpuse.blogspot.com/2009/08/css-interview-questions-with-answer.html' title='CSS INTERVIEW QUESTIONS WITH ANSWER'/><author><name>priyanka</name><uri>http://www.blogger.com/profile/09324732571496665305</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646341427015703287.post-5764626665387703802</id><published>2009-08-29T08:07:00.000-07:00</published><updated>2009-08-29T08:19:07.959-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>HTML INTERVIEW QUESTIONS WITH ANSWER</title><content type='html'>&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.1 What is HTML?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER: &lt;/span&gt;HTML, or HyperText Markup Language, is a Universal language which allows an individual using special code to create web pages to be viewed on the Internet.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;HTML ( H yper T ext M arkup L anguage) is the language used to write Web pages. You are looking at a Web page right now.&lt;br /&gt;You can view HTML pages in two ways:&lt;br /&gt;* One view is their appearance on a Web browser, just like this page -- colors, different text sizes, graphics.&lt;br /&gt;* The other view is called "HTML Code" -- this is the code that tells the browser what to do.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.2 What is a tag?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;In HTML, a tag tells the browser what to do. When you write an HTML page, you enter tags for many reasons -- to change the appearance of text, to show a graphic, or to make a link to another page.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.3 How do I create frames? What is a frameset?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;Frames allow an author to divide a browser window into multiple (rectangular) regions. Multiple documents can be displayed in a single window, each within its own frame. Graphical browsers allow these frames to be scrolled independently of each other, and links can update the document displayed in one frame without affecting the others.&lt;br /&gt;You can't just "add frames" to an existing document. Rather, you must create a frameset document that defines a particular combination of frames, and then display your content documents inside those frames. The frameset document should also include alternative non-framed content in a NOFRAMES element.&lt;br /&gt;The HTML 4 frames model has significant design flaws that cause usability problems for web users. Frames should be used only with great care.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.4 What is a DOCTYPE? Which one do I use?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt; According to HTML standards, each HTML document begins with a DOCTYPE declaration that specifies which version of HTML the document uses. Originally, the DOCTYPE declaration was used only by SGML-based tools like HTML validators, which needed to determine which version of HTML a document used (or claimed to use).&lt;br /&gt;Today, many browsers use the document's DOCTYPE declaration to determine whether to use a stricter, more standards-oriented layout mode, or to use a "quirks" layout mode that attempts to emulate older, buggy browsers.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646341427015703287-5764626665387703802?l=phpuse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpuse.blogspot.com/feeds/5764626665387703802/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpuse.blogspot.com/2009/08/html-interview-questions-with-answer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/5764626665387703802'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/5764626665387703802'/><link rel='alternate' type='text/html' href='http://phpuse.blogspot.com/2009/08/html-interview-questions-with-answer.html' title='HTML INTERVIEW QUESTIONS WITH ANSWER'/><author><name>priyanka</name><uri>http://www.blogger.com/profile/09324732571496665305</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646341427015703287.post-63896646448963745</id><published>2009-08-29T07:33:00.000-07:00</published><updated>2009-08-29T07:39:01.648-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='AJAX'/><title type='text'>AJAX INTERVIEW QUESTIONS WITH ANSWER</title><content type='html'>&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.1 What's AJAX ?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;AJAX (Asynchronous JavaScript and XML) is a newly coined term for two powerful browser&lt;br /&gt;&lt;br /&gt;features that have been around for years, but were overlooked by many web developers until&lt;br /&gt;&lt;br /&gt;recently when applications such as Gmail, Google Suggest, and Google Maps hit the streets.&lt;br /&gt;&lt;br /&gt;Asynchronous JavaScript and XML, or Ajax (pronounced "Aye-Jacks"), is a web development&lt;br /&gt;&lt;br /&gt;technique for creating interactive web applications using a combination of  XHTML (or HTML)&lt;br /&gt;&lt;br /&gt;and CSS for marking up and styling information. (XML is commonly used, although any format&lt;br /&gt;&lt;br /&gt;will work, including preformatted HTML, plain text, JSON and even EBML).&lt;br /&gt;The Document Object Model manipulated through JavaScript to dynamically display and interact&lt;br /&gt;&lt;br /&gt;with the information presented&lt;br /&gt;The XMLHttpRequest object to exchange data asynchronously with the web server. In some Ajax&lt;br /&gt;&lt;br /&gt;frameworks and in some situations, an IFrame object is used instead of the XMLHttpRequest&lt;br /&gt;&lt;br /&gt;object to exchange data with the web server.&lt;br /&gt;Like DHTML, LAMP, or SPA, Ajax is not a technology in itself, but a term that refers to the&lt;br /&gt;&lt;br /&gt;use of a group of technologies together. In fact, derivative/composite technologies based&lt;br /&gt;&lt;br /&gt;substantially upon Ajax, such as AFLAX, are already appearing.&lt;br /&gt;Ajax applications are mostly executed on the user's computer; they can perform a number of&lt;br /&gt;&lt;br /&gt;tasks without their performance being limited by the network. This permits the development&lt;br /&gt;&lt;br /&gt;of interactive applications, in particular reactive and rich graphic user interfaces.&lt;br /&gt;Ajax applications target a well-documented platform, implemented by all major browsers on&lt;br /&gt;&lt;br /&gt;most existing platforms. While it is uncertain that this compatibility will resist the&lt;br /&gt;&lt;br /&gt;advent of the next generations of browsers (in particular, Firefox), at the moment, Ajax&lt;br /&gt;&lt;br /&gt;applications are effectively cross-platform.&lt;br /&gt;While the Ajax platform is more restricted than the Java platform, current Ajax applications&lt;br /&gt;&lt;br /&gt;effectively fill part of the one-time niche of Java applets: extending the browser with&lt;br /&gt;&lt;br /&gt;portable, lightweight mini-applications.&lt;br /&gt;&lt;br /&gt;Ajax isn’t a technology. It’s really several technologies, each flourishing in its own&lt;br /&gt;&lt;br /&gt;right, coming together in powerful new ways. Ajax incorporates:&lt;br /&gt;* standards-based presentation using XHTML and CSS;&lt;br /&gt;* dynamic display and interaction using the Document Object Model;&lt;br /&gt;* data interchange and manipulation using XML and XSLT; * asynchronous data retrieval using&lt;br /&gt;&lt;br /&gt;XMLHttpRequest;&lt;br /&gt;* and JavaScript binding everything together.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.2 Who’s Using Ajax ?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;Google is making a huge investment in developing the Ajax approach. All of the major&lt;br /&gt;&lt;br /&gt;products Google has introduced over the last year — Orkut, Gmail, the latest beta version of&lt;br /&gt;&lt;br /&gt;Google Groups, Google Suggest, and Google Maps — are Ajax applications. (For more on the&lt;br /&gt;&lt;br /&gt;technical nuts and bolts of these Ajax implementations, check out these excellent analyses&lt;br /&gt;&lt;br /&gt;of Gmail, Google Suggest, and Google Maps.) Others are following suit: many of the features&lt;br /&gt;&lt;br /&gt;that people love in Flickr depend on Ajax, and Amazon’s A9.com search engine applies similar&lt;br /&gt;&lt;br /&gt;techniques.&lt;br /&gt;These projects demonstrate that Ajax is not only technically sound, but also practical for&lt;br /&gt;&lt;br /&gt;real-world applications. This isn’t another technology that only works in a laboratory. And&lt;br /&gt;&lt;br /&gt;Ajax applications can be any size, from the very simple, single-function Google Suggest to&lt;br /&gt;&lt;br /&gt;the very complex and sophisticated Google Maps.&lt;br /&gt;&lt;br /&gt;At Adaptive Path, we’ve been doing our own work with Ajax over the last several months, and&lt;br /&gt;&lt;br /&gt;we’re realizing we’ve only scratched the surface of the rich interaction and responsiveness&lt;br /&gt;&lt;br /&gt;that Ajax applications can provide. Ajax is an important development for Web applications,&lt;br /&gt;&lt;br /&gt;and its importance is only going to grow. And because there are so many developers out there&lt;br /&gt;&lt;br /&gt;who already know how to use these technologies, we expect to see many more organizations&lt;br /&gt;&lt;br /&gt;following Google’s lead in reaping the competitive advantage Ajax provides.&lt;br /&gt;Moving Forward&lt;br /&gt;&lt;br /&gt;The biggest challenges in creating Ajax applications are not technical. The core Ajax&lt;br /&gt;&lt;br /&gt;technologies are mature, stable, and well understood. Instead, the challenges are for the&lt;br /&gt;&lt;br /&gt;designers of these applications: to forget what we think we know about the limitations of&lt;br /&gt;&lt;br /&gt;the Web, and begin to imagine a wider, richer range of possibilities&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.3 Should I consider AJAX?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER&lt;/span&gt;:AJAX definitely has the buzz right now, but it might not be the right thing for you. AJAX is&lt;br /&gt;&lt;br /&gt;limited to the latest browsers, exposes browser compatibility issues, and requires new&lt;br /&gt;&lt;br /&gt;skill-sets for many. There is a good blog entry by Alex Bosworth on AJAX Mistakes which is a&lt;br /&gt;&lt;br /&gt;good read before you jump full force into AJAX.&lt;br /&gt;On the other hand you can achieve highly interactive rich web applications that are&lt;br /&gt;&lt;br /&gt;responsive and appear really fast. While it is debatable as to whether an AJAX based&lt;br /&gt;&lt;br /&gt;application is really faster, the user feels a sense of immediacy because they are given&lt;br /&gt;&lt;br /&gt;active feedback while data is exchanged in the background. If you are an early adopter and&lt;br /&gt;&lt;br /&gt;can handle the browser compatibility issues, and are willing to learn some more skills, then&lt;br /&gt;&lt;br /&gt;AJAX is for you. It may be prudent to start off AJAX-ifying a small portion or component of&lt;br /&gt;&lt;br /&gt;your application first. We all love technology, but just remember the purpose of AJAX is to&lt;br /&gt;&lt;br /&gt;enhance your user's experience and not hinder it.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.4 Does AJAX work with Java?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;Absolutely. Java is a great fit for AJAX! You can use Java Enterprise Edition servers to&lt;br /&gt;&lt;br /&gt;generate AJAX client pages and to serve incoming AJAX requests, manage server side state for&lt;br /&gt;&lt;br /&gt;AJAX clients, and connect AJAX clients to your enterprise resources. The JavaServer Faces&lt;br /&gt;&lt;br /&gt;component model is a great fit for defining and using AJAX components.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646341427015703287-63896646448963745?l=phpuse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpuse.blogspot.com/feeds/63896646448963745/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpuse.blogspot.com/2009/08/ajax-interview-questions-with-answer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/63896646448963745'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/63896646448963745'/><link rel='alternate' type='text/html' href='http://phpuse.blogspot.com/2009/08/ajax-interview-questions-with-answer.html' title='AJAX INTERVIEW QUESTIONS WITH ANSWER'/><author><name>priyanka</name><uri>http://www.blogger.com/profile/09324732571496665305</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646341427015703287.post-2338945757421527788</id><published>2009-08-28T12:37:00.000-07:00</published><updated>2009-12-18T00:10:16.804-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JAVA SCRIPT'/><title type='text'>JAVASCRIPT INTERVIEW QUESTIONS WITH ANSWERS</title><content type='html'>&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.1 What is JavaScript?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt; JavaScript is a general-purpose programming language designed to let programmers of all skill levels control the behavior of software objects. The language is used&lt;br /&gt;&lt;br /&gt;most widely today in Web browsers whose software objects tend to represent a variety of HTML elements in a document and the document itself. But the language can&lt;br /&gt;&lt;br /&gt;be--and is--used with other kinds of objects in other environments. For example, Adobe Acrobat Forms uses JavaScript as its underlying scripting language to glue&lt;br /&gt;&lt;br /&gt;together objects that are unique to the forms generated by Adobe Acrobat. Therefore, it is important to distinguish JavaScript, the language, from the objects it can&lt;br /&gt;&lt;br /&gt;communicate with in any particular environment. When used for Web documents, the scripts go directly inside the HTML documents and are downloaded to the browser with&lt;br /&gt;&lt;br /&gt;the rest of the HTML tags and content.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt; JavaScript is a platform-independent,event-driven, interpreted client-side scripting and programming language developed by Netscape Communications Corp. and Sun&lt;br /&gt;&lt;br /&gt;Microsystems.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.2 How is JavaScript different from Java?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;JavaScript was developed by Brendan Eich of Netscape; Java was developed at Sun Microsystems. While the two languages share some common syntax, they were developed&lt;br /&gt;&lt;br /&gt;independently of each other and for different audiences. Java is a full-fledged programming language tailored for network computing; it includes hundreds of its own&lt;br /&gt;&lt;br /&gt;objects, including objects for creating user interfaces that appear in Java applets (in Web browsers) or standalone Java applications. In contrast, JavaScript relies&lt;br /&gt;&lt;br /&gt;on whatever environment it's operating in for the user interface, such as a Web document's form elements.&lt;br /&gt;JavaScript was initially called LiveScript at Netscape while it was under development. A licensing deal between Netscape and Sun at the last minute let Netscape plug&lt;br /&gt;&lt;br /&gt;the "Java" name into the name of its scripting language. Programmers use entirely different tools for Java and JavaScript. It is also not uncommon for a programmer of&lt;br /&gt;&lt;br /&gt;one language to be ignorant of the other. The two languages don't rely on each other and are intended for different purposes. In some ways, the "Java" name on&lt;br /&gt;&lt;br /&gt;JavaScript has confused the world's understanding of the differences between the two. On the other hand, JavaScript is much easier to learn than Java and can offer a&lt;br /&gt;&lt;br /&gt;gentle introduction for newcomers who want to graduate to Java and the kinds of applications you can develop with it.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.3 What’s relationship between JavaScript and ECMAScript?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt; ECMAScript is yet another name for JavaScript (other names include LiveScript). The current JavaScript that you see supported in browsers is ECMAScript revision 3.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.4 How do you submit a form using Javascript?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER: &lt;/span&gt;Use document.forms[0].submit();&lt;br /&gt;(0 refers to the index of the form – if you have more than one form in a page, then the first one has the index 0, second has index 1 and so on).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646341427015703287-2338945757421527788?l=phpuse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpuse.blogspot.com/feeds/2338945757421527788/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpuse.blogspot.com/2009/08/javascript-interview-questions-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/2338945757421527788'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/2338945757421527788'/><link rel='alternate' type='text/html' href='http://phpuse.blogspot.com/2009/08/javascript-interview-questions-with.html' title='JAVASCRIPT INTERVIEW QUESTIONS WITH ANSWERS'/><author><name>priyanka</name><uri>http://www.blogger.com/profile/09324732571496665305</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646341427015703287.post-1463231814079887055</id><published>2009-08-28T12:13:00.000-07:00</published><updated>2009-08-28T12:22:50.171-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP MYSQL'/><title type='text'>DATABASE CONNECTION WITH PHP</title><content type='html'>Opening a connection to MySQL database from PHP is easy. Just use the mysql_connect() function like this&lt;br /&gt;&lt;br /&gt;$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die                      ('Error connecting to mysql');&lt;br /&gt;&lt;br /&gt;$dbname = 'petstore';&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;mysql_select_db($dbname);&lt;/span&gt;&lt;br /&gt;?&gt;&lt;br /&gt;&lt;br /&gt;$dbhost is the name of MySQL server. When your webserver is on the same machine with the MySQL server you can use localhost or 127.0.0.1 as the value of $dbhost. The&lt;br /&gt;&lt;br /&gt;$dbuser and $dbpass are valid MySQL user name and password. For adding a user to MySQL visit this page : MySQL Tutorial&lt;br /&gt;&lt;br /&gt;Don't forget to select a database using mysql_select_db() after connecting to mysql. If no database selected your query to select or update a table will not work.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Sometimes a web host will require you to specify the MySQL server name and port number. For example if the MySQL server name is db.php-mysql-tutorial.com and the port&lt;br /&gt;&lt;br /&gt;number is 3306 (the default port number for MySQL) then you you can modify the above code to :&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$dbhost = 'db.php-mysql-tutorial.com:3306';&lt;br /&gt;$dbuser = 'root';&lt;br /&gt;$dbpass = 'password';&lt;br /&gt;&lt;br /&gt;$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die                      ('Error connecting to mysql');&lt;br /&gt;&lt;br /&gt;$dbname = 'petstore';&lt;br /&gt;mysql_select_db($dbname);&lt;br /&gt;?&gt;&lt;br /&gt;&lt;br /&gt;It's a common practice to place the routine of opening a database connection in a separate file. Then everytime you want to open a connection just include the file.&lt;br /&gt;&lt;br /&gt;Usually the host, user, password and database name are also separated in a configuration file.&lt;br /&gt;&lt;br /&gt;An example of config.php that stores the connection configuration and opendb.php that opens the connection are :&lt;br /&gt;&lt;br /&gt;Source code : config.phps , opendb.phps&lt;br /&gt;&lt;br /&gt;// This is an example of config.php&lt;br /&gt;$dbhost = 'localhost';&lt;br /&gt;$dbuser = 'root';&lt;br /&gt;$dbpass = 'password';&lt;br /&gt;$dbname = 'phpcake';&lt;br /&gt;?&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;// This is an example opendb.php&lt;br /&gt;$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die                      ('error connecting to mysql');&lt;br /&gt;mysql_select_db($dbname);&lt;br /&gt;?&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646341427015703287-1463231814079887055?l=phpuse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpuse.blogspot.com/feeds/1463231814079887055/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpuse.blogspot.com/2009/08/database-connection-with-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/1463231814079887055'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/1463231814079887055'/><link rel='alternate' type='text/html' href='http://phpuse.blogspot.com/2009/08/database-connection-with-php.html' title='DATABASE CONNECTION WITH PHP'/><author><name>priyanka</name><uri>http://www.blogger.com/profile/09324732571496665305</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646341427015703287.post-3070537831348124154</id><published>2009-08-25T04:51:00.000-07:00</published><updated>2009-08-29T09:10:56.903-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP JOOMLA'/><title type='text'>JOOMLA INTERVIEW QUESTIONS</title><content type='html'>&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q.1 What is joomla in php?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER: &lt;/span&gt;Joomla is an open source content management system.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Q.2 What is zend engine?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt; Zend engine is used internally by php as a compiler and runtime engine...&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.3 Joomla! Features: &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;  &lt;span style="font-weight: bold;"&gt;ANSWER  *&lt;/span&gt;&lt;br /&gt;      Completely database driven site engines&lt;br /&gt;    *&lt;br /&gt;      News, products or services sections fully editable and manageable&lt;br /&gt;    *&lt;br /&gt;      Topics sections can be added to by contributing authors&lt;br /&gt;    *&lt;br /&gt;      Fully customizable layouts including left, center and right menu boxes&lt;br /&gt;    *&lt;br /&gt;      Browser upload of images to your own library for use anywhere in the site&lt;br /&gt;    *&lt;br /&gt;      Dynamic Forum/Poll/Voting booth for on-the-spot results&lt;br /&gt;    *&lt;br /&gt;      Runs on Linux, FreeBSD, MacOSX server, Solaris and AIX&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.4 What are some real world examples of what Joomla! can do?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER:&lt;/span&gt;&lt;br /&gt;Joomla is used all over the world to power Web sites of all shapes and sizes. &lt;span style="font-weight: bold;"&gt;For example:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;    * Corporate Web sites or portals&lt;br /&gt;    * Corporate intranets and extranets&lt;br /&gt;    * Online magazines, newspapers, and publications&lt;br /&gt;    * E-commerce and online reservations&lt;br /&gt;    * Government applications&lt;br /&gt;    * Small business Web sites&lt;br /&gt;    * Non-profit and organizational Web sites&lt;br /&gt;    * Community-based portals&lt;br /&gt;    * School and church Web sites&lt;br /&gt;    * Personal or family homepages&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646341427015703287-3070537831348124154?l=phpuse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpuse.blogspot.com/feeds/3070537831348124154/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpuse.blogspot.com/2009/08/joomla-interview-questions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/3070537831348124154'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/3070537831348124154'/><link rel='alternate' type='text/html' href='http://phpuse.blogspot.com/2009/08/joomla-interview-questions.html' title='JOOMLA INTERVIEW QUESTIONS'/><author><name>priyanka</name><uri>http://www.blogger.com/profile/09324732571496665305</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646341427015703287.post-3274612144131675808</id><published>2009-08-24T13:53:00.000-07:00</published><updated>2009-08-25T05:08:31.349-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP COOKIES'/><title type='text'>COOKIES QUESTION OF PHP</title><content type='html'>&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.1 How to set cookies?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt; setcookie(’variable’,'value’,'time’)&lt;br /&gt;;&lt;br /&gt;variable – name of the cookie variable&lt;br /&gt;value – value of the cookie variable&lt;br /&gt;time – expiry time&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Example:&lt;/span&gt; setcookie(’Test’,$i,time()+3600);&lt;br /&gt;&lt;br /&gt;Test – cookie variable name&lt;br /&gt;$i – value of the variable ‘Test’&lt;br /&gt;time()+3600 – denotes that the cookie will expire after an one hour&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.2 How to reset/destroy a cookie&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt; Reset a cookie by specifying expire time in the past:&lt;br /&gt;Example: setcookie(’Test’,$i,time()-3600); // already expired time&lt;br /&gt;&lt;br /&gt;Reset a cookie by specifying its name only&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Example:&lt;/span&gt; setcookie(’Test’);&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.3How can we destroy the cookie?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER: &lt;/span&gt;Set the cookie with a past expiration time.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.4 What Is a Persistent Cookie?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt; A persistent cookie is a cookie which is stored in a cookie file permanently on the browser’s computer. By default, cookies&lt;br /&gt;&lt;br /&gt;are created as temporary cookies which stored only in the browser’s memory. When the browser is closed, temporary cookies&lt;br /&gt;&lt;br /&gt;will be erased. You should decide when to use temporary cookies and when to use persistent cookies based on their&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;differences:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;* Temporary cookies can not be used for tracking long-term information.&lt;br /&gt;* Persistent cookies can be used for tracking long-term information.&lt;br /&gt;* Temporary cookies are safer because no programs other than the browser can access them.&lt;br /&gt;*&lt;br /&gt;* Persistent cookies are less secure because users can open cookie files see the cookie values.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646341427015703287-3274612144131675808?l=phpuse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpuse.blogspot.com/feeds/3274612144131675808/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpuse.blogspot.com/2009/08/cookies-question-oh-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/3274612144131675808'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/3274612144131675808'/><link rel='alternate' type='text/html' href='http://phpuse.blogspot.com/2009/08/cookies-question-oh-php.html' title='COOKIES QUESTION OF PHP'/><author><name>priyanka</name><uri>http://www.blogger.com/profile/09324732571496665305</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646341427015703287.post-1736944739738273075</id><published>2009-08-24T13:39:00.000-07:00</published><updated>2009-08-25T04:48:28.539-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP SESSIONS'/><title type='text'>SESSIONS QUESTIONS OF PHP</title><content type='html'>&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;Q.1 How does Database handle Sessions?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt; As you should be aware the HTTP protocol, as used for serving web pages, is completely stateless. This means that after the server has received a request, processed it and sent a response, the process which dealt with that request dies. Anything that the process had in its memory therefore dies with it, so when a subsequent request is received from the same client it is unable to refer to its memory about anything that happened previously. Fortunately PHP provides a standard method of maintaining memory (state) between ....!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.2How many ways can we get the value of current session id?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER&lt;/span&gt;: session_id() returns the session id for the current session.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.3 Definition of login session?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt; A Login Session describes the connection established by a user with a Login, until either the user or the system or service to which he connected terminates the connection.&lt;br /&gt;&lt;br /&gt;Normally, a user must only provide Credentials for Authentication at the start of a Login Session. He is then authorized to use some or all of the services offered by the Host System to which he connected.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.4 What is session in php?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER: &lt;/span&gt;A php session is no different from a normal session.&lt;br /&gt;It can be used to store information on the sever for future use......&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646341427015703287-1736944739738273075?l=phpuse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpuse.blogspot.com/feeds/1736944739738273075/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpuse.blogspot.com/2009/08/sessions-questions-of-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/1736944739738273075'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/1736944739738273075'/><link rel='alternate' type='text/html' href='http://phpuse.blogspot.com/2009/08/sessions-questions-of-php.html' title='SESSIONS QUESTIONS OF PHP'/><author><name>priyanka</name><uri>http://www.blogger.com/profile/09324732571496665305</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646341427015703287.post-201205605566040603</id><published>2009-08-23T13:55:00.000-07:00</published><updated>2009-08-25T05:13:07.260-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP QUESTIONS'/><title type='text'>PHP QUESTIONS WITH ANSWER</title><content type='html'>&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;&lt;br /&gt;Q.1 How can we repair a MySQL table?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER: &lt;/span&gt;The syntex for repairing a mysql table is:&lt;br /&gt;&lt;br /&gt;REPAIR TABLE tablename&lt;br /&gt;REPAIR TABLE tablename QUICK&lt;br /&gt;REPAIR TABLE tablename EXTENDED&lt;br /&gt;&lt;br /&gt;This command will repair the table specified.&lt;br /&gt;If QUICK is given, MySQL will do a repair of only the index tree.&lt;br /&gt;If EXTENDED is given, it will create index row by row.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.2 What is the difference between $message and $$message?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER 1:&lt;/span&gt; $message is a simple variable whereas $message is a reference variable. Example:&lt;br /&gt;$user = ‘bob’&lt;br /&gt;&lt;br /&gt;is equivalent to&lt;br /&gt;&lt;br /&gt;$holder = ‘user’;&lt;br /&gt;$holder = ‘bob’;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;ANSWER2:&lt;/span&gt;&lt;br /&gt;They are both variables. But $message is a variable with a fixed name. $message is a variable who’s name is stored in&lt;br /&gt;&lt;br /&gt;$message. For example, if $message contains “var”, $message is the same as $var.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.3 What’s the difference between md5(), crc32() and sha1() crypto on PHP?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;The major difference is the length of the hash generated. CRC32 is, evidently, 32 bits, while sha1() returns a 128 bit value, and md5() returns a 160 bit value. This&lt;br /&gt;&lt;br /&gt;is important when avoiding collisions.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.4 How can we find the number of rows in a result set using PHP?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;Here is how can you find the number of rows in a result set in PHP:&lt;br /&gt;&lt;br /&gt;$result = mysql_query($any_valid_sql, $database_link);&lt;br /&gt;$num_rows = mysql_num_rows($result);&lt;br /&gt;echo “$num_rows rows found”;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;Q.5 How many ways we can we find the current date using MySQL?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ANSWER:&lt;/span&gt;SELECT CURDATE();&lt;br /&gt;SELECT CURRENT_DATE();&lt;br /&gt;SELECT CURTIME();&lt;br /&gt;SELECT CURRENT_TIME();&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646341427015703287-201205605566040603?l=phpuse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpuse.blogspot.com/feeds/201205605566040603/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpuse.blogspot.com/2009/08/php-questions-with-answer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/201205605566040603'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646341427015703287/posts/default/201205605566040603'/><link rel='alternate' type='text/html' href='http://phpuse.blogspot.com/2009/08/php-questions-with-answer.html' title='PHP QUESTIONS WITH ANSWER'/><author><name>priyanka</name><uri>http://www.blogger.com/profile/09324732571496665305</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
