0% found this document useful (0 votes)
29 views2 pages

PHP Test

The document is a test on server-side scripting languages, consisting of multiple parts including True/False questions, multiple choice questions, matching, and short answer sections. It covers various scripting languages such as PHP, Python, and JavaScript, along with their characteristics and uses. The test assesses knowledge on the differences between server-side and client-side scripting languages.
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)
29 views2 pages

PHP Test

The document is a test on server-side scripting languages, consisting of multiple parts including True/False questions, multiple choice questions, matching, and short answer sections. It covers various scripting languages such as PHP, Python, and JavaScript, along with their characteristics and uses. The test assesses knowledge on the differences between server-side and client-side scripting languages.
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/ 2

Produce Server Side Script Test (60%).

Name_______________________ ID__________
Part-I: True/False
1. Server-side scripting language refers to those that run off a web browser.
2. JavaScript is probably the best-known server-side scripting language.
3. Python is the most popular, best-known client-side scripting language in use today.
4. PHP is an open-source scripting language commonly used by front-end web developers.
5. Ruby is a strictly object-oriented scripting language.
6. Operators are used to performing operations on some values.
7. CSS is client-side scripting language.
8. Client-side scripting language refers to those that run off a web server.
9. Python is client-side scripting language.
10. Perl is a general scripting language that’s been around a very long time since December 1987.
Part-II: Choose the correct answer
1. One of the following is not type of Server-side scripting language.
A. PHP B. Python C. JavaScript D. All
2. Which one of the following is the advantage of using scripting languages?
A. Slower Execution B. Open-Source C. Lack of optimizations D. None
3. Which one of the following is/are the most notable disadvantages of using scripting languages?
A. Lack of optimizations B. Open-Source C. Portable D. B&C
B. Which one of the following is not a client-side scripting language?
C. PHP B. JavaScript C. CSS D. HTML
4. Which one of the following is the most important benefit of using scripting languages?
A. Open-Source B. Slower Execution C. Portable D. A&C
5. ______is one of the most popular scripting languages and works on the server side.
A. PHP B. JavaScript C. CSS D. HTML
6. Which one of the following is not the rule for declaring PHP variable?
A. A variable must start with a dollar ($) sign, followed by the variable name.
B. It can contain alpha-numeric character and underscore (A-z, 0-9, _).
C. A variable name must start with a letter or underscore (_) character.
D. A PHP variable name contains spaces.
E. B&D
7. ______ are used to perform simple mathematical operations like addition, subtraction.
A. Comparison Operator B. Assignment Operator C. Array Operator D. None
8. _____ is the main markup language for creating web pages.
A. XHTML B. HTML C. CSS D. A&B
9. Which one of the following is not a client-side scripting language?
A. PHP B. JavaScript C. CSS D. HTML
10. Which one of the following is a server-side scripting language?
A. PHP B. JavaScript C. CSS D. HTML
11. Which one of the following is not true about server-side scripting languages?
A. They are often used to create dynamic websites and platforms
B. It performs from the back-end side.
C. The script is not visible to the visitor.
D. It is usually performed at the front end.
12.______Operators are used to compare two elements and output the result in Boolean form.
A. Ternary Operator B. Comparison Operator C. Logical Operator D. A&B
13. Which one of the following is true about client-side scripting languages?
A. They are often used to create dynamic websites and platforms
B. It performs from the back-end side.
C. The script is not visible to the visitor.
D. It is usually performed at the front end.
14.______Operators are used to compare two elements and output the result in Boolean form.
A. Ternary Operator B. Arithmetic Operator C. Logical Operator D. None
15. _____Operators are used to perform simple mathematical operations like addition, subtraction,
multiplication, etc.
A. Ternary Operator B. Comparison Operator C. Logical Operator D. Arithmetic Operator

Part III: Matching (2pt each)


A B
1. Server-side scripting language A. Logical AND
2. Client-side scripting language B. Logical XOR
3. Returns True if either of the operands is true else false C. Python
4. Returns True if both the operands are true else false D. CSS
5. Returns True if $x is false E. ?
6. Not Identical F. ||
7. Identical G. <>
8. Not Equal To H. !==
9. Ternary I. = = =
10. True if either of the operands is true and false if both are true J. !
Part IV: Short Answer
1. PHP supports 8 primitive data types that can be categorized further in 3 types. List them.(6pt)
_______________ ________________________ _____________________
2. List 5 server side scripting languages.(5pt)
___________ _________________ ____________ _____________ __________________
3. List 4 client side scripting languages.(4pt)
____________ ________________ __________________ _________________________

You might also like