Chapter: Web Techniques
1.

URL stands for ____________ .

A. Uniform resource locator
B. Universal resource location
C. Universe research land mark
D. non of theses
Answer» A. Uniform resource locator
2.

The __________ array contains information from the web server.

A. S_client
B. S_server
C. dynamic
D. non of these
Answer» B. S_server
3.

The _________ works through request header and response.

A. Authentication
B. Authority
C. Responsibility
D. none of these
Answer» A. Authentication
4.

_____________ is a php super global variable which is used to access global variable from anywhere in PHP script.

A. $_ localb
B. $_Global
C. Client
D. none of these
Answer» B. $_Global
5.

The size of file can be limited using _________ limit and _____________ limit.

A. soft and hard
B. little and short
C. mg and gb
D. none of these
Answer» A. soft and hard
6.

How do you create cookie in PHP by ________.

A. set-cookie()
B. create Cookie ()
C. make Cooking()
D. none of these
Answer» A. set-cookie()
7.

MYSQL i here "i" means________

A. implementation
B. interface
C. improved
D. none of these
Answer» C. improved
8.

Data source name in pear DB is _________

A. String
B. character
C. float
D. int
Answer» A. String
9.

Which are build in data types that sql supports?

A. real ,double precision
B. mysql
C. pear db
D. data
Answer» A. real ,double precision
10.

which type of language used in sql

A. DDL
B. DML
C. DIL
D. none of these
Answer» A. DDL
11.

java script was designed as a _____ scripting language.

A. get
B. Post
C. Server
D. Client
Answer» D. Client
12.

HTTP stands for ___________.

A. Hyper text transfer protocol
B. hyper text mark protocol
C. File transfer protocol
D. none of these
Answer» A. Hyper text transfer protocol
13.

Get and ________ are two HTTP methods that a client use to pass from data server.

A. get
B. Post
C. Server
D. Client
Answer» B. Post
14.

______ tag is used for multiple selections.

A. select tag
B. text tag
C. list tag
D. none of these
Answer» A. select tag
15.

To upload the file ________ array is used.

A. $Files
B. $load
C. $New
D. none of these
Answer» A. $Files
16.

PHP was designed as a ________ scripting language.

A. Sever side
B. client slide
C. compiler
D. none of these
Answer» A. Sever side
17.

____________is about communication between web clients and servers

A. WWW
B. HTML
C. TCP
D. FTP
Answer» A. WWW
18.

Communication between client computers and web servers is done by sending _________________.

A. HTTP request & HTTP Responses
B. GET & POST
C. TCP & FTP
D. none of these
Answer» A. HTTP request & HTTP Responses
19.

A ______is a small file that the server embeds on the user's computer. Each time the same computer requests a page with a browser, it will send the ________ too.

A. Cookie & cookie
B. FTP & TCP
C. GET & POST
D. HTTP request & HTTP Responses
Answer» A. Cookie & cookie
20.

_______ statements reduce parsing time as the preparation on the query is done only once (although the statement is executed multiple times)

A. Prepared
B. fetch
C. array
D. SSL
Answer» A. Prepared
21.

The MySQLi functions allows you to access______ database servers.

A. Mysql
B. SSL
C. Fetch
D. none of these
Answer» A. Mysql
22.

The____ function fetches a result row as an associative array, a numeric array, or both.

A. fetch array()
B. Cookie()
C. S_Array()
D. D_array()
Answer» A. fetch array()
23.

The ssl_set()function is used to establish secure connections using _____

A. secure socket layer (SSL)
B. Mysql
C. http
D. none of these
Answer» A. secure socket layer (SSL)
24.

__________ function is used to change the default database for the connection.

A. fetch_array()
B. Cookie()
C. S_Array()
D. mysqli_select_db()
Answer» D. mysqli_select_db()
25.

An inherited class is defined by using the ______ keyword.

A. extends
B. constructor
C. object
D. none of these
Answer» A. extends
26.

Abstract classes and methods are when the parent class has a named method, but need its child class(es) to fill out the tasks.

A. true
B. false
C. both a and b
D. none of these
Answer» A. true
27.

An abstract class is a class that contains at least one abstract method. An abstract method is a method that is declared, but not implemented in the code.

A. true
B. false
C. both a and b
D. none of these
Answer» A. true
28.

When inheriting from an abstract class, the child class method must be defined with the same name, and the same or a less restricted access modifier.

A. true
B. false
C. both a and b
D. none of these
Answer» A. true
29.

Interfaces allow you to specify what methods a class should implement.

A. true
B. false
C. both a and b
D. none of these
Answer» A. true
30.

Interfaces are declared with the ________ keyword:

A. interface
B. abstract class
C. implements
D. None of these
Answer» A. interface
31.

Interface are similar to abstract classes. The difference between interfaces and abstract classes are Interfaces cannot have properties, while abstract classes can have.

A. interface
B. abstract class
C. implements
D. None of these
Answer» A. interface
32.

To implement an interface, a class must use the______ keyword.

A. interface
B. abstract class
C. implements
D. None of these
Answer» C. implements
33.

In PHP, there are three types of arrays one is not type of array in php which one:

A. Indexed arrays -
B. Associative arrays -
C. Multidimensional arrays -
D. polygamy array
Answer» D. polygamy array
34.

An inherited class is defined by using the extends keyword.

A. true
B. false
C. both a and b
D. none of these
Answer» A. true
35.

Classes and objects are the two main aspects of __________________

A. object oriented programming
B. constructor and destructor
C. object and array
D. none of these
Answer» A. object oriented programming
36.

A constructor allows you to initialize an object's properties upon creation of the object.

A. true
B. false
C. both a and b
D. none of these
Answer» A. true
37.

If you create a _______function, PHP will automatically call this function when you create an object from a class.

A. __construct()
B. ___destruct()
C. both a and b
D. none of these
Answer» A. __construct()
38.

A destructor is called when the object is destructed or the script is stopped or exited.

A. true
B. false
C. both a and b
D. none of these
Answer» A. true
39.

A cookie is a small file that the server embeds on the user's computer. Each time the same computer requests a page with a browser, it will send the cookie too. With PHP, you can both create and retrieve cookie values.

A. true
B. false
C. both a and b
D. none of these
Answer» A. true
40.

A session is a way to store information (in variables) to be used across multiple pages.

A. true
B. false
C. both a and b
D. none of these
Answer» A. true
Tags
  • Question and answers in Web Techniques,
  • Web Techniques multiple choice questions and answers,
  • Web Techniques Important MCQs,
  • Solved MCQs for Web Techniques,
  • Web Techniques MCQs with answers PDF download