McqMate
These multiple-choice questions (MCQs) are designed to enhance your knowledge and understanding in the following areas: Bachelor of Computer Applications (BCA) , Bachelor of Business Administration in Computer Applications (BBA [CA]) .
Chapters
101. |
In PHP, we have the following loop types: |
A. | while loop |
B. | for loop |
C. | foreach |
D. | all the these. |
Answer» D. all the these. |
102. |
PHP recognize constructors by the name. |
A. | ) class name() |
B. | _construct() |
C. | function _construct() |
D. | function __construct( |
Answer» B. _construct() |
103. |
Which version of PHP introduced the instance of keyword? |
A. | PHP 4 |
B. | . PHP 5 |
C. | . PHP 5.3 |
D. | . PHP 6 |
Answer» B. . PHP 5 |
104. |
Which one of the following functions is used to determine whether a class exists? |
A. | exist() |
B. | exist_class() |
C. | class_exist() |
D. | txist() |
Answer» A. exist() |
105. |
Which one of the following functions is used to determine object type? |
A. | ) obj_type() |
B. | type() |
C. | is_a() |
D. | is_obj() |
Answer» A. ) obj_type() |
106. |
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» A. . extends |
107. |
Which keyword is used to refer to properties or methods within the class itself? |
A. | . private |
B. | public |
C. | protected |
D. | . $this |
Answer» A. . private |
108. |
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» B. . final |
109. |
HTTP stands for ___________. |
A. | Hyper text transfer protocol |
B. | hyper text mark protcol |
C. | File transfer protocol |
D. | none of these |
Answer» A. Hyper text transfer protocol |
110. |
To upload the file ________ array is used. |
A. | $Files |
B. | $load |
C. | $New |
D. | none of these |
Answer» B. $load |
111. |
PHP was designed as a ________ scripting language. |
A. | Sever side |
B. | client slide |
C. | c++ |
D. | none of these |
Answer» A. Sever side |
112. |
mysql_close() is use to ________database(wamp) in php . |
A. | create |
B. | close |
C. | connect |
D. | none of these |
Answer» A. create |
113. |
XML is used to data. |
A. | design |
B. | store |
C. | delete |
D. | none of these |
Answer» B. store |
114. |
XML tags are predefined ----------- |
A. | true |
B. | false |
C. | not know |
D. | both true and false |
Answer» B. false |
115. |
Xml separate the data from presentation |
A. | true |
B. | false |
C. | not know |
D. | both true and false |
Answer» A. true |
116. |
Xml document are formed by trees |
A. | structure |
B. | element |
C. | Attribute |
D. | html |
Answer» B. element |
117. |
An XML tree start at root element and end at its child elements, |
A. | true |
B. | false |
C. | not know |
D. | both true and false |
Answer» A. true |
118. |
We can create our own tags in Xml , but it must properly defined and end. |
A. | true |
B. | false |
C. | not know |
D. | both true and false |
Answer» A. true |
119. |
An XML element can contain ___ |
A. | text elements attribute |
B. | only attribute |
C. | element |
D. | none of these |
Answer» A. text elements attribute |
120. |
________ 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» A. Xml_DOM |
121. |
Xml is use to separate the_____ form design. |
A. | Data |
B. | table |
C. | file |
D. | none of these |
Answer» A. Data |
122. |
CSS is use to separate data from _____. |
A. | tag |
B. | data |
C. | file |
D. | table |
Answer» A. tag |
123. |
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» A. HTML DOM |
124. |
__________ is used to display data and focuses on how data looks. |
A. | HTML |
B. | xml |
C. | css |
D. | none of these |
Answer» A. HTML |
125. |
_________ is a software and hardware independent tool used to transport and store data. It focuses on what data is. |
A. | XML |
B. | HTML |
C. | CSS |
D. | none of these |
Answer» A. XML |
126. |
XML is neither a presentation language nor a programming language. |
A. | true |
B. | false |
C. | both |
D. | none of these |
Answer» A. true |
127. |
In XML we can define/create the tags according to your need. |
A. | true |
B. | false |
C. | both |
D. | none of these |
Answer» A. true |
128. |
______is designed to read the XML and create a way for programs to use XML. |
A. | XML PERSOR |
B. | CSS |
C. | XML-TREE |
D. | None of these |
Answer» A. XML PERSOR |
129. |
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» C. XML-TREE |
130. |
The abs() function returns the absolute (positive) value of a number: |
A. | true |
B. | false |
C. | both a and b |
D. | none of these |
Answer» A. true |
131. |
the sqrt() function returns the square root of a number: |
A. | true |
B. | false |
C. | both a and b |
D. | none of these |
Answer» A. true |
132. |
The round() function rounds a floating-point number to its nearest integer: |
A. | true |
B. | false |
C. | both a and b |
D. | none of these |
Answer» A. true |
133. |
The rand() function generates a random number: |
A. | true |
B. | false |
C. | both a and b |
D. | none of these |
Answer» A. true |
134. |
________ is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. |
A. | PHP |
B. | java script |
C. | Angular js |
D. | none of these |
Answer» A. PHP |
135. |
_______ is a object oriented programming language , it is used to create the object… |
A. | PHP |
B. | java script |
C. | Angular js |
D. | none of these |
Answer» A. PHP |
136. |
A ________ script can be placed anywhere in the document. |
A. | PHP |
B. | java script c |
C. | Angular js |
D. | none of these |
Answer» A. PHP |
137. |
The default file extension for PHP files is _________ |
A. | .PHP |
B. | .js |
C. | .Ajs |
D. | none of these |
Answer» A. .PHP |
138. |
__________ is used to show the out put …or give message..same as printf in c language… |
A. | Echo |
B. | java script |
C. | Angular js |
D. | none of these |
Answer» A. Echo |
139. |
A PHP script starts with <?php and ends with ?>: <?php // PHP code goes here ?> |
A. | true |
B. | false |
C. | both a and b |
D. | none of these |
Answer» A. true |
140. |
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» A. true |
141. |
PHP files can contain text, HTML, CSS, JavaScript, and PHP code |
A. | true |
B. | false |
C. | both a and b |
D. | none of these |
Answer» A. true |
142. |
PHP runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.) |
A. | true |
B. | false |
C. | both a and b |
D. | none of these |
Answer» A. true |
143. |
PHP is compatible with almost all servers used today (Apache, IIS, etc.) |
A. | true |
B. | false |
C. | both a and b |
D. | none of these |
Answer» A. true |
144. |
PHP supports a ___________ range of databases |
A. | wide |
B. | small |
C. | short |
D. | none of these |
Answer» A. wide |
145. |
PHP supports the following data types: |
A. | String |
B. | Integer |
C. | Float (floating point numbers - also called double) |
D. | all of the above . |
Answer» D. all of the above . |
146. |
PHP divides the operators in the following groups: |
A. | Increment/Decrement operators |
B. | Logical operators |
C. | String operators |
D. | all of the above |
Answer» D. all of the above |
147. |
The basic assignment operator in PHP is __________ It means that the left operand gets set to the value of the assignment expression on the right. |
A. | = |
B. | ++ |
C. | == |
D. | ? |
Answer» A. = |
148. |
the _________ statement is used to perform different actions based on different conditions |
A. | switch |
B. | if condition |
C. | foreach |
D. | while |
Answer» B. if condition |
149. |
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» A. function |
150. |
In php A function will not execute automatically when a page loads. |
A. | true |
B. | false |
C. | both a and b |
D. | none of these |
Answer» A. true |
Done Studing? Take A Test.
Great job completing your study session! Now it's time to put your knowledge to the test. Challenge yourself, see how much you've learned, and identify areas for improvement. Don’t worry, this is all part of the journey to mastery. Ready for the next step? Take a quiz to solidify what you've just studied.