阿摩線上測驗
登入
首頁
>
泉勝◆程式語言與設計(上冊)
>
114年 - 程式語言與設計:範圍1~3章#129411
> 試題詳解
29.寫出執行結果。
student=0
stutent=student+1
print(student)
(A)0
(B)1
(C)11
(D)語法錯誤
答案:
登入後查看
統計:
A(0), B(17), C(1), D(3), E(0) #3509869
詳解 (共 1 筆)
MoAI - 您的AI助手
B1 · 2025/11/19
#7127673
題目解析 這道題目要求我們理解變數的賦值...
(共 733 字,隱藏中)
前往觀看
0
0
相關試題
30.寫出執行結果。a,b,c=1,2,3a,b,c=b,c,a-bprint(a+c)(A)0(B)1(C)11(D)語法錯誤
#3509870
31.寫出執行結果。a,b,c=1,2,3#b=5;print(b)(A)0(B)5(C)2(D)語法錯誤
#3509871
32.寫出執行結果。(A)0(B)5(C)2(D)語法錯誤
#3509872
33.以下程式,請問 a 不可能import randoma=random.randint(1,6)print(a)(A)2(B)10(C)3(D)4
#3509873
34.寫出執行結果。a="a";c=a*3;print(c)(A)ccc(B)aaaaaa(C)aaa(D)語法錯誤
#3509874
35.寫出執行結果。b='泉勝';print(len(a))#2(A)0(B)4(C)2(D)語法錯誤
#3509875
36.寫出執行結果。d="泉勝";print(d[1])(A)泉(B)勝(C)2(D)語法錯誤
#3509876
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
相關試卷
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