Explore topic-wise MCQs in Bachelor of Computer Applications (BCA).

This section includes 59 Mcqs, each offering curated multiple-choice questions to sharpen your Bachelor of Computer Applications (BCA) knowledge and support exam preparation. Choose a topic below to get started.

1.

Which of the following statements are true is/are true about constructors in PHP?(i) PHP 4 introduced class constructors.(ii) Constructors can accept parameters.(iii) Constructors can call class methods or other functions(iv) Class constructors can call on other constructors.

A. All of the mentioned
B. None of the mentioned
C. only i
D. only ii
Answer» B. None of the mentioned
2.

_______an object means converting it to a byte stream representation that can be stored into file.

A. class
B. object
C. Construct
D. Serializing
Answer» E.
3.

in PHP, An _____is a special variable, which can hold more than one value at a time.

A. array
B. structure
C. csss
D. none of these
Answer» B. structure
4.

The index can be assigned automatically (index always starts at 0), like this: $cars = array("Volvo", "BMW", "Toyota");

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

in PHP ,The____ function is used to return the length (the number of elements) of an array:

A. count
B. min
C. abs
D. sqrt()
Answer» B. min
6.

The _____ functions can be used to find the lowest or highest value in a list of arguments:

A. count & num
B. min & max
C. abs & count
D. sqrt() & round
Answer» C. abs & count
7.

_____________ 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» C. Client
8.

allows to web pages to be upload asynchronously and exchange the small of data wit server .

A. Ajax
B. xml
C. HTML
D. CSS
Answer» B. xml
9.

Jquery ajax is usefull while working with forms it consist of serialization ,client side , validation ,it is

A. true
B. false
C. both true and false
D. not know
Answer» B. false
10.

XML-RPC is more about values transfer, although it can transfer structures such as struts, lists etc. ,it is _______.

A. true
B. false
C. both
D. none of these
Answer» B. false
11.

________ function creates an XMLHttpRequest object, adds the function to be executed when the server response is ready, and sends the request off to the server.

A. LoadDoc ()
B. UDDI
C. AjaxStrart()
D. none of these
Answer» B. UDDI
12.

loadDoc() function creates an XMLHttpRequest object, adds the function to be executed when the server response is ready, and sends the request off to the server.

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

________ a type of polymorphism in which some or all of operators have different implementations depending on the types of their arguments

A. overloading
B. data Abstraction
C. Encapsulation
D. member function
Answer» B. data Abstraction
14.

PHP 5's new ______ module makes parsing an XML document, well, simple. It turns an XML document into an object that provides structured access to the XML.

A. Ajax
B. XML
C. SimpleXML
D. BBEdit
Answer» D. BBEdit
15.

______is a new technique for creating better, faster, and more interactive web applications with the help of XML, HTML, CSS and Java Script.

A. Ajax
B. XML
C. SimpleXML
D. BBEdit
Answer» B. XML
16.

An_________starts at a root element and branches from the root to child elements.

A. XML PERSOR
B. CSS
C. XML-TREE
D. None of these
Answer» D. None of these
17.

A PHP script starts with :

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

PHP code is executed on the server, and the result is returned to the browser as plain HTML

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

In php, A ___________ is a block of statements that can be used repeatedly in a program.

A. function
B. procedure
C. block
D. loop
Answer» B. procedure
20.

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» B. ___destruct()
21.

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» B. false
22.

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» B. false
23.

Which one of the following databases has PHP supported almost since the beginning?

A. Oracle Database
B. SQL
C. SQL+
D. MySQL
Answer» E.
24.

Which method returns the error code generated from the execution of the last MySQL function?

A. errno()
B. . errnumber()
C. . errorno()
D. errornumber()
Answer» B. . errnumber()
25.

The ____statement is used to perform different actions based on different conditions.

A. switch
B. min
C. abs
D. sqrt()
Answer» B. min
26.

Which one of the following methods recuperates any memory consumed by a result set?

A. destroy()
B. remover()
C. alloc()
D. free()
Answer» E.
27.

Which one of the following methods can be used to diagnose and display information about a MySQL connection error?

A. . connect_errno()
B. connect_error()
C. mysqli_connect_errno()
D. . mysqli_connect_error()
Answer» D. . mysqli_connect_error()
28.

Which one of the Following methods is responsible for sending the query to Database

A. query()
B. send_query( )
C. sendquery()
D. query_send()
Answer» B. send_query( )
29.

Which method retrieves each row from the prepared statement result and assigns the fields to the bound results?

A. get_row()
B. . fetch_row()
C. . fetch()
D. row()
Answer» D. row()
30.

In PHP $Icon=mySQL_connect("localhost","root","") is used to ____ to the data base .

A. create
B. close
C. connect
D. none of these
Answer» D. none of these
31.

the switch statement is used to perform different actions based on different conditions

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

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

A. destructor
B. constructor
C. object
D. none of these
Answer» B. constructor
33.

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

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

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» B. FTP & TCP
35.

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» B. GET & POST
36.

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» B. Cookie()
37.

_______ 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» B. fetch
38.

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» B. false
39.

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» B. false
40.

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» B. false
41.

Which keyword allows class members (methods and properties) to be used without needing to instantiate a new instance of the class?

A. protected
B. . final
C. static
D. private
Answer» C. static
42.

Which one of the following keyword is used to inherit our subclass into a super class?

A. . extends
B. . implements
C. . inherit
D. . include
Answer» B. . implements
43.

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» E.
44.

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» B. false
45.

________ define the properties and method for accessing and editing xml & html document

A. Xml_DOM
B. XML-Persor
C. HTMl
D. none of these
Answer» B. XML-Persor
46.

The _______ defines a standard way for accessing and manipulating HTML documents. It presents an HTML document as a tree-structure.

A. HTML DOM
B. CSS
C. XML
D. Form
Answer» B. CSS
47.

_______ A class that inherits from another class. This is also called a subclass or derived class.

A. child class
B. class
C. member function
D. parent Class
Answer» B. class
48.

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

A. classes
B. constructor
C. object
D. none of these
Answer» C. object
49.

__________ refers to a concept where we encapsulate all the data and member functions together to form an object.

A. overloading
B. data Abstraction
C. Encapsulation
D. member function
Answer» D. member function
50.

__________ These are the function defined inside a class and are used to access object data.

A. child class
B. class
C. member function
D. parent Class
Answer» D. parent Class