kind: mc

question:
Amber framework docs (Create project structure): Then a basic setup \(without views nor models\) requires an ____ file inside `src/controllers` directory.
Which term fills the blank?
A) debugger
B) application_controller.cr
C) database
D) _some_model_or_table_name__field_name
Answer with a single letter (A, B, C, or D).

gold: B


src/{project}.cr

kind: mc

question:
Amber framework docs (Including Jennifer in Server Bootstrap): The final step in configuration is to include Jennifer in your ____ file.
Which term fills the blank?
A) distinct
B) src/{project}.cr
C) --release
D) --back
Answer with a single letter (A, B, C, or D).

gold: B


kind: mc

question:
Amber framework docs (The :layout Option): An example ____: And the layout `views/layouts/application.slang`: The `content` variable holds the rendered view that will be injected in the layout.
Which term fills the blank?
A) views/home/index.slang
B) postgresql
C) /app
D) max
Answer with a single letter (A, B, C, or D).

gold: A


kind: mc

question:
Amber framework docs (In your production machine:): You can get your encryption key from ____ file in your development machine.
Which term fills the blank?
A) index
B) chat_room:
C) save
D) .encryption_key
Answer with a single letter (A, B, C, or D).

gold: D


create

kind: mc

question:
Amber framework docs (Redirection): A successful ____action, for instance, will usually redirect to the `show` action for the model we just created.
Which term fills the blank?
A) config/environments/development.yml
B) .then
C) create
D) settings.cr
Answer with a single letter (A, B, C, or D).

gold: C


kind: mc

question:
Amber framework docs (Relations): * ____ - reload relation and returns it.
Which term fills the blank?
A) ChatSocket
B) postgresql
C) #{{relation_name}}_reload
D) save
Answer with a single letter (A, B, C, or D).

gold: C


kind: mc

question:
Amber framework docs (Relations): Jennifer provides 4 types of relations out of the box: ____, `belongs_to`, `has_and_belongs_to_many`, and `has_one`.
Which term fills the blank?
A) has_many
B) --back
C) config/environments/development.yml
D) rebroadcast!
Answer with a single letter (A, B, C, or D).

gold: A


bin/amber

kind: mc

question:
Amber framework docs (Using the Amber CLI on Heroku): When you deploy your project to heroku the amber build-pack will make available the `amber cli` to you via the ____ path.
Which term fills the blank?
A) {project_name}/config/environments
B) StaticController
C) ./tmp/{timestamp}_console.cr
D) bin/amber
Answer with a single letter (A, B, C, or D).

gold: D


kind: mc

question:
Amber framework docs (Halt! and redirect\_to): Unlike other frameworks Amber ____ stops the current execution of the request and performs the redirection at that given time.
Which term fills the blank?
A) /spec
B) @foo
C) redirect_to
D) config/initializers
Answer with a single letter (A, B, C, or D).

gold: C


build

kind: mc

question:
Amber framework docs (If you need js / css compiled): https://github.com/heroku/heroku-buildpack-nodejs.git ``` If you want js / css to be compiled, you need to modify the ____ command in `package.json` to `"build": "npm run release",`.
Which term fills the blank?
A) build
B) config/application.cr
C) weblog
D) index.ecr
Answer with a single letter (A, B, C, or D).

gold: A


bin/<your-app>

kind: mc

question:
Amber framework docs (In your production machine:): Finally run your project executable with ____ .
Which term fills the blank?
A) gitignore
B) bin/<your-app>
C) Amber::Server
D) weblog
Answer with a single letter (A, B, C, or D).

gold: B


html

kind: mc

question:
Amber framework docs (Usage): In this example you would get the ____ response.
Which term fills the blank?
A) gitignore
B) html
C) includes
D) <repository>
Answer with a single letter (A, B, C, or D).

gold: B


kind: mc

question:
Amber framework docs (Setting the current environment): As mentioned previously, Amber sets the application environment based on the ____ environment variable.
Which term fills the blank?
A) AMBER_ENV
B) join
C) crystal
D) Profile.all
Answer with a single letter (A, B, C, or D).

gold: A


slang

kind: mc

question:
Amber framework docs (The :template Option): This is the view template you would like to render, this could be of ____, `ecr`, `mustache`, or `temel`
Which term fills the blank?
A) .crystal-version
B) secret_key_base
C) slang
D) archived
Answer with a single letter (A, B, C, or D).

gold: C


crystal

kind: mc

question:
Amber framework docs (In your production machine:): Install____ and `shards` commands \([See installation guide](https://crystal-lang.org/docs/installation/)\).
Which term fills the blank?
A) amber
B) first
C) crystal
D) http://www.mycoolsite.com/page
Answer with a single letter (A, B, C, or D).

