APP下载
首页
>
财会金融
>
程序设计章节汇总
搜索
程序设计章节汇总
题目内容
(
单选题
)
10.以下所列的各函数首部中,正确的是( )

A、 void play(vata:Integer,varb:Integer)

B、 void play(inta,b)

C、 void play(inta,intb)

D、 Sub play(aasinteger,basinteger)

答案:C

程序设计章节汇总
2.设i和x都是int类型,则for循环语句for(i=0,x=0;i<=9&&x!=876;i++)scanf(“%d”,&x);( )
https://www.shititong.cn/cha-kan/shiti/0000813e-e8f3-131a-c0f8-9874dcef4300.html
点击查看题目
9.在下列选项中,没有构成死循环的是( )
https://www.shititong.cn/cha-kan/shiti/0000813e-e8f3-2418-c0f8-9874dcef4300.html
点击查看题目
31.现有定义intk=1;则执行语句while(++k<4);后,k的值为( )
https://www.shititong.cn/cha-kan/shiti/0000813e-e8f3-5d4a-c0f8-9874dcef4300.html
点击查看题目
1.C语言的基本构成单位是:( )
https://www.shititong.cn/cha-kan/shiti/00008106-48c2-2a71-c0f8-9874dcef4300.html
点击查看题目
23.设有:后n的值是( )
https://www.shititong.cn/cha-kan/shiti/00008132-6116-32da-c0f8-9874dcef4300.html
点击查看题目
36.已知intk;floatm=-3;执行语句k=m%2;后,变量k的值是( )
https://www.shititong.cn/cha-kan/shiti/00008112-f313-2a95-c0f8-9874dcef4300.html
点击查看题目
35.设有如下函数( )
https://www.shititong.cn/cha-kan/shiti/00008158-0ae4-f9a4-c0f8-9874dcef4300.html
点击查看题目
30.C语言中while和do-while循环的主要区别是( )
https://www.shititong.cn/cha-kan/shiti/0000813e-e8f3-5b5e-c0f8-9874dcef4300.html
点击查看题目
22.以下程序有语法错误,有关错误原因的正确说法是( )
https://www.shititong.cn/cha-kan/shiti/00008158-0ae4-dd7c-c0f8-9874dcef4300.html
点击查看题目
14.若已定义的函数有返回值,则以下关于该函数调用的叙述中错误的是( )
https://www.shititong.cn/cha-kan/shiti/00008158-0ae4-cd5f-c0f8-9874dcef4300.html
点击查看题目
首页
>
财会金融
>
程序设计章节汇总
题目内容
(
单选题
)
手机预览
程序设计章节汇总

10.以下所列的各函数首部中,正确的是( )

A、 void play(vata:Integer,varb:Integer)

B、 void play(inta,b)

C、 void play(inta,intb)

D、 Sub play(aasinteger,basinteger)

答案:C

分享
程序设计章节汇总
相关题目
2.设i和x都是int类型,则for循环语句for(i=0,x=0;i<=9&&x!=876;i++)scanf(“%d”,&x);( )

A. 最多执行10次

B. 最多执行9次

C. 是无限循环

D. 循环体一次也不执行

https://www.shititong.cn/cha-kan/shiti/0000813e-e8f3-131a-c0f8-9874dcef4300.html
点击查看答案
9.在下列选项中,没有构成死循环的是( )

A. A

B. B

C. C

D. (D)

https://www.shititong.cn/cha-kan/shiti/0000813e-e8f3-2418-c0f8-9874dcef4300.html
点击查看答案
31.现有定义intk=1;则执行语句while(++k<4);后,k的值为( )

A. 4

B. 5

C. 6

D. 8

https://www.shititong.cn/cha-kan/shiti/0000813e-e8f3-5d4a-c0f8-9874dcef4300.html
点击查看答案
1.C语言的基本构成单位是:( )

A. 函数

B. 函数和过程

C. 超文本过程

D. 子程序

https://www.shititong.cn/cha-kan/shiti/00008106-48c2-2a71-c0f8-9874dcef4300.html
点击查看答案
23.设有:后n的值是( )

A. 1

B. 2

C. 3

D. 4

https://www.shititong.cn/cha-kan/shiti/00008132-6116-32da-c0f8-9874dcef4300.html
点击查看答案
36.已知intk;floatm=-3;执行语句k=m%2;后,变量k的值是( )

A. -1

B. 0

C. 1

D. 语句有错误

https://www.shititong.cn/cha-kan/shiti/00008112-f313-2a95-c0f8-9874dcef4300.html
点击查看答案
35.设有如下函数( )

A. 与参数x的类型相同

B. 是void

C. 是int型

D. 无法确定

https://www.shititong.cn/cha-kan/shiti/00008158-0ae4-f9a4-c0f8-9874dcef4300.html
点击查看答案
30.C语言中while和do-while循环的主要区别是( )

A. do-while的循环体至少无条件执行一次

B. while的循环控制条件比do-while的循环控制条件更严格

C. do-while允许从外部转到循环体内

D. do-while的循环体不能是复合语句

https://www.shititong.cn/cha-kan/shiti/0000813e-e8f3-5b5e-c0f8-9874dcef4300.html
点击查看答案
22.以下程序有语法错误,有关错误原因的正确说法是( )

A. 语句voidprtⱣⱤchar();有错,它是函数调用语句,不能用void说明

B. 变量名不能使用大写字母

C. 函数说明和函数调用语句之间有矛盾

D. 函数名不能使用下划线

https://www.shititong.cn/cha-kan/shiti/00008158-0ae4-dd7c-c0f8-9874dcef4300.html
点击查看答案
14.若已定义的函数有返回值,则以下关于该函数调用的叙述中错误的是( )

A. 函数调用可以作为独立的语句存在

B. 函数调用可以作为一个函数的实参

C. 函数调用可以出现在表达式中

D. 函数调用可以作为一个函数的形参

https://www.shititong.cn/cha-kan/shiti/00008158-0ae4-cd5f-c0f8-9874dcef4300.html
点击查看答案
试题通小程序
试题通app下载