MCQ's on Software Engineering

You will find the correct answer of all the questions after you will submit the quiz. You will also get a report of your performance after you will submit the quiz.
Unlimited attempts possible to practice. On each attempts you will get a set of 25 questions.


Enter Your Name

MCQ 1:
Which of the following type of variables are instances of programmer-defined classes?

MCQ 2:
What does PHP stand for?

MCQ 3:
What does HTML stand for?

MCQ 4:
In HTML, which element has largest heading.

MCQ 5:
Which of the following is correct about constants?

MCQ 6:
Which HTML tag or element used for inserting a line break?

MCQ 7:
PHP server scripts are surrounded by delimiters, which is used?

MCQ 8:
How do you write "About Online Education for all" in PHP.

MCQ 9:
All the variables used in PHP start with which symbol?

MCQ 10:
The correct way to end a PHP statement is ____________.

MCQ 11:
The PHP syntax is most similar to

MCQ 12:
Which of the following keyword causes the loop to skip the remainder of its body and immediately retest its condition prior to reiterating?

MCQ 13:
How do you get information from a form that is submitted using the "get" method?

MCQ 14:
When using the POST method, the variables are displayed in the URL of the page.

MCQ 15:
Can we use both single quotes ( ' ' ) and double quotes ( " " ) for strings in PHP language.

MCQ 16:
Which of the following function is used to redirect a page to another page?

MCQ 17:
Which of the following function returns the sum of the values in an array?

MCQ 18:
Which of the following function is used to get the size of a file?

MCQ 19:
Who provides the size of the uploaded file in PHP?

MCQ 20:
Which of the following method of Exception class returns formated string of trace?

MCQ 21:
Include files must have the file extension ".inc"

MCQ 22:
What is the correct way to include the file "filename.inc" ?

MCQ 23:
How to create a function, in PHP. Use the function name is myFunction.

MCQ 24:
What is the correct way to open the file "time.txt" as readable?

MCQ 25:
PHP allows you to send emails directly from a script.

MCQ 26:
Which superglobal variable holds information about headers, paths, and script locations?

MCQ 27:
What is the correct way to add 1 to the $count variable?

MCQ 28:
What is a correct way to add a comment in PHP?

MCQ 29:
PHP can be run on Microsoft Windows IIS (Internet Information Server).

MCQ 30:
The die() and exit() functions do the exact same thing.

MCQ 31:
Which one of these variables has an illegal name?

MCQ 32:
How do you create a cookie in PHP Language?

MCQ 33:
In PHP, the only way to output text is with echo.

MCQ 34:
How do you create an array of fruits in PHP?

MCQ 35:
The if statement is used to execute some code only if a specified condition is true.

MCQ 36:
Which operator is used to check if two values are equal and of same data type?

MCQ 37:
Which of the following is used to declare a constant.

MCQ 38:
What gets printed?
$var = 'false';
if ($var) {
echo 'true';
} else {
echo 'false';
}

MCQ 39:
Which of the following is the way to create comments in PHP?

MCQ 40:
What does PHP stand for?

MCQ 41:
How do we access the value of 'd' later?
$a = array('a', 3 => 'b', 1 => 'c', 'd' );

MCQ 42:
Which of the operator is NOT a valid PHP comparison operator?

MCQ 43:
Which of the subsequent is NOT a magic predefined constant?

MCQ 44:
What is the strpos() function used for?

MCQ 45:
Which of the following differences are valid between PHP 4 and PHP 5?

MCQ 46:
Can we use include ("thisfilename.php") two times in a PHP page "filename.php"?

MCQ 47:
What is the difference between GET and POST method when submitting a form?

MCQ 48:
The _________________ function in PHP returns a list of response headers sent (or ready to send).

MCQ 49:
What is array_keys() used for?

MCQ 50:
How do I create PHP arrays in a HTML < form <?

MCQ 51:
What is the difference between echo and print?

MCQ 52:
What is the default size of a file set in upload_max_filesize ?

MCQ 53:
What is Joomla in PHP?

MCQ 54:
What is the default execution time set in set_time_limit()?

MCQ 55:
Is strstr and strchr aliases?

MCQ 56:
Can we generate DLL files from PHP scripts like we can in Perl language?

MCQ 57:
In which variable is the users IP address stored?

MCQ 58:
Can I run several versions of PHP at the same time?

MCQ 59:
Which function is used to Strip whitespace (or other characters) from the beginning and end of a string?

MCQ 60:
What is PHP heredoc used for?

MCQ 61:
Can echo in php accept more than 1 parameter?

MCQ 62:
What is the purpose of $_SESSION[ ] ?

MCQ 63:
Between which tags is PHP code written?

MCQ 64:
What are the different levels of headings in HTML?

MCQ 65:
What happens if you forget a slash at the end of a header tag?

