Search Header Logo

2022苏州软件比武大赛—选择题_正式题

Authored by shifa wang

Computers

2nd Grade

Used 2+ times

2022苏州软件比武大赛—选择题_正式题
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

45 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

以下关于switch语句和break语句的描述中,只有( )是正确的。

在switch语句中必须使用break语句;
在switch语句中,可以根据需要使用或不使用break语句
break语句只能用于switch语句中
break语句是switch语句的一部分

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

下述C语言转义符中()是非法的

'\b'
'\037'
'\0xf'
'\'

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

如下说法不正确的是()

c>a+b等效于从c>(a+b)
若a,b均为真,则a || b为真
表达式'c'&&'d'的值为0
逻辑运算符!比逻辑运算符||的优先级高

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

在说明语句:int *f();中,标识符f代表的是()

一个用于指向整型数据的指针变量
一个用于指向一维数组的行指针
一个用于指向函数的指针变量
一个返回值为指针型的函数名

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

以下程序输出结果是( )

main() {

int a[4][4] = {{1,2,3},{4,5,6},{7,8,9}};

printf (“%d%d%d%d\n”,a[0][3],a[1][2],a[2][1],a[3][0]);

}

3570
编译报错
680
1590

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

若有定义:int a=9; float x=2.5,y = 4.7;,则表达式:x +a%3%2/4的值是()

2.500000
2.700000
3.500000
0.000000

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

main(){ float x=123.456; printf(“%-5.2f\n”,x);}以上程序输出的结果是( )

123.4
123.5
123.45
123.46

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?