InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What is the maximum number of indexes on MyISAM table?(a) 0(b) 1(c) 2(d) more than 1I got this question in an online interview.The origin of the question is Putting PHP to Work in section MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» The correct answer is (d) more than 1 |
|
| 2. |
When the security context enables carefully written stored programs to be set up that provide controlled access to tables for users, it is called __________(a) bad(b) good(c) illegal(d) fareThe question was asked in an interview for job.This intriguing question originated from Putting PHP to Work topic in section MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» Right choice is (b) good |
|
| 3. |
What is the creation of a stored program similar to?(a) Trigger(b) Event(c) View(d) TableThe question was posed to me in final exam.Origin of the question is Putting PHP to Work topic in portion MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» The CORRECT option is (C) View |
|
| 4. |
The line used to turn on the event scheduler is ______________(a) event_scheduler = ON(b) eventscheduler = ON(c) event_scheduler_ON(d) events_scheduler_ONThis question was posed to me in exam.I need to ask this question from Putting PHP to Work topic in division MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» CORRECT option is (a) event_scheduler = ON The best I can explain: The LINE ‘event_scheduler = ON’ is put in the option file that the server READS. The event scheduler does not run by default. It must be turned on if events are to used in the DATABASE. |
|
| 5. |
A stored program associated with a schedule is ______________(a) Trigger(b) Event(c) Stored function(d) Stored procedureThe question was asked in homework.Enquiry is from Putting PHP to Work topic in section MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» Right answer is (b) Event |
|
| 6. |
DBI scripts are located in the directory ______________(a) cgi-inc(b) cgi-bin(c) cgi-usr(d) cgi-perlThis question was posed to me in examination.This interesting question is from Putting PHP to Work in section MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» RIGHT answer is (b) cgi-bin The BEST I can explain: DBI SCRIPTS are located in a cgi-bin directory located outside of document TREE. The PHP scripts are different from DBI scripts since PHP scripts are located within the web server document tree. |
|
| 7. |
PHP scripts are located in the web server document tree.(a) True(b) FalseThe question was asked during a job interview.I want to ask this question from Putting PHP to Work topic in division MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» The correct answer is (a) True |
|
| 8. |
In PHP, which operator is used to access property of an object?(a) .(b) *(c) ->(d) @I have been asked this question in my homework.Question is from Putting PHP to Work topic in division MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» RIGHT answer is (c) -> For explanation I would say: If $a represents an object, the properties it has can be ACCESSED as $a->property-name. For INSTANCE, $a->white, $a->black, $a->BLUE, $a->red can be the properties of $a and accessed in this WAY. |
|
| 9. |
Arrays cannot have associative indices in PHP.(a) True(b) FalseThis question was addressed to me in an interview.The query is from Putting PHP to Work in portion MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» Correct answer is (B) False |
|
| 10. |
In PHP, if $a represents an array with numeric indices, how is the first element accessed?(a) $a[1](b) $a[0](c) $a.1(d) $a.0This question was addressed to me in examination.The doubt is from Putting PHP to Work in portion MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» Correct answer is (b) $a[0] |
|
| 11. |
The statement used to create a trigger is ______________(a) CREATE TRIGGER(b) CREATE TRIGGERS(c) PRODUCE TRIGGER(d) PRODUCE TRIGGERSThe question was posed to me in an online quiz.The origin of the question is PHP Overview in portion MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» The correct choice is (a) CREATE TRIGGER |
|
| 12. |
The number of values that can be returned from a given stored function is ______________(a) 0(b) 1(c) 2(d) 3I got this question in an interview for job.My enquiry is from PHP Overview topic in division MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» The CORRECT option is (b) 1 |
|
| 13. |
Which statement is used to produce a stored function?(a) PRODUCE FUNCTION(b) CREATE FUNCTION(c) PRODUCE PROCEDURE(d) CREATE PROCEDUREI got this question in an interview for job.I want to ask this question from PHP Overview in chapter MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» Correct choice is (b) CREATE FUNCTION |
|
| 14. |
What is defined to execute when the table is modified only?(a) Stored functions(b) Stored procedures(c) Triggers(d) EventsThis question was posed to me in examination.This intriguing question comes from PHP Overview in section MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» The correct option is (c) Triggers |
|
| 15. |
What returns a result to the client?(a) Stored functions(b) Stored procedures(c) Triggers(d) EventsI have been asked this question in an internship interview.The question is from PHP Overview in chapter MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» Correct choice is (a) Stored functions |
|
| 16. |
The datatype best suited to store currency values is __________(a) INT(b) FLOAT(c) DOUBLE(d) DECIMALThis question was addressed to me in an interview for internship.My question is based upon PHP Overview topic in division MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» Correct ANSWER is (d) DECIMAL |
|
| 17. |
PHP variables are preceded by __________(a) _(b) @(c) $(d) &The question was posed to me in class test.Enquiry is from PHP Overview in chapter MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» Correct choice is (c) $ |
|
| 18. |
The output from PHP is __________(a) statically generated(b) dynamically generated(c) not generated(d) no outputThe question was asked in an interview for internship.My question is from PHP Overview topic in chapter MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» Correct OPTION is (b) dynamically generated |
|
| 19. |
The PHP interpreter switches mode continuously.(a) True(b) FalseI have been asked this question during an online exam.My doubt is from PHP Overview topic in portion MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» RIGHT ANSWER is (a) True To EXPLAIN I would say: As soon as the PHP interpreter COMES across a special opening tag it switches from ‘text copy’ mode to ‘PHP code’ mode. It STARTS interpreting the file as PHP code to be executed. |
|
| 20. |
The basic operation of PHP is to interpret a script.(a) True(b) FalseI got this question in an interview.The above asked question is from PHP Overview topic in division MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» Right OPTION is (a) True |
|
| 21. |
The datatype best suited to store currency values is ______________(a) INT(b) FLOAT(c) DOUBLE(d) DECIMALThe question was posed to me in an interview for internship.Query is from Using Perl DBI in Web Applications in chapter MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» The correct option is (d) DECIMAL |
|
| 22. |
The AUTO_INCREMENT column attribute is best used with ______________(a) FLOAT(b) INT(c) CHARACTER(d) DOUBLEI have been asked this question in quiz.My doubt is from Using Perl DBI in Web Applications in chapter MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» The correct option is (B) INT |
|
| 23. |
What does ‘abc’ || ‘xyz’ result in if the PIPES_AS_CONCAT is disabled?(a) 1(b) 0(c) error(d) -1I had been asked this question in an interview for internship.The query is from Using Perl DBI in Web Applications in division MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» Right ANSWER is (b) 0 |
|
| 24. |
What does the expression ’12 DIV 5′ evaluate to?(a) 2.4(b) 2(c) error(d) 0I had been asked this question during an online exam.Enquiry is from Using Perl DBI in Web Applications in portion MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» Right choice is (b) 2 |
|
| 25. |
By default, the AUTO_INCREMENT sequences begin at __________(a) 0(b) 1(c) -1(d) 2I had been asked this question during a job interview.My doubt is from Using Perl DBI in Web Applications in section MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» The correct answer is (b) 1 |
|
| 26. |
There can be more than one column per table with the AUTO_INCREMENT attribute.(a) True(b) FalseI got this question at a job interview.Question is from Using Perl DBI in Web Applications topic in division MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» The correct choice is (b) False |
|
| 27. |
CGI.pm also supports an object oriented style of use.(a) True(b) FalseThe question was asked during an online interview.Asked question is from Using Perl DBI in Web Applications in portion MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» The correct choice is (a) True |
|
| 28. |
Which line is written at the top of the script to write a Perl script using CGI.pm?(a) use this CGI(b) put CGI(c) use CGI(d) include CGIThis question was posed to me in an international level competition.My question is from Using Perl DBI in Web Applications in portion MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» Right OPTION is (c) use CGI |
|
| 29. |
CGI stands for ______________(a) Computer Gateway Interface(b) Common Gateway Interface(c) Computer Generated Interface(d) Common Generated InterfaceThe question was asked during an online exam.My question comes from Using Perl DBI in Web Applications in division MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» The correct answer is (b) Common GATEWAY Interface |
|
| 30. |
The module that links DBI to the web is ______________(a) CGI.pn(b) CGI.pem(c) CGI.pm(d) CGI.poThis question was posed to me in class test.The above asked question is from Using Perl DBI in Web Applications in chapter MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» Correct option is (c) CGI.pm |
|
| 31. |
The column attribute provides unique numbers for identification is ______________(a) AUTO_INCREMENT(b) UNSIGNED(c) IDENTIFY(d) DESCRIBEI had been asked this question in an online quiz.Enquiry is from Putting Perl DBI to Work in portion MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» CORRECT CHOICE is (a) AUTO_INCREMENT Explanation: In MySQL, the mechanism for providing unique numbers is through the AUTO_INCREMENT column attribute. It ENABLES the GENERATION of sequential numbers automatically. This facilitates identification. |
|
| 32. |
Illegal values converted to the appropriate ‘zero’ value for ______________(a) Numeric(b) String(c) ENUM(d) TIMEThis question was addressed to me at a job interview.This is a very interesting question from Putting Perl DBI to Work topic in portion MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» The CORRECT answer is (d) TIME |
|
| 33. |
What is the maximum non zero values for DOUBLE?(a) ±1.7976931348623157E+307(b) ±1.7976931348623157E+308(c) ±1.7976931348623157E+306(d) ±1.7976931348623157E+305This question was posed to me in a job interview.This interesting question is from Putting Perl DBI to Work topic in portion MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» CORRECT option is (B) ±1.7976931348623157E+308 To explain I would say: In MySQL, all the DATATYPES have their own ranges. Data types give an idea of the kind of values and the ranges that a VARIABLE is allowed to STORE. The maximum non zero value for DOUBLE is ±1.7976931348623157E+308. |
|
| 34. |
What is the maximum non zero value for FLOAT?(a) 3.402823466E+38(b) 3.402823466E+37(c) 3.402823466E+39(d) 3.402823466E+35I have been asked this question during an interview.This interesting question is from Putting Perl DBI to Work in portion MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» Right OPTION is (a) 3.402823466E+38 |
|
| 35. |
The function returning reference to array of row values is ______________(a) fetchrow_array()(b) fetchrow_arrayref()(c) fetch()(d) fetchrow_hashref()The question was posed to me in homework.My doubt stems from Putting Perl DBI to Work in chapter MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» RIGHT option is (B) fetchrow_arrayref() Easy explanation: ‘fetchrow_arrayref()’ RETURNS a reference to an array of row VALUES. The function ‘fetchrow_hashref()’ returns reference to HASH of row values. ‘fetch()’ is the same as fetchrow_arrayref(). |
|
| 36. |
fetchrow_hashref() returns reference to hash of row values keyed by ______________(a) row name(b) column name(c) table name(d) database nameThe question was posed to me in an interview for internship.My question is from Putting Perl DBI to Work topic in chapter MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» CORRECT choice is (b) column NAME Best explanation: The function ‘fetchrow_hashref()’ returns REFERENCE to hash of ROW values, keyed by the column name. The function ‘fetchrow_arrayref()’ returns a reference to an array of row values. |
|
| 37. |
The function returning reference to hash of row values is ______________(a) fetchrow_array()(b) fetchrow_arrayref()(c) fetch()(d) fetchrow_hashref()The question was asked in an international level competition.I would like to ask this question from Putting Perl DBI to Work in division MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» The correct ANSWER is (d) fetchrow_hashref() |
|
| 38. |
The function returning an array of row values is ______________(a) fetchrow_array()(b) fetchrow_arrayref()(c) fetch()(d) fetchrow_hashref()This question was addressed to me by my college director while I was bunking the class.Question is taken from Putting Perl DBI to Work topic in section MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» The correct OPTION is (a) fetchrow_array() |
|
| 39. |
RTF refers to ______________(a) Rich Text Format(b) Right Text Format(c) Rich Text Function(d) Right Text FunctionThe question was asked by my college professor while I was bunking the class.Question is taken from Putting Perl DBI to Work in section MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» The CORRECT OPTION is (a) Rich Text Format |
|
| 40. |
What is the datatype for single precision floating point number?(a) FLOAT(b) DOUBLE(c) INT(d) BIGINTI got this question at a job interview.This interesting question is from Perl DBI Overview in portion MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» The correct choice is (a) FLOAT |
|
| 41. |
What is the escape sequence for carriage return?(a) ‘\c’(b) ‘\r’(c) ‘\b’(d) ‘\z’I got this question in semester exam.I need to ask this question from Perl DBI Overview topic in section MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» Right answer is (b) ‘\R’ |
|
| 42. |
Hexadecimal numbers can be used in scientific notation.(a) True(b) FalseI have been asked this question in my homework.Question is from Perl DBI Overview in portion MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» RIGHT choice is (B) False To explain I WOULD say: The scientific notation for real numbers is possible in MYSQL. Approximate VALUES are represented as floating point numbers in scientific notation. It consists of a mantissa and exponent. |
|
| 43. |
The numbers that are prefixed with ‘0x’ are in base __________(a) 8(b) 16(c) 32(d) 64This question was addressed to me in unit test.I would like to ask this question from Perl DBI Overview topic in portion MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» Correct option is (b) 16 |
|
| 44. |
The indicator of presence/absence of a word in search is used in the mode ______________(a) Natural language(b) Boolean mode(c) Query expansion(d) Cross modeI have been asked this question in an online interview.This intriguing question originated from Perl DBI Overview topic in chapter MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» Right choice is (b) Boolean mode |
|
| 45. |
Which mode of search is the search string parsed into words and the search looks for rows?(a) Boolean mode(b) Natural language(c) Query expansion(d) Cross modeThis question was posed to me by my college director while I was bunking the class.This intriguing question originated from Perl DBI Overview in chapter MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» Right choice is (b) Natural language |
|
| 46. |
While using DBI API functions are called and pointers to structures are used.(a) True(b) FalseThis question was addressed to me during a job interview.Enquiry is from Perl DBI Overview in portion MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» The correct choice is (a) True |
|
| 47. |
The return value from operations returning a row count is ______________(a) $rc(b) $rv(c) $rows(d) $aryThis question was posed to me during an online interview.My doubt is from Perl DBI Overview in division MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» RIGHT choice is (c) $ROWS Explanation: The Perl Non-handle variable ‘$ary’ is an array or list representing a row of values returned by a query. ‘$RC’ RETURNS CODE from operations that return true or false. ‘$rv’ returns value from operations that return an integer. ‘$rows’ returns value from operations that return a row count. |
|
| 48. |
The non handle array representing a row of values is ______________(a) $rc(b) $rv(c) $rows(d) $aryI had been asked this question by my college director while I was bunking the class.I'm obligated to ask this question of Perl DBI Overview topic in section MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» The correct OPTION is (d) $ary |
|
| 49. |
The generic handle whose meaning depends on context is ______________(a) $dbh(b) $sth(c) $fh(d) $hI got this question in class test.I'm obligated to ask this question of Perl DBI Overview topic in portion MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» The correct option is (d) $h |
|
| 50. |
Foreign keys can handle deletes and updates.(a) True(b) FalseThe question was posed to me in a job interview.I would like to ask this question from Perl DBI Overview in chapter MySQL Programs Using Perl DBI and PHP of MySQL |
|
Answer» Correct answer is (a) True |
|