0% found this document useful (0 votes)
18 views

A) What Is PHP Stands For: 2) Personal Hypertext Preprocessor

The document contains instructions to write a PHP program that displays a string, numbers divisible by 4 from 100 to 200, checks the login of a user with username "Ali" and password "12345", and displays odd numbers from 0 to 10. It also contains multiple choice questions about PHP basics, including what PHP stands for, the correct way to end a PHP statement, variable scoping, printing statements, and variable naming conventions.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

A) What Is PHP Stands For: 2) Personal Hypertext Preprocessor

The document contains instructions to write a PHP program that displays a string, numbers divisible by 4 from 100 to 200, checks the login of a user with username "Ali" and password "12345", and displays odd numbers from 0 to 10. It also contains multiple choice questions about PHP basics, including what PHP stands for, the correct way to end a PHP statement, variable scoping, printing statements, and variable naming conventions.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

1- Write php programme that : a) b) c) d) e) Display the following string : " I will learn php that is good language"

Display number from 100 to 200 which divisible by 4 Check on LOGIN user if username is Ali and password is 12345 Display numbers from 0 to 10 where number is odd To get current date using function date( )

2- Choose correct answer: a) What is php stands for 1) Personal home page 2) Personal hypertext preprocessor 3) Personal hypertext processor 4) Private home page b) What is correct way to end a php statement 1) . 2) ; 3) New line 4) </php> c) What value is printed for "a" below
<?php $a = 1; function Test() { echo "a = $a"; } Test(); ?>

1) 1 2) 2 3) 3 4) No value d) What function used to print statement in php 1) Printf( ) ; 2) Echo( ) ; 3) " " e) All variables in PHP start with which symbol? 1) ! 2) # 3) & 4) $

You might also like