PHP Multiple Choice Questions

  1. In terms of keywords and language syntax, PHP is similar to?
    1. C
    2. COBOL
    3. FORTRAN
    4. .Net
Answer :
A
Explanation:
Added By : Abhijit Kumar

  1. What is most appropriate way to open file "placementquestion.txt" in write mode?
    1. openf("placementquestion.txt", "w");
    2. fopen("placementquestion.txt", "w");
    3. open("placementquestion.txt", "w");
    4. fopen("placementquestion.txt", "w+");
Answer :
B
Explanation:
Added By : Abhijit Kumar


  1. In PHP, variable always start with _____?
    1. %
    2. #
    3. &
    4. $
Answer :
D
Explanation:
Added By : Abhijit Kumar

  1. A PHP scripting block always starts with
    1. < ?php ...... ?>
    2. <@ ....... />
    3. <% .... %>
    4. { ..... }
Answer :
A
Explanation:
Added By : Nitin Goyal

  1. PHP stands for
    1. Process Hypertext Preprocessor
    2. Preprocessor Hypertext
    3. Hypertext Preprocessor
    4. None of the above
Answer :
C
Explanation:
Added By : Nitin Goyal

Social Sharing
Search