此题为判断题(对,错)。
第1题:
定义如下枚举类型enum{Monday,Tuesday,Wednesday,Thrusday,Friday=2};则下列选项正确的是( )。
A.表达式Wednesday==Friday的值是true
B.Dayday;day=3;
C.Dayday;day=Monday+3;
D.Daydayday=Tuesday+10;
第2题:
定义如下枚举类型:enum{Monday,Tuesday,Wednesday,Thrusday,Friday=2};则下列语句正确的是( )。
A.表达式Wednesday==Friday的值是true
B.Day day;day=3;
C.Day day;day=Monday+3;
D.Day day;day=Tuesday+10;
第3题:
5、下列shell脚本中的case语句,语法正确的是()
A.case $1 in 1) echo "Monday" ;; 2) echo "Tuesday" ;; *) echo "Input error" ;;
B.case $1 in 1) echo "Monday" ; 2) echo "Tuesday" ; *) echo "Input error" ;
C.case $1 in 1) echo "Monday" ;; 2) echo "Tuesday" ;; *) echo "Input error" ;; esac
D.case $1 in 1) echo "Monday" ;; 2) echo "Tuesday" ;; *) echo "Input err
第4题:
定义如下枚举类型;enum{ Monday, Tuesday, Wednesday, Thrusday, Friday=2);,则下列语句正确的是( )。
A.表达式Wednesday==Friday 的值是true
B.Day day;day=3
C.Day day;day=Monday+3
D.Day day;day=Tuesday+10
第5题:
定义如下枚举类型; enum {Monday, Tuesday, Wednesday, Thrusday, Friday=2};则下列语句正确的是
A.表达式 Wednesday == Friday 的值是 true
B.Day day; day=3;
C.Day day; day = Monday + 3;
D.Day day; day = Tuesday + 10;