SlideShare a Scribd company logo
Web Question Bank
1. What these tags specify in PHP : <php and ?>
2. Can we run PHP from HTML file? If yes, how?
3. Why PHP is known as scripting language?
4. Write a program in PHP to calculate Square Root of a number?
5. How can we create links in PHP pages?
6. What is the function of “foreach” construct in PHP?
7. What is the purpose of “nl2br “string function?
8. Write the name of PHP functions that can be used to build a function that accepts any
number of arguments?
9. What is the difference between include and require?
10. Differences between GET and POST methods?
11. What do you mean by Server Side Scripting?
12. Explain all possible types of scope of variable?
13. Explain with example the use of substring function?
14. 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)?
15. What do you understand about Numeric array, Associative array and Multidimensional
array?
16. What is the use of strlen() and strpos() functions?
17. Why we use $_REQUEST variable? Write a note on various library functions available in
PHP?
18. What is the function name in PHP, used to delete an element from an array?
19. Write the PHP code for fetching the data from a database to a webpage?
20. What is the purpose of $_PHP_SELF?
21. Explain the use of preg_match(), preg_replace(), preg_split(),ereg() , eregi() ,ereg_replace(),
ereg_match() ,eregi_replace() functions in regular expression?
22. What do you meant by WAMP, LAMP and XAMP?
23. Explain the following:
a. Echo vs Print
b. Super variable
c. Super global operator
d. Literals
e. Ternary operator
f. Break and continue
24. Write about the following built-in functions:
a) Require()
b) Join()
c) Auto_append_file()
d) substr()
e) Include()
f) Strcmp()
g) Chop()
h) Strnotcmp()
i) Trim()
j) strlen()
k) nl2br()
l) strchar()
m) strtoupper()
n) stropos()
o) strtolower()
p) strreplace()
q) explode()
r) substr_replace()
25. What does PHP stand for?
26. What is the difference between GET and POST methods in PHP?
27. How do you declare a variable in PHP?
28. What is the purpose of the "echo" statement in PHP?
29. How do you concatenate strings in PHP?
30. What is a conditional statement in PHP? Provide an example.
31. What is a loop in PHP? Provide an example.
32. How do you declare a function in PHP? Provide an example.
33. How do you include an external PHP file in another PHP file?
34. What is a PHP array? Provide an example.
35. What is the difference between an indexed array and an associative array in PHP?
36. How do you sort an array in PHP?
37. What is the purpose of the "explode" function in PHP? Provide an example.
38. What is a PHP session? How do you start a PHP session?
39. What is PHP and what are its advantages?
40. What is the syntax for declaring a variable in PHP?
41. What is the difference between single and double quotes in PHP?
42. What is the purpose of the echo statement in PHP?
43. How do you comment out code in PHP?
44. What is the difference between a function and a method in PHP?
45. How do you create a function in PHP?
46. What is the purpose of the return statement in PHP?
47. What is a PHP session and how do you start one?
48. What is the purpose of the $_SESSION variable in PHP?
49. What is a PHP cookie and how do you set one?
50. How do you upload a file using PHP?
51. What is the purpose of the include_once() function in PHP?
52. How do you connect to a MySQL database using PHP?
53. What is SQL injection and how can it be prevented in PHP?
54. What is PHP?
55. What is the difference between PHP and HTML?
56. What is a variable in PHP?
57. What is the difference between == and === operators in PHP?
58. What is the purpose of the $_GET and $_POST variables in PHP?
59. How do you include external PHP files?
60. What is the purpose of the if-else statement in PHP?
61. How do you create an array in PHP?
62. What is the purpose of the for loop in PHP?
63. What is the difference between include and require in PHP?

More Related Content

Similar to web design and development.docx

Php tutorialw3schools
Php tutorialw3schoolsPhp tutorialw3schools
Php tutorialw3schools
rasool noorpour
 
Programming in PHP Course Material BCA 6th Semester
Programming in PHP Course Material BCA 6th SemesterProgramming in PHP Course Material BCA 6th Semester
Programming in PHP Course Material BCA 6th Semester
SanthiNivas
 
1000+ php questions
1000+ php questions1000+ php questions
1000+ php questions
Sandip Murari
 
Php Interview Questions
Php Interview QuestionsPhp Interview Questions
Php Interview Questions
UmeshSingh159
 
Php
PhpPhp
501 - PHP MYSQL.pdf
501 - PHP MYSQL.pdf501 - PHP MYSQL.pdf
501 - PHP MYSQL.pdf
AkashGohil10
 
Introduction to PHP - Basics of PHP
Introduction to PHP - Basics of PHPIntroduction to PHP - Basics of PHP
Introduction to PHP - Basics of PHP
wahidullah mudaser
 
100 PHP question and answer
100 PHP  question and answer100 PHP  question and answer
100 PHP question and answer
Sandip Murari
 
Php questions and answers
Php questions and answersPhp questions and answers
Php questions and answers
Deepika joshi
 
