php-programming-question-bank-paper-one

PHP Programming Question Bank Paper one

avatar
EknowledgePoint

Increase Your Knowledge with us


  • Nov 15, 2022
  • 5 min read
  • 266
  • 2344 Views

 a) What these tags specify in PHP : <?php and ?>
 b) Can we run PHP from HTML file? If yes, how?
 c) Why PHP is known as scripting language?
 d) Write a program in PHP to calculate Square Root of a number?
 e) How can we create links in PHP pages?
 f) What is the function of “foreach” construct in PHP?
 g) What is the purpose of “nl2br “string function?
 h) Write the name of PHP functions that can be used to build a function that accepts any number of arguments ?
 i) What is the difference between include and require?
 j) Differences between GET and POST methods?
 k) What do you mean by Server Side Scripting?
l) Explain all possible types of scope of variable?
m) Explain with example the use of substring function?
n) Write a program in HTML (Web-Page) having a form with firstname, lastname and a submit button. On clicking the button form validation should work (Use Javascript for that) and data entry should be saved in a database (PHP code needed, for insertion of data from “form” to database). Form should be styled using CSS. (Use any mode- inline, internal or external)?


o) What do you understand about Numeric array, Associative array and Multidimensional array?
p) What is the use of strlen() and strpos() functions?
q) Why we use $_REQUEST variable? Write a note on various library functions available in PHP?
r) What is the function name in PHP, used to delete an element from an array?
s) Write the PHP code for fetching the data from a database to a webpage?
t) What is the purpose of $_PHP_SELF?
u) Explain the use of preg_match(),  preg_replace(),  preg_split(), ereg(), eregi(), ereg_replace(), ereg_match(), eregi_replace() functions in regular expression?
v) What do you meant by WAMP, LAMP and XAMP?

w) Explain the following:
1) Echo vs Print
2) Super variable
3) Super global operator
4) Literals
5) Ternary operator
6) Break and continue


x) Write about the following built-in functions:

1) Require() 
2) Auto_append_file() 
3) Include() 
4) Chop() 
5) Trim() 
6) nl2br() 
7) strtoupper() 
8) strtolower() 
9) explode() 

10) Join()

11) substr()

12) Strcmp()

13) Strnotcmp()

14) strlen()

15) strchar()

16) stropos()

17) strreplace()

18)substr_replace()

 

 


avatar

EknowledgePoint

Increase Your Knowledge with us
View Articles

EknowledgePoint is an innovative online learning platform that aims to democratize education by providing a vast array of courses and educational content to learners of all ages and backgrounds. It offers a diverse range of subjects, from academic topics to practical skills, making it a one-stop destination for anyone looking to expand their knowledge base.


5 comments

avatar
Shubham
June 11, 2024 at 6:01 am Reply

Knowledge is the fuel that powers our journey through life. It's platforms like EknowledgePoint that transform information into enlightenment, curiosity into competence, and dreams into reality. Embrace the opportunity to learn, and you'll find that the doors of possibility swing wide open. 🚀💡 #EknowledgePoint.

avatar
EknowledgePoint
June 11, 2024 at 6:55 am Reply

Thank you for your kind words! At EknowledgePoint, we are dedicated to empowering individuals on their learning journey. Your enthusiasm for knowledge and personal growth inspires us to keep providing the best educational resources and experiences. Let's continue to explore and learn together!.

avatar
Shubham
June 11, 2024 at 7:10 am Reply

Thanks For Your Support.

avatar
Neha
June 14, 2024 at 12:35 pm Reply

"I'm constantly amazed by the quality of instructors on EknowledgePoint. Learning from experts in their fields is both enlightening and empowering. 🌟👨‍🏫 #EknowledgePoint.

avatar
Nitin
June 18, 2024 at 11:55 am Reply

EknowledgePoint isn't just a platform; it's a community of learners. The support and camaraderie here are truly inspiring. 🤝🌍 #EknowledgePoint.

Leave a reply

Your email address will not be published. Required fields are marked *

Share this article