更多"[单选题]下列条件语句中,输出结果与其他语句不同的是"的相关试题:
[单选题]
下列语句中输出结果与执行语句10 and 11+2**3 相同的是( )
A.
(lambda x,y : x if x>y else y)(19,20)
B.
(lambda x,y : x**y+11)(2,3)
C.
10 or 11 or 8
D.
11 or 10+2**3
[单选题]
执行语句以下语句,要使输出的结果是:主营业务成本科目发生额是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
[单选题]执行如下语句,输出结果为( )
Char str[]="Beijing";
Cout << strlen(strcpy(str, "China"));
A. 5
B. 7
C. 8
D. 12
[单选题]执行下列语句后,程序的输出结果是( )。
#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
[单选题]第56题 (1.0分)
语句Print 5/5*5的输出结果是().
A.5
B.25
C.0
D.1
[单选题]已知x=5,那么执行语句x//2之后,输出的结果为()
A.A.1
B.B.2
C.C.5
D.D.2.5
[单选题]a='123',b='45',c=a+b,执行语句c[1:4]输出结果是
A.A.'123'
B.B.'234'
C.C.'2345'
D.D.'1234'
[单选题]执行下列语句后,输出的结果是( )。
#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
[单选题]设正x、y均为整型变量,且x=10 y=3,则以下语句的输出结果是()。
printf("%d,%d\n",x--,--y);
A.10,3
B.9,3
C.9,2
D.10,2
[单选题]字符串a='ABcd',执行语句a.lower(),输出的结果是()
A.A.'ABCD'
B.B.'Abcd'
C.C.'abcd'
D.D.'abcD'
[判断题]a='1',b='2',执行语句a+b,输出的结果是3。
A.正确
B.错误
[单选题]
输出结果为[2, 3, 4, 5, 6],以下语句正确的是( )
A.
list1=[]
for i in range(5):
i+=1
list1.append(i)
print(list1)
B.
i=1
list1=[]
while i<=5:
i+=1
list1.append(i)
print(list1)
C.
list1=[]
for i in range(6):
i+=1
list1.append(i)
print(list1)
D.
i=1
list1=[]
while i<=6:
i+=1
list1.append(i)
print(list1)
[单选题]73题 (1.0分)
能对顺序文件进行输出的语句是().
A.Put
B.Get
C.Write
D.Read
[填空题]执行下列语句后,输出的结果是___()__。
#include
Using namespace std;
Int main(
{ int a=3,b=5;
float c=b/a;
cout << c << end1;
return 0;
}
[单选题]语句System.out.println(1+2+"java"+3+4)输出的结果是:()
A.3java34
B.12java34
C.3java7
D.12java7
[单选题]执行以下语句 y=5 X=y**2 y*=2 x==y 输出的结果为()
A.A.25
B.B.10
C.C.True
D.D.False
[多选题]
执行以下语句,输出的结果要是:主营业务成本科目发生额是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,'主营业务成本'))