Explore topic-wise MCQs in Testing Subject.

This section includes 657 Mcqs, each offering curated multiple-choice questions to sharpen your Testing Subject knowledge and support exam preparation. Choose a topic below to get started.

1.

---methods can be overridden by redefining the methods (use the same name) in thechild class.Sol:

A. inheritance
B. public
C. protected
D. private
Answer» B. public
2.

-------are used to declare methods that can be used in multiple classes. Traits can havemethods and abstract methods that can be used in multiple classes.Sol:

A. static
B. self
C. traits
D. single inheritance
Answer» D. single inheritance
3.

All------methods must be public, while abstract class methods is public or protected Sol:

A. abstract
B. child
C. interface
D. implement
Answer» D. implement
4.

-------classes and methods are when the parent class has a named method, but need itschild class(es) to fill out the tasksSol:

A. abstract
B. child
C. interface
D. implement
Answer» B. child
5.

An- - - - - - can contains wide variety of data.For example, database ofnumbers, numbers representing molecular structure or a mathematical equation.Sol:

A. XML document
B. descriptive
C. html document
D. Empty XML elements.
Answer» B. descriptive
6.

Never use GET method if you have password or other sensitive information to be sentto the server.Sol:

A. yes
B. no
C. can not say
D. none of these.
Answer» B. no
7.

After the information is encoded it is sent to the server Spaces are removed andreplaced with the + character and any other non alphanumeric characters are replaced with a hexadecimal values.Sol:

A. yes
B. no
C. can not say
D. none of these.
Answer» B. no
8.

An- - - - - - - - - - can contains wide variety of data.For example, databaseof numbers, numbers representing molecular structure or a mathematical equation.Sol:

A. XML document
B. descriptive
C. html document
D. Empty XML elements.
Answer» B. descriptive
9.

The----------method cannot be used for passing sensitive information like usernamesand passwords.Sol:

A. $_GET
B. $_POST
C. POST
D. GET
Answer» E.
10.

------cannot have properties, while abstract classes can Sol:

A. abstract
B. child
C. interface
D. implement
Answer» D. implement
11.

The PHP provides $_POST associative array to access all the sent information usingPOST method.Sol:

A. yes
B. no
C. can not say
D. none of these.
Answer» B. no
12.

The PHP provides-------associative array to access all the sent information using GETmethod.Sol:

A. $_GET
B. $_POST
C. POST
D. QUERY_STRING
Answer» B. $_POST
13.

The PHP provides----------associative array to access all the sent information usingPOST method.Sol:

A. $_GET
B. $_POST
C. POST
D. QUERY_STRING
Answer» C. POST
14.

Use POST when you need the server, which controls URL generation of your resources Sol:

A. yes
B. no
C. can not say
D. none of these.
Answer» B. no
15.

Use-----when you need the server, which controls URL generation of your resources Sol:

A. $_GET
B. $_POST
C. POST
D. GET
Answer» D. GET
16.

------cannot be changed once it is declared. Sol:

A. final
B. constants
C. const
D. case-sensitive
Answer» C. const
17.

------has a limitation on the length of the values, generally 255 characters Sol:

A. $_GET
B. $_POST
C. POST
D. GET
Answer» E.
18.

-----------is a markup language that looks a lot like HTML Sol:

A. XML
B. descriptive
C. html document
D. Empty XML elements.
Answer» B. descriptive
19.

Before the browser sends the information to the server , it encodes it using a schemecalled URL.Sol:

A. yes
B. no
C. can not say
D. none of these.
Answer» B. no
20.

The POST method can be used to send ASCII as well as binary data Sol:

A. yes
B. no
C. can not say
D. none of these.
Answer» B. no
21.

Class constants are--------However, it is recommended to name the constants in alluppercase letters.Sol:

A. final
B. constants
C. const
D. case-sensitive
Answer» E.
22.

To implement an interface, a class must use the-------keyword. Sol:

A. abstract
B. child
C. interface
D. implement
Answer» E.
23.

-------Name of server hostunder which the current script is executing Sol:

A. $_SERVER
B. SERVER_ADDR
C. SERVER_NAME
D. QUERY_STRING
Answer» D. QUERY_STRING
24.

-----make it easy to use a variety of different classes in the same way. When one ormore classes use the same interface, it is referred to as "polymorphism"Sol:

