Online Test

:

 

The attack which involves the insertion of malicious code into a page frequented by other users is known as..


Which of the following PHP functions can be used to get the current memory usage?


What will be the output of the following PHP code?

  <?php
    $score = 1234;
    $scoreboard = (array) $score;
    echo $scoreboard[0];
    ?>

What will be the output of the following PHP code?

 <?php
    $op2 = "blabla";
    function foo($op1)
    {
        echo $op1;
        echo $op2;
    }
    foo("hello");
    ?>

 Which function is used to remove all HTML tags from a string passed to a form?


PHP files have a default file extension of..


To validate an e-mail address, which flag is to be passed to the function filter_var()?


Which one of the following property scopes is not supported by PHP?


What will be the output of the following PHP code?

 <?php
    $user = array("Ashley", "Bale", "Shrek", "Blank");
    for ($x=0; $x < count($user); $x++)    {
        if ($user[$x] == "Shrek") continue;
            printf ($user[$x]); 
    }
    ?>

What will be the output of the following PHP code?

<?php
    echo lcfirst("welcome to TechEpi");
    ?>

Which version of PHP introduced Try/catch Exception?


6. Which of the looping statements is/are supported by PHP?
i) for loop
ii) while loop
iii) do-while loop
iv) foreach loop


Which one of the following functions can be used to compress a string?


 Who is the father of PHP?


Which of the following are valid function names?
i) function()
ii) €()
iii) .function()
iv) $function()

 

About Us

TechEpi.com is an online learning website.We cover the latest tech news,online tutorials,blog,online test for Aptitude,C,Java,PHP to improve your knowledge.

Newsletter


Follow TechEpi on