Font size
WorksheetsITMajor1 & IntroSoftEng- Prelim Examination
Total questions: 20
Worksheet time: 42mins
What is PHP ?
is a general-purpose scripting language geared toward web development.
s a digital electronic machine that can be programmed to carry out sequences of arithmetic or logical operations automatically.
Both A and B
None of the Above
PHP stands for ?
PHP: Hypertext Preprocessor
PHP: Hypertext Preprocesor
PHP: Hypertext Preproccessor
PHP: Hypertext Priprocessor
PHP files can contain _____ code
HTML
CSS
JavaScript
All of the Above
PHP code is executed on the server, and the result is returned to the browser as plain ________
HTML
Text
Code
All of the Above
What will be the PHP files extension ?
.py
.php
Both A and B
None of the Above
PHP can generate (a) page content
A PHP scripts starts with _____ and ends with ______
(a)
PHP script that uses a built-in PHP function " (a) " to output the text "Hello World!" on a web page:
PHP statements end with a (a) .
A (a) in PHP code is a line that is not executed as a part of the program. Its only purpose is to be read by someone who is looking at the code.
What is the syntax for single-line comments for PHP?
(a)
What is the Syntax for multiple-line comments in PHP ?
(a)
In PHP, a variable starts with the (a) sign, followed by the name of the variable:
Insert the missing part of the code below to output "Hello World".
(a)
Write the correct opening tag and close tag for PHP scripts.
(a)
Create a variable named txt and assign the value "Hello".
(a)
Create one variable named x, and one variable named y, then use the echo statement to output the sum of x and y.
(a)
Get the length of the string "Hello World!".
(a)
Reverse the string "Hello World!".
(a)
Multiply 10 with 5, and output the result.
(a)
