

MCQOPTIONS
Saved Bookmarks
This section includes 1112 Mcqs, each offering curated multiple-choice questions to sharpen your C++ Programming knowledge and support exam preparation. Choose a topic below to get started.
151. |
The _____ function returns the absolute (positive) value of a number: |
A. | count |
B. | min |
C. | abs |
D. | sqrt() |
Answer» D. sqrt() | |
152. |
The ____statement is used to perform different actions based ondifferent conditions. |
A. | switch |
B. | min |
C. | abs |
D. | sqrt() |
Answer» B. min | |
153. |
________Any representation of data in which the implementation details are hidden |
A. | overloading |
B. | data Abstraction |
C. | Encapsulation |
D. | member function |
Answer» C. Encapsulation | |
154. |
In PHP7, you can create an Array constant using the ____ function. |
A. | define() |
B. | min() |
C. | abs() |
D. | sqrt() |
Answer» B. min() | |
155. |
An XML element can contain ___ |
A. | text elements attribute |
B. | only attribute |
C. | element |
D. | none of these |
Answer» B. only attribute | |
156. |
Interface are similar to abstract classes. The difference between interfaces and abstract classes are Interfaces cannot have properties, while abstract classes can have. |
A. | interface |
B. | abstract class |
C. | implements |
D. | None of these |
Answer» B. abstract class | |
157. |
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 | |
158. |
There are two types of validation are available in PHP. They are as follows − |
A. | Client-Side Validation |
B. | Server Side Validation − |
C. | input type validation |
D. | only a and b not c |
Answer» E. | |
159. |
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» B. false | |
160. |
_________ is a software and hardware independent tool used to transport andstore data. It focuses on what data is. |
A. | XML |
B. | HTML |
C. | CSS |
D. | none of these |
Answer» B. HTML | |
161. |
______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» B. CSS | |
162. |
the long form of axis is Asynchronous java script & xml |
A. | true |
B. | false |
C. | both a and b |
D. | none of these |
Answer» B. false | |
163. |
An _______ is one that cannot be instantiated, only inherited |
A. | Abstract class |
B. | Interface |
C. | Encapsulation |
D. | inheritance. |
Answer» B. Interface | |
164. |
An _____ is an instance or occurrence of our class..... |
A. | class |
B. | object |
C. | Construct |
D. | Serializing |
Answer» C. Construct | |
165. |
die(mySQL_error()) is used to show _______ message . |
A. | error |
B. | Connect |
C. | create |
D. | none of these |
Answer» B. Connect | |
166. |
The _____ functions can be used to find the lowest or highest value in a list ofarguments: |
A. | count & num |
B. | min & max |
C. | abs & count |
D. | sqrt() & round |
Answer» C. abs & count | |
167. |
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 | |
168. |
PHP recognize constructors by the name. |
A. | class name() |
B. | _construct() |
C. | function _construct() |
D. | function __construct() |
Answer» E. | |
169. |
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» B. false | |
170. |
______ tag is used for multiple selections. |
A. | select tag |
B. | text tag |
C. | list tag |
D. | none of these |
Answer» B. text tag | |
171. |
the _____function returns the square root of a number: |
A. | count |
B. | min |
C. | abs |
D. | sqrt() |
Answer» E. | |
172. |
The _____ method starts with two underscores (__). |
A. | class |
B. | object |
C. | Construct |
D. | Serializing |
Answer» D. Serializing | |
173. |
A _______ is a server that manages data for user. |
A. | Wamp |
B. | World |
C. | Excel |
D. | none of these |
Answer» B. World | |
174. |
An inherited class is defined by using the ______ keyword. |
A. | extends |
B. | constructor |
C. | object |
D. | none of these |
Answer» B. constructor | |
175. |
XML-RPC is more about values transfer, although it can transfer structures such asstruts, lists etc. ,it is _______. |
A. | true |
B. | false |
C. | both |
D. | none of these |
Answer» B. false | |
176. |
is main example of ajax application . |
A. | google map |
B. | msword |
C. | php |
D. | yahoo.com |
Answer» B. msword | |
177. |
Core PHP means solving a Mathematical problem by using paper and pen and Frame workmeans solving Mathematical problem by using a calculator. |
A. | true |
B. | false |
C. | both a and b |
D. | none of these |
Answer» B. false | |
178. |
A ______ is a way to store information (in variables) to be usedacross multiple pages. |
A. | cookie |
B. | session |
C. | abs |
D. | sqrt |
Answer» C. abs | |
179. |
An_________starts at a root element and branches from the root to childelements. |
A. | XML PERSOR |
B. | CSS |
C. | XML-TREE |
D. | None of these |
Answer» D. None of these | |
180. |
Which is the comment symbol in mysql? |
A. | && |
B. | /*….*/ |
C. | # |
D. | % |
Answer» D. % | |
181. |
----------is a technique for creating fast and dynamic web page. |
A. | Ajax |
B. | xml |
C. | HTML |
D. | non of these |
Answer» B. xml | |
182. |
__________ is used to show the out put …or give message..same as printf in clanguage… |
A. | Echo |
B. | java script |
C. | Angular js |
D. | none of these |
Answer» B. java script | |
183. |
Which one of the following methods can be used to diagnose and displayinformation about a MySQL connection error? |
A. | . connect_errno() |
B. | connect_error() |
C. | mysqli_connect_errno() |
D. | . mysqli_connect_error() |
Answer» D. . mysqli_connect_error() | |
184. |
The ssl_set()function is used to establish secure connections using _____ |
A. | secure socket layer (SSL) |
B. | Mysql |
C. | http |
D. | none of these |
Answer» B. Mysql | |
185. |
_____ returns the last error description for the most recent function call |
A. | Error no |
B. | Zero no |
C. | no error |
D. | none of these |
Answer» B. Zero no | |
186. |
A ________ consists of one or more tables. |
A. | database |
B. | command |
C. | Query |
D. | none of these |
Answer» B. command | |
187. |
______ doesn't define a specific set of tags |
A. | Ajax |
B. | XML |
C. | SimpleXML |
D. | BBEdit |
Answer» C. SimpleXML | |
188. |
___________ After submitted by data, The data has sent to a server and perform validationchecks in server machine. |
A. | Client-Side Validation |
B. | Server Side Validation − |
C. | input type validation |
D. | output type validation |
Answer» C. input type validation | |
189. |
The _____function rounds a floating-point number to its nearest integer: |
A. | round |
B. | min |
C. | abs |
D. | sqrt() |
Answer» B. min | |
190. |
Which one of the following databases has PHP supported almost since thebeginning? |
A. | Oracle Database |
B. | SQL |
C. | SQL+ |
D. | MySQL |
Answer» E. | |
191. |
PHP 5's new ______ module makes parsing an XML document, well, simple. It turns anXML document into an object that provides structured access to the XML. |
A. | Ajax |
B. | XML |
C. | SimpleXML |
D. | BBEdit |
Answer» D. BBEdit | |
192. |
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 | |
193. |
XML is neither a presentation language nor a programming language. |
A. | true |
B. | false |
C. | both |
D. | none of these |
Answer» B. false | |
194. |
The default file extension for PHP files is _________ |
A. | .PHP |
B. | .js |
C. | .Ajs |
D. | none of these |
Answer» B. .js | |
195. |
The rand() function generates a random number: |
A. | true |
B. | false |
C. | both a and b |
D. | none of these |
Answer» B. false | |
196. |
the switch statement is used to perform different actions based on differentconditions |
A. | true |
B. | false |
C. | both a and b |
D. | none of these |
Answer» B. false | |
197. |
In XML we can define/create the tags according to your need. |
A. | true |
B. | false |
C. | both |
D. | none of these |
Answer» B. false | |
198. |
Which method retrieves each row from the prepared statement result and assignsthe fields to the bound results? |
A. | get_row() |
B. | . fetch_row() |
C. | . fetch() |
D. | row() |
Answer» D. row() | |
199. |
_________ is a blue print of any object in OOP. |
A. | class |
B. | object |
C. | Construct |
D. | Serializing |
Answer» B. object | |
200. |
A ________ script can be placed anywhere in the document. |
A. | PHP |
B. | java script c |
C. | Angular js |
D. | none of these |
Answer» B. java script c | |