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: 01/10/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.
__________ is a data type which contains information about data and function inside the class
Integer numbers
Array
True or False state
Array
2.
__________ is a collection of characters within the double or single quotes
String
Boolean
Integer
Float
3.
PHP also creates ___________ Webpages in thereal time Webdevelopment projects.
Dynamic
interactive
both a and b
None of these
4.
PHP was invented by __________
RasmusLerdorf
Dennis Ritchie
Bjarne Strousrup
James Goasling
5.
The assignment activity implemented using __________ operator.
+
-
*
=
6.
Which of the below symbols is a newline character?
\r
\n
/n
/r
7.
Which of the following PHP statements will output Hello World on the screen?
echo (“Hello World”);
print (“Hello World”);
printf (“Hello World”);
sprintf (“Hello World”);
8.
9.
A PHP script should start with __________ and end with _________:
< php >
< ? php ? >
< ? ? >
< ?php ? >
10.
What does PHP files have a default file extension?
.html
.xml
.php
.ph
11.
Define Webserver.
12.
How to declare variables in PHP?
13.
What is URL?
14.
Difference between Client and Server?
15.
What is Webserver?
16.
What are the common usages of PHP?
17.
Write short notes on PHP operator.
18.
Differentiate Server side and Client Side Scripting language.
19.
Write the features of server side scripting language
20.
Explain operators in PHP with example.
21.
Explain the process of Webserver installation.
22.
Explain client side and server side scripting language.
23.
Modulus
24.
Object
25.
Boolean
26.
String
1.
(d)
Array
2.
(a)
String
3.
(c)
both a and b
4.
(a)
RasmusLerdorf
5.
(d)
=
6.
(b)
\n
7.
(a)
echo (“Hello World”);
8.
(a)
9.
(b)
< ? php ? >
10.
(c)
.php
11.
A server is a computer or a device that provides functionalities for other programs of devices called "Client".
12.
(i) Variable name must always begin with a \($\) symbol.
(ii) Variable name can not start with a number.
(iii) Variable names are case-sensitive. Eg. \($\)a = 6;
13.
Uniform Resource Locater (URL), refers the address of a specific web page or file on the internet.
14.
| 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. |
15.
(i) Webserver is software which is running in server hardware.
(ii) It takes the responsibilities for compilation and execution of server side scripting languages.
16.
(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.
17.
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.
18.
| Basis for comparison | Server-side scripting | Client-side scripting |
|---|---|---|
| Basic | Works in the back end which could not be visible at the client end. | Works at the front end and script are visible among the users. |
| Processing | Requires server interaction | Does not need interaction with the server |
| Languages involved | PHP, ASP.net,Ruby on Rails, ColdFusion, Python, etcetera. | HTML, CSS, JavaScript, etc. |
| Affect | Could effectively customize the web pages and provide dynamic websites | Can reduce the load to the server. |
| Server-side scripting |
Relatively secure. | Insecure |
19.
(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.
20.
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 |
21.
The following are the steps to install and configure Apache Httpd webserver and PHP module in windows server machine.
Step 1:
Go to Apache foundation website and download the Httpd webserver software.
https://httpd.apache.org/download.cgi.
Step 2:
After downloading MSI file from Apache foundation website, user launches the MSI file and clicks next.
Click on next and next button finish the installation on server machine.
Software takes default port number 130 or 130130.
Once the user finished, webserver software is installed and configured on server hardware machine as a service.
Step 3:
To test the installation of Apache Httpd webserver, enter the following URL. from your web browser which is installed in your client machine.
https://localhost:130/ (or) https://localhost:130130
The output page that says "Its works"
Step 4:
Administrator user can start, stop and restart the webserver service at any time via windows control panel.
Once the services stops, the client machine will not receive the response message from server machine.
Step 5.
Webserver's configuration setting file "httpd.conf" is located in the conf directory under the apache installation directory.
Edit this file and enable the PHP module to run PHP scripting language.
22.
Client side scripting language:
1. Code that is present in a client's HTML page.
2. The language used for client scripting is Java script. It is the most widely used language for client-side scripting.
3. It is compatible and has the ability to run on any browsers.
4. The browser then downloads that code temporarily and processes it without the server.
5. As a result, it is now faster and easier to do client side scripting and leaving less word for the server.
Server side scripting language:
1. Server side scripting usually happens on the back-end of a website.
2. Server side scripting creates a path for the website to the database and all behind the scene work which organizes and runs a website. In server side scripting, the responses can be customized based on requirement of the user.
3. Example of server side programming language is PHP scripting language.
4. It can be executed via an interpreter which is installed in the webservers or CGI (Common Gateway Interface).
5. The most of the webservers such as Apache Tomcat, Microsoft IIS (Internet Information Server) supports the PHP interpreter module.
23.
Remainder
24.
Data and functions
25.
True/False
26.
Collection of characters
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