0% found this document useful (0 votes)
12 views

Chapter 5 Server Side Scripting (PHP) - Objectives

The document contains a series of objective-type questions related to server-side scripting using PHP, covering topics such as PHP language features, server environments, variable scope, data types, arrays, user-defined functions, and database connectivity. It includes questions about PHP syntax, frameworks, and functionalities, as well as practical aspects of using PHP in web development. The content is structured in a quiz format, aimed at assessing knowledge of PHP programming concepts.

Uploaded by

kotiansanskriti
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Chapter 5 Server Side Scripting (PHP) - Objectives

The document contains a series of objective-type questions related to server-side scripting using PHP, covering topics such as PHP language features, server environments, variable scope, data types, arrays, user-defined functions, and database connectivity. It includes questions about PHP syntax, frameworks, and functionalities, as well as practical aspects of using PHP in web development. The content is structured in a quiz format, aimed at assessing knowledge of PHP programming concepts.

Uploaded by

kotiansanskriti
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Subject : IT

Chapter 5 Server Side Scripting (PHP)


Objective type questions:
5.1
1. _______is a widely-used open source general-purpose scripting language
2. ____________is especially suited for web development and can be embedded
into HTML.
3. _____________runs on various platform.
4. PHP run on platforms like_____________,__________and_______________.
5. _____________is compatible with almost all servers used today.
6. PHP is compatible with servers like _____________,_________and________.
7. ____________supports a wide range of databases.
8. _____________is easy to learn and runs efficiently on the server side.
5.2
9. A_______________is a computer system that serves as a central repository of
data and programs and is shared by the clients.
10. The server-side environment that runs a scripting language is termed as
______________.
11. A user’s request is fulfilled by running a script directly on the webserver to
generate____________HTML pages.
12. The dynamic HTML pages generated by the webserver is send to the client
browser.(T/F)
13. Programming languages for server-side programming are ________,______and
______.
14. PHP mainly focuses on _____________scripting.
15. Server side scripting is used for______________,___________and_______.
16. The three things that make a PHP work is __________,________and_____.
17. User can access the PHP program output with a web browser.(T/F).
5.3
18. ____________is most popular and frequently used worldwide server-side
scripting language.
19. ______________is simple and easy to use, as compared to other scripting
languages.
20. PHP is an ___________language .i.e. there is no need for compilation.
21. ______________is faster than other scripting language.
22. ______________is open source.
23. ____________is case sensitive scripting language while declaration of variables
and its use in the program.
24. In PHP, all keywords, classes, functions and user-defined functions are not case-
sensitive.(T/F)
25. _________have some predefined error reporting constants to generate a
warning or error notice.
26. ______________provides access logging by creating the summary of recent
accesses for the user.
27. ____________supports variable usage without declaring its data type.
28. The PHP code is usually enclosed in within___________and ______________.
29. All PHP files have extension_____________.
30. A PHP script can be placed anywhere in the html document.(T/F).
31. A PHP file normally contains HTML tags, and some PHP scripting code.(T/F).
32. Following are the popular PHP frameworks____________and____________.
33. _________________PHP framework is used to build robust web application with
MVC support.
34. _________________PHP framework simplifies task such as caching, security,
authentication and many more.
35. _________________PHP framework is used for fast app development due to
reusable components.
36. _________________PHP framework provides many app building blocks like form
management etc.
37. _____________is a symbol or name that stands for a value.
38. ______________are used for storing values such as numeric values, characters
strings, or memory addresses.
39. A variable name starts with the ________sign, followed by the name of the
variable.
40. A variable name must start with a ____________or the ____________character.
41. A variable name cannot start with a ________________.
42. A variable name can only contain________________ characters and
_____________.
43. Variables are case-sensitive.(T/F)
44. Following are the scope of variable in PHP ________,__________and____.
45. A variable declared outside a function has a _____________ scope and can only
be accessed outside a function.
46. A variable declared within a function has a _____________scope and can be only
be accessed within that function.
47. PHP supports the following data types ______________,___________,_______.
48. When a function is executed, then all of its variables are deleted. (T/F).
49. To avoid the local variable from deleting ____________keyword is used.
50. One can check the data-type of variable using __________method in PHP.
51. ________________gives different output for each type of data type.
52. ___________are the statements in PHP code, which are not visible in the output
of the program.
53. _________are ignored during execution.
54. For single-line comment_______ and __________is used before the statement in
PHP.
55. A multi-line comment in PHP is possible with ______and __________.
56. ____________statement allows programmer to make decision, based on one or
more conditions; and execute a piece of code conditionally.
57. ____________statement allows programmer to make decision based on either
this or that conditions.
58. ____________are used to execute the same block of code repeatedly as long as
certain condition is satisfied.
59. ________loop works only on arrays and is used to loop through each key value
pair in an array.
60. ________string function returns the length of a string.
61. ________string function counts the number of words in a string.
62. ________string function reverse a string.
63. ________string function searches for a specific text within a string and returns
the character position of the first match and if no match is found, then it will
return false.
64. ________string function replaces some characters with some other characters in
a string.
65. ________string function returns a part of string.
66. ________string function converts a string to lowercase.
67. ________string function counts the number of times a substring occurs in a
string.
68. ________string function converts the first character of each word in a sting to
uppercase.
69. ________string function removes whitespace and other predefined characters
from both sides of a string.
70. A________ is series of characters.
71. A ________is a block of statements that can be used repeatedly in a program.
72. PHP has many _____________functions that can be called directly to perform a
specific task.
5.6 PHP Arrays(removed for 2022 batch)
73. An _________is a special variable, which can hold more than one value at a
time
74. An ___________________stores multiple values in one single variable
75. In PHP, the _________function is used to create an array.
01/10/2020
76. Following are the types of array in PH P_________, _______and____________.
77. Arrays with numeric index are called as ___________ arrays.
78. Arrays with named keys are called as ____________arrays.
79. Arrays containing more than one arrays are called as __________ arrays.
80. The _____________function is used to return the length of an array.
81. ____________are arrays that use named keys instead of index to identify
record/value.
82. PHP can handle multiple level of _______________array.
5.7 PHP user defined functions (included for 2020 batch)

