Sei sulla pagina 1di 16

TOPS Technologies

Fundamental Questions of PHP



1. What is a Web Server?
2. What is the difference between a Web Browser and a Web Server?
3. What is a domain?
4. What is FTP? How is it used?
5. What is OOPS?
6. What is polymorphism? When we use it?
7. What is abstract and interface?
8. What is Virtual method?
9. What is Object?
10. What is Class?
11. What is Static field?
12. What is Static Method?
13. What is Inheritance?
14. What is Virtual keyword?
15. What is Abstract Class?
16. What is an Interface?
17. When to use Interface over abstract class?
18. What is pure virtual function?
19. What is method overloading?
20. What is overriding?
21. What is meant by Binding?
22. Can we call a base class method without creating instance?
23. Difference between new and override keyword?
24. What is a private constructor? Where will you use it?
25. How's method overriding different from overloading?
26. What is an IP?
TOPS Technologies


27. What is TCP/IP?
28. What is a router
29. What is an ISP?
30. What is an SMTP server?
31. What is programming language?
32. What is scripting language?
33. What is HTTP?
34. What is SDLC?
35. What is Array?
36. What is web-site and web-server?
37. What is web site hosting?
38. What is RDBMS?
39. What is normalization?
40. What is Trigger?
41. What are cursors?
42. What is the difference between Primary key, unique key and Foreign Key?
43. How to implement one-to-one, one-to-many and many-to-many relationships
while designing tables?
44. What is the difference between where and having clause?
45. How would apply date range filter?
46. What type of wildcards have you used?
47. How to return truly random data from a table? Let say top 100 random rows?
48. How to create recursive query in SQL Server?
49. How to delete Duplicate records in a table?
50. How can you call a PL/SQL procedure from SQL?
51. How can variables be passed to a SQL routine?
52. Can a primary key and a foreign key be set on the same table?
53. What is the use of DROP option in the ALTER TABLE command?
TOPS Technologies


54. What is trigger? How many types of Triggers are there?
55. What are constraints?
56. How to join 2 tables in a SQL query?
57. How do you implement one-to-one, one-to-many and many-to-many relationships
while designing tables?
58. What's the maximum size of a row?
59. How to change Database name in SQL Server?
60. What is a cursor in SQL?
61. How to return XML in SQL server?
62. What is an Index?
63. Where do you think usernames and passwords will be stored in Database?
64. Can we create a foreign key without a primary key?
65. Difference between varchar and char?
66. What is the use of bit data type and what kind of data will be stored in it?
67. What is user-defined data type in SQL?
68. What is the difference between DELETE and TRUNCATE commands?
69. What types of JOINS are possible with SQL Server?
70. What is the difference between a local variable and a global variable?
71. What command do we use to rename a database?
72. What is data integrity?
73. What is de-normalization?
74. What is PHP?
75. What are the basic requirements for running php on our OS
76. How can we sent value from the form on the server?
77. How can we retrieve value from the server?
78. Can we return array value using return keyword?
79. What is Global and local variable?
TOPS Technologies


80. If the variable $a is equal to 5 and variable $b is equal to character a, what is the
value of $$b?
81. How can we pass form value one page to another page in php?
82. What is DBMS and RDBMS?
83. What is the main difference between primary key and unique key?
84. What is normalization?
85. What is the difference between truncate and delete?
86. What is AJAX?
87. What is JAVASCRIPT?
88. What is Session and cookie? Why we use it?
89. What is MVC? Why we use it?
90. What is CMS?
91. What is Framework?

First Exam

92. What is PHP?
93. What is protocol? Difference between http and https.
94. What is the difference between web server and web site?
95. What is scripting language?
96. Difference between client side and server side.
97. What is XAMPP?
98. What is HTML? Which structure follow html?
99. Why we user form tag?
100. What is difference between GET and POST method?
101. What are the differences between GET and POST methods in form submitting, give
the case where we can use GET and we can use POST methods?

TOPS Technologies


102. What is server global variable?
103. How can we send form value on the server?
104. How can we retrieve value from the server?
105. What is css? Types of css
106. What is css box?
107. What is the difference between simple class and pseudo-class?
108. What is the difference between class and ID in css?
109. Why php is a loosely type programming language?
110. Explain while and do while loop.
111. Explain foreach statement.
112. Difference between echo and print
113. Can we return array value using return keyword?
114. What is pass by value and pass by reference?
115. What is meaning of global variable and local variable?
116. Explain the ternary conditional operator in PHP?
117. What is the difference between $message and $$message?
118. What does a special set of tags do in PHP?
119. How do you define a constant?
120. What is meant by urlencode and urldecode?
121. If the variable $a is equal to 5 and variable $b is equal to character a, what is the
value of $$b?
122. How can we print current date and time?
123. How can we know the number of days between two given dates using PHP?
124. What is timestamp?
125. Difference between time (), strtotime () and mktime ().
126. What is array? Explain Types of array which supports the php.
127. Follow example.
<? Php
TOPS Technologies