C faqs interview questions placement paper 2013
C faqs interview questions placement paper 2013C faqs interview questions placement paper 2013
C faqs interview questions placement paper 2013
srikanthreddy004
 
PHP Interview Questions-ppt
PHP Interview Questions-pptPHP Interview Questions-ppt
PHP Interview Questions-ppt
Mayank Kumar
 
C interview questions for fresher
C interview questions for fresherC interview questions for fresher
C interview questions for fresher
MYTHILIKRISHNAN4
 
1336333055 php tutorial_from_beginner_to_master
1336333055 php tutorial_from_beginner_to_master1336333055 php tutorial_from_beginner_to_master
1336333055 php tutorial_from_beginner_to_masterjeeva indra
 
Top 100 PHP Interview Questions and Answers
Top 100 PHP Interview Questions and AnswersTop 100 PHP Interview Questions and Answers
Top 100 PHP Interview Questions and AnswersVineet Kumar Saini
 
Php training100%placement-in-mumbai
Php training100%placement-in-mumbaiPhp training100%placement-in-mumbai
Php training100%placement-in-mumbai
vibrantuser
 
PHP Reviewer
PHP ReviewerPHP Reviewer
PHP Reviewer
Cecilia Pamfilo
 
Top 100-php-interview-questions-and-answers-are-below-120816023558-phpapp01
Top 100-php-interview-questions-and-answers-are-below-120816023558-phpapp01Top 100-php-interview-questions-and-answers-are-below-120816023558-phpapp01
Top 100-php-interview-questions-and-answers-are-below-120816023558-phpapp01Tekblink Jeeten
 
Chap 4 PHP.pdf
Chap 4 PHP.pdfChap 4 PHP.pdf
Chap 4 PHP.pdf
HASENSEID
 

Similar to web design and development.docx (20)

Php tutorialw3schools
Php tutorialw3schoolsPhp tutorialw3schools
Php tutorialw3schools
 
Programming in PHP Course Material BCA 6th Semester
Programming in PHP Course Material BCA 6th SemesterProgramming in PHP Course Material BCA 6th Semester
Programming in PHP Course Material BCA 6th Semester
 
1000+ php questions
1000+ php questions1000+ php questions
1000+ php questions
 
php questions
php questions php questions
php questions
 
Php Interview Questions
Php Interview QuestionsPhp Interview Questions
Php Interview Questions
 
Php
PhpPhp
Php
 
501 - PHP MYSQL.pdf
501 - PHP MYSQL.pdf501 - PHP MYSQL.pdf
501 - PHP MYSQL.pdf
 
Introduction to PHP - Basics of PHP
Introduction to PHP - Basics of PHPIntroduction to PHP - Basics of PHP
Introduction to PHP - Basics of PHP
 
100 PHP question and answer
100 PHP  question and answer100 PHP  question and answer
100 PHP question and answer
 
Php questions and answers
Php questions and answersPhp questions and answers
Php questions and answers
 
C faqs interview questions placement paper 2013
C faqs interview questions placement paper 2013C faqs interview questions placement paper 2013
C faqs interview questions placement paper 2013
 
PHP Interview Questions-ppt
PHP Interview Questions-pptPHP Interview Questions-ppt
PHP Interview Questions-ppt
 
C interview questions for fresher
C interview questions for fresherC interview questions for fresher
C interview questions for fresher
 
Oss questions
Oss questionsOss questions
Oss questions
 
1336333055 php tutorial_from_beginner_to_master
1336333055 php tutorial_from_beginner_to_master1336333055 php tutorial_from_beginner_to_master
1336333055 php tutorial_from_beginner_to_master
 
Top 100 PHP Interview Questions and Answers
Top 100 PHP Interview Questions and AnswersTop 100 PHP Interview Questions and Answers
Top 100 PHP Interview Questions and Answers
 
Php training100%placement-in-mumbai
Php training100%placement-in-mumbaiPhp training100%placement-in-mumbai
Php training100%placement-in-mumbai
 
PHP Reviewer
PHP ReviewerPHP Reviewer
PHP Reviewer
 
Top 100-php-interview-questions-and-answers-are-below-120816023558-phpapp01
Top 100-php-interview-questions-and-answers-are-below-120816023558-phpapp01Top 100-php-interview-questions-and-answers-are-below-120816023558-phpapp01
Top 100-php-interview-questions-and-answers-are-below-120816023558-phpapp01
 
Chap 4 PHP.pdf
Chap 4 PHP.pdfChap 4 PHP.pdf
Chap 4 PHP.pdf
 

Recently uploaded

Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI AppAI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
Google
 
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Łukasz Chruściel
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
Philip Schwarz
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
Max Andersen
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
Łukasz Chruściel
 
Using Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional SafetyUsing Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional Safety
Ayan Halder
 
Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
TheSMSPoint
 
E-commerce Application Development Company.pdf
E-commerce Application Development Company.pdfE-commerce Application Development Company.pdf
E-commerce Application Development Company.pdf
Hornet Dynamics
 
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Mind IT Systems
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
Fermin Galan
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
lorraineandreiamcidl
 
