Font size
WorksheetsTY A Web Technologies -II (Chapter 1 and 2) Quiz
Total questions: 12
Worksheet time: 19mins
Enter your Full Name
Enter your Rollno
What is the purpose of the global array $_GET in PHP?
To retrieve data sent in the URL
To handle file uploads
To store data submitted through a form using the POST method
To store information about cookies
What is the purpose of the $_SERVER array in PHP?
Contains information about the client's browser
Stores session variables
Provides information about the server and current page
Holds database connection details
What is the main difference between GET and POST requests?
POST requests can be cached, GET requests cannot
GET requests can be cached, POST requests cannot
POST requests are idempotent, GET requests are not
GET requests are idempotent, POST requests are not
What is the purpose of the $_REQUEST array in PHP?
To handle file uploads
To manage session data
To store server configuration information
To contain the elements of the $_GET, $_POST, and $_COOKIE arrays
What is the method used to handle file uploads in PHP?
$_SERVER array
$_ENV array
$_FILES array
$_REQUEST array
What is the purpose of the session_start() function in PHP?
To resume the current session or start a new session
To end the current session and remove session data
To close a session with fresh data
To destroy all session variables
What does DTD stand for in XML?
Data Type Definition
Document Type Declaration
Document Type Definition
Data Type Declaration
What is the purpose of XML Schema?
To define the structure and data types of XML documents
To handle user input in XML
To manage session data in XML
To store server configuration information in XML
What is the purpose of an XML parser?
To convert XML data into HTML
To validate and parse XML data
To create XML documents
To handle user input in XML
What does the XML prolog contain?
Version and encoding information
Document type declaration
Root element
Attributes of the root element
