以下对枚举类型名的定义中正确的是: A: enum a{sum=9,mon=-1,tue}; B: enum a={sum,mon,tue}; C: enum a={"sum","mon","tue"}; D: enum a{"sum","mon","tue" }
以下对枚举类型名的定义中正确的是: A: enum a{sum=9,mon=-1,tue}; B: enum a={sum,mon,tue}; C: enum a={"sum","mon","tue"}; D: enum a{"sum","mon","tue" }
执行下述语句后的结果是enum weekday {sun, mon=3, tue, wed, thu}; enum weekday day; day = wed; printf("%d ",day); A: 5 B: 3 C: 4 D: 编译时出错
执行下述语句后的结果是enum weekday {sun, mon=3, tue, wed, thu}; enum weekday day; day = wed; printf("%d ",day); A: 5 B: 3 C: 4 D: 编译时出错
以下对枚举类型名的定义中正确的是()。 A: enum a {"sum","mon","tue"}; B: enum a={sum,mon,tue}; C: enum a={"sum","mon","tue"}; D: enum a {sum=9,mon=-1,tue};
以下对枚举类型名的定义中正确的是()。 A: enum a {"sum","mon","tue"}; B: enum a={sum,mon,tue}; C: enum a={"sum","mon","tue"}; D: enum a {sum=9,mon=-1,tue};
设有定义语句enumworkday{Mon=1,Tue,Wed,Thu,Fri}workday;则枚举常量Tue的值为______。
设有定义语句enumworkday{Mon=1,Tue,Wed,Thu,Fri}workday;则枚举常量Tue的值为______。
以下关于枚举变量定义错误的是 A: enumweek{sun,mon,tue,wed,thue,fri,sat}weektest; B: enum{sun,mon,tue,wed,thue,fri,sat}weektest; C: enumweek{sun,mon,tue,wed,thue,fri,sat};enumweek weektest; D: enumweek{sun,mon,tue,wed,thue,fri,sat};
以下关于枚举变量定义错误的是 A: enumweek{sun,mon,tue,wed,thue,fri,sat}weektest; B: enum{sun,mon,tue,wed,thue,fri,sat}weektest; C: enumweek{sun,mon,tue,wed,thue,fri,sat};enumweek weektest; D: enumweek{sun,mon,tue,wed,thue,fri,sat};
以下关于枚举类型的声明正确的是_____ A: enum day={mon,tue,wed,thu,fri,sat,sun}; B: enum day{mon=1,tue,wed,thu,fri,sat,sun}; C: enum day{mon;tue;wed;thu;fri;sat;sun}; D: enum day{mon,tue,wed,thu,fri,sat,mon};
以下关于枚举类型的声明正确的是_____ A: enum day={mon,tue,wed,thu,fri,sat,sun}; B: enum day{mon=1,tue,wed,thu,fri,sat,sun}; C: enum day{mon;tue;wed;thu;fri;sat;sun}; D: enum day{mon,tue,wed,thu,fri,sat,mon};
下面程序的输出结果是( )。#include <;stdio.h>;enum DAY{MON=1, TUE, WED, THU, FRI, SAT, SUN};int main(){enum DAY day;day = TUE;printf("%d",day);return 0;} A: TUE B: 0 C: 1 D: 2
下面程序的输出结果是( )。#include <;stdio.h>;enum DAY{MON=1, TUE, WED, THU, FRI, SAT, SUN};int main(){enum DAY day;day = TUE;printf("%d",day);return 0;} A: TUE B: 0 C: 1 D: 2
Word中插入数学公式的方法是()。 A: "插入"→"形状"→"公式" B: "开发工具"→"公式" C: "插入"→"公式"→"插入新公式" D: "引用"→"插入"→"公式"
Word中插入数学公式的方法是()。 A: "插入"→"形状"→"公式" B: "开发工具"→"公式" C: "插入"→"公式"→"插入新公式" D: "引用"→"插入"→"公式"
定义并初始化一个用于存放我们国家的四个直辖市的数组cityName,四个直辖市为:北京,上海,天津,重庆. 正确的是_________ A: String[] cityName=new String[4]{"北京","上海","天津","重庆"}; B: String[] cityName=new String[]{"北京","上海","天津","重庆"}; C: String[] cityName={"北京","上海","天津","重庆"}; D: String cityName = new String[4] { "北京", "上海", "天津", "重庆" };
定义并初始化一个用于存放我们国家的四个直辖市的数组cityName,四个直辖市为:北京,上海,天津,重庆. 正确的是_________ A: String[] cityName=new String[4]{"北京","上海","天津","重庆"}; B: String[] cityName=new String[]{"北京","上海","天津","重庆"}; C: String[] cityName={"北京","上海","天津","重庆"}; D: String cityName = new String[4] { "北京", "上海", "天津", "重庆" };
已知有一个名为names的空列表,如何向其中添加old_driver,rain,jack,shanshan,peiqi,black_girl 元素? A: names.append("old_driver","rain","jack","shanshan","peiqi","black_girl") B: names.extend("old_driver","rain","jack","shanshan","peiqi","black_girl") C: names.insert("old_driver","rain","jack","shanshan","peiqi","black_girl") D: names.extend(["old_driver","rain","jack","shanshan","peiqi","black_girl"])
已知有一个名为names的空列表,如何向其中添加old_driver,rain,jack,shanshan,peiqi,black_girl 元素? A: names.append("old_driver","rain","jack","shanshan","peiqi","black_girl") B: names.extend("old_driver","rain","jack","shanshan","peiqi","black_girl") C: names.insert("old_driver","rain","jack","shanshan","peiqi","black_girl") D: names.extend(["old_driver","rain","jack","shanshan","peiqi","black_girl"])