Fundamentals of Programming and Language Processors
Fundamentals of Programming and Language ProcessorsFundamentals of Programming and Language Processors
Fundamentals of Programming and Language Processors
Rakesh Kumar R
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
Donna Lenk
 
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
timtebeek1
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke
 
Enterprise Resource Planning System in Telangana
Enterprise Resource Planning System in TelanganaEnterprise Resource Planning System in Telangana
Enterprise Resource Planning System in Telangana
NYGGS Automation Suite
 
APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)
Boni García
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
rickgrimesss22
 
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of CodeA Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
Aftab Hussain
 

Recently uploaded (20)

Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI AppAI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
 
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
 
Using Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional SafetyUsing Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional Safety
 
Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
 
E-commerce Application Development Company.pdf
E-commerce Application Development Company.pdfE-commerce Application Development Company.pdf
E-commerce Application Development Company.pdf
 
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
 
Fundamentals of Programming and Language Processors
Fundamentals of Programming and Language ProcessorsFundamentals of Programming and Language Processors
Fundamentals of Programming and Language Processors
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
 
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
 
Enterprise Resource Planning System in Telangana
Enterprise Resource Planning System in TelanganaEnterprise Resource Planning System in Telangana
Enterprise Resource Planning System in Telangana
 
APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
 
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of CodeA Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
 

web design and development.docx

  • 1. Web Question Bank 1. What these tags specify in PHP : <php and ?> 2. Can we run PHP from HTML file? If yes, how? 3. Why PHP is known as scripting language? 4. Write a program in PHP to calculate Square Root of a number? 5. How can we create links in PHP pages? 6. What is the function of “foreach” construct in PHP? 7. What is the purpose of “nl2br “string function? 8. Write the name of PHP functions that can be used to build a function that accepts any number of arguments? 9. What is the difference between include and require? 10. Differences between GET and POST methods? 11. What do you mean by Server Side Scripting? 12. Explain all possible types of scope of variable? 13. Explain with example the use of substring function? 14. 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)? 15. What do you understand about Numeric array, Associative array and Multidimensional array?
  • 2. 16. What is the use of strlen() and strpos() functions? 17. Why we use $_REQUEST variable? Write a note on various library functions available in PHP? 18. What is the function name in PHP, used to delete an element from an array? 19. Write the PHP code for fetching the data from a database to a webpage? 20. What is the purpose of $_PHP_SELF? 21. Explain the use of preg_match(), preg_replace(), preg_split(),ereg() , eregi() ,ereg_replace(), ereg_match() ,eregi_replace() functions in regular expression? 22. What do you meant by WAMP, LAMP and XAMP? 23. Explain the following: a. Echo vs Print b. Super variable c. Super global operator d. Literals e. Ternary operator f. Break and continue 24. Write about the following built-in functions: a) Require() b) Join() c) Auto_append_file() d) substr() e) Include()
  • 3. f) Strcmp() g) Chop() h) Strnotcmp() i) Trim() j) strlen() k) nl2br() l) strchar() m) strtoupper() n) stropos() o) strtolower() p) strreplace() q) explode() r) substr_replace() 25. What does PHP stand for? 26. What is the difference between GET and POST methods in PHP? 27. How do you declare a variable in PHP? 28. What is the purpose of the "echo" statement in PHP? 29. How do you concatenate strings in PHP? 30. What is a conditional statement in PHP? Provide an example. 31. What is a loop in PHP? Provide an example. 32. How do you declare a function in PHP? Provide an example. 33. How do you include an external PHP file in another PHP file? 34. What is a PHP array? Provide an example.
  • 4. 35. What is the difference between an indexed array and an associative array in PHP? 36. How do you sort an array in PHP? 37. What is the purpose of the "explode" function in PHP? Provide an example. 38. What is a PHP session? How do you start a PHP session? 39. What is PHP and what are its advantages? 40. What is the syntax for declaring a variable in PHP? 41. What is the difference between single and double quotes in PHP? 42. What is the purpose of the echo statement in PHP? 43. How do you comment out code in PHP? 44. What is the difference between a function and a method in PHP? 45. How do you create a function in PHP? 46. What is the purpose of the return statement in PHP? 47. What is a PHP session and how do you start one? 48. What is the purpose of the $_SESSION variable in PHP? 49. What is a PHP cookie and how do you set one? 50. How do you upload a file using PHP? 51. What is the purpose of the include_once() function in PHP? 52. How do you connect to a MySQL database using PHP? 53. What is SQL injection and how can it be prevented in PHP? 54. What is PHP? 55. What is the difference between PHP and HTML?
  • 5. 56. What is a variable in PHP? 57. What is the difference between == and === operators in PHP? 58. What is the purpose of the $_GET and $_POST variables in PHP? 59. How do you include external PHP files? 60. What is the purpose of the if-else statement in PHP? 61. How do you create an array in PHP? 62. What is the purpose of the for loop in PHP? 63. What is the difference between include and require in PHP?