Programming - PHP

You Are Here :: Home > Programming > PHP- General Questions

 
67.

What is the correct way to create a function in PHP??                          


A. createmyFunction() B. new_functionmyFunction()
C. functionmyFunction() D. None of these




68.

What is the correct way to open the file "time.txt" as readable??                          


A. fopen("time.txt","r"); B. open("time.txt");
C. fopen("time.txt","r+"); open("time.txt","read"); D. None of these




69.

PHP allows you to send emails directly from a script?                          


A. True B. False
C. ---- D. ----




70.

What is the correct way to connect to a MySQL database??                          


A. dbopen("localhost"); B. mysql_open("localhost");
C. mysql_connect("localhost"); D. connect_mysql("localhost");




71.

What is the correct way to add 1 to the $count variable??                          


A. $count++; B. count++;
C. $count =+1 D. ++count




72.

What is a correct way to add a comment in PHP??                          


A. /*…*/ B. <!--…-->
C. *\..\* D. <comment>…</comment>




« prev

10

11

12

13

14

15

16

17

18

19

next »

 
 



© 2013 freshersindia.in ® | Copyrights | Terms & Conditions
   Designed by Freshers India
Catch Us on