0% found this document useful (0 votes)
11 views3 pages

PHP Quiz

The document contains a series of multiple-choice questions and answers related to PHP, covering topics such as its definition, characteristics, syntax, and functions. Key points include that PHP stands for 'PHP Hypertext Preprocessor', it is a server-side scripting language, and PHP scripts are enclosed within '<?php ... ?>'. Additionally, it addresses predefined variables, methods for sending input, and the output of specific PHP code snippets.

Uploaded by

Bharani ISE
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views3 pages

PHP Quiz

The document contains a series of multiple-choice questions and answers related to PHP, covering topics such as its definition, characteristics, syntax, and functions. Key points include that PHP stands for 'PHP Hypertext Preprocessor', it is a server-side scripting language, and PHP scripts are enclosed within '<?php ... ?>'. Additionally, it addresses predefined variables, methods for sending input, and the output of specific PHP code snippets.

Uploaded by

Bharani ISE
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

1. PHP Stands for?

A. PHP Hypertex Processor


B. PHP Hyper Markup Processor
C. PHP Hyper Markup Preprocessor
D. PHP Hypertext Preprocessor

Answer : Option D

2. PHP is an example of ___________ scripting language.


A. Server-side
B. Client-side
C. Browser-side
D. In-side

Answer : Option A

3. Which of the following is not true?


A. PHP can be used to develop web applications.
B. PHP makes a website dynamic
C. PHP applications can not be compile
D. PHP can not be embedded into html.

Answer : Option D

4. PHP scripts are enclosed within _______


A. <php> . . . </php>
B. <?php . . . ?>
C. ?php . . . ?php
D. <p> . . . </p>

Answer : Option B

5. Which of the following variables is not a predefined variable?


A. $get
B. $ask
C. $request
D. $post

Answer : Option B
6. Which of the following method sends input to a script via a URL?
A. Get
B. Post
C. Both
D. None

Answer : Option A

7. Which of the following function returns the number of characters in a


string variable?
A. count($variable)
B. len($variable)
C. strcount($variable)
D. strlen($variable)

Answer : Option D

8. Which of the following php statement/statements will store 111 in variable num?
i) int $num = 111;
ii) int mum = 111;
iii) $num = 111; (A)
iv) 111 = $num;

9. What will be the output of the following php code


< ?php
$num = 1;
$num1 = 2;
print $num . "+". $num1 ;
?>

 A. 3

 B. 1+2 (A)

 C. 1.+.2

 D. Error

10. What will be the output of the following php code?


< ?php
$num = "1";
$num1 = "2";
print $num+$num1 ;
?>

 A. 3 (A)

 B. 1+2

 C. Error

 D. 12

You might also like