$a = array (a=>array (keyul,kishen,kishu),b=>Chirag);
?>

128. Now I want print Kishen, so how can I do?
129. Difference between array_combine and array_merge.
130. Difference between array_count_values and sizeof.
131. Difference between array_merge_recursive and array_merge.
132. What are the different functions in sorting an array?
133. How can we convert array into string
134. How can we convert string into array?
135. How can I encrypt username or password?
136. What is alias of Explode?
137. What is alias of Implode?
138. What is trim function?
139. What difference is between include and require?
140. What is difference between include_once and include?
141. How can we redirect one page to another page?
142. How can we redirect one page to another page after some second using php
function?
143. How can we download particular file using php function?
144. What is difference between DBMS and RDBMS?
145. What is the main difference between primary key and unique key?
146. What is schema?
147. What is the difference between CHAR and VARCHAR data type?
148. What is the difference between ENUM and SET data type?
149. What is normalization?
150. What is JOIN? How many types of join?
151. Follow this example.
TOPS Technologies



Table name is Reg
rid Fname
1 Keyul
2 Chirag

Table name is profile
pid Rid lname
1 2 Patel
2 1 Prajapat
i


Now output should be come.

fname lname
Keyul Prajapat
i
Chirag Patel

Join two tables using join query.

152. How can I connect to the Mysql using php function
153. How can I connect to the database using php function
154. How can I get result set using php function
155. What is difference between mysql_connect and mysql_pconnec?
156. How can we know the number of days between two given dates using PHP
157. What is the difference between $message and $$message?
158. What Is a Persistent Cookie?
159. What does a special set of tags <?= and ?> do in PHP?
160. How do you define a constant?
161. How To Write the FORM Tag Correctly for Uploading Files?
162. What are the differences between require and include, include_once?
163. What is meant by urlencode and urldecode?
TOPS Technologies


164. How To Get the Uploaded File Information in the Receiving Script?
165. What is the difference between mysql_fetch_object and mysql_fetch_array?
166. How can I execute a PHP script using command line?
167. What are the different tables present in MySQL? Which type of table is generated
when we are creating a table in the following syntax: create table employee(eno
int(2),ename varchar(10))?
168. How To Create a Table?
169. How can we encrypt the username and password using PHP?
170. How do you pass a variable by value?
171. WHAT IS THE FUNCTIONALITY OF THE FUNCTIONS STRSTR() AND STRISTR()?
172. When are you supposed to use endif to end the conditional statement?
173. How can we send mail using JavaScript?
174. If the variable $a is equal to 5 and variable $b is equal to character a, whats the
value of $$b?
175. How To Protect Special Characters in Query String?
176. Are objects passed by value or by reference?
177. What are the differences between DROP a table and TRUNCATE a table?
178. What are the differences between GET and POST methods in form submitting, give
the case where we can use GET and we can use POST methods?
179. WHAT ARE THE DIFFERENT TYPES OF ERRORS IN PHP?
180. How can we submit a form without a submit button?
181. Would you initialize your strings with single quotes or double quotes?
182. Why doesnt the following code print the newline properly? <?php $str = Hello,
there.\nHow are you?\nThanks for visiting fyicenter; print $str; ?>
183. How can we extract string 'abc.com ' from a string http://info@abc.com using
regular expression of php?
184. How can we register the variables into a session?
185. How can we submit form without a submit button?
TOPS Technologies


