- What is the correct command to create a new project in gatsby with its default theme?
b). yarn new gatsby <<project_name>>
c).yarn gatsby init <<project_name>>
d). gatsby new <<project_name>>
e). None of the Options
2. You cannot generate a gatsby project from a custom gatsby template
a). True
b). False
3. Gatsby is an open frontend framework to create rich and optimized applications
a). True
b). False
4. What does files inside “src/pages” do in the gatsby application structure?(You can choose more than one)
a). These files create public routes
b). These are the react components
c). These files can get data from graphQL source
d). These files are optional
5. Gatsby creates static build at compile time to make website faster
a). True
b). False
6. Is Gatsby built on top of the “react” library?
a). True
b). False
7. Gatsby has its own ecosystem which include plugins, themes, starters, etc
a). True
b). False
8. What is the correct standard way to navigate from one screen to another?
a). <a href=”/home”> Home </a>
b). <Link to=”/home”> Home <Link>
c). <Link> <a href=”/home”> Home </a></Link>
d). All of the Options
9. Can you write code in typescript in the gatsby application?
a). True
b). False
10. Can we import some other components inside one and another?
a). True
b). False
11. If you don’t want to make routes for your sub-components, you should not place those inside “subpages” directory
a). True
b). False
12. It is always recommended to use “Layout” components structure whe there is same components being used for multiple screens
a). True
b). False
13. “gatsby-node.js”, “gatsby-browser.js”, and “gatsby-config.js” file should always place
a). inside /src folder
b). inside /config folder
c). At the project-root level
d). Any of the Options
14. “gatsby-browser.js” file helps you to respond to the actions occurring within the browser. You can also import global stylings inside that file as well.
a). True
b). False
15. It is a beauty of gatsby application that you can also create pages programmatically against the dats coming from any source.
a). True
b). False
16. If you want to write components-scope level css of a “Home” component, your css file name should be.
a). home.scope.css
b). home.local.css
c). home.module.css
d). local.css
17. Is it not Possible to use the “material-ui” library in your Gatsby project?
a). True
b). False
18. “gatsby-config.js” file contains site metadata, plugin details and some other general configrations.
a). True
b). False
19. It is Always recommended to put your application secret keys into a separate environment file to avoid exposing it publicly
a). True
b). False
20. What is the best way to get data from a contentful CMS in your gat))sby application?
a). Using rest apis
b). Using soap apis
c). Using graphQL query
d). All of the Options
21. Contentful is a headless CMS and this is why it doesn’t care about how and where the data will be displayed on your client
a). True
b). False
22. Contentful portalhelps you to manage many things including (You can choose more than one option)
a). Add/update new data
b). turn On/Off data visibility based on
c). Create data models
d). Add images and other rich text
23. What is the correct file to create dynamic pages against the data coming from contentful CMS
a). gatsby-config.js
b). gatsby-node.js
c). gatsby-browser.js
d). Any of the options
24. “netlify.tomi” is a configuration file that specifies how netlify builds and depoly your site
a). True
b). False
25. What is the correct command to deploy your static html site using netlify cli?
a). netlify deployment
b). netlify deploy -prod
c). netlify surge
d). None of the options
26. Is it possible to deploy a react app on netlify as well?
a). True
b). False
27. What is the correct command to start netlify local server on your project
a). netlify start
b). netlify dev
c). gatsby start
d). None of the Options