83. A _____________is a block of statement that can be used repeatedly in a


program.
84. ___________will not execute immediately when a page loads but will be
executed by a call to it.
85. In PHP along with built-in functions user can also create their own functions.(T/F)
86. A ___________ function declaration starts with the word function.
87. Information can be passed to functions through___________.
88. An ____________is just like a variable.
89. ___________are specified after the function name, inside the parenthesis.
90. ___________statement is used to let a function return a value.
91. The PHP superglobals __________and ___________are used to collect form-
data.
92. __________and _________are treated as $_get and $_post superglobals which
means that they are easily accessible, regardless of scope.
93. ________________is an array of variables passed via the URL parameters.
94. _____________is an array of variables passed via the HTTP POST method.
95. Information sent from a form with the _______________method is visible to
everyone.
96. __________has limits on the amount of information to send,
97. _____________is used for sending non-sensitive data.
98. ____________should ne never used for sending password or other sensitive
information.
99. Information sent from a form with the ____________method is invisible to
everyone.
100. _____________has not limits on the amount of data information to send.
03/10/2020
101. _____________supports advanced functionality such as support for multi-
part binary input while uploading files to server.
Removed for 2022 batch
102. ____________helps to connect PHP code with almost any database server.
103. PDO() does not account for database-specific syntax and one can switch
database simply by switching the connection string in many instances.(T/F)
104. _____________provides database access layer providing a uniform method of
access to multiple databases.
105. PDO object has the following three parameters ____________,_______and
__________.
106. PDO ____________are used to handle errors.
107. The part of the code which may be erroneous can be put in _________block
and the cod to handle the error can be in placed in ___________block.
108. PDO _________________class is used to throw errors due to database
connectivity.
109. ______________method can be used to print the error message for database
connectivity.
110. __________________ Method is the secure way to execute SQP queries using
any programming language.
111. _______________method is used to get all the records from the given table
and store in $result variable.

112. Fetchall()method is used to get all the records from the given table and store
in ______________ variable.
113. A _____________is a small text that the server sends on the user’s computer.
114. _____________is used to identify user or its machine and track activities
created on the user computer.
115. When browser requests server page, _________are sent along with the
request.
116. PHP can be used both to create and retrieve __________value.
117. ____________store visited page on browser to optimize search.
118. _____________is used to store user information on server to track user
activities.
119. ___________help web application to maintain user information on all the
pages.

You might also like