gold: C


params

kind: mc

question:
Amber framework docs (Routing Parameters): Any other parameters defined by the routing, such as :id, will also be available in the ____ object.
Which term fills the blank?
A) false
B) openssl
C) params
D) render
Answer with a single letter (A, B, C, or D).

gold: C


accepts

kind: mc

question:
Amber framework docs (Usage): If you do not specify a response type with the ____ header or using the dot notation in the url, you will get the first defined response type.
Which term fills the blank?
A) rebroadcast!
B) first
C) accepts
D) bin/amber
Answer with a single letter (A, B, C, or D).

gold: C


kind: mc

question:
Amber framework docs (Granite): Granite also supports basic one-to-many relationships with ____ and `has_many` macros that will be familiar to developers experienced with ActiveRecord.
Which term fills the blank?
A) belong_to
B) shard.yml
C) type
D) openssl
Answer with a single letter (A, B, C, or D).

gold: A


params

kind: mc

question:
Amber framework docs (File Upload): You can access files from the ____ macro using the `files` method.
Which term fills the blank?
A) config/environments/development.yml
B) params
C) views/home/index.slang
D) has_many
Answer with a single letter (A, B, C, or D).

gold: B


index

kind: mc

question:
Amber framework docs (Redirection): Alternately, it could redirect to the ____ action to show all the things of that same type.
Which term fills the blank?
A) Dockerfile
B) handle_leave
C) index
D) #add_{{relation_name}}
Answer with a single letter (A, B, C, or D).

gold: C


type

kind: mc

question:
Amber framework docs (STI): Single table inheritance can be used in this way: The subclass extends the superclass definition with new fields and uses string field ____ to identify itself.
Which term fills the blank?
A) chromedriver
B) type
C) {project_name}/config/routes.cr
D) config/environments/test.yml
Answer with a single letter (A, B, C, or D).

gold: B


kind: mc

question:
Amber framework docs (Relations): * ____ - adds given object to relation or builds it from has and adds.
Which term fills the blank?
A) #add_{{relation_name}}
B) src/controllers/hello_controller.cr
C) chat_room:
D) .buildpacks
Answer with a single letter (A, B, C, or D).

gold: A


destroy

kind: mc

question:
Amber framework docs (Delete and Destroy): ____ first loads objects and runs callbacks and then calls delete on each.
Which term fills the blank?
A) rebroadcast!
B) bin/myapp
C) destroy
D) api/index
Answer with a single letter (A, B, C, or D).

gold: C


:web

kind: mc

question:
Amber framework docs (Pipelines): With our ____ pipeline now define we can use it in our routes definitions.
Which term fills the blank?
A) channel.push
B) :web
C) lldb
D) {project_name}/config
Answer with a single letter (A, B, C, or D).

gold: B


params

kind: mc

question:
Amber framework docs (Validating request parameters): Amber attempts to alleviate the issues that come with invalid parameters and provides a ____ object to all controllers which contains a built-in `validation` method.
Which term fills the blank?
A) slang
B) gitignore
C) :errors
D) params
Answer with a single letter (A, B, C, or D).

gold: D


kind: mc

question:
Amber framework docs (Naming Partials): This holds true even when you're pulling in a partial from another folder: `<%= render "shared/menu.html.ecr" %>` That code will pull in the partial from ____.
Which term fills the blank?
A) default
B) .to_s
C) database
D) app/views/shared/_menu.html.ecr
Answer with a single letter (A, B, C, or D).

gold: D


chromedriver

kind: mc

question:
Amber framework docs (System Tests): Before running your specs ensure you have installed the ____ and that `selenium-server standalone` is in your system path.
Which term fills the blank?
A) chromedriver
B) #errors
C) {project_name}/config/routes.cr
D) slang
Answer with a single letter (A, B, C, or D).

gold: A


ChatSocket

kind: mc

question:
Amber framework docs (Add a new Route): Notice how after `\chat`, the struct ____ that was created above is mapped to that route.
Which term fills the blank?
A) .css
B) ./tmp/{timestamp}_console.cr
C) ChatSocket
D) chat_room
Answer with a single letter (A, B, C, or D).

gold: C


Dockerfile

kind: mc

question:
Amber framework docs (If you need js / css compiled): Not defining a .buildpack file will cause Dokku to build your project using the ____ as Dokku will auto-detect it, this will not work and cause issues.
Which term fills the blank?
A) Dockerfile
B) bin/amber
C) app/views/shared/_menu.html.ecr
D) config/mailer.cr
Answer with a single letter (A, B, C, or D).

