Consider the code segment below. Then, from the options given, choose the case that would result in an integer. $db =& JFactory::getDBO(); $query = " SELECT count(*) FROM ".$db->nameQuote('#__my_table')."; "; $db->setQuery($query);

- Online Exam Test Papers | - MCQs[multiple choice questions and answers ] | - Mock Test Papers | - Practice Papers | - Sample Test Papers |

Question:
Consider the code segment below. Then, from the options given, choose the case that would result in an integer.

$db =& JFactory::getDBO();
$query = "
SELECT count(*)
FROM ".$db->nameQuote('#__my_table').";
";
$db->setQuery($query);

1.$result = $db->loadResult()

2.$result = $db->loadRow()

3.$result = $db->loadAssoc()

4.None of These


More MCQS Questions and answers

R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!