MCQOPTIONS
Saved Bookmarks
This section includes 244 Mcqs, each offering curated multiple-choice questions to sharpen your Bachelor of Business Administration in Computer Applications (BBA [CA]) knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
--------is about writing procedures or functions that perform operations on the data. Sol: |
| A. | procedural programming |
| B. | function programming |
| C. | object oriented programming |
| D. | class |
| Answer» B. function programming | |
| 2. |
while--------is about creating objects that contain both data and functions. Sol: |
| A. | procedural programming |
| B. | function programming |
| C. | object oriented programming |
| D. | method |
| Answer» D. method | |
| 3. |
A class is defined by using the---keyword, followed by the name of the class and a pairof curly braces ({}). All its properties and methods go inside the bracesSol: |
| A. | procedural programming |
| B. | function programming |
| C. | object oriented programming |
| D. | class |
| Answer» E. | |
| 4. |
Each----has all the properties and methods defined in the class, but they will havedifferent property values.Sol: |
| A. | object |
| B. | $this |
| C. | instanceof |
| D. | class |
| Answer» B. $this | |
| 5. |
----are nothing without objects! We can create multiple objects from a class Sol: |
| A. | procedural programming |
| B. | function programming |
| C. | object oriented programming |
| D. | class |
| Answer» E. | |
| 6. |
-----of a class is created using the new keyword Sol: |
| A. | object |
| B. | $this |
| C. | instanceof |
| D. | class |
| Answer» B. $this | |
| 7. |
The-----keyword refers to the current object, and is only available inside methods Sol: |
| A. | object |
| B. | $this |
| C. | instanceof |
| D. | class |
| Answer» C. instanceof | |
| 8. |
Objects of a class is created using the-----keyword Sol: |
| A. | new |
| B. | $this |
| C. | instanceof |
| D. | class |
| Answer» B. $this | |
| 9. |
we change the value of the $name property? There are two ways: Inside the-----&Outside the classSol: |
| A. | object |
| B. | $this |
| C. | instanceof |
| D. | class |
| Answer» E. | |
| 10. |
You can use the----keyword to check if an object belongs to a specific class Sol: |
| A. | object |
| B. | $this |
| C. | instanceof |
| D. | class |
| Answer» D. class | |
| 11. |
A-----allows you to initialize an object's properties upon creation of the object Sol: |
| A. | constructor |
| B. | in |
| C. | instanceof |
| D. | class |
| Answer» B. in | |
| 12. |
Notice that the destruct function starts with------- Sol: |
| A. | __Construct() |
| B. | ___() |
| C. | oop |
| D. | class |
| Answer» C. oop | |
| 13. |
If you create a-----function, PHP will automatically call this function at the endof the scriptSol: |
| A. | __Construct() |
| B. | ___Destruct() |
| C. | oop |
| D. | class |
| Answer» C. oop | |
| 14. |
-----function that is automatically called when you create an object from a class, and a ---------function that is automatically called at the end of the scriptSol: |
| A. | __Construct() & __destruct() |
| B. | ___Destruct()& input() |
| C. | oop& procedure |
| D. | class & object |
| Answer» B. ___Destruct()& input() | |
| 15. |
This------method is not compatible with some firewall setups. Sol: |
| A. | $_GET |
| B. | $_POST |
| C. | POST |
| D. | GET |
| Answer» D. GET | |
| 16. |
A------ is called when the object is destructed or the script is stopped or exited. Sol: |
| A. | constructor |
| B. | destructor |
| C. | oop |
| D. | class |
| Answer» C. oop | |
| 17. |
By the used of-------method You can keep the data private. Sol: |
| A. | $_GET |
| B. | $_POST |
| C. | POST |
| D. | GET |
| Answer» D. GET | |
| 18. |
------stands for Object-Oriented Programming. Sol: |
| A. | __Construct() |
| B. | ___Destruct() |
| C. | OOP |
| D. | class |
| Answer» D. class | |
| 19. |
-----and methods can have access modifiers which control where they can be accessed Sol: |
| A. | Properties |
| B. | Destruct |
| C. | OOP |
| D. | class |
| Answer» B. Destruct | |
| 20. |
------the property or method can be accessed within the class and by classes derivedfrom that classSol: |
| A. | Properties |
| B. | public |
| C. | protected |
| D. | private |
| Answer» D. private | |
| 21. |
-----the property or method can be accessed from everywhere. This is default Sol: |
| A. | Properties |
| B. | public |
| C. | protected |
| D. | private |
| Answer» C. protected | |
| 22. |
--------in OOP When a class derives from another class. Sol: |
| A. | inheritance |
| B. | public |
| C. | protected |
| D. | private |
| Answer» B. public | |
| 23. |
------the property or method can ONLY be accessed within the class Sol: |
| A. | Properties |
| B. | public |
| C. | protected |
| D. | private |
| Answer» E. | |
| 24. |
The-----will inherit all the public and protected properties and methods from the parentclass. In addition, it can have its own properties and methods.Sol: |
| A. | inheritance |
| B. | child class |
| C. | protected |
| D. | private |
| Answer» C. protected | |
| 25. |
An inherited class is defined by using the------keyword Sol: |
| A. | inheritance |
| B. | public |
| C. | extends |
| D. | private |
| Answer» D. private | |
| 26. |
in ----The Model stores the business logic and application data. It passes data to the View. |
| A. | Object-Relational Mapping |
| B. | object random map |
| C. | Model View Controller(mvc) |
| D. | command link interface |
| Answer» D. command link interface | |
| 27. |
----------capabilities can be especially useful when dealing with forms. Sol: |
| A. | jQuery's ajax |
| B. | serialize() |
| C. | Client-side validation |
| D. | ajaxStart |
| Answer» B. serialize() | |
| 28. |
The basic assignment operator in PHP is __________ It means that the left operandgets set to the value of the assignment expression on the right.Sol: |
| A. | <> |
| B. | ? |
| C. | "" |
| D. | = |
| Answer» E. | |
| 29. |
Conventional web application transmit information to and from the sever using----- requests |
| A. | Ajax |
| B. | Synchronous |
| C. | synchronous XML |
| D. | Asynchronous JavaScript |
| Answer» C. synchronous XML | |
| 30. |
------inputs are auto-filling inputs after submitting Sol: |
| A. | $_GET |
| B. | $_POST |
| C. | STICKY |
| D. | GET |
| Answer» D. GET | |
| 31. |
class needs to inherit multiple behaviors? OOP------is used to solve this problem. Sol: |
| A. | static |
| B. | self |
| C. | traits |
| D. | single inheritance |
| Answer» D. single inheritance | |
| 32. |
class needs to inherit multiple behaviours? OOP --------is used to solve this problem. Sol: |
| A. | static |
| B. | self |
| C. | traits |
| D. | single inheritance |
| Answer» D. single inheritance | |
| 33. |
PHP------is a PHP super global variable which is used to collect form data aftersubmitting an HTML form with method="get".Sol: |
| A. | $_GET |
| B. | $_POST |
| C. | POST |
| D. | QUERY_STRING |
| Answer» B. $_POST | |
| 34. |
PHP--------is a PHP super global variable which is used to collect form data aftersubmitting an HTML form with method="post". $_POST is also widely used to pass variablesSol: |
| A. | $_GET |
| B. | $_POST |
| C. | POST |
| D. | QUERY_STRING |
| Answer» C. POST | |
| 35. |
PHP only supports---------a child class can inherit only from one singleSol:parent. |
| A. | abstract |
| B. | child |
| C. | interface |
| D. | single inheritance |
| Answer» E. | |
| 36. |
PHP $_POST is a PHP super global variable which is used to collect form data aftersubmitting an HTML form with method="post". $_POST is also widely used to pass variablesSol: |
| A. | yes |
| B. | no |
| C. | can not say |
| D. | none of these. |
| Answer» B. no | |
| 37. |
An XML tree starts at a--------and branches from the root tochildelements.Sol: |
| A. | root element |
| B. | descriptive |
| C. | UTF-8 |
| D. | 1056 |
| Answer» B. descriptive | |
| 38. |
The-----pseudo-type was introduced in PHP 7.1, and it can be used as a data type forfunction arguments and function return values.Sol: |
| A. | foeach() |
| B. | self |
| C. | iterable |
| D. | single inheritance |
| Answer» D. single inheritance | |
| 39. |
An XML tree starts at a root element and branches from theroot to childelements.Sol: |
| A. | yes |
| B. | no |
| C. | can not say |
| D. | none of these. |
| Answer» B. no | |
| 40. |
A class can have both static and non-static methods. A static method can be accessedfrom a method in the same class using the-----keyword and double colon (::)Sol: |
| A. | static |
| B. | self |
| C. | traits |
| D. | single inheritance |
| Answer» C. traits | |
| 41. |
The----keyword can be used to prevent class inheritance or to prevent methodoverridingSol: |
| A. | final |
| B. | constants |
| C. | const |
| D. | case-sensitive |
| Answer» B. constants | |
| 42. |
-------keyword is used in interface Sol: |
| A. | abstract |
| B. | child |
| C. | interface |
| D. | implement |
| Answer» E. | |
| 43. |
This line is called the XML prolog: Sol: |
| A. | yes |
| B. | no |
| C. | can not say |
| D. | none of these. |
| Answer» B. no | |
| 44. |
-------A query string is the string of key=value pairs separated by & symbol andappended to URL after ? symbol. For example, http://localhost/testscript?name=xyz&age=20 URL returns trailing query string.Sol: |
| A. | $_SERVER |
| B. | SERVER_ADDR |
| C. | SERVER_NAME |
| D. | QUERY_STRING |
| Answer» E. | |
| 45. |
GET method supports only string data types while-----method supports different datatypes, such as string, numeric, binary, etcSol: |
| A. | $_GET |
| B. | $_POST |
| C. | POST |
| D. | GET |
| Answer» D. GET | |
| 46. |
This line is called the XML----: Sol: |
| A. | prolog |
| B. | descriptive |
| C. | UTF-8 |
| D. | 1056 |
| Answer» B. descriptive | |
| 47. |
GET method supports only string data types while-------method supports different datatypes, such as string, numeric, binary, etcSol: |
| A. | $_GET |
| B. | $_POST |
| C. | POST |
| D. | GET |
| Answer» D. GET | |
| 48. |
The ------------is designed to read the XMLand create a way forprograms to use XML.Sol: |
| A. | simpleXML |
| B. | simplexml_load_string( ). |
| C. | simplexml_load_file( filename) |
| D. | XML parser |
| Answer» E. | |
| 49. |
The--------defines a standard way for accessing and manipulating XMLdocuments. Itpresents an XML document as a tree-structure.Sol: |
| A. | simpleXML |
| B. | simplexml_load_string( ). |
| C. | simplexml_load_file( filename) |
| D. | XML DOM |
| Answer» E. | |
| 50. |
An XML element is everything from (including) the element's start tag to(including) the element's end tag.Sol: |
| A. | yes |
| B. | no |
| C. | can not say |
| D. | none of these |
| Answer» B. no | |