Which of these old sayings best suits the story’s lesson for us?
A. Make hay while the sun shines.
B. Never judge a book by its cover.
C. People in glasshouses should not the stones.
D. A bird in the hands worth two in the bush.
第1题:
A. s := make([]int)
B. s := make([]int, 0)
C. s := make([]int, 5, 10)
D. s := []int{1, 2, 3, 4, 5}
第2题:
A.s += "books";
B.char c = s[1];
C.int len = s.length;
D.String t = s.toLowerCase();
第3题:
【填空题】单位换算:(答案直接写整数,不要用科学计数法) 1us = ___________ ns 1ms = ___________ us 1s = ___________ ms 1s = ___________ us
第4题:
A.
var s []ints = append(s,1)
B.
var m map[string]intm["one"] = 1
C.
var s []ints = make([]int, 0)s = append(s,1)
D.
var m map[string]intm = make(map[string]int)m["one"] = 1
第5题:
已知有定义:Strings="story",下面()表达式是合法的。
A.s+="books";
B.charC=s[1];
C.intlen=s.length;
D.Strings=s.toLowerCase();
第6题:
用vi打开一个文件,如何用字母”new”来代替文件中所有的字母”old”
A.:r/old/new
B.:s/old/new
C.:1,$s/old/new/g
D.:%s/old/new/g