0
1

More than 3 years have passed since last update.

【自己学習】Railsチュートリアル第一章

Posted at

[Rails]Railsチュートリアル第一章からでてきそうな試験問題(予想)

Rails 5 技術者認定ベーシック試験を受けたいが,
過去問や参考になるものがなかったので、Railsチュートリアルを見ながら自作で出てきそうな問題を作成する。
※予想で作成しているため過度な期待は注意

問題1:Railsサーバーを立ち上げるコマンドを以下から正しいものを2つ選べ

1. rails g
2. rails s
3. rails server
4. rails c
5. rails console

正解:2,3

問題2:新規Railsプロジェクトを作成するコマンドを以下から正しいものを選べ

1. rails g
2. rails s
3. rails server
4. rails c
5. rails new

正解:5

問題3:Rubyのバージョンを確認するコマンドを以下から正しいものを2つ選べ

1. ruby --version
2. ruby --versions
3. ruby -v
4. ruby --v
5. ruby version

正解:1,3

問題4:Railsのバージョンを確認するコマンドを以下から正しいものを2つ選べ

1. rails -v
2. rails -versions
3. rails --version
4. rails --v
5. rails --versions

正解:1,3

問題5:ルーティングを記述するファイルを以下から正しいものを選べ

1. route.rb
2. routing.rb
3. routed.rb
4. root.rb
5. routes.rb

正解:5

参考

Ruby on Rails チュートリアル
https://railstutorial.jp/chapters/beginning?version=5.1#code-rails_command

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1