Olete.in
Articles
Mock Tests
🧪 Joomla MCQ Quiz Hub
Joomla Mcq Questions Set 2
Choose a topic to test your knowledge and improve your Joomla skills
1. Consider the database segment below. From the options given, select the case that will load a specific row of the database with JTable. DATABASE Width $row =& JTable::getInstance('recipes', 'Table')
$result = $row->get($id)
$result = $row->load($id)
$result = $row->read($id)
None of These
2. Which one of the following statements protects against CSRF attacks?
<?php echo JHTML::_( 'form.token' );?>
<?php echo JRoute::_( 'index.php?option=com_example&controller=object1&task=save&'. JHTML::_( 'form.token' ) .'=1' );?>
<?php echo JUtility::getToken();?>
<input type="hidden" name="<?php echo JUtility::getToken();?>" value="1" /><br>
3. What does the menu parameter type do?
It provides a drop down list of the available menu items from your Joomla site.
It provides a drop down list of the available menus from your Joomla site.
It provides a drop down list of the menus from your Joomla site.<br>
None of these
4. Listed below are the four important system events that occur in a very specific order when a request is made. From the possibilities given, choose the option that represents the correct sequence of these events. 1.onAfterRoute 2.onAfterDispatch 3.onAfterInitialize 4.onAfterRender
3-2-1-4
1-2-3-4
3-1-2-4
2-1-3-4<br>
5. When the parameter of a module is edited, data is directly written in xml file.
True
False<br>
both (a) and (b)
None of These
6. To install and run Joomla 1.5, the minimum system requirements are ____________.
PHP 4.3.10, MySQL 3.23.x, Apache 1.3
PHP 4.2.x, MySQL 2.x, Apache 1.0
PHP 5.x, MySQL 5.x, Apache 2.2<br>
None of these
7. 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);
$result = $db->loadResult()
$result = $db->loadRow()
$result = $db->loadAssoc()
None of These
8. Example:jimport( 'joomla.application.module.helper' ); $module = JModuleHelper::getModule( 'mainmenu', 'Key Concepts' ); $attribs = array('style'=>'xhtml'); echo JModuleHelper::renderModule( $module, $attribs ); What is the purpose of the $attribs array?
The $attribs array is passed in its entirety to the module chrome code since this method will generally be called during the processing of a <jdoc:include.../> tag in the template.
The $attribs array is used to assign a module to a position.<br>
both (a) and (b)
None of these
9. Which method is used to load plugins?
JPluginHelper::import('pluginsName');
JPluginHelper::importPlugin('pluginsName');
JPluginHelper::load('pluginsName');<br>
None of These
10. What is the following code used for? $document = &JFactory::getDocument(); $renderer = $document->loadRenderer('modules'); $options = array('style' => 'xhtml'); $position = 'article-banners'; echo $renderer->render($position, $options, null);
For loading a single module
For loading a module position<br>
both (a) and (b)
None of these
11. Which of the following classes helps you to translate a string into the current language?
JText
JString
JFilterOutput<br>
None of These
12. Consider the DATABASE and CODE segments as shown above in an image. Given this information, choose the case from the options below that would return these results:
$result = $db->loadObject()
$result = $db->loadRow()
$result = $db->loadAssoc()<br>
None of these
13. Which of the following field types is/are supported by Joomfish when creating a Joomfish Content Element?
referenceid
text
htmltext
All of the above
14. A module is configured to display title and publish to position "position". The module position "position" is loaded with style "xhtml" in template. If the module does not return any data, what will be displayed?
The error message
The module title
Nothing<br>
None of These
15. Instead of using the default Joomla build/parse route, how can you develop your own one?
By creating a component name com_sef
By creating a plugin type "sef"
By creating a system plugin, handle onAfterInitialise event and use the function attachBuildRule/attachParseRule of the JRouter class<br>
None of These
16. What does the method "renderModule" in the class "JModuleHelper" do?
It renders the module, returning the output PHP.
It renders the module, returning the output HTML.
It renders the module, returning the output XML.<br>
None of these
17. What is the XML-RPC implemented in Joomla?
An object used for getting a remote XML document from an external site
An XML processor library supported by Joomla
A remote procedure call protocol which uses XML to encode its calls and HTTP as a transport mechanism<br>
None of these
18. Which of the following functions does Joomla support?
$db->loadObjectList(),$db->loadObjectList('key'),$db->loadRowList()
$db->loadObjectList('key'),$db->getNumRow()
$db->getNumRow(),loadObjectList()
$db->loadRowArray(), $db->loadObjectList('key')
19. When an article is Archived, it will:
no longer be published but still stored on the site.
still be published and stored on the site.
no longer be published and removed from the site.
None of these
20. What is the Alias link?
A kind of internal link back to an existing menu item
A kind of external link back to an existing menu item
A duplicated link to an existing menu item
A link to external web sites<br>
21. What is "Joom!Fish" extension?
It is a component that helps you translate your content automatically.
It is a solution to enable your website to control translation matters.
It is a component that helps you manage your shopping cart.
It is an extension that helps you manage your news/rss.<br>
22. Which of the following tabs allows you to disable user registration?
In the "Global Configuration" page, tab "Site"
In the "Global Configuration" page, tab "System"
In the "Global Configuration" page, tab "Server"
In the "Global Configuration" page, tab "Cache"<br>
23. What is the purpose of the module Poll?
To show the results of a poll
To list all the poll items created in the component Poll
To help the users create their custom polls
Show the poll on Frontpage to allow the users to submit their votes<br>
24. How will you install a Joomla extension using a Joomla installer?
Upload the Package File
Install from the Directory
Install from the File
Install from the URL
25. What is a Component?
A Component is a mini-application that renders the main body of the page.
A Component is a smaller Extension typically used for rendering a small element that is displayed across multiple pages.
A Component is a section of the code that runs when a pre-defined event happens within Joomla!.
A Component controls the way the content of a web site is displayed.<br>
26. In the Content Manager, an article can be stored:
only in a single category and in a single section.
in at least two categories and one section.
in many categories and sections.<br>
None of These
27. While installing Joomla, at the FTP Configuration step, what is the FTP layer for?
To upload files in the Administration panel
To upload files in the Media Management
To manage the file system in the Administration panel
To handle file system manipulation and enable Joomla! installers<br>
28. In the User Manager, how can a user get back their password if they forget it?
By using the "Forgot your password?" function.
Super Administrators can reveal the password.
The Password is encrypted and cannot be decrypted; thus he can not get back his plain password.<br>
None of These
29. Which of the following components can not be uninstalled?
com_banners
com_polls
com_weblinks
com_contact<br>
30. What is the first step in Joomla installation?
Pre-installation Check
Choose Language
License Agreement
Configuration<br>
31. Which position is the banner module displayed on in the Joomla front-end?
In the footer of the page
In the position "banner"
In the position selected in the banner item
In the position which the module "Banners" is published in<br>
32. In the Media Manager, which default "Media Folder" are media stuffs uploaded to?
image
images
media
Media<br>
33. How will you create a static content item?
create Section, create Category, create Article
create Category, create Section, create Article
create an Article as normal, then assign it to the "uncategorised" section<br>
create Section, create Article
34. In the Content Manager, what is the number of categories you can add?
30
20
10
As many as you wish<br>
35. How to set the "Page Title" for a menu item?
Click on the Menu Item, and update the parameter "Page Title" in the "Basic" group.
Click on the Menu Item, and update the parameter "Page Title" in the "Component" group.
Click on the Menu Item, and update the parameter "Page Title" in the "System" group.
The Page Title is automatically populated and you cannot overwrite it.<br>
36. When you enable cache in the "Global Configuration" and enable plugin Cache, what will be cached?
The whole page
The whole page if the user has not logged in
The whole page if the user has logged in
Components and modules are cached separately.<br>
37. With cache enabled, the content will be cached based on the:
Request URI.
Cookie.
Browser.
Session.<br>
38. Based on the SEF setting in the diagram, what is the link that points to the menu item "News"?
http://[site url]/index.php?option=com_newsfeeds&view=newsfeed&id=1&feedid=1&Itemid=18.
http://[site url]/index.php/news
http://[site url]/news
http://[site url]/news.html
39. Choose the correct statements (Database Configuration step).
You can install multiple Joomla on the same database.
Joomla will try to create a database if it does not exist.
Joomla will try to create a database if it does not exist.
Joomla will delete all existing data in the database you provide
40. In the Media Manager, if the option "Maximum Size (in bytes)" of Media Setting is set to zero(0), what will be the maximum size of the file that you can upload?
You cannot upload files.
Unlimited
10M as Default value
The maximum uploading size allowed by the PHP
41. While installing Sample Data, you got error as demonstrated in the diagram. What does it mean?
PHP does not support XML.
Javascript error
There is an error in the sample database sql file.
There is an error in the Apache configuration.
42. In the User Manager, which Public Front-end User group(s) cannot edit articles?
Author
Editor
Publisher
Registered
43. How many levels can each menu have?
2 levels
5 levels
10 levels
As many levels as you wish
44. With the "Mass Mail" tool, which of the following recipients can you select?
Multiple users in system
Multiple groups
A single user in system
A single group
45. How will you enable cache?
In the "Global Configuration" page, set configuration via the tab "Site"
In the "Global Configuration" page, set configuration via the tab "System"
In the "Global Configuration" page, set configuration via the tab "Cache"
In the "Media Management" page, set configuration via the tab "Setting"
46. How will you make Joomla 1.0x extensions work with Joomla 1.5
Joomla 1.0x extensions work well with Joomla 1.5 by default
Joomla 1.0x extensions cannot work with Joomla 1.5 by default
Enable the Legacy mode on the "Global Configuration"
Enable Legacy plugin
47. Refer to the given image. What do you understand by the type of error?
It means that STRICT_TRANS_TABLES is enabled
It means that you are probably running MySQL in strict mode
It means that STRICT_ALL_TABLES is enabled
All of the above
48. From which package are the classes (i.e JSite, JAdministrator and JInstallation) which make up the Joomla CMS application extended?
Installer
Application
Template
Database
49. Which of the following technologies is/are used by Joomla?
MySql
Apache
PHP
All of the above
50. Which Joomla file provides the central logic of the template, including any module and component display?
Index.php
Template.css
TemplateDetails.xml
Banner.fff
Submit