Grav Interview Questions & Answers

    1. Question 1. What Is Grav?

      Answer :

      Grav is a flat-file based content management system which doesn’t use database to store the content instead it uses text file (.txt) or markdown (.md) file to store the content.

 

    1. Question 2. Why To Use Grav?

      Answer :

      Grav is a new type of fastest flat-file content management system which is easier to publish and manage content. It allows developer to handle content very easily by storing content in files (such as text or markdown files) rather than in database. If you want to build simple, manageable and quick site, it’s better to select the Grav flat-file CMS. It costs less than the database driven CMS and is useful with I/O for file handling, when you don’t have enough resources to handle database.

 

Web Services Interview Questions

    1. Question 3. List Out Some Features Of Grav?

      Answer :

      The Features of Grav are:

      • It is fast, easy and powerful flat-file web platform.
      • It is used to build website with no extra tools or html knowledge.
      • It uses text file or markdown file to store the content.
      • It doesn’t use database, so it eliminates the cause of bottlenecking.
      • It uses PHP based template provided by Twig which is parsed directly into PHP that makes it fast.

 

 

    1. Question 4. What Are Advantages Of Grav?

      Answer :

      The advantages of Grav are:

      • It is not based on database CMS, so it’s very easy to install and will be ready to use when you upload the files to the server.
      • It uses Markdown text files to make things easy. Using this, the content will be dynamically converted to HTML and displayed in the browser.
      • In case of security, Grav doesn’t have admin area and database. So there is no chance of hacking into account or in the database to access the important data.
      • You can easily backup all the files to keep backup copy of your website, since there is no database to backup.
      • It is a piece of software which doesn’t require more time to learn.

 

Web Services Tutorial

    1. Question 5. What Are Disadvantages Of Grav?

      Answer :

      The disadvantages of Grav are:

      • Sometimes unauthorized users may access your content from the files directly as there is no database for the files.
      • It is difficult to build complex websites using Grav CMS.

 

Search Engine Optimization (SEO) Interview Questions

    1. Question 6. Which Php Version Is Compatible For Grav?

      Answer :

      PHP 5.4 or higher

 

 

    1. Question 7. What Are Grav Pages?

      Answer :

      Pages can be defined as building blocks of the site. Pages combine contents and navigations which makes easy even for inexperienced users.

 

