TN Online TestSamacheer Kalvi practice

12th Standard Computer Applications — Forms and Files: Additional MCQs with Answers & Explanations

Share this chapter: Telegram

15 extra multiple-choice questions for Forms and Files (12th Standard Computer Applications, Samacheer Kalvi), beyond the ones printed in the textbook — each with the correct option highlighted and a clear, worked explanation. Free to read in English and Tamil.

Answer key at a glance

Q1
Which HTML form control is designed to allow the user to select more than one value from the form?
  • A. Radio box
  • B. CheckboxCorrect
  • C. Text area
  • D. Submit button
Explanation. A checkbox is a form control that allows users to select multiple options simultaneously, unlike radio boxes which restrict selection to a single option.
Q2
Which of the following is NOT categorized as a button control in HTML forms?
  • A. Submit button
  • B. Reset button
  • C. Cancel Button
  • D. File Select buttonCorrect
Explanation. According to the textbook, buttons may contain Submit, Reset, and Cancel buttons, whereas File Select is a distinct form control.
Q3
Where is the input data stored when it is sent to the server using the POST method?
  • A. In the URL address
  • B. In the request body of the client's HTTP requestCorrect
  • C. In the client-side JavaScript cookies
  • D. In the web browser's search history
Explanation. The textbook specifies that input data sent via the POST method is stored directly in the request body of the client's HTTP request.
Q4
Which attribute of the HTML
tag is used to specify the back-end script that will process the submitted data?
  • A. method
  • B. target
  • C. actionCorrect
  • D. enctype
Explanation. The action attribute in the form tag specifies the destination file or back-end script on the server that receives and processes the form data.
Q5
What are the two PHP variables used to collect submitted form data once it reaches the server?
  • A. $_POST and $_GETCorrect
  • B. $POST and $GET
  • C. $HTTP_POST and $HTTP_GET
  • D. $_SUB_POST and $_SUB_GET
Explanation. The textbook states that once data reaches the server, the PHP variables $_POST and $_GET collect the data and prepare the response.
Q6
Which type of validation is performed directly on the client machine's web browser using JavaScript or input attributes?
  • A. Server-Side Validation
  • B. Client-Side ValidationCorrect
  • C. Database-Level Validation
  • D. Session-Based Validation
Explanation. Client-side validation is executed on the user's web browser prior to submission, often using JavaScript or the HTML required attribute.
Q7
Which of the following back-end technologies can be used to perform Server-Side Validation on the server machine?
  • A. HTML or CSS
  • B. PHP, ASP, or JSPCorrect
  • C. JavaScript or jQuery
  • D. XML or JSON
Explanation. Server-side validation requires a back-end language like PHP, ASP, or JSP running on the server to check the submitted data.
Q8
According to the validation rules mentioned in the textbook, what is the specific criteria for a Name text input field?
  • A. It must contain @ and . strings
  • B. It must contain letters and white-spacesCorrect
  • C. It must contain a valid URL
  • D. It must contain at least one numeric character
Explanation. The textbook lists standard validation rules, specifying that a Name field must consist only of letters and white-spaces.
Q9
What must an Email text input field contain according to the basic validation rules in the textbook?
  • A. Only alphabetical letters
  • B. @ and . stringsCorrect
  • C. A valid web protocol prefix
  • D. At least one numeric digit
Explanation. To ensure an email format is valid, the basic validation rule states that the input field must contain both @ and . characters.
Q10
Which PHP system function is used to open a file on the server and requires parameters for the filename and the opening mode?
  • A. fopen()Correct
  • B. fread()
  • C. fclose()
  • D. fwrite()
Explanation. The fopen() function is a PHP system function that opens a file on the server using parameters specifying the filename and mode.
Q11
What is the correct syntax to read an open file using the fread() function in PHP?
  • A. fread("FileName", filesize($file_Object));
  • B. fread($file_Object, filesize("FileName"));Correct
  • C. fread("FileName", $file_Object);
  • D. fread($file_Object, "FileName");
Explanation. The correct PHP syntax for reading a file is fread(), which takes the file object and the size of the file as parameters.
Q12
Which parameter is passed to the fclose() function in PHP to successfully close an opened file?
  • A. The string "FileName"
  • B. The file object variable returned by fopen()Correct
  • C. The integer size of the file
  • D. The opening mode string
Explanation. The fclose() function requires the file object, which is originally generated by the fopen() function, to close the file.
Q13
Which PHP function is specifically used to write content into an opened file?
  • A. fopen()
  • B. fwrite()Correct
  • C. fclose()
  • D. fread()
Explanation. The fwrite() function in PHP takes the file object and the text string as parameters to write data into the specified file.
Q14
Under the client-side validation methods, which HTML attribute can be added to the tag to prompt the browser to require input before submission?
  • A. validate
  • B. check
  • C. requiredCorrect
  • D. action
Explanation. Adding the required attribute to an HTML input tag performs a basic client-side validation by forcing users to fill in the field.
Q15
In PHP file handling, what is the purpose of the or die("Error Message!") statement appended to the fopen() function?
  • A. To delete the file if it already exists
  • B. To terminate the script and output an error message if the file cannot be openedCorrect
  • C. To automatically close the file after a specified time
  • D. To encrypt the contents of the file with a password
Explanation. The or die() expression acts as error handling, which stops script execution and prints a message if fopen() fails to open the file.
Take the Additional practice test → Open the app

More for this chapter

Book Back Questions10 textbook MCQs · solved Practice TestInteractive · instant score Book Back TestTest yourself on the textbook set Additional MCQ TestTest yourself on the extra set Study NotesConcepts & methods Formula SheetAll key formulas

About these Forms and Files questions

These are the Additional multiple-choice questions for Forms and Files from the Tamil Nadu State Board (Samacheer Kalvi) 12th Standard Computer Applications syllabus. Each question shows the correct option and an original, step-by-step explanation so you understand the method, not just the answer. Use the answer key above to jump to any question, then take the practice test to check yourself under exam-like conditions.

Frequently asked questions

How many MCQs are there in Forms and Files?

This chapter has 15 book-back multiple-choice questions, each with the correct answer and a step-by-step explanation.

Are these 12th Standard Computer Applications MCQs free to practise online?

Yes. Every question, answer and explanation here is free, and you can also take them as a timed practice test.

Where can I find the Forms and Files book-back answers?

The correct option for each question is highlighted on this page with a worked explanation, plus a quick answer-key summary at the top.

More chapters in Computer Applications

View all
1 Multimedia 2 An Introduction to Adobe PageMaker 3 Introduction to Database Management System 4 PHP: Hypertext Preprocessor 5 Functions and Arrays in PHP 6 Conditional Statements in PHP 7 Loops in PHP 9 Connecting PHP and MYSQL 10 Introduction to Computer Networks 11 Network Examples and Protocols 12 Domain Name System (DNS) 13 Network Cabling 14 Open Source Concepts 15 E-Commerce 16 Electronic Payment Systems 17 E-Commerce Security Systems 18 Electronic Data Interchange- EDI