8. 選擇題 (答案)
最後一次判分時間:2022/9/26 上午11:38:23 花費秒數: 0 判分次數: 8
# 得分 配分 你的答案 正確答案
0 2.5 2.5 C C
1 2.5 2.5 C C
2 2.5 2.5 C C
3 2.5 2.5 A A
4 2.5 2.5 A A
5 2.5 2.5 A A
6 2.5 2.5 C C
5. 邏輯比較
分數: 10.0程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 1 2022/10/18 下午7:36:32
程式語言 程式碼
Python '''
9_5.關係與邏輯運算子-邏輯比較(10.0)
'''
print(3>5 and 5<10)
print(3<5 and 5<10)
print(3>5 and 5>10)
print(3>5 or 5<10)
print(3<5 or 5<10)
print(3>5 or 5>10)
print(not(3>5 and 5<10))
print(not(3<5 and 5<10))
print(not(3>5 and 5>10))
10. 選擇題 (答案)
最後一次判分時間:2022/10/18 下午7:53:33 花費秒數: 0 判分次數: 7
# 得分 配分 你的答案 正確答案
0 2.5 2.5 B B
1 2.5 2.5 C C
2 2.5 2.5 B B
3 2.5 2.5 A A
4 2.5 2.5 A A
5 2.5 2.5 B B
程式語言 程式碼
C++ #include<iostream>
using namespace std;
int main(){
int a,i=1;
while(i<=2){
cin>>a;
if(a>100){
cout<<"error data"<<endl;
}
else if(a>=90){
cout<<"Your score is "<<a<<" and degree is A!"<<endl;
}
else if(a>=80){
cout<<"Your score is "<<a<<" and degree is B!"<<endl;
}
else if(a>=70){
cout<<"Your score is "<<a<<" and degree is C!"<<endl;
}
else if(a>=60){
cout<<"Your score is "<<a<<" and degree is D!"<<endl;
}
else if(a>=0){
cout<<"Your score is "<<a<<" and degree is F!"<<endl;
}
else{
cout<<"error data"<<endl;
}
i++;
}
return 0;
}
Python '''
13_1.巢狀選擇-分數等第(40.0)
'''
i=1
while(i<=2):
a=int(input())
if a>100:
print("error data")
else:
if a>=90:
print("Your score is {0} and degree is A!".format(a))
else:
if a>=80:
print("Your score is {0} and degerr is B!".format(a))
else:
if a>=70:
125.
print("Your score is{0} and degree is C!".format(a))
else:
if a>=60:
print("Your score is {0} and degree is D!".format(a))
else:
if a>=0:
print("Your score is {0} and degree is F!".format(a))
else:
print("error data")
i=i+1
4. 選擇題 (答案)
最後一次判分時間:2022/11/21 下午9:29:23 花費秒數: 86 判分次數: 5
# 得分 配分 你的答案 正確答案
0 2.5 2.5 C C
1 2.5 2.5 D D
2 2.5 2.5 B B
3 2.5 2.5 A A
4 2.5 2.5 B B
5 - - - B
7. 選擇題 (答案)
最後一次判分時間:2022/11/21 下午9:25:58 花費秒數: 60 判分次數: 2
# 得分 配分 你的答案 正確答案
0 2.5 2.5 C C
1 2.5 2.5 D D
2 2.5 2.5 D D
3 2.5 2.5 B B
4 2.5 2.5 A A
5 2.5 2.5 C C
3. 串列的存取
分數: 10.0程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 1 2022/12/16 下午9:27:18
程式語言 程式碼
Python '''
27_3.串列的建立-串列的存取(10.0)
'''
a=[]
for i in range(1,6+1,1):
a.append(input())
print(a)
for i in range(0,6,1):
print(a[i])
197.
4. 修改元素
分數: 10.0程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
3.5294117647058827 4 2022/12/16 下午9:36:35
程式語言 程式碼
Python '''
27_4.串列的建立-修改元素(10.0)
'''
a=[]
for i in range(1,11,1):
a.append(input())
for i in range(1,10,2):
a[i]=a[i]+'*'
print(a[i])
print("n")
for i in range(0,10,1):
print(a[i])
198.
8. 隔號輸出
分數: 10.0程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 1 2022/12/16 下午9:41:55
程式語言 程式碼
Python '''
27_8.串列的建立-隔號輸出(10.0)
'''
a=[]
for i in range(1,11,1):
a.append(input())
b=[]
for i in range(1,10,2):
b.append(a[i])
print(b)