12th Standard Syllabus & Materials
12th Standard
TN 12th Computer Applications மின்னணு தரவு பரிமாற்றம் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications மின் - வணிக பாதுகாப்பு அமைப்புகள் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications மின்னணு செலுத்தல் முறைகள் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications மின் - வணிகம் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications திறந்த மூல கருத்துருக்கள் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications வலையமைப்பு வடமிடல் Sample Question Papers Study Material - QB365 Set A

Published on: 26/07/2019
Introduction to Hypertext Pre-Processor
Download Tamil Nadu 12th Standard Computer Applications question papers, model tests, one-mark questions, important questions, and public exam papers in PDF format. Free study materials and answer keys for TN State Board students.
Questions + Answers key
Take MCQ Computer Applications Test

1.
Which of the following isthe important server side Web and general purpose scripting language?
HTML
CSS
Javascript
PHP
2.
PHP can embed with _______
HTML
CSS
Javascript
All of the above
3.
A PHP script should start with __________ and end with _________:
< php >
< ? php ? >
< ? ? >
< ?php ? >
4.
What does PHP files have a default file extension?
.html
.xml
.php
.ph
5.
What does PHP stand for?
Personal Home Page
Hypertext Preprocessor
Pretext Hypertext Processor
Pre-processor Home Page
6.
What is the main advantage of PHP variable declaration?
7.
What is the purpose of Var_dump( ) function?
8.
Difference between Client and Server?
9.
What are the types scripting language?
10.
What is Webserver?
11.
What are the common usages of PHP?
12.
Write short note on. Var_dump( ) function with Example
13.
Write the Characteristics of PHP.
14.
Write short notes on PHP operator.
15.
In how many ways you can embed PHP code in an HTML page?
16.
Write is the purpose of Web servers?
17.
Write the features of server side scripting language
18.
What are the three types of syntax in PHP? Explain them in detail.
19.
Explain operators in PHP with example.
20.
Modulus
21.
Var_dump ( )
22.
Resource
23.
NULL
24.
Object
1.
(d)
PHP
2.
(d)
All of the above
3.
(b)
< ? php ? >
4.
(c)
.php
5.
(b)
Hypertext Preprocessor
6.
The main advantage of the PHP variable declaration is, it does not requires to specify the data type keyword separately such as int, char, float, double or string etc.
7.
(i) The var_dump( ) function is used to dump information about a variable.
(ii) This function displays structured information such as type and value of the given variable.
8.
| Client | Server |
|---|---|
| (i) A client machine is a small computer with a basic hardware configuration. | A server machine is a high-end computer with an advanced hardware configuration. |
| (ii) A client is a simple and less powerful machine. | A server is a powerful expensive machine. |
| (iii) A client is used for simple tasks. | A server is used for storing huge data files and applications. |
9.
Web scripting languages are classified into two types.
(i) Client side scripting language
(ii) Server side scripting language.
10.
(i) Webserver is software which is running in server hardware.
(ii) It takes the responsibilities for compilation and execution of server side scripting languages.
11.
(i) PHP can be easily embed with HTML and other client side scripting language like CSS [cascading style sheets) and Java scripts.
(ii) It also creates dynamic and interactive webpages in the real time Web development projects.
(iii) It is competitor of ASP and JSP.
(iv) 78.9% of websites are developed by PHP.
12.
(i) The var_dump( ) function is used to dump information about a variable.
(ii) This function displays structured information such as type and value of the given variable.
(iii) Arrays and objects are explored recursively with values indented to show structure.
Example:
\($\)x = "COMPUTER APPUCATION!";
\($\)x = null;
var dump(\($\)x);
?>
OUTPUT: NULL
13.
(i) Open Source
(ii) Case Sensitive
(iii) Simplicity Program language
(iv) Efficiency Program language
(v) Platform Independent Program language
(vi) Security Program language
(vii) Flexibility Program language
(viii) Real-Time Access Monitoring Program language
14.
Operator is a symbol which is used to perform mathematical and logical operations in the programming languages.
Different types of operators in PHP are:
(i) Arithmetic operators
(ii) Assignment operators
(iii) Comparison operators
(iv) Increment/Decrement operators.
(v) Logical operators and
(vi) String operators
1. Arithmetic operators perform arithmetical operations such as addition, subtraction, multiplication and division etc.
2. Assignment operators are performed with numeric values to store a value in a variable. Default assignment operator is "="
3. Comparison operators perform an action to compare two values.
4. Increment/Decrement operators are used to perform increasing (or) decreasing variable's value.
5. Logical operators are used to combine conditional statements.
6. String operators are two operators which are used to perform string related operations such as concatenation and concatenation assignment.
15.
In two ways we can embed PHP code in HTML page.
(i) First way is to put HTML outside of our PHP tags.
(ii) Second way to use HTML with PHP code is by using print or Echo statement.
16.
(i) A web server's main purpose is to store web files and broadcast them over the internet for you site visitor's to see.
(ii) In-essence, a web server is simply a powerful computer that stores and transmits data via the internet.
(iii) When someone visits a web page on your site their browser communicates with your web server, sending and receiving information that ultimately dictates what appears on the visitor's computer screen. Thus, the main purpose of a web server is to store and transfer web site data upon the request of a visitor's browser.
17.
(i) Server side scripting languages is used in web development.
(ii) It is alternative for web server and itself to deliver a static web page.
(iii) It is used to provide customized interface for the user.
(iv) It also enables the website owner to hide the source code.
18.
Default Syntax:
The default Syntax begins with " < ?php"and closes with "? > ".
Short open Tags
(i) The Short open Tags begins with " < ?" andcloses with "? > " .
(ii) But admin user has to enable Short style tags settings in php.ini file on the server.
HTML Script embed Tags:
HTML Script embed Tags looks just like HTML scripts tags.
19.
An operator is a symbol that performs a given action on a value or group of values. The values the operation is performed upon are known as operands.
The types of operators in PHP are
(i) Arithmetic operators
(ii) Assignment operators
(iii) Comparison operators
(iv) Increment/Decrement operators
(v) Logical operators and
(vi) String operators
1. Arithmetic operators
Arithmetic operators are used to perform math operations, for example, addition, subtraction, multiplication, and division.
| Operator | Operator Name | Example | Output |
|---|---|---|---|
| + | Addition | 5+2 | 7 |
| - | Subtraction | 5-2 | 3 |
| * | Multiplication | 5*2 | 10 |
| / | Division | 5/2 | 2.5 |
| % | Modulus | 5%2 | 1 |
2. Assignment operators
The assignment operator is used to assign a value to a variable. The assignment operator takes the value of its right-hand operand and assigns it to its left-hand operand.
| Operator | Operator Name | Example | Output |
|---|---|---|---|
| = | Assignment operator | $a = 5; | 5 |
3. Comparison operators
Comparison operators are used to compare two values and determine whether a certain condition is true or false.
| Operator | Operator Name | Example | Output |
|---|---|---|---|
| > | Greater than | 5 > 2 | |
| < | less than | 5<2 | False |
| >= | Greater than or equal to | 5>= 2 | True |
| <= | Less than or equal to | 5<=2 | False |
| == | Equal to | 5==5 5 == 5.0 |
True False |
| === | Identical | 5===5 5===5.0 |
True False |
| != | Not equal | 5!=5 5!=6 |
True False |
| !== | Not identical | 5!==5 5!==5.0 |
True False |
4.Logical Operators:
Logical operators are used to perform logical operations on variables and values.
| Operator | Operator Name | Example | Output |
|---|---|---|---|
| && | Logical AND | (5>3) && (5>7) | False |
| II | Logical OR | (5>3) II (5>7) | True |
| xor | XOR | (5>3) xor (5>7) | True |
| ! | Logical NOT | ! (5>3) | False |
5. Increment and Decrement operators
In PHP, the increment operator ++ is used to increase the value of a variable by 1, and the decrement operator is used to decrease the value of a variable by 1. The increment and decrement operators can be used as either prefix or postfix operators.
| Operator | Name | Output |
|---|---|---|
| ++ (increment operator) |
++ $a Pre-increment | $x = ++ $a |
| ++ (increment operator) |
$a + + Post-increment | $x = $a ++ |
| -- (decrement operator) |
--$a Pre-decrement | $x = --$a |
| -- (decrement operator) |
$a-- Post-decrement | $x = $a-- |
6. String operator
String operators have concatenation operator(.) and concatenation assignment operator(-). Concatenation means adding one or more variables to an existing variable.
| Operator | Name | Example | Output |
|---|---|---|---|
| . (Dot) | Concatenation | $a = 'Hello'; $b = 'World'; $c= $a. $b; |
Hello World |
| .= (Dot equal to) | Concatenation | $a= 'Hello': $b = 'World'; $a .= $b; |
Hello World |
20.
Remainder
21.
Structured information
22.
Database Connection
23.
Single value
24.
Data and functions
12th Standard Syllabus & Materials
12th Standard
TN 12th Computer Applications களப்பெயர் முறைமை (DNS) Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications வலையமைப்பு எடுத்துக்காட்டுகள் மற்றும் நெறிமுறைகள் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications கணினி வலையமைப்பு ஓர் அறிமுகம் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications PHP-உடன் MySQL-ஐ இணைத்தல் Sample Question Papers Study Material - QB365 Set A
Tamilnadu Stateboard 12th Standard Subjects

Maths

Chemistry

Physics

Biology

Computer Science

Business Maths and Statistics

Economics

Commerce

Accountancy

History

Computer Applications

Biology

Computer Technology

Computer Applications

Computer Science

Business Maths and Statistics

Commerce

Economics

Maths

Chemistry

Physics

Computer Technology

History

Accountancy

Tamil

English

French
Tamilnadu Stateboard Standards