MCQ 66:
What is the HTML tag for a unordered list?

MCQ 67:
What is the HTML tag to bold text?

MCQ 68:
PHP is a ______________.

MCQ 69:
_______________ is cocatenation operator in PHP?

MCQ 70:
Which of following is used to add multiple line comments in PHP?

MCQ 71:
"PHP is a case sensitive". Is the statement is True or False.

MCQ 72:
Which sign is used to access variable of variable in PHP?

MCQ 73:
_____________ is used to unset a variable in PHP ?

MCQ 74:
How many error levels are available in PHP ?

MCQ 75:
Which function in PHP is used to get the length of string variable?

MCQ 76:
Which of the below symbols is a newline character?

MCQ 77:
Who is the father of PHP?

MCQ 78:
PHP's numerically indexed array begin with position _______________ .

MCQ 79:
Which of the functions is used to sort an array in descending order?

MCQ 80:
1. What does PHP stand for?
i) Personal Home Page
ii) Hypertext Preprocessor
iii) Pretext Hypertext Processor
iv) Preprocessor Home Page

MCQ 81:
PHP files have a default file extension of.

MCQ 82:
A PHP script should start with _____________ and end with ___________:

MCQ 83:
Which of the looping statements is/are supported by PHP language?
i) for loop
ii) while loop
iii) do-while loop
iv) foreach loop

MCQ 84:
We can use _____________ tag to comment a single line?

MCQ 85:
For changing arrays into strings, which function is used?

MCQ 86:
A period of time during which a particular person, views a number of web pages at a particular machine is called as

MCQ 87:
What will be the output of the following php code
<?php
$num = 1;

$num1 = 2;
print $num . "+". $num1 ;
?>

MCQ 88:
25. What will be the output of the following PHP code?
<?php
$team = "M";
switch ($team) {
case "M":
echo "Today is Monday";
case "T":
echo "Today is Tuesday";
case "W":
echo "Today is Wednesday";
} ?>

MCQ 89:
Which of the following are correct ways of creating an array?
(i) state[0] = array "Rajasthan";
(ii) $state[] = array("Rajasthan");
(iii) $state[0] = "Rajasthan";
(iv) $state = array("Rajasthan");

MCQ 90:
What will be the output of the following PHP code?
<?php
$fruits = array ("apple", "mango", "peach", "pear", "orange");
$subset = array_splice ($fruits, 2);
print_r ($fruits);
?>

MCQ 91:
When you need to obtain the ASCII value of a character which of the following function you apply in PHP?

MCQ 92:
Which of the following method sends input to a script via a URL?

MCQ 93:
Which databases mostly supported PHP language almost since the beginning?

MCQ 94:
The updated MySQL extension released with PHP 5 is typically referred to as _____________.

MCQ 95:
Which one of the following lines need to be uncommented or added in the php.ini file so as to enable mysqli extension?

MCQ 96:
In which version of PHP was MySQL Native Driver (also known as mysqlnd) introduced?

MCQ 97:
Which one of the following statements is used to create a table?

MCQ 98:
Which one of the following statements instantiates the mysqli class?

MCQ 99:
Array_flip ( ) function changes keys of an array into

MCQ 100:
LIFO stands for

MCQ 101:
Which one of the following statements can be used to select the database? Use database name is 'knowledge'.

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

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

MCQ 104:
What kind of session will maintain its identity as long as user stays within a site?

MCQ 105:
If there is no error, then what will the error() method return?

MCQ 106:
Which method is used to retrieve the number of rows affected by an INSERT, UPDATE, or DELETE query?

MCQ 107:
How many basic data types are offered by PHP?

MCQ 108:
Which of the methods are used to manage result sets using both associative and indexed arrays?

MCQ 109:
Which one is not a data type in PHP?

MCQ 110:
How many different ways are offered by PHP to manipulate a data type?

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

MCQ 112:
Which one of the following methods is responsible for sending the query to the database?

MCQ 113:
Which version of MySQL introduced the prepared statements?

MCQ 114:
Which of the following methods is used to execute the statement after the parameters have been bound?

MCQ 115:
Which one of the following methods is used to recuperating prepared statements resources?

MCQ 116:
Which data type is not valid in PHP for type casting?

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

MCQ 118:
Which method rolls back the present transaction?

MCQ 119:
Compact ( ) function is used to create an array from

MCQ 120:
What does explode ( ) function do?

MCQ 121:
When you use the $_GET variable to collect data, the data is visible to.

MCQ 122:
When you use the $_POST variable to collect data, the data is visible to..

MCQ 123:
Which two predefined variables are used to retrieve information from forms?

MCQ 124:
The attack which involves the insertion of malicious code into a page frequented by other users is known as _________________.

MCQ 125:
What will be the output of the following PHP code?
<?php
function calc($price, $tax="")
{
$total = $price + ($price * $tax);
echo "$total";
}
calc(42);
?>

