试题通
试题通
APP下载
首页
>
财会金融
>
C语言选择题期末复习2024.1.7
试题通
搜索
C语言选择题期末复习2024.1.7
C语言选择题期末复习2024.1.7
章节

C语言选择题期末复习2024.1.7(单选题)

题数量:103
去答题
试题通
C语言选择题期末复习2024.1.7
试题通
77.设有如下定义:struct sk{int a; float b;}data,*p;若有 p=&data; 则对 data 中成员 a 的引用正确的是( )

A. (*p).data.a

B. (*p).a

C. p->data.a

D. p.data.a

https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-bdfb-c0d6-ed9455688500.html
查看题目
99.有定义语句:int b;char c[10];,则正确的输入语句是( )。

A. scanf("%d%s",&b,&c);

B. scanf("%d%s",&b, c);

C. scanf("%d%s",b, c);

D. scanf("%d%s",b,&c);

https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-e842-c0d6-ed9455688500.html
查看题目
27.下列标识符,不合法的是( )。

A. .abc

B. ⱣⱤd

C. 123

E. 1

https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-5c8b-c0d6-ed9455688500.html
查看题目
5.关于标识符,下列选项中描述错误的是( )。

A. .标识符只能由字母、数字和下划线组成

B.  标识符可以下划线作为第一个字符

C.  标识符不能以数字作为第一个字符

D.  标识符不区分大小写字母

https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-2ec7-c0d6-ed9455688500.html
查看题目
34.假设有如下定义:struct sk{int a; float b;} data, *p;若有 p=&data; 则对 data 中的 a 域的正确引用是( )。

A. .(*p).data.a

B. (*p).a

C. p->data.a

D. p.data.a

https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-6c96-c0d6-ed9455688500.html
查看题目
57.若有定义:struct KeyWord{char Key[20]; int ID;}kw[] = { "void", 1, "char", 2, "int", 3, "float", 4, "double", 5 };则 printf("%c,%d\n", kw[3].Key[0], kw[3].ID);语句的输出结果为( )。

A.  i 3

B.  n 3

C.  f 4

D.  l 4

https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-97d4-c0d6-ed9455688500.html
查看题目
74.下述对 C 语言字符数组的描述中错误的是( )。

A.  字符数组可以存放字符串

B.  字符数组中的字符串可以整体输入、输出

C.  可以在赋值语句中通过赋值运算符"="对字符数组整体赋值

D.  不可以用关系运算符对字符数组中的字符串进行比较

https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-b895-c0d6-ed9455688500.html
查看题目
55.若有以下说明和定义:void fun(int *c){}void main(){int ( )()=fun,*b(),w[10],c;}在必要的赋值之后,对 fun 函数的正确调用语句是( )。

A. a=a(w);

B. (*a)(&c);

C. b=*b(w);

D. fun(b);

https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-94be-c0d6-ed9455688500.html
查看题目
67.程序片段:short i=65536; printf("%d\n",i); 的输出结果是( )。

A. .65536

B.  0

C.  有语法错误,无输出结果

D.  -1

https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-a9b1-c0d6-ed9455688500.html
查看题目
15.C 语言提供的合法的数据类型关键字是( )。

A. .Double

B. float

C. integer

D. Char

https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-4213-c0d6-ed9455688500.html
查看题目

C语言选择题期末复习2024.1.7

首页
>
财会金融
>
C语言选择题期末复习2024.1.7

C语言选择题期末复习2024.1.7

手机预览
试题通
C语言选择题期末复习2024.1.7
章节

C语言选择题期末复习2024.1.7(单选题)

题数量:103
去答题
试题通
试题通
C语言选择题期末复习2024.1.7

相关题目

77.设有如下定义:struct sk{int a; float b;}data,*p;若有 p=&data; 则对 data 中成员 a 的引用正确的是( )

A. (*p).data.a

B. (*p).a

C. p->data.a

D. p.data.a

https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-bdfb-c0d6-ed9455688500.html
查看题目
99.有定义语句:int b;char c[10];,则正确的输入语句是( )。

A. scanf("%d%s",&b,&c);

B. scanf("%d%s",&b, c);

C. scanf("%d%s",b, c);

D. scanf("%d%s",b,&c);

https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-e842-c0d6-ed9455688500.html
查看题目
27.下列标识符,不合法的是( )。

A. .abc

B. ⱣⱤd

C. 123

E. 1

https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-5c8b-c0d6-ed9455688500.html
查看题目
5.关于标识符,下列选项中描述错误的是( )。

A. .标识符只能由字母、数字和下划线组成

B.  标识符可以下划线作为第一个字符

C.  标识符不能以数字作为第一个字符

D.  标识符不区分大小写字母

https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-2ec7-c0d6-ed9455688500.html
查看题目
34.假设有如下定义:struct sk{int a; float b;} data, *p;若有 p=&data; 则对 data 中的 a 域的正确引用是( )。

A. .(*p).data.a

B. (*p).a

C. p->data.a

D. p.data.a

https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-6c96-c0d6-ed9455688500.html
查看题目
57.若有定义:struct KeyWord{char Key[20]; int ID;}kw[] = { "void", 1, "char", 2, "int", 3, "float", 4, "double", 5 };则 printf("%c,%d\n", kw[3].Key[0], kw[3].ID);语句的输出结果为( )。

A.  i 3

B.  n 3

C.  f 4

D.  l 4

https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-97d4-c0d6-ed9455688500.html
查看题目
74.下述对 C 语言字符数组的描述中错误的是( )。

A.  字符数组可以存放字符串

B.  字符数组中的字符串可以整体输入、输出

C.  可以在赋值语句中通过赋值运算符"="对字符数组整体赋值

D.  不可以用关系运算符对字符数组中的字符串进行比较

https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-b895-c0d6-ed9455688500.html
查看题目
55.若有以下说明和定义:void fun(int *c){}void main(){int ( )()=fun,*b(),w[10],c;}在必要的赋值之后,对 fun 函数的正确调用语句是( )。

A. a=a(w);

B. (*a)(&c);

C. b=*b(w);

D. fun(b);

https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-94be-c0d6-ed9455688500.html
查看题目
67.程序片段:short i=65536; printf("%d\n",i); 的输出结果是( )。

A. .65536

B.  0

C.  有语法错误,无输出结果

D.  -1

https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-a9b1-c0d6-ed9455688500.html
查看题目
15.C 语言提供的合法的数据类型关键字是( )。

A. .Double

B. float

C. integer

D. Char

https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-4213-c0d6-ed9455688500.html
查看题目
试题通小程序
试题通app下载