Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1) Which of the following is called configuration file or initialization file of PHP
- - php.ini
- 2) Which of the following is true statement ?
- - Apache is used as a web server of php
- 3) Which of the following is used to print something in PHP ?
- - print_r, print, echo
- 4) Which of the following is used for concatenation in PHP ?
- - .(dot)
- 5) Which of the following is super global variable of PHP ?
- - $_GET
- 6) Which of the following super global variable stores information such as headers, file paths, scripts, etc.
- - $_SERVER
- 7) Consider following code and specify the output of the same
- $x = 10;
- echo gettype($x);
- - It will print integer is a type of variable
- 8) What will be the output for following code
- <?php
- $x = 10;
- if($x=="10")
- echo "Hello";
- else
- echo "Hi";
- ?>
- - This will print Hello
- 9) What will be the output of following code ?
- <?php
- for($x=1; $x<=10; $x++)
- {
- if($x%2==0)
- continue;
- else
- echo $x;
- }
- ?>
- - It will print 1 3 5 7 9
- 10) Consider following code and identify the output
- <?php
- function hello()
- {
- echo "Arguments : ".func_num_args();
- }
- hello(10, 22, "Hello", 90);
- ?>
- - Arguments : 4
Add Comment
Please, Sign In to add comment