在列表:c=["black","red","green","yellow","orange","blue"]中,设定变量j=3,那么运行代码turtle.pencolor(c[j])后,画笔的颜色将变成黄色。
第1题:
已知枚举类型声明语句为: enumCOLOR{WHITE,YELLOW,GREEN=5,RED,BLACK=10}; 则下列说法中错误的是
A.枚举常量YELLOW的值为1
B.枚举常量RED的值为6
C.枚举常量BLACK的值为10
D.枚举常量WHITE的值为1
第2题:
以下选项中不能正确把c1定义成结构体变量的是
A.typedef struct {int red: int green: int blue; } COLOR; COLOR c1;
B.struct color c1 {int red int green: int blue; };
C.struct color {int red , int green : int blue : )cl;
D.struct {int red; int green; int blue } c1 ;
第3题:
Aolor:=‘green‘;
Bwriteln(green);
Cwriteln(color);
Da:=color=red;
第4题:
A.Black,Green,Red,Yellow
B.Black,Red,Green,Yellow
C.Red,Black,Green,Yellow
D.Yellow,Red,Green,Black
第5题:
下列枚举类型的定义中,包含枚举值3的是
A.enum test{RED,YELLOW,BLUE,BLACK};
B.enum test{RED,YELLOW=4,BLUE,BLACK};
C.enum test{RED=-1,YELLOW,BLUE,BLACK};
D.erium test{RED,YELLOW=6,BLUE,BLACK};
第6题:
A、the great white hope
B、the great red hope
C、the great green hope
D、the great black hope
第7题:
以下选项中不能正确把cl定义成结构体变量的是
A.typedef struct { int red; int green; int blue; } COLOR; COLOR cl;
B.struct color cl { int red; int green; int blue; }
C.struct color { int red; int green; int blue; } cl;
D.struct { int red; int green; int blue; } cl;
第8题:
( 18 )下列枚举类型的定义中,包含枚举值 3 的是
A ) enum test {RED, YELLOW, BLUE, BLACK};
B ) enum test {RED, YELLOW=4, BLUE, BLACK};
C ) enum test {RED=-1, YELLOW,BLUE, BLACK};
D ) enum test {RED, YELLOW=6, BLUE, BLACK};
第9题:
以下选项中不能正确把c1定义成结构体变量的是
A.typedef struct { int red; int green;; int blue; }COLOR; COLOR cl;
B.struct color cl { int red; int green; int blue; };
C.struet color { int red; int green; int blue; }c1;
D.struct { int red; int green; int blue; }cl;
第10题:
下列选项中不能正确定义结构体的是_______。
A.typedef struct
B.struct color cl {int red; {int red; int green; int green; int blue; int blue; }COLOR; }; COLOR cl;
C.struct color
D.struct {int red; {int red; int green; int green; int blue; int blue; }cl; }cl;