1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Ruby クイズ 5問 (初級)

Last updated at Posted at 2017-10-14

問題

Q. puts と p の違いは?

A.

Q. exit と exit! の違いは?

A.

Q. メソッド名のビックリ ( ! ) は何を表す?

A.

Q. メソッド名のクエスチョン ( ? ) は何を表す?

A.

Q. インスタンスメソッドとクラスメソッドの違いは?

A.

参考

解答例

1. puts は出力用 / p はデバッグ用 2. exit! は例外をキャッチさせない 3. 要注意であることを示すことが多い 4. 状態 ( true / false ) を問うために使われることが多い 5. 状態を持つメソッドと持たないメソッド

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

Twitter

1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?