阿摩線上測驗
登入
首頁
>
泉勝◆程式語言與設計(上冊)
>
114年 - 程式語言與設計:範圍1~3章#129411
> 試題詳解
36.寫出執行結果。
d="泉勝";print(d[1])
(A)泉
(B)勝
(C)2
(D)語法錯誤
答案:
登入後查看
統計:
A(1), B(16), C(2), D(2), E(0) #3509876
詳解 (共 1 筆)
MoAI - 您的AI助手
B1 · 2025/11/19
#7127652
1. 題目解析 這道題目要求我們了解如何...
(共 680 字,隱藏中)
前往觀看
0
0
相關試題
37.寫出執行結果。a="112/3/2"y,m,d=a.split('/')print(y+m+d)(A)11232(B)117(C)9(D)10
#3509877
38.寫出執行結果。a="112/3/2"y,m,d=map(int,a.split('/'))print(y+m+d)(A)11232(B)117(C)9(D)10
#3509878
39.寫出執行結果。b1="18:30"b2="20:10"h,m=map(int,b1.split(':'))c1=h*60+mh,m=map(int,b2.split(':'))c2=h*60+mprint(c2-c1)(A)100(B)10(C)1(D)2
#3509879
40.寫出執行結果。a=input("input a:")#輸入 2b=input("input b:")#輸入 3print(a+b)(A)23(B)5(C)6(D)2
#3509880
41.寫出執行結果。x1=3;y1=0x2=0;y2=4d=((x1-x2)**2+(y1-y2)**2)**(1/2)print(d)#5.0(A)3.0(B)5.0(C)4.0(D)2
#3509881
42.寫出執行結果。a,b,c=3,4,5d=(a+b+c)/2s=(d*(d-a)*(d-b)*(d-c))**(1/2)print(s)(A)3.0(B)5.0(C)4.0(D)6.0
#3509882
43.寫出執行結果。x1=0;y1=0;x2=3;y2=0;x3=0;y3=4r=abs((x1*y2+x2*y3+x3*y1)-(x2*y1+x3*y2+x1*y3))/2print(r)(A)3.0(B)5.0(C)4.0(D)6.0
#3509883
44.寫出執行結果。a=3;b=4;c=5m=1;n=2d=abs(a*m+b*n+c)/((a*a+b*b)**(1/2))print(d)(A)3.2(B)3.0(C)4.0(D)5.0
#3509884
45.寫出執行結果。a=2;b=-7;c=3d=(b*b-4*a*c)**(1/2)x1=(-b+d)/(2*a)x2=(-b-d)/(2*a)print(x1)(A)3.2(B)3.0(C)4.0(D)5.0
#3509885
46.寫出執行結果。a1,b1,c1=3,1,5a2,b2,c2=1,-2,-3d=a1*b2-a2*b1x=(c1*b2-c2*b1)/dprint(x)(A)3.2(B)3.0(C)2.0(D)1.0
#3509886
相關試卷
114年 - 程式語言與設計測驗卷:範圍:第五章(2)#135693
2025 年 · #135693
114年 - 程式語言與設計測驗卷:範圍:第四章#135663
2025 年 · #135663
114年 - 程式語言與設計測驗卷:範圍 5-1 for#135241
2025 年 · #135241
114年 - 程式語言與設計測驗卷:範圍:第五章#135198
2025 年 · #135198
114年 - 程式語言與設計測驗卷:5-2 while#135197
2025 年 · #135197
114年 - 程式語言與設計測驗卷:5-3 迴圈應用#135196
2025 年 · #135196
114年 - 程式語言與設計:範圍1~3章#129411
2025 年 · #129411
114年 - 第三章 資料型態與運算_是非題51-111#129381
2025 年 · #129381
114年 - 第三章 資料型態與運算_是非題1-50#129379
2025 年 · #129379
114年 - 第五章 迴圈_選擇題#129378
2025 年 · #129378