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.
| 551. |
How to load a view in CodeIgniter? |
|
Answer» You can USE this $this->LOAD->VIEW('name'); to load a view in CODEIGNITER. |
|
| 552. |
How to add or load a model in CodeIgniter? |
| Answer» | |
| 553. |
What is hooks and how we can configure hooks in CodeIgniter? |
|
Answer» It is a type of EVENTS which can be called before and after the execution of a program in CodeIgniter. For example Hooks can be used where we need to check WHETHER a user is logged in or logged out before the execution of controller. It can be globally enabled or disabled by setting in the application/config/config.php PAGE It can be defined in application/config/hooks.php page. In CodeIgniter each hook is specified like an array with this prototype: |
|
| 554. |
List the databases supported by Codeigniter? |
|
Answer» CURRENTLY CODEIGNITER supports these databases that's are GIVEN below :-
|
|
| 555. |
What is Codeigniter & why it is used for? |
|
Answer» It is a PHP open-source WEB DEVELOPMENT framework which is used for building dynamic websites. 2. What is the LATEST version of Codelgniter? LISTS its new features.4.0 is the latest version of the Codelgniter framework. This version is released on September 3, 2019. Here are some new features that support Codelgniter
Codelgniter updated these MODULES to enhance features. Also Read: PHP interview questions |
|
| 556. |
What is the use of CTools in Drupal? |
|
Answer» CTools or Chaos TOOL Suite in Drupal is a project-oriented towards better coding for DEVELOPERS. It is basically a SET of tutorial classes that have been SIMPLIFIED to explain certain workflows meanwhile also defining some CUSTOM functionalities. |
|
| 557. |
What are the Databases Drupal supports? |
| Answer» | |
| 558. |
Explain the SEO modules available in Drupal? |
|
Answer» Some of the SEO modules available in Drupal that's are GIVEN below:- |
|
| 559. |
What is module and List out some of the modules used in Drupal? |
|
Answer» A Module is a collection of files which containing some FUNCTIONALITY and is written in PHP because the module CODE executes within the context of the site. In Drupal some of the modules recommended here :-
|
|
| 560. |
What do you mean by PDO in Drupal and how to enable PDO? |
|
Answer» It is an acronym for PHP Data Objects. It is a lean, consistent WAY to access databases. PDO is just like a data access layer which uses a unified API. To enable PDO, CONFIGURE --enable-pdo and --with-pdo-sqlite --with-pdo-mysql or whatever database NEEDS supporting by PDO For windows users : For Apache, you will need to make sure php_pdo.dll and php_pdo_mysql.dll exist in the php/ext directory, un-comment or add the appropriate lines in php.ini, after that you have to restart the web SERVER. In windows it may no longer be required to enable PDO when using newer versions of PHP, PHP version 5.3 and later. It refers to php_pdo.dll. However, you still need to activate php_pdo_mysql.dll for MySQL or for WHICHEVER database you are using. |
|
| 561. |
Is Drupal is a CMS? Explain |
|
Answer» It is a Content Management FRAMEWORK, from which we can build a CMS tailored SPECIFICALLY for our NEEDS. |
|
| 562. |
List the system requirements for Drupal installation? |
|
Answer» Detailed system requirements for a Drupal 8 installation.
For more detail you can visit its official website : Click here |
|
| 563. |
How do you disable commenting on articles in Drupal? |
|
Answer» To disable comments in DRUPAL 8, there are two parts.Using Drupal Admin
If you’re using Drupal 7.x/8.x use the following method to disable the comments:
Deleting/disabling the comments can also be executed by the SQL query in the phpMyAdmin. Here are the STEPS to follow: Execute this SQL query in your database UPDATE system SET status = ‘0’ WHERE filename = ‘modules/comment/comment.module’; If you would like to reverse the effect, i.e. enable comments at a later stage, simply change the SET status = ‘1’ |
|
| 564. |
How to create rest API of tab in drupal 8? |
|
Answer» To successfully ENABLE a REST API tab in Drupal 8, follow these steps:
In Drupal 7, custom USER profiles are like fieldable ENTITIES similar to nodes. To create a new custom user profile, follow these steps:
|
|
| 565. |
How to insert form data into the database in drupal 8? |
|
Answer» Here is a code to insert data from the FORM to the table in a DATABASE in Drupal 8 Examplepublic function submitForm(array &$form, FormStateInterface $form_state) { |
|
| 567. |
How to add custom PHP codes in pages using Drupal? |
|
Answer» DRUPAL does not allow adding PHP code directly inside a post or in a BLOCK by default. |
|
| 569. |
Why we used template.php in Drupal? |
|
Answer» It ALLOWS you to OVERRIDE a THEME FUNCTION. It is available in the theme directory. |
|
| 570. |
What is taxonomy in Drupal? |
|
Answer» It is a powerful CORE module, gives our SITES use of the organizational keywords known in another systems as categories or tags, or metadata. Taxonomy allows you to connect, relate and CLASSIFY your website's content. These terms are gathered within "vocabularies". It is the PRACTICE of CLASSIFYING content. |
|
| 571. |
How can we add Regions in Drupal Theme and list some Default Regions? |
|
Answer» Adding regions to a theme requires two THINGS that's are GIVEN below :-
Default Regions |
|
| 572. |
What are the new features of Drupal 8? |
Answer»
|
|
| 573. |
How to create a new theme in Drupal 8? |
|
Answer» To create a theme in Drupal 8 from scratch, use the following STEPS: |
|
| 574. |
How do you enable twig to debug in Drupal 8? |
|
Answer» While there are many methods to enable TWIG Debug, this is one of the easiest and simple way
twig.config:
|
|
| 575. |
How to enable jQuery in Drupal? |
|
Answer» To install JQuery in Drupal, follow these steps carefully:
|
|
| 576. |
What is node in Drupal? |
|
Answer» It is a piece of individual CONTENT such as a PAGE, POLL and article. Most content on a DRUPAL website is stored/treated as "NODES". |
|
| 577. |
What is DRUSH in Drupal? |
|
Answer» It is a very useful tool as it helps you perform various admin TASKS using ONE or two commands in the terminal, replacing the need for MANY clicks and page refreshes in the UI. "DRUSH" is an awesome shell INTERFACE for managing Drupal right from our cloud server using command line. 2. How caching works in Drupal 8?Drupal consists of multiple layers for execution. Hence, caching is a vital aspect of Drupal to measure performance accurately. Here are the various WAYS of caching in Drupal:
|
|
| 578. |
How to display custom field value in page? |
|
Answer» You can USE get_post_meta(get_the_ID(), 'custom_field_name', TRUE); |
|
| 579. |
How to add your custom image size for the featured image in WordPress? |
|
Answer» The following STEPS need to USE in order to customize image SIZES in the CSM WordPress. Edit your EXISTING theme’s funcation.php file and add the following code add_image_size( 'image_size_name', 1000, 590 ); |
|
| 580. |
How can you display a list of child pages in WordPress? |
|
Answer» We can USE simplay WP_Query() with post_parent and post_type, then we can get all CHILD PAGES of that particular parent page. Example$my_query = new WP_Query(ARRAY(
|
|
| 581. |
How to create Shortcode function in WordPress? |
|
Answer» Users can MAKE shortcodes with the use of WordPress Shortcode API, as it ENABLES users to take benefits of existing theme features from any test-based area on WordPress site. The shortcode FUNCTIONS can be created in three simpler steps-1. Create function in function.php and register |
|
| 582. |
How to check a featured image exists or not in WordPress? |
|
Answer» We can USE has_post_thumbnail() METHOD to CHECK the FEATURED image is exists or not. Exampleif ( has_post_thumbnail() ) { |
|
| 583. |
How to display an image URL from thumbnail in WordPress? |
|
Answer» You we use get_the_post_thumbnail_url(); . You can use this inside LOOP or OUTSIDE loop. If you are USING this outside of loop then you have to PASS post ID otherwise its optional in CASE inside loop. |
|
| 584. |
What is wp_head() in WordPress? |
|
Answer» It is a type of action hook where the CODE is DYNAMICALLY ADDED to a THEME in between HEAD tag. Example<head> |
|
| 585. |
What is wp_enqueue_script() function in WordPress? |
|
Answer» In order to include JavaScript file in WordPress, a special FUNCTION can be used NAMELY wp_enqueue_script (). In WordPress, the PRELIMINARY goal of wp_enqueue_script () is to add a JavaScript file which is one of the WordPress action HOOKS. In order to use the wp_enqueue_script (), users should need to add JavaScript to each PAGE on the WordPress site. |
|
| 586. |
What is the difference between wp_reset_query() and wp_reset_postdata() in WordPress? |
||||||
Answer»
|
|||||||
| 587. |
How to display the current page title in WordPress? |
| Answer» | |
| 588. |
What are the new features in WordPress 5.3? |
|
Answer» Here is the list of new features of WORDPRESS 5.3
|
|
| 589. |
What may be the reason that widgets won’t display in the sidebar? |
|
Answer» Users have to FIRST ensure that whether the themes they are using support the widget they are wishing to add. In some cases, the problem may occur when the function.php or file similar to that is missing. There are chances also this could happen if the USER FORGETS to save the changes MADE in the widget or to refresh the older page DISPLAY. |
|
| 590. |
What are the scenarios when the plugin menu is not displayed? |
|
Answer» Users won't be ABLE to SEE the PLUGIN menu when their blog is hosted on free wordpress.com as it’s LIMITED with plugin uses. EVEN the users without an account of administrator-level won’t be able to use the plugin menu. |
|
| 591. |
How is it possible to rename the WordPress folder? |
|
Answer» Yes, we can rename the WordPress folder. If WordPress is already installed in our device, we have to log in to the weblog as the ADMINISTRATOR and the change the required settings mentioned below. After the changes, we can rename the folder or directory with the use of the WordPress FILE in it. |
|
| 592. |
What are the basic rules to follow while developing WordPress plugin? |
|
Answer» Here is a LIST of CRUCIAL rules that require to be followed by the developers while developing a WordPress plugin:
|
|
| 593. |
How to check if any plugin is active in WordPress? |
|
Answer» With the METHOD is_plugin_active() we can check any PARTICULAR plugin is ACTIVE or not. How to checkinclude_once( ABSPATH . 'wp-admin/includes/plugin.php' ); |
|
| 594. |
How do I edit the contents of a page in WordPress? |
| Answer» | |
| 595. |
Is WordPress dynamic or static? |
|
Answer» WORDPRESS is DYNAMIC. This is because NEARLY everything in WordPress, including PAGES, is generated dynamically. |
|
| 596. |
How do you create a page in WordPress? |
|
Answer» For creating a WordPress PAGE, follow these steps:
|
|
| 597. |
Where do I insert Google Analytics code in WordPress? |
|
Answer» While there are different ways to add Google Analytics your WordPress site, here are the 3 most COMMON ones:
For creating a static page in WordPress, follow these steps:
|
|
| 598. |
What is widgets in WordPress? |
|
Answer» In WordPress, WIDGETS are small blocks that perform specific FUNCTIONS. Different TYPES of widgets are available in sidebars. ORIGINALLY, widgets were designed to provide an easy way to design and STRUCTURE the WordPress theme. |
|
| 599. |
Is WordPress website is secure? |
|
Answer» A WordPress site is like any other website or APPLICATION and has security threats. In order to strengthen your WordPress’s security, you can CONSIDER implementing a Secure Socket LAYER (SSL) CERTIFICATE. |
|
| 600. |
What is taxonomy in WordPress? Explain |
|
Answer» Taxonomies in WordPress are USED to group POSTS and post types together. Custom taxonomies can help developers create GROUPS and BRING them under one head. There are 4 in-built taxonomies in WordPress- Category, Tag, Link Category, and Post FORMATS. |
|