MCQ 126:
When you use the $_POST variable to collect data, the data is visible to _________________.

MCQ 127:
Output of Md5 is.

MCQ 128:
MD5 takes input string and makes it down into a fixed length string of.

MCQ 129:
Which of them is a HTML specific string function?

MCQ 130:
How many functions are used by PHP to convert between arrays and variables?

MCQ 131:
www-authenticate mechanism works only under the

MCQ 132:
Which variable is used to collect form data sent with both the GET and POST methods?

MCQ 133:
For checking a data type, PHP offers a function called

MCQ 134:
When a session ia active, PHP provides a special constant called

MCQ 135:
Some characteristics of MD5 is

MCQ 136:
Which one of the following should not be used while sending passwords or other sensitive information?

MCQ 137:
Which function is used to remove all HTML tags from a string passed to a form?

MCQ 138:
To validate an e-mail address, which flag is to be passed to the function filter_var()?

MCQ 139:
cookies are set by using the __________________ in PHP language.

MCQ 140:
How many validation filters like FILTER_VALIDATE_EMAIL are currently available?

MCQ 141:
Which one is a search engine?

MCQ 142:
Which function will return true if a variable is an array or false if it is not?

MCQ 143:
Choose the incorrect option.

MCQ 144:
Choose the correct option.

MCQ 145:
Which one of the following does not hold true regarding GET method in HTML?

MCQ 146:
Which one of the following does not hold true regarding POST method in HTML?

MCQ 147:
In PHP a variable needs to be declare before assign

MCQ 148:
What is the use of strlen( ) function in PHP?

MCQ 149:
Which of the methods are used to manage result sets using both associative and indexed arrays?

MCQ 150:
What will be the output of the following PHP code?
<?php
function a()
{
function b()
{
echo 'I am b';
}
echo 'I am a';
}
a();
a();
?>

MCQ 151:
Which of the following is not PHP Loops?

MCQ 152:
Where setcookie( ) function must appear in PHP?

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

MCQ 154:
Which keyword is used to refer to properties or methods within the class itself?

MCQ 155:
Which function can be used to move the pointer to the previous array position ?

