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: 03/12/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.
Which of the following is a back-end application?
CGI
ASP Script
PHP Script
All of these
2.
________ and ________ are most important concepts that the PHP web development process.
Forms and files
Tables and Links
Both a and b
None of these
3.
How PHP files can be accessed?
Through Web Browser
Through HTML files
Through Web Server
All of Above
4.
If you would like to read a file character by character which function do you use?
fopen ( )
fread ( )
fgetc ( )
file ( )
5.
Which one of the following should not be used while sending passwords or other sensitive information?
GET
POST
REQUEST
NEXT
6.
How files are uploaded to the server?
7.
What is fopen ( ) function?
8.
Write syntax of File open function.
9.
Define File handling in PHP
10.
What is Validation in PHP?
11.
Explain briefly about fwrite( ) function.
12.
Explain briefly about fopen( ) function
13.
Sample PHP program to open and closing a file.
14.
Write short notes on File handling.
15.
Write the purpose Get method and Post method.
16.
Explain concepts of HTTP Uploading process.
17.
Discuss in detail about HTML form controls.
1.
(d)
All of these
2.
(a)
Forms and files
3.
(a)
Through Web Browser
4.
(c)
fgetc ( )
5.
(a)
GET
6.
A PHP script can be used with a HTML form to allow users to upload files to the server
7.
fopen ( ) is a system function available in PHP.
8.
Syntax:
\($\)file_Object = fopen("FileName", "Read/WriteMode") or die("Error Message!");
9.
File handling is an important activity of all web application development process.
10.
Validation is a process of checking the input data submitted by the user from client machine.
11.
PHP write a File:
The fwrite( ) function is used to write to a file.
Syntax:
fwrite($myfile, $txt);
Example:
< ?php
$myfile = fopen("new_schooLfile.
txt", "w'')
or die("Unable to open file!'');
$txt = "School Name\n";
fwrite($myfile, $txt);
$txt = "Student Name\n";
fwrite($myfile, $txt);
fclose($myfile);
? >
12.
PHP Open a File
1. fopen( ) is a system function available in PHP.
2. This function helps to open a file in the server.
3. 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:
< ?php
$myfile = fopen("Student.txt", "r'') or die("Unable to open file!'');
? >
13.
i) Text(Notepad) file:
AJAX = Asynchronous JavaScript and XML
CSS = Cascading Style Sheets
HTML = Hyper Text Markup Language
PHP = PHP Hypertext: Preprocessor
SQL = Structured Query Language
SVG = Scalable Vector Graphics
XML = EXtensible Markup Language
ii) PHP File:
< ?php
$myfile = fopen("webdictionary.txt", "r'') or
die("Unable to open file!'');
echo fread( $myfile, filesize("webdictionary.
txt'')); fclose($myfile);
? >
iii) OUTPUT
AJAX = Asynchronous JavaScript and XML
CSS = Cascading Style Sheets
HTML = Hyper Text Markup Language
PHP = PHP Hypertext Preprocessor
SQL = Structured Query Language
SVG = Scalable Vector Graphics
XML = EXtensible Markup Language
14.
File handling is needed for any web application development process. File handling in PHP similar as file handling is done by Clanguage. PHP has many functions to work with normal files.
15.
The GET and POST methods are used for sending the data to the server and the main difference between them is that GET methods append the data to the URI defined in form's action attribute POST methods attaches data to the requested body.
16.
1. File upload is the best feature to select one file from the local machine to server machine.
2. Form tag is used to mention a method as POST or GET and encrypt/attribute mentioned as "multipart /form-data. In the tag mention type = "file" attribute shows the input field as a file select control with a "Browse" button next to the input control.
3. In server machine "php.ini" file search for the file uploads directive, and set it to On : "file uploads = On"
4. After submitting the upload button the request reaches to student_photo_upload.php file.
5. In the file$_FILES variable collects all uploaded file information such as name of the file, size of the file and extension of the file etc. All the details are checked throughly and the error are saved in an array variable The file finally moves under the image directly if the array error variable is empty.
Example:
Fileupload.html:
17.
The following control are available in HTML forms:
(i) Text inputs
(ii) Buttons
(iii) Checkbox
(iv) Radio box
(v) File Select
(vi) Form Tag
(i) Text inputs contain textbox and text area controls.
(ii) Buttons may contain Submit button, Reset button and Cancel Button.
(iii) Checkbox is a important feature which selects more than one value from the HTML form.
(iv) Radio box is similar to checkbox but one value can be chosen at a time.
(v) File select is the best feature to select one file from the local machine to server machine at a time.
(vi) Form tag is used to mention a method (POST or GET) and control the entire form controls in the HTML document.
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