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: 05/09/2019
Forms and Files
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.
What does fopen() function do in PHP?
It used to open files in PHP
It used to open Remote Server
It used to open folders in PHP
It used to open Remote Computer
2.
PHP is a _________ typed language
User
Loosely
Server
System
3.
If you would like to read a file character by character which function do you use?
fopen ( )
fread ( )
fgetc ( )
file ( )
4.
HTML classes that is already defined and allow us to apply styles on it are called as
Pseudo classes
Css classes
Javascript classes
None
5.
Write Syntax of Browse button in HTML.
6.
Define Browse button in HTML.
7.
Write Syntax of Text box in HTML.
8.
What is Validation in PHP?
9.
Define HTML form controls.
10.
Write short on file handling functions.
11.
Explain the difference between the POST method and GET method of sending data to the server in PHP.
12.
Explain in detail of File handling functions in PHP.
13.
Explain the process File handling.
1.
(a)
It used to open files in PHP
2.
(b)
Loosely
3.
(c)
fgetc ( )
4.
(b)
Css classes
5.
Syntax:
< input type="file" name="myFile" >
6.
The browser button defined a file-select filed and a "Browse" button for file uploads.
7.
Syntax:
<Input type = "text" name = "name">
8.
Validation is a process of checking the input data submitted by the user from client machine.
9.
HTML form controls are used to collect data from user.
10.
PHP provides a convenient way of working with files via collection of built in functions, some of the functions are file open, file read, file close, file write, Appending a file and uploading a file.
(i.e.): fopen(), fread(), fclose(), fwrite(), file_put_contents(), etc.
11.
| Post Method | Get Method |
| The input data sent to the server with POST method is stored in the request body of the client's HTTP request. | The input data sent to the server with POST method via URL address is known as query string. All input data are visible by user after they click the submit button. |
12.
File handling is an important activity of all web application development process.
Files are processed for different tasks using the following events :
(i) PHP Open a File,
(ii) PHP Read a File,
(iii) PHP Close a File,
(iv) PHP Write a File,
(v) PHP Appending a File and
(vi) PHP uploading a File.
(1) PHP Open a File : fopen() is a system function available in PHP. This function helps to open a file in the server. It contains two parameters one for the file and the other one specifies in which mode the file should be opened (Read/Write).
Syntax:
$file_Object= fopen("FileName", "Read/
WriteMode") or die("Error Message!");
Example:
$myfile = fopen("Student.txt", "r")
or die("Unable to open file!");
?>
(ii) PHP Read a File: The fread() function reads from an open file. The file object comes from fopen function.
Syntax:
fread($file_Object,filesize("FileName"));
Example:
fread($myfile,filesize("Student.txt"));
?>
(iii) PHP Close a File: The fclose() function is used to close an opened file. The file object comes from fopen function.
Syntax:
fclose($file_Object);
Example:
(iv) PHP write a File: The fwrite() function is used to write to a file.
Syntax:
13.
In the file handling process following task can be included
(i) open file for read and write
(ii) close file
(iii) perform operations on file
(iv) write results
With PHP we can handle file easily. There are various in built functions available for file handling for PHP.
Using file handling we can open, create, upload and edit files in PHP before working with file. We must open the file first using fopen() function.fopen() function is used in a following manner to perform this task.
$fp = fopen(
In the above code, we have used two parameters while using fopen() function.
filename to open mode in which file is to be opened.
The function will return a file pointer if the file is successfully opened, otherwise it will return false.
Modes we use in the file handling
| Mode | Description |
| r | Read only mode |
| r+ | Read and write mode |
| W | Write mode only |
| W+ | Write and read model |
| a | Append file mode |
| a+ | Read and append mode |
| x | It used to create and open a file only for writing purpose. |
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