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.

------the property or method can be accessed within the class and by classes derived

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

-----function that is automatically called when you create an object from a class, and a -

A. __Construct() & __destruct()
B. ___Destruct()& input()
C. oop& procedure
D. class & object
Answer» B. ___Destruct()& input()
3.

The----class method must be defined with the same name and it re declares the parent

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

Class constants are--------However, it is recommended to name the constants in all

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

The number of required arguments must be the same. However, the-----class may have

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

-----make it easy to use a variety of different classes in the same way. When one or

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

The-----will inherit all the public and protected properties and methods from the parent

A. inheritance
B. child class
C. protected
D. private
Answer» C. protected
8.

The GET method can retrieve information identified by the request-URl (Uniform

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

Never use GET method if you have password or other sensitive information to be sent

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

The--------defines a standard way for accessing and manipulating XMLdocuments. It

A. simpleXML
B. simplexml_load_string( ).
C. simplexml_load_file( filename)
D. XML DOM
Answer» E.
11.

The---------defines a standard way for accessing and manipulating

A. simpleXML
B. simplexml_load_string( ).
C. simplexml_load_file( filename)
D. HTML DOM
Answer» E.
12.

The ------------is designed to read the XMLand create a way for

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

An-----------is a software library or package that provides interfaces for client

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

The----------method cannot be used for passing sensitive information like usernames

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

The-----method can retrieve information identified by the request-URl (Uniform

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

-------has no limitation on the length of the values since they are submitted via the body

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

You cannot see------requests in browser history while You can see GET requests in

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

An------- is a basic unit of XML information composed of elements and

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

In-------method, values are visible in the URL while in POST method, values are NOT

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

An------can contains wide variety of data.For example, database of

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

An XML element is everything from (including) the element's start tag to

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

An-----element is everything from (including) the element's start tag to

A. XML
B. descriptive
C. UTF-8
D. 1056
Answer» B. descriptive
23.

---------values must always be quoted in xml. Either single or double

A. attribute
B. element
C. UTF-8
D. Empty XML elements.
Answer» B. element
24.

An------------is a basic unit of XML information composed of elements

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

--------allows web pages to be updated asynchronously by exchanging small amounts

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

An- - - - - - - - - - can contains wide variety of data.For example, database

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

-------and XML. AJAX is a technique for creating fast and dynamic

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

----------values must always be quoted in xml. Either single or double

A. attribute
B. element
C. UTF-8
D. Empty XML elements.
Answer» B. element
29.

Ajax refers to------and XML, technologies that are widely used for creating dynamic

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

While-----is not limited to JavaScript and XML technologies, more often than not

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

The basic assignment operator in PHP is __________ It means that the left operand

A. <>
B. ?
C. ""
D. =
Answer» E.
32.

In PHP, ______in this loop we check show true statement first then check the

A. for each
B. for
C. whie loop
D. do while
Answer» E.
33.

GET method supports only string data types while-------method supports different data

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

the _________ statement is used to check the action on each step and perform

A. if else
B. else if ladder
C. whie loop
D. for loop
Answer» C. whie loop
35.

GET method supports only string data types while-----method supports different data

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

The data sent by GET method can be accessed using QUERY_STRING environment

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

the _________ statement is used to perform different actions based on different

A. switch
B. if condition
C. whie loop
D. for loop
Answer» B. if condition
38.

If you create a-----function, PHP will automatically call this function when you create

A. __Construct()
B. ___Destruct()
C. oop
D. class
Answer» B. ___Destruct()
39.

The----keyword can be used to prevent class inheritance or to prevent method

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

if the-----method is defined as protected, the child class method must be defined as

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

Each----has all the properties and methods defined in the class, but they will have

A. object
B. $this
C. instanceof
D. class
Answer» B. $this
42.

PHP $_POST is a PHP super global variable which is used to collect form data after

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

PHP--------is a PHP super global variable which is used to collect form data after

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

we change the value of the $name property? There are two ways: Inside the-----

A. object
B. $this
C. instanceof
D. class
Answer» E.
45.

If you create a-----function, PHP will automatically call this function at the end

A. __Construct()
B. ___Destruct()
C. oop
D. class
Answer» C. oop
46.

PHP only supports---------a child class can inherit only from one single

A. abstract
B. child
C. interface
D. single inheritance
Answer» E.
47.

The PHP provides $_POST associative array to access all the sent information using

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

-----are self-contained, modular, distributed, dynamic applications that can be

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

An------element is everything from (including) the element's start tag to

A. XML
B. descriptive
C. UTF-8
D. 1056
Answer» B. descriptive
50.

-----------values must always be quoted in xml. Either single or double

A. attribute
B. element
C. UTF-8
D. Empty XML elements.
Answer» B. element
Previous Next