gold: A


kind: mc

question:
Amber framework docs (Relations): * ____ - removes given object from relation.
Which term fills the blank?
A) #remove_{{relation_name}}
B) _some_model_or_table_name__field_name
C) secret_key_base
D) encryption_key
Answer with a single letter (A, B, C, or D).

gold: A


kind: recall

question: According to the Amber web framework documentation (Update your project shard.yml), which term completes this statement: Once your Amber project is created, you will need to update your ____ file to include Jennifer as a dependency. Answer with just the term.


kind: recall

question: According to the Amber web framework documentation (Pipelines), which term completes this statement: Don't get rid of ____ if you need to serve static assets. Answer with just the term.

gold: StaticController


kind: recall

question: According to the Amber web framework documentation (Filters), which term completes this statement: Filters are inherited, so if you set a filter on____, it will be run on every controller in your application. Answer with just the term.

gold: ApplicationController


kind: recall

question: According to the Amber web framework documentation (Naming Partials), which term completes this statement: To render a partial as part of a view, you use the render method within the view: `<%= render "menu" %>` This will render a file named ____ at that point within the view being rendered. Answer with just the term.


kind: recall

question: According to the Amber web framework documentation (Update your project shard.yml), which term completes this statement: Add the following code snippet to your application's ____ file: ```yaml Answer with just the term.


kind: recall

question: According to the Amber web framework documentation (Configuring Routes), which term completes this statement: Routes are configured in the ____ file. Answer with just the term.


kind: recall

question: According to the Amber web framework documentation (Relation), which term completes this statement: To join a model relation such as ____, `belongs_to` and `has_one` you can pass it's name and join type as: Answer with just the term.


kind: recall

question: According to the Amber web framework documentation (Testing), which term completes this statement: You can ensure smooth testing by adding the following to your ____: Also just regular deleting or truncation could be used but transactions provide 15x speed up \(at least for postgres; mysql gets less impact\). Answer with just the term.


kind: recall

question: According to the Amber web framework documentation (File Upload), which term completes this statement: Files are detected and turned into ____ and put into a temporary file cache. Answer with just the term.


kind: recall

question: According to the Amber web framework documentation (The :layout Option), which term completes this statement: This will render the ____ template inside the `views/layouts/application.slang` layout. Answer with just the term.


kind: recall

question: According to the Amber web framework documentation (Routing Parameters), which term completes this statement: We can add a route which captures the ____ parameter in a "pretty" URL: In this case, when a user opens the URL `/clients/active`, `params[:status]` will be set to "active" Answer with just the term.

gold: :status


kind: recall

question: According to the Amber web framework documentation (Relations), which term completes this statement: ____ also accepts the next 2 arguments and uses regular arguments in a slightly different way: * `join_table` - join table name; by default, relation table names are in alphabetic order, joined by underscores. Answer with just the term.


kind: recall

question: According to the Amber web framework documentation (Setting the current environment), which term completes this statement: For example to run Amber in the production environment, we can set the ____ to `production`. Answer with just the term.


kind: recall

question: According to the Amber web framework documentation (Inline Mode), which term completes this statement: The ____ command in inline mode allows you to execute a line of code \(or several with semicolons\) with your application code and environment loaded. Answer with just the term.

gold: exec


kind: recall

question: According to the Amber web framework documentation (In your development machine:), which term completes this statement: && npm run release` to compile/minify ____ and `.js` files. Answer with just the term.

gold: .css


kind: recall

question: According to the Amber web framework documentation (File Upload), which term completes this statement: The attributes you can access are: For example, let's say we have a controller with a ____ method that we want someone to `POST` a JSON body that includes a file to upload: ```crystal Answer with just the term.

gold: create


kind: recall

question: According to the Amber web framework documentation (Setting the current environment), which term completes this statement: If you would like to set the environment to something else, you will need to configure the ____ environment variable before running the server process. Answer with just the term.


kind: recall

question: According to the Amber web framework documentation (Editor Mode), which term completes this statement: Specifying a value for the ____ option allows you to go _n_ scripts back and edit+run that script. Answer with just the term.

gold: --back


kind: recall

question: According to the Amber web framework documentation (Setting the current environment), which term completes this statement: By default, the environment is set to ____. Answer with just the term.

gold: development


kind: recall

question: According to the Amber web framework documentation (Create project structure), which term completes this statement: Secondly a ____ file with pipelines and routes blocks, also see: [routing](../guides/routing/). Answer with just the term.