Your Ad Here

Wednesday

1 PHP Test Question and Answers on Odesk




1) Which of the following is not a valid php connection status?
Answers:- Open

2) What is the result of the following expression?
5+2*4+6
Answers:- 19

3) The setrawcookie() method of setting cookie is different from php standard method of cookie setting as :
Answers:-It does not url- ENCODE the value on its own

4) The default value of register global in PHP is:
 a. Off

5) IF visibility is not defined for a method /member then it is treated as public static.
Answers:-False

6) which of the following are used for code reuse?
Answers:-  functions and  include files      

7) Which of the following statements is not true with regard to abstract classes in php5?
Answers:- Abstract class can contain abstract methods

8) What will be the result of following operation?
Print 4<<5;


Answers:-  128
9) Late PHP version support remote file accessing for the functions:
Answers:- All of the above
10) Which of the following type cast in not correct?

$fig=23;
$varbl=(real)$fig;
$varb2=(double)$fig;
$varb3=(decimal)$fig;
$varb4=(bool)$fig;
?>


Answers:- decimal

11) The classes are defined as follows
Abstract class BaseCls(
Protected abstract function getName();
}
Class childCls extends BaseCls{
}
Which of the following implementations of getName() in invalid in childCls?
Answers:- Public function getName(){}

12) Which of the following set of operations is not valid in PHP 5?
Answers:- !==,!==

13) Multiple select/load is possible with:
answers:- checkbox

14) Which of the following is a not a correct way of commenting in php?
Answers:- /#PHP Comment
15)Which of the following is not a valid PHP connection status?
Answers:-  open
16) How can you hide the fact that web pages are written in PHP?
Answers:- By using .htaccess diretive in Apeche

17) State whether true or false

Paamayim nekudotayim operator allows access only to the static members of a class?

Answers:- True

18) What is the output of the following code?

$a=500;
$b=200;
echo $a % 2 * $b;
?>


Answers:- 0

19) Which of the following attribute is needed for file upload via form?
Answers:- Enctype=”multipart/form-date”

20) You need to heck the size of a file in php function .
$size=X(filename);
which function will suitable replace “X”?

Answers:- Filesize

21) Which one is correct?
Answers:- $s=fwrite($fp,”a string here”);

22)Which of the following is not true for a persistent connection?
Answers:- These are preferable not used in the scripts involving transactions



23) Late php versions support remote file accessing for the functions:
Answers:- All of the above


1 comments:

  1. Php Test Question And Answers On Odesk >>>>> Download Now

    >>>>> Download Full

    Php Test Question And Answers On Odesk >>>>> Download LINK

    >>>>> Download Now

    Php Test Question And Answers On Odesk >>>>> Download Full

    >>>>> Download LINK S0

    ReplyDelete

 

Free Test Answers And Blogger Tips For Making Money Online Copyright © 2011 - |- Template created by O Pregador - |- Powered by Blogger Templates