Search Engine Optimization (SEO) Tutorial
Content Management Systems Architecture Interview Questions

    1. Question 8. What Does Hash(#) Syntax Indicates In Grav?

      Answer :

      # or hashes syntax in Markdown indicates a title which will be converted to

      header in HTML.

 

 

    1. Question 9. What Does **(asterisks) Indicates In Grav?

      Answer :

      ** markers indicates bold text or in HTML.

 

Google Analytics Interview Questions

    1. Question 10. Mention The Types Of Pages?

      Answer :

      Grav Pages supports 3 types of pages:

      • Standard Page.
      • Listing Page.
      • Modular Page.

 

WordPress Tutorial

    1. Question 11. What Is Grav Markdown Syntax?

      Answer :

      Markdown syntax is defined as writing plain text in an easy to read and easy to write format, which is later converted into HTML code. Symbols like (*) or (‘) are used in markdown syntax. These symbols are used to bold, creating headers and organize your content.

 

WordPress Interview Questions

    1. Question 12. Mention The Benefits Of Using Markdown Syntax?

      Answer :

      The benefits of using Markdown syntax are:

      • It is easy to learn and has minimum characters.
      • When you use markdown there are very few chances of having errors.
      • Valid XHTML output.
      • Your content and visual display is kept separate so that it does not affect your website look.
      • You can use any text editor or markdown application.

 

 

Web Services Interview Questions

    1. Question 13. What Is Emphasis In Grav?

      Answer :

      Emphasis is the writing formats in markdown syntax that are used to bold, italicize or strikethrough.

      • Bold: Text can be made bold using two (**) signs at either side of the texts.
      • Italics:Use underscores( _ ) sign at either sides of the word to italicize the text.
      • Strikethrough: Use two tildes(~~) on either side of the word to strikethrough the word.

 

Content Marketing Tutorial

    1. Question 14. Mention The 4 Types Of Page Linking Used In The Content?

      Answer :

      There are 4 types of links used in the content are:

      1. Slug Relative
      2. Directory Relative
      3. Absolute
      4. Remote

 

 

    1. Question 15. What Is Remote Link?

      Answer :

      Remote links allows you to link directly to any file or document through its URL. There is no need to include your own site’s content.

 

Content Writer Interview Questions

    1. Question 16. Mention The Media File Types That Are Supported By Grav?

      Answer :

      Following are the media file types that are supported by Grav:

      • Image: jpg,jpeg,png.
      • Animated Image: gif.
      • Vectorized Image: svg.
      • Video: mp4,mov,m4v,swf.
      • Data/information: txt,doc,pdf,html,zip,gz.

 

 

Google Plus Tutorial

    1. Question 17. What Is The Use Of Sepia Action On Images?

      Answer :

      Sepia filter is added to give a vintage look on images.

 

Content Marketing Interview Questions

    1. Question 18. What Is Grav Modular Pages?

      Answer :

      Modular Pages enables to create a single page from its child pages. It is used to set as non-routable because they cannot be reached directly through an URL. They are identified by _ (underscore) before the folder name. It is a collection of pages that are displayed one above each to get a single page.

 

 

Search Engine Optimization (SEO) Interview Questions

    1. Question 19. What Is Grav Twig Filters & Functions?

      Answer :

      Filters are used to format the data the way you want and output. Functions are used to generate contents. Twig templates are text files that contain expressions and variables replaced by values.

 

    1. Question 20. Mention The Three Types Of Tags Used By Twig?

      Answer :

      Twig uses three types of tags i.e.

      1. Output tags
      2. Action Tags
      3. Comment tags

 

 

Google Plus Interview Questions

    1. Question 21. Mention The Options To Pass Array Of Assets For Css?

      Answer :

      There are few options to pass array of assets for CSS:

      • priority: It takes an integer value and default value will be 100.
      • pipeline: When an asset is not included in pipeline, it sets to false value. And the default value is set to true.

 

    1. Question 22. What Are Named Assets?

      Answer :

      Grav allows you to register a collection of CSS and JS assets with a name, so that you can use add assets to Asset Manager by using the registered name. This can be accomplished in Grav by using a feature called named assets. These custom collections are defined in system.yaml, so that it can be used by any theme or plugin.

 

 

    1. Question 23. What Are Grouped Assets?

      Answer :

      Grouped Assets allows you to pass options array consisting of optional group while adding Assets. This feature is very useful when you need some JS files or inline JS at specific part of the page.

 

Seo Analyst Interview Questions

    1. Question 24. Which Command Is Used To Watch Updates In Scss Files?

      Answer :

      scss –watch scss:css-compiled

 

 

Content Management Systems Architecture Interview Questions

    1. Question 25. What Is Theme Inheritance?

      Answer :

      Theme Inheritance is the best way of modifying or customizing a theme and can be accomplished with few setups. The basic idea is that a theme is defined as base-theme that you are inheriting from, and only some bits are allowed to modify and rest of the things is handled by base theme. The advantage of using theme inheritance is, the customized inherited theme will not be directly impacted whenever the base theme is updated.

 

    1. Question 26. Mention Some Important Points Of Random Plugin?

      Answer :

      The important points of random plugin are:

      • You can use this plugin to display the random page by using URI as /random.
      • Create the filter to make use of taxonomy specified in the pages. You can create as category : blog.
      • You can display the random page by using filter option and it informs Grav to use the same content for displaying in random page.

 

 

Xml Publisher Interview Questions

    1. Question 27. What Is Grav Event Hooks?

      Answer :

      The event hooks have a direct relationship with Grav from beginning to end. You must be aware of the order in which the hooks are called and what is usable at the time of these calls.

 

Google Analytics Interview Questions

    1. Question 28. What Is The Use Of Onfatalexception Event In The Grav Event Hooks?

      Answer :

      The Problem plugin uses this to manage displaying a list of full explanation, for why the grav delivers the fatal error.

 

    1. Question 29. What Is The Use Of Ontwigsitevariables Event?

      Answer :

      In this process, you will see the full site template in order wise by Twig methods. Further, you can add any variable to Twig during this process.

 

    1. Question 30. Mention The Features Of Grav Administration Panel Plugin?

      Answer :

      The features of Grav Administration Panel plugin are:

      • Enable or disable the plugins present in the plugin manager list.
      • It consist of functionality of the forget password.
      • Media files can be uploaded by drag-n-drop method.
      • Allows editing via yaml or forms in normal and expert modes.
      • Automatic password encryption feature is provided during user login.

 

    1. Question 31. What Is Grav Blueprints?

      Answer :

      Blueprints are metadata information about the resource(source of information).

      It serves two purposes:

      • First is the resource identity itself.
      • Second is regarding the forms.

 

    1. Question 32. What Are The Types Of Caching?

      Answer :

      There are 5 types of caching:

      • YAML configuration caching into PHP.
      • Core Grav caching for page objects.
      • Twig caching of template files as PHP classes.
      • Image caching for media resources.
      • Asset caching of CSS and jQuery with pipelining.

 

    1. Question 33. What Is Grav Cli?

      Answer :

      The CLI stands for command line interface stored in bin/grav. It performs some tasks such as clearing cache, creating backup copy etc.

 

WordPress Interview Questions

    1. Question 34. What Is The Command To Update The Grav Composer Which Was Installed Via Github?

      Answer :

      $ bin/grav composer

 

    1. Question 35. What Is Grav Gpm?

      Answer :

      The GPM stands for Grav Package Manager which is used to install, update, uninstall and list the available plugins on the Grav repository. GPM executes the commands using command line interface such as terminal or cmd.

 

    1. Question 36. What Is The Self-upgrade Command Used To Upgrade The Grav To Latest Version?

      Answer :

      $ bin/gpm self-upgrade

 

Content Writer Interview Questions

    1. Question 37. What Is Grav Skeleton?

      Answer :

      The Grav skeleton describes a sample site which contains Grav Core, plugins, pages, theme all together. The initial idea behind Grav was to build site very easily. The things need for developing a site, that all are placed in a user folder. The skeleton of Grav comes with various dependencies such as plugins, theme etc and stored them in a package which can be unzipped to run the simple example.

 

    1. Question 38. Which Are The Main Four Steps Of Grav Lifecycle?

      Answer :

      The main four steps of Grav lifecycle are:

      • PHP Version
      • Loader class is initialized
      • Obtain Grav Instance
      • Call Grav Process

 

    1. Question 39. What Is Grav Yaml Syntax?

      Answer :

      The YAML stands for YAML Ain’t Markup Language which includes human readable content and often used in configuration files, blueprints (metadata information about resource) and page settings.

 

    1. Question 40. What Are The Basic Data Types Of Yaml?

      Answer :

      YAML supports some basic data types which can be used with programming languages such as:

      • Scalars: strings or numbers.
      • Sequences: arrays or lists.
      • Mappings: hashes or dictionaries.

 

Content Marketing Interview Questions

    1. Question 41. Mention The Different Types Of Hosting Services Supported By Grav?

      Answer :

      Grav supports following hosting services:

      • Rochen Web Hosting
      • WireNine
      • Crucial Web Hosting
      • Arvixe
      • SiteGround
      • Dreamhost

 

    1. Question 42. Mention The Reasons That Cause Server Error?

      Answer :

      Some of the reasons that may cause server error are:

      • Out-of-date configuration.
      • Incorrect file permission.
      • Invalid formatted configuration files.
      • Changes in file system not known to the Grav.

 

Google Plus Interview Questions

    1. Question 43. What Is The Command To Flush The Cache?

      Answer :

      bin/grav clear-cache

 

    1. Question 44. What Are The Types Of Responsive Images?

      Answer :

      The few types of responsive images are:

      • Higher density displays
      • Sizes with media queries

 

    1. Question 45. What Is The Use Of Sizes With Media Queries Action For Responsive Images?

      Answer :

      It add a suffix to the filename and you can add higher density image to the page.

 

    1. Question 46. Mention Any Five Special Form Fields?

      Answer :

      The special form fields are:

      1. Markdown
      2. Frontmatter
      3. Selectize
      4. Taxonomy
      5. Toggle

 

    1. Question 47. What Is The Use Of Frontmatter Field?

      Answer :

      It is used to display the page in raw format.

 

    1. Question 48. What Is The Use Of Bugs Property?

      Answer :

      It specifies the Url where issues or bugs can be reported.

 

    1. Question 49. What Is The Use Of Onblueprintcreated Event?

      Answer :

      This event helps in processing and managing forms.

 

    1. Question 50. What Is The Use Of Forceresize(width, Height) Actions On Images?

      Answer :

      It stretches the image as required irrespective of original ratio.