MCQ 156:
What does the hash (#) sign mean in PHP?

MCQ 157:
How to define a variable in PHP?

MCQ 158:
What does fopen() function do in PHP?

MCQ 159:
Where session_start() function must appear in PHP?

MCQ 160:
What does the PHP Interpreter do?

MCQ 161:
Which of the following is used to add comments in PHP?

MCQ 162:
Which one of the following functions will convert a string to all uppercase?

MCQ 163:
What does isset() function do in PHP?

MCQ 164:
How PHP files can be accessed?

MCQ 165:
As compared to associative arrays vector arrays are much

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

MCQ 167:
Which one of the following should not be used while sending passwords or other sensitive information?

MCQ 168:
HTTP response error "Not Found", code is

MCQ 169:
What type of bugs are difficult to fix?

MCQ 170:
An array elements are always stored in ________ memory locations.

MCQ 171:
What is right way to Initialize array?

MCQ 172:
How many functions are used by PHP to convert between arrays and variables?

MCQ 173:
Functions that returns a new array without disturbing their old arguments might be called as

MCQ 174:
Array_flip ( ) function changes the keys of an array into

MCQ 175:
Array_splice function is same as array_slice but it starts taking arguments from

MCQ 176:
For changing array with random numbers which function we can use?

MCQ 177:
asort( ) function same as arsort( ) but

MCQ 178:
The father of MySql is

MCQ 179:
To use MySQL on your computer, you will need

MCQ 180:
MySQL comes with as standard with client libraries for

MCQ 181:
Commands passed to the MySQL daemon are written in

MCQ 182:
MySQL supports the complete SQL99 standard

MCQ 183:
In a LIKE clause, you can could ask for any value ending in 'abc' by writing

MCQ 184:
Which of the following can add a row to a table?

MCQ 185:
What is a candidate key?

MCQ 186:
MySQL Access security is controlled through

MCQ 187:
Which of these commands will delete a table called AAAA if you have appropriate authority

MCQ 188:
Which of these commands will delete all data from books if you have appropriate authority

MCQ 189:
Can DISTINCT command be used for more than one column?

MCQ 190:
MySQL runs on which operating systems?

MCQ 191:
If you want to undo a GRANT, you should use

MCQ 192:
How many distinct, different values can you hold in an enum field?

MCQ 193:
Which of the following is NOT available in MySQL

MCQ 194:
Which of the following is available in MySQL

MCQ 195:
When do we use a HAVING clause?

MCQ 196:
USE keyword is used to select a ____________________

MCQ 197:
How can we get the number of records or rows in a table?

MCQ 198:
Can I define multiple unique constraints on a table?

MCQ 199:
Which is the default order of sort in ORDER BY clause?

MCQ 200:
Storing same data in many places is called.

MCQ 201:
Drop Table cannot be used to drop a table referenced by a ______________ constraint.

MCQ 202:
Which of the following is used to delete an entire MYSQL database?

MCQ 203:
The number of attributes in relation is called as its

MCQ 204:
The term attribute refers to a ___________ of a table.

MCQ 205:
Insert into instructor values (1001, 'Rajiv Sharma', 'PHP Language', 101); What type of statement is this?

MCQ 206:
we use the ________________command to remove a relation from an SQL database.

MCQ 207:
If there is more than one key for relation schema in DBMS then each key in relation schema is classified as ________________.

MCQ 208:
The primary key is selected from the __________________.

MCQ 209:
__________ is an Aggregate function in SQL.

MCQ 210:
Drop table structure is

MCQ 211:
The value of primary key

MCQ 212:
Create table employee (name varchar, id integer, address text) What type of statement is this ?

MCQ 213:
Which one of the following provides the ability to query information from the database and to insert tuples into, delete tuples from, and modify tuples in the database ?

MCQ 214:
A relational database consists of a collection of

MCQ 215:
Which one of the following is a set of one or more attributes taken collectively to uniquely identify a record?

MCQ 216:
Which among the following have the maximum bytes?

MCQ 217:
Which one is the correct declaration for choosing the character set other than default?

MCQ 218:
The maximum length of the char columns is ____________.

MCQ 219:
Character data can be stored as ______________.

MCQ 220:
Which SQL commands can be used to delete all records from the table in a sql databas

MCQ 221:
SQL Select statement to retrieve unique record from a table is

MCQ 222:
SQL Command to remove stored procedure SQL

MCQ 223:
Correct SQL query to delete a column from a table in SQL Server database

MCQ 224:
Function cannot be used for ________________ statement.

MCQ 225:
Which of the following is not a User defined function?

MCQ 226:
With SQL, how do you select all the columns from a table named "Persons"?

MCQ 227:
Which SQL statement is used to extract data from a database?

MCQ 228:
Which SQL statement is used to update data in a database?

MCQ 229:
Which SQL statement is used to insert new data in a database?

MCQ 230:
how do you select all the records from a table named "records" where the value of the column "FirstName" is "Rajiv"?

MCQ 231:
Which SQL statement is used to create a table in a database?

MCQ 232:
Which operator is used to select values within a range?

MCQ 233:
What is the most common type of join?

MCQ 234:
How can you return the number of records in the "records" table?

MCQ 235:
How can you delete the records where the "FirstName" is "Rajiv" in the records Table?

MCQ 236:
How can you insert a new record into the "records" table?

MCQ 237:
Which SQL keyword is used to sort the result-set?

MCQ 238:
Which SQL statement is used to return only different values?

MCQ 239:
How do you select all the records from a table named "records" where the value of the column "FirstName" starts with an "R"?

MCQ 240:
Which operator is used to compare a value to a specified list of values?

MCQ 241:
The SQL used by front-end application programs to request data from the DBMS is called ______________

MCQ 242:
The command used to delete a particular column in a relation is ___________________

MCQ 243:
Which of the following operations requires the relations to be union compatible?

MCQ 244:
Which of the following is a comparison operator in SQL?

MCQ 245:
The COUNT function in SQL returns the number of ______________.

MCQ 246:
Which data type can store unstructured data in a column?

MCQ 247:
Which statement in SQL allows us to change the definition of a table is?

MCQ 248:
The virtual table that its created by data from the result of an SQL 'Select' statement is called ______________.

MCQ 249:
What is the full form of DDL?

MCQ 250:
What is the full form of sql?

MCQ 251:
Which SQK Keyword is used to retrive a maximum value?

MCQ 252:
A View is in database is

MCQ 253:
Which of the following is a sql AGGREGATE Function

MCQ 254:
Which of the group functions ignonre null values?

MCQ 255:
Which of the following is not a DDL command?

MCQ 256:
data types in SQL Server are organized into how many categories?

MCQ 257:
The UNION SQL clause can be used with _____________

MCQ 258:
Aggregate functions are functions that take a ___________ as input and return a single value.

MCQ 259:
Which of the following is not an aggregate function?

MCQ 260:
If we do want to eliminate duplicates, we use the keyword _____________in the aggregate expression.

MCQ 261:
All aggregate functions except __________ ignore null values in their input collection.

MCQ 262:
How many Primary key a table can max have?

MCQ 263:
Which of the following is not Constraint in SQL?

MCQ 264:
Difference between a primary key and a unique key?

MCQ 265:
Which of the following is true for TRUNCATE in SQL?

MCQ 266:
Default size of n in a column which is defined as VARCHAR(n)?