need help to answer these questions ?

?Which of the following statement is not correct for PHP?a. It is a server side scripting languageb. A php file may contain text, html tags or scriptsc. It can run on windows and Linux systems onlyd. It is compatible with most of the common servers used today?Which of the following is a PHP resource?a. Domxml documentb. Odbc linkc. Filed. All of the above?You need to count the number of parameters given in the URL by a POST operation. The correct way is:a. count($POST_VARS);b. count($POST_VARS_PARAM);c. count($_POST);d. count($HTTP_VARS_PARAM);?Which of the following regular expressions can be used to check the validity of an e-mail addresss?a. ^[^@]+@[^@]+. [^@]+$b. ^[^@]+@[^@]+. [^@]+$c. $[^@]+@[^@]+. [^@]+^d. $[^@]+@[^@]+. [^@]+^?What is true regarding $a + $b where both of them are arrays?a. Duplicated keys are NOT overwrittenb. $b is appended to $ac. The + operator is overloadedd. This produces a syntax error?You are using sessions and session_register() to register objects. These objects are serialized automatically at the end of each PHP page and are de-serialized automatically on each of the following pages. Is this true or false?a. Trueb. False?How would you start a session?a. session(start);b. session();c. session_start();d. begin_ session();?Dose PHP provide the goto keyword in latest version?a. Yesb. No?What will be the output of the following code?$Rent = 250;function Expenses($Other){$Rent = 250 + $Other;return $Rent;}Expenses(50);echo $Rent;a. 300b. 250c. 200d. Program will not compile?You need to keep an eye on the existing number of objects of a given class without introducing a non-class member variable. Which of the following makes this happen?a. Add a number variable that gets incremented in the default constructor and decremented in the destructorb. Add a local variable that gets incremented in each constructor and decremented in the destructorc. Add a static variable that gets incremented in each constructor and decremented in the destructord. This cannot be accomplished since the creation of objects done dynamic via ?new. ??Which of the following variables is not related to file uploads?a. max_file_sizeb. _max_exeucution_timec. post_max_sized. input_time_max?Which of the following variables are supported by ?str_replace()? function?a. Integerb. Stringc. Booleand. Array?What will be the result of following operation?print 4<<5;a. 3b. 128c. 120d. 6?What will be the output of following code?$a = 10;echo ? value of a = $a?;a. Value of a = 10b. Value of a = $ac. Undefinedd. Syntax Error?Which of the following printing construct/function accepts multiple parameters?a. echob. printc. printfd. All or the above?The following php variables are declared:$company = ?ABS Ltd?;$$company = ?,Sydney?;?>Which of the following is not a correct way of printing ?ABS Ltd??a. Echo ?$company $$company?;b. Echo ?$company ${$company}?;c. Echo ?$company ${?ABS Ltd?}?;d. Echo ?$company {$$company}?;?The value of a local variable of a function has to be retained over multiple calls to that function. How should that variable be declared?a. Localb. Globalc. Staticd. None of the above?Which of the following are not considered as Boolean False?a. FALSEb. 0c. ?0?d. ?FALSE?e. 1f. NULL?Variable/functions is PHP don?t work directly with:a. echo()b. isset()c. print()d. All of the above

Both comments and pings are currently closed.

One Response to “need help to answer these questions ?”

  1. danish h says:

    1.it does not run on windows server.
    2.all of d above
    3.c
    4.b
    5.b
    6.false
    7.b
    8.no
    9.not compile
    10.d
    11.d
    12.a,b
    13.a
    14.b
    15.echo,print
    16.
    17.none of the above;
    18.false
    19.isset

Powered by WordPress | Designed by: Full Nulled Scripts