186. How many ways we can retrieve the date in result set of mysql using php?
187. How can we destroy the session, how can we unset the variable of a session?
188. What are the different functions in sorting an array?
189. How can we know the count/number of elements of an array?
190. How many ways we can pass the variable through the navigation between the
pages?
191. How can we find the number of rows in a result set using PHP?
192. How many ways we can we find the current date using MySQL?
193. What is the difference between CHAR and VARCHAR data types?
194. How can we encrypt and decrypt a data present in a mysql table using mysql?
195. Will comparison of string "10" and integer 11 work in PHP?
196. How can we know the number of days between two given dates using MySQL?
197. How can we change the name of a column of a table?
198. What is the difference between GROUP BY and ORDER BY in SQL?
199. How can we know that a session is started or not?
200. What are the differences between mysql_fetch_array(), mysql_fetch_object(),
mysql_fetch_row()?
201. If we login more than one browser windows at the same time with same user and
after that we close one window, then is the session is exist to other windows or
not? And if yes then why? If no then why?
202. What are the MySQL database files stored in system ?
203. How can we encrypt and decrypt a data presented in a table using MySQL?
204. How can I retrieve values from one database server and store them in other
database server using PHP?
205. What is the difference between mysql_fetch_object and mysql_fetch_array?
206. How to Create a Table?
207. What is the purpose of the following files having extensions: frm, myd, and myi?
What these files contain?
TOPS Technologies


208. What are the differences between DROP a table and TRUNCATE a table?
209. How many ways we can retrieve the date in result set of Mysql using php?
210. How many ways we can pass the variable through the navigation between the
pages?
211. What is the maximum length of a table name, a database name, or a field name in
Mysql?
212. How many values can the SET function of Mysql take?
213. How can we find the number of rows in a table using Mysql?
214. How can we find the number of rows in a result set using PHP?
215. How can we know the number of days between two given dates using Mysql?
216. How can we change the name of a column of a table?
217. How can we change the data type of a column of a table?
218. What is the difference between GROUP BY and ORDER BY in SQL?
219. What are the differences between mysql_fetch_array (), mysql_fetch_object (),
mysql_fetch_row ()?
220. What are the Mysql database files stored in system?
221. IN HOW MANY WAYS WE CAN RETRIEVE DATA IN THE RESULT SET OF MYSQL
USING PHP?
222. HOW CAN WE TAKE A BACKUP OF A MYSQL TABLE AND HOW CAN WE RESTORE IT?
223. What is maximum size of a database in Mysql?
224. How can increase the performance of Mysql select query?
225. How many ways I can redirect a PHP page?

Second Exam
226. How you start and stop MySQL on Windows?
227. Whats the default port for MySQL Server?
228. How do you change a password for an existing user via mysqladmin?
229. How to use mysqldump to create a copy of the database?
TOPS Technologies


230. What are some good ideas regarding user security in MySQL?
231. Explain the difference between MyISAM Static and MyISAM Dynamic.
232. What are CSV tables?
233. What happens when the column is set to AUTO INCREMENT and you reach the
maximum value for that table?
234. Explain the difference between BOOL, TINYINT and BIT
235. Explain the difference between FLOAT, DOUBLE and REAL
236. If you specify the data type as DECIMAL (5,2), whats the range of values that can
go in this table?
237. What happens if a table has one column defined as TIMESTAMP?
238. If I created a column with data type VARCHAR(3), what would I expect to see in
MySQL table?
239. How can we know the number of days between two given dates using
MySQL?
240. How many ways we can we find the current date using MySQL?
241. How many ways we can we find the current date using MySQL?
242. How can we find the number of rows in a result set using PHP?
243. How can we find the number of rows in a table using MySQL?
244. How many tables will create when we create table, what are they?
245. How many values can the SET function of MySQL take?
246. What is the maximum length of a table name, database name, and fieldname in
MySQL?
247. How can we repair a MySQL table?
248. How can we encrypt and decrypt a data present in a MySQL table using MySQL?
249. How can we create a database using PHP and MySQL?
250. What is the difference between mysql_fetch_object and mysql_fetch_array?
251. In how many ways we can retrieve the data in the result set of MySQL using PHP?
252. . How can we take a backup of a MySQL table and how can we restore it. ?
TOPS Technologies


253. How can we optimize or increase the speed of a MySQL select query?
254. How can I retrieve values from one database server and store them in other
database server using PHP?
255. What is maximum size of a database in MySQL?
256. Is it possible to set a time expire page in PHP? If yes, How?
257. How can we SAVE an image from a remote web Server to my web server using
PHP?
258. What is oops? Feature of oops.
259. Is oops a programming language?
260. What is class?
261. What is object?
262. What is p-pseudo variable in oops?
263. What is extends?
264. What is inheritance?
265. When we use polymorphism?
266. What is difference between overloading and overriding?
267. What is access modifier?
268. What is constructor?
269. How do you call parent constructor?
270. What is destructor?
271. How can we access class memory without object?
272. What is difference between static and constant?
273. What is abstraction?
274. What is interface?
275. What is the difference between method overloading and member overloading?
276. What is magic method?
277. What is final keyword?
278. What is type hinting?
TOPS Technologies


279. What is MVC architecture?
280. What is trigger?
281. What is session? How can I start session?
282. How many ways for destroying session?
283. What is cookie? How can we make cookie?
284. How can we destroy cookie?
285. What is the main purpose of session and cookie?
286. What is the difference between using copy () and move () function in php file
uploading?
287. What is the maximum size of a file that can be uploaded using php and how can we
change this?
288. How to Write the FORM Tag Correctly for Uploading Files?
289. How to include external php file in to html page?
290. How to Get the Uploaded File Information in the Receiving Script?
291. Use of chmod in php?
292. What is the difference between the functions unlink () and unset ()?
293. What changes is to be made in php.ini file for file uploading?
294. Getting the last updated time of the file in PHP?
295. How do I read a file into an array?
296. Why does my script fail to execute when I try to use file () or fopen () to load
another web page?
297. How do you delete a file from a server using php from a web page?
298. How can I retrieve a single variable value from another file?
299. What is difference between a and x mode?
300. How can I read file string by string?
301. How can I read file?
302. How can I read file character by character?
303. How can I insert string in file?
TOPS Technologies


304. How can I copy file?
305. How can we open file using php function?
306. How can I send mail using php?
307. How can I set from in mail function?
308. What is JAVASCRIPT? Why JavaScript is object oriented scripting language?
309. Why JavaScript is Client side and server side scripting language?
310. What is regular expression? Explain method.
311. How can I retrieve values from one database server and store them in other
database server using PHP?
312. How can we increase the execution time of a php script?
313. How to set cookies?
314. How can I know that a variable is a number or not using a JavaScript?
315. How can we submit from without a submit button?
316. How many ways can we get the value of current session id?
317. How can we destroy the cookie?
318. What is the use of friend function?
319. How can we get second of the current time using date function?
320. What is the maximum size of a file that can be uploaded using PHP and how can
we change this?
321. What are the difference between abstract class and interface?
322. What are the advantages of stored procedures, triggers, indexes?
323. What is maximum size of a database in mysql?
324. Whats the difference between accessing a class method via -> and via ::?
325. How can increase the performance of MySQL select query?
326. How can we change the name of a column of a table?
327. When viewing an HTML page in a Browser, the Browser often keeps this page in its
cache. What can be possible advantages/disadvantages of page caching? How can
you prevent caching of a certain page (please give several alternate solutions)?
TOPS Technologies


328. When you want to show some part of a text displayed on an HTML page in red font
color? What different possibilities are there to do this? What are the
advantages/disadvantages of these methods?
329. What are the different ways to login to a remote server? Explain the means,
advantages and disadvantages?
330. How many ways we can give the output to a browser?
331. What is the default session time in php and how can I change it?
332. What changes I have to do in php.ini file for file uploading?
333. How many ways I can redirect a PHP page?
334. List out different arguments in PHP header function?
335. How to include external php file in to html page?
336. What is the difference between the functions unlink() and unset()?
337. What is the maximum size of the file that can be uploaded using php and how it
can be changed?
338. How can I load the data from text file to the table?
339. What is the difference between COPY OF A FILE and move_uploaded_file in file
uploading?
340. What is the difference between require() and include()?
341. What changes is to be made in php.ini file for file uploading?
342. How to store the uploaded file to the final location?
343. How do I read a file into an array?
344. How do you delete a file from a server using php from a web page?
345. How can I launch the exe file with command line arguments on the server?
346. How can I retrieve a single variable value from another file?
347. How to store the uploaded file to the final location?
348. How can I embed a java programme in php file and what changes have to be done
in php.ini file?
349. How To Turn On the Session Support?
TOPS Technologies


350. What happens when the column is set to AUTO INCREMENT and you reach the
maximum value for that table?
351. What are the other commands to know the structure of table using
MySQL commands except explain command?
352. What happens if a table has one column defined as TIMESTAMP?
353. Whats the difference between include and require?
354. How many ways can we get the value of current session id?
355. How can we destroy the cookie?
356. How To Read the Entire File into a Single String?
357. What is AJAX?
358. What is the main use of XML in Ajax?
359. What is XMLHttpRequest object?
360. When we use XMLHttpRequest and when we use ActiveXObject?
361. Explain XMLHttpRequest object property.
362. Explain state of readyState property?
363. What is CMS?
364. What is plug-in?
365. What is module?
366. What is component?
367. What is framework?

Potrebbero piacerti anche