A. abstract
B. child
C. interface
D. implement
Answer» D. implement
25.

An abstract class or method is defined with the------keyword: Sol:

A. abstract
B. child
C. interface
D. implement
Answer» B. child
26.

If you use------method, the browser appends the data to the URL Sol:

A. $_GET
B. $_POST
C. POST
D. GET
Answer» E.
27.

An------class is a class that contains at least one abstract method Sol:

A. abstract
B. child
C. interface
D. implement
Answer» B. child
28.

-----------returns name of directory on server that is configured as document root Sol:

A. REQUEST_METHOD
B. DOCUMENT_ROOT
C. REMOTE_ADDR
D. SERVER_PORT
Answer» C. REMOTE_ADDR
29.

All methods in an-----are abstract, so they cannot be implemented in code and theabstract keyword is not necessarySol:

A. abstract
B. child
C. interface
D. implement
Answer» B. child
30.

----not works with predefined tags like ,, , etc. Sol:

A. XML
B. HTML
C. UTF-8
D. 1056
Answer» B. HTML
31.

------not works with predefined tags like ,, , etc. Sol:

A. XML
B. Asyanchronous java script
C. Ajax
D. java script
Answer» B. Asyanchronous java script
32.

-----is a markup language much like HTML. Sol:

A. XML
B. HTML
C. UTF-8
D. 1056
Answer» B. HTML
33.

----------requests can be used only to retrieve data Sol:

A. $_GET
B. $_POST
C. POST
D. GET
Answer» E.
34.

An------method is a method that is declared, but not implemented in the code. Sol:

A. abstract
B. child
C. interface
D. implement
Answer» B. child
35.

------is a markup language that looks a lot like HTML Sol:

A. XML
B. descriptive
C. html document
D. Empty XML elements.
Answer» B. descriptive
36.

--------is a markup language that looks a lot like HTML Sol:

A. XML
B. descriptive
C. html document
D. Empty XML elements.
Answer» B. descriptive
37.

The number of required arguments must be the same. However, the-----class may haveoptional arguments in additionSol:

A. abstract
B. child
C. interface
D. implement
Answer» C. interface
38.

We can access a-------from outside the class by using the class name followed by thescope resolution operator (::) followed by the constant nameSol:

A. final
B. constant
C. const
D. case-sensitive
Answer» C. const
39.

When inheriting from an------class, the child class method must be defined with thesame nameSol:

A. abstract
B. child
C. interface
D. implement
Answer» B. child
40.

-----are self-contained, modular, distributed, dynamic applications that can bedescribed, published, located, or invoked over thenetwork to create products,processes, and supply chains

A. web service
B. xml
C. html document
D. Empty XML
Answer» B. xml
41.

----works with predefined tags like ,, , etc. Sol:

A. XML
B. HTML
C. UTF-8
D. 1056
Answer» C. UTF-8
42.

The----class method must be defined with the same name and it re declares the parentabstract methodSol:

A. abstract
B. child
C. interface
D. implement
Answer» C. interface
43.

A class constant is declared inside a class with the-----keyword. Sol:

A. final
B. constants
C. const
D. case-sensitive
Answer» D. case-sensitive
44.

Traits are declared with the----keyword Sol:

A. static
B. self
C. traits
D. single inheritance
Answer» D. single inheritance
45.

-----------validates the document and check that the document is well formatted Sol:

A. simpleXML
B. simplexml_load_string( ).
C. simplexml_load_file( filename)
D. XML parser
Answer» E.
46.

Static methods are declared with the------keyword Sol:

A. static
B. self
C. traits
D. single inheritance
Answer» B. self
47.

-----works with predefined tags like ,, , etc. Sol:

A. HTML
B. Asyanchronous java script
C. Ajax
D. java script
Answer» B. Asyanchronous java script
48.

-----plays an important role in many different IT systems. Sol:

A. XML
B. HTML
C. UTF-8
D. 1056
Answer» B. HTML
49.

The-----method is restricted to send upto 1024 characters only Sol:

A. GET
B. ?
C. POST
D. QUERY_STRING
Answer» B. ?
50.

----------are declared with the trait keyword Sol:

A. static
B. self
C. traits
D. single inheritance
Answer» D. single inheritance