Shiksha360 a unit of Glocal Technologies Pvt.Ltd. invites, IT Tutorials for MCA/B.E/B.Tech/PGDCA/BCA students IT Tutorials PHP SEO MySQL Dotnet CSS Database HTML5 as part of their course curriculum.
Our IT Tutorial and IT training feature hands-on tasks and real-world scenarios-in few days, you’ll be more productive and embracing new technology standards. The goal of Shiksha360 (Glocal Technologies Pvt. Ltd.) IT Tutorial and IT Training program is to provide the world with skilled human resources who are competent to practice and provide solutions in an ever-changing Technology world.
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Php Interview Objective Question Answer
1. PHP Interview Question Answer
http://www.Interview.shiksha360.com
•Opportunity to Work on Real Time Project
•Online Interview Question-Answer
•Technical, HR Interview tips
•Online Skill Test
•JOB Update
JoinShiksha360Training cum Placement Program
Call Now: 0522-6051257Lucknow& 0120-6401257Noida
Shiksha360. a unit of Glocal Technologies Pvt. Ltd.
/shiksha360
/+shiksha360
2. http://interview.shiksha360.com
A) Personal Home Pages B) Private Home Page
C) Personal Hypertext Processor D) Hypertext Pre-processor
Ans: D) Hypertext Pre-processor
Shiksha360.com
PHP Interview Question Answer
Ques1:What does PHP stand for?
Ques2 :Which one of the following property scopes is not supported by PHP?
A) friendly B) final C) public D) static
Ans: A) friendly
3. http://interview.shiksha360.com
A) "Hello World"; B) echo "Hello World";
C) Document.Write("Hello World"); D) <script>"Hello World"</script>
Ans: B) echo”HelloWorld”;
Shiksha360.com
Interview Question Answer
Ques3:How do you write "Hello World" in PHP?
Ques4:All variables in PHP start with which symbol?
A) $B) !C) _D) None
Ans: A) $
4. http://interview.shiksha360.com
a) </php> b) New line
c) ; d) .
Ans: C) ;
Shiksha360.com
PHP Interview Question Answer
Ques5:What is the correct way to end a PHP statement?
Ques6 :In PHP you can use both single quotes ( ' ' ) and double quotes ( " " ) for strings:
A) True B) False
Ans: A) True
5. http://interview.shiksha360.com
A) createmyFunction() B) new functionmyFunction()
C) functionmyFunction() D) None of these
Ans: C) functionmyFunction()
Shiksha360.com
PHP Interview Question Answer
Ques7:What is the correct way to create a function in PHP?
Ques8:Include files must have the file extension ".inc"
A) True B) False
Ans: A) True
6. http://interview.shiksha360.com
A) fopen("time.txt","r"); B) open("time.txt");
C) fopen("time.txt","r+"); D) open("time.txt","read");
Ans: A) fopen("time.txt","r");
Shiksha360.com
PHP Interview Question Answer
Ques9:What is the correct way to open the file "time.txt" as readable?
Ques10 :PHP allows you to send emails directly from a script
A) True B) False
Ans: A) True
7. http://interview.shiksha360.com
A) dbopen("localhost"); B) mysql_open("localhost");
C) mysql_connect("localhost"); D) connect_mysql("localhost");
Ans: C) mysql_connect("localhost");
Shiksha360.com
PHP Interview Question Answer
Ques11:What is the correct way to connect to a MySQL database?
Ques12 :PHP can be run on Microsoft Windows IIS(Internet Information Server):
A) True B) False
Ans: A) True
8. http://interview.shiksha360.com
A) $my-VarB) $myVar
C) $my_VarD) None of these
Ans: A) $my-Var
Shiksha360.com
PHP Interview Question Answer
Ques13:Which one of these variables has an illegal name?
A) Server, Browser B) Server, Client
C) Server, Server D) None of these
Ans: A) Server, Browser
Ques14:PHP code is executed on the __, and the plain HTML result is sent on to the__
9. http://interview.shiksha360.com
a) strlength() b) str()
c) len() d) strlen()
Ans: D) strlen()
Shiksha360.com
PHP Interview Question Answer
Ques15:_______ function is used to return the length of string.
Ques16:The ____ function is used to set a cookie.
a) getcookie() b) fetchcookie()
c) setcookie() d) setcokie()
Ans: c) setcookie()
10. http://interview.shiksha360.com
a) No, because PHP is server-side, and JavaScript is client-side.
b) No, because PHP is a loosely typed language.
c) Yes, because JavaScript executes before PHP.
d) Yes, because PHP can generate valid JavaScript
Ans: D) Yes, because PHP can generate valid JavaScript
Shiksha360.com
PHP Interview Question Answer
Ques17:Is it possible to pass data from PHP to JavaScript?
Ques18:Which types of form elements can be excluded from the HTTP request?
a) text, radio, and check box b) text, submit, and hidden
c) submit and hiddend) radio and check box
Ans: d) radio and check box
11. http://interview.shiksha360.com
a) PHP 4 b) PHP 5
c) PHP 6 d) PHP 5.3
Ans: b) PHP 5
Shiksha360.com
PHP Interview Question Answer
Ques19:Which version of PHP introduced the instanceofkeyword?
Ques20:Which one of the following keyword is used inherit our subclass into a superclass?
a) extends b) implements
c) inherit d) include
Ans: A) extends