题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2023-12-02 20:19:26

[单选题]<p>执行以下语句输出的结果是( )<br>a=True<br>b=False<br>if a or b and a:<br>     print('yes')<br>else:<br>     print('no')</p>
A.

yes


B.

no


C.

True


D.

False

更多"[单选题]&lt;p>执行以下语句输出的结果是( )&lt;br>a="的相关试题:

[单选题]

执行以下语句输出的结果是( )
i=0
while i<5:
    i+=1
    if i==4:
        continue
    else:
        print(i)


A.

0,1,2,3,4


B.

1,2,3,4,5


C.

0,1,2,3


D.

1,2,3,5

[单选题]执行以下语句,输出的结果是:( )
a=1
b=a
a=2
print(b)
A.a
B.b
C.1
D.2
[单选题]

执行以下语句,用户输入整数5,输出的结果是( )
n=int(input())
d={}
for i in range (1,n+1):
     d[i]=i*i
print(d)


A.

{1: 1, 2: 4, 3: 9, 4: 16, 5: 25}


B.

[1,4,9,16,25]


C.

{1: 1, 2: 4, 3: 9, 4: 16, 5: 25,6:36}


D.

[1,4,9,16,25,36]

[单选题]

执行语句以下语句,要使输出的结果是:主营业务成本科目发生额是30000.12元,以下选项中format()可以填入的是(    ) 

print( '{account}科目发生额是{amount : .2f}元'.format())


A.

A.account = '主营业务成本',amount = 30000.123


B.

B.'主营业务成本',30000.123


C.

C.account = '主营业务成本',amount = 30000.126


D.

D.'主营业务成本',30000.111

[单选题]执行下列语句后,输出的结果是( )。
#include
Using namespace std;
Int main()
{
int j;
int m[3][2]={10,20,30,40,50,60};
for(j=0;j<2;j++)
cout< return 0;
}
A. 10 30
B. 20 40
C. 50 40
D. 60 40
[单选题]

执行以下语句,输出的结果为:( )
def func(a):
    if a==1:
        return 1
    else:
        return 4
f=func(2)
print(f)


A.

1


B.

2


C.

3


D.

4

[单选题]执行下列语句后,程序的输出结果是( )。
#include
Using namespace std;
Int main( )
{
int n=10;
while(n>7){
n--;
cout< }
cout<}
A. 10,9,8
B. 9,8,7
C. 10,9,8,7
D. 9,8,7,6
[填空题]执行下列语句后,输出的结果是___()__。
#include
Using namespace std;
Int main(
{ int a=3,b=5;
float c=b/a;
cout << c << end1;
return 0;
}
[单选题]

执行以下语句
def fn():
    global c
    c = 12
fn()
print(c)
输出的结果为(


A.

12


B.

c


C.

0


D.

NameError: name 'd' is not defined

[单选题]

执行以下语句
def func(b,c):
    d=b*c
print(d)
func(2,3)
输出的结果为(


A.

6


B.

3


C.

2


D.

NameError: name 'd' is not defined

[多选题]

执行以下语句,输出的结果要是:主营业务成本科目发生额是3000元(   )

print( '{1}科目发生额是{0}元’.format())


A.

A.D.print( '{0}科目发生额是{1}元’.format('主营业务成本',30000))


B.

B.D.print( '{1}科目发生额是{0}元’.format('主营业务成本',30000))


C.

C.D.print( '{0}科目发生额是{1}元’.format(3000,'主营业务成本'))


D.

D.print( '{1}科目发生额是{0}元’.format(3000,'主营业务成本'))

[单选题]

执行以下语句:
def func(a,b,*c,**d):
    print(a,b,c,d)
func(0,1,2,3,g=4,j=5)
输出的结果是(


A.

0 1 2 3 {'g': 4, 'j': 5}


B.

0 1 (2, 3) {'g': 4, 'j': 5}


C.

(0 ,1 ,2, 3) {'g': 4, 'j': 5}


D.

0 1 2 3 4 5

[单选题]执行以下语句 y=5 X=y**2 y*=2 x==y 输出的结果为()
A.A.25
B.B.10
C.C.True
D.D.False
[单选题]

执行以下哪句语句输出的结果为10,11,12三个数字(A)


A.

for i in range(3):
    print(i+10)


B.

for i in range(2):
    print(i+10)


C.

for i in range(1,3):
    print(i+10)


D.

for i in range(1,4):
    print(i+10)

[单选题]下列程序执行后的输出结果是( )。
#include
#include
Using namespace std;
Int main()
{ char arr[2][4];
strcpy(arr[0],"you");
strcpy(arr[1],"me");
arr[0][3]=′&′;
cout << arr[0]; //因第一行无\0,故第二行接着输出
return 0;
}
A. you&me
B. you
C. me
D. err
[单选题]执行下列程序后,输出结果是( )。
#include
Using namespace std;
Void f(int x)
{
if(x)
{
cout.put(‘0’+x%10);
f(x/10);
}
}
Int main()
{
f(11001);
return 0;
}
A. 11001
B. 10001
C. 11100
D. 10011
[单选题]以下程序的输出结果是( )。
#include
Using namespace std;
Int main() {
int a=0, i;
for (i=0;i<5;i++)
{
switch (i)
{
case 0:
case 3:a+=2;break;
case 1:
case 2:a+=3;
default:a+=5;
}
}
cout << a < return 0;
}
A. 10
B. 20
C. 25
D. 30
[单选题]执行如下语句,输出结果为( )
Char str[]="Beijing";
Cout << strlen(strcpy(str, "China"));
A. 5
B. 7
C. 8
D. 12

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码