wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

TY A Web Technologies -II (Chapter 1 and 2) Quiz

Total questions: 12

Worksheet time: 19mins

Name
Class
Date
1.

Enter your Full Name

4 lines
2.

Enter your Rollno

4 lines
3.

What is the purpose of the global array $_GET in PHP?

a)

To retrieve data sent in the URL

b)

To handle file uploads

c)

To store data submitted through a form using the POST method

d)

To store information about cookies

4.

What is the purpose of the $_SERVER array in PHP?

a)

Contains information about the client's browser

b)

Stores session variables

c)

Provides information about the server and current page

d)

Holds database connection details

5.

What is the main difference between GET and POST requests?

a)

POST requests can be cached, GET requests cannot

b)

GET requests can be cached, POST requests cannot

c)

POST requests are idempotent, GET requests are not

d)

GET requests are idempotent, POST requests are not

6.

What is the purpose of the $_REQUEST array in PHP?

a)

To handle file uploads

b)

To manage session data

c)

To store server configuration information

d)

To contain the elements of the $_GET, $_POST, and $_COOKIE arrays

7.

What is the method used to handle file uploads in PHP?

a)

$_SERVER array

b)

$_ENV array

c)

$_FILES array

d)

$_REQUEST array

8.

What is the purpose of the session_start() function in PHP?

a)

To resume the current session or start a new session

b)

To end the current session and remove session data

c)

To close a session with fresh data

d)

To destroy all session variables

9.

What does DTD stand for in XML?

a)

Data Type Definition

b)

Document Type Declaration

c)

Document Type Definition

d)

Data Type Declaration

10.

What is the purpose of XML Schema?

a)

To define the structure and data types of XML documents

b)

To handle user input in XML

c)

To manage session data in XML

d)

To store server configuration information in XML

11.

What is the purpose of an XML parser?

a)

To convert XML data into HTML

b)

To validate and parse XML data

c)

To create XML documents

d)

To handle user input in XML

12.

What does the XML prolog contain?

a)

Version and encoding information

b)

Document type declaration

c)

Root element

d)

Attributes of the root element