β˜‘ MCQ PRACTICE

Web Technologies Unit 1

Practice objective questions for quick revision and examination preparation. Try answering each question before revealing the answer.

πŸ“š Web Technologies
πŸ“– Unit 1
🎯 MCQs
Web Technologies MCQs - Unit 1

Web Technologies MCQs - Unit 1

1

PHP script runs on...........

A client
B server
C both on client and server
D None of the above
Correct Answer Server
2

The PHP variable name starts with……..symbol

A %
B #
C @
D $
Correct Answer $(dollar symbol)
3

A PHP string can be enclosed in ……

A Double quotes
B single quotes
C both A and B
D inverted comas
Correct Answer both A and B
4

The PHP function var_dump() returns…………

A Type of a variable
B value of a variable
C size of a variable
D both A and B
Correct Answer Type and value of a variable
5

Witch of the following is a exponentiation operator in PHP

A ^
B ^^
C *
D **
Correct Answer **
6

Witch of the following word is used to declare a PHP function

A fun
B function
C fundec
D no need to use any word
Correct Answer function
7

Resource data type is used to store……….

A reference to PHP function
B reference to external recourses of PHP
C both A & B
D to store pointers
Correct Answer both A & B
8

Witch of the following methods can be used to send the data from PHP form

A GET
B POST
C SUBMITT
D both GET & POST
Correct Answer both GET and POST
9

To send the passwords from PHP form witch of the following methods can be used

A GET
B POST
C SUBMITT
D both A & B
Correct Answer POST - because data sent by using POST method is not visible to others
10

The limitation for sending the data by GET method is………..

A 5000 characters
B 10000 characters
C about 2000 characters
D no limitation
Correct Answer about 2000 chars
11

Witch of the following functions is used to access PHP environment variables

A var_dump()
B getenv()
C preg_match()
D none of the above
Correct Answer getenv()
12

Witch of the following function is used to open a PHP file.

A fopen()
B openf()
C fopens()
D both A and B
Correct Answer fopen()
13

arguments of fread() function are………….

A File pointer
B length of file
C name of the file
D both A and B
Correct Answer File Pointer and length of the file expressed in bytes.
14

Witch of the following cookie is automatically sent to user’s computer to store unique session identification string

A SESSID
B PHPSESS
C PHPSESSID
D PHPID
Correct Answer PHPSESSID
15

session variables are stored in………….array

A array()
B session array()
C $_SESSION[]
D none
Correct Answer $_SESSION[]
16

To make PHP to work with MYSQL witch of the following is required?

A MYSQLi extension
B PDO
C both A and B
D none
Correct Answer both A and B
17

PHP cookie can be created by using ……function

A cookie ()
B set()
C setcookie()
D none
Correct Answer setcookie()
18

Witch of the following PHP syntax is correct?

A <? PHP……?>
B <?........?>
C <%.....%>
D All of the above
Correct Answer All of the above
19

The maximum permitted size of PHP files that can be uploaded is stated as………….

A max_size
B upload_size
C upload_max_filesize
D upload_max_size
Correct Answer upload_max_filesize.
20

The use of a+ mode in PHP file concept is…………

A To open a file
B to read a file
C to write a file
D to open a file to read and write
Correct Answer to open a file to read and write
← Back to All MCQs