The Qiita Advent Calendar 2020 is supported by the following companies, organizations, and services.

Microsoft AzureDataRobotLenovoIBM CloudfreeeUdemyパソナテックメタップス

Goクイズ Advent Calendar 2020

Participant13People
Subscriber73People
37
Category:Programming language
Creator

これはなに?

Goのクイズを出題しその解説を書くアドベントカレンダーです!!

出題テンプレート


以下のコードを実行するとどうなるか?

```go
package main
func main() {
    true := false
    println(true == false)
}
```

1. コンパイルエラー
2. `true`と表示される
3. `false`と表示される
4. パニックが発生する

<details><summary&gt回答と解説</summary>
ここに回答と解説を書く
</details>

出題のポイント

  • 短いコードにする
  • なるべく、言語仕様に書いてないことを問題にしない
  • 4択ぐらいにする
  • すべての選択肢を取りうる罠を用意し筋書きを作る
  • 自分がハマったバグとかを参考に作る
  • 難しい問題を作ろうと気合を入れすぎない

クイズの例

SunMonTueWedThuFriSat

29

30

26

SunMonTueWedThuFriSat

29

30

26

The Qiita Advent Calendar 2020 is supported by the following companies, organizations, and services.

Microsoft AzureDataRobotLenovoIBM CloudfreeeUdemyパソナテックメタップス