Looking for データサイエンス・AI応用基礎(後・土2) (9910A01) test answers and solutions? Browse our comprehensive collection of verified answers for データサイエンス・AI応用基礎(後・土2) (9910A01) at letus.ed.tus.ac.jp.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
次のコードを実行したとき,どのような出力を得るか?
(import numpy as npを実行しているものとする)
a = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9])
b = a[(a < 5) | (a > 5) & (a % 2 == 0)]
c = b[b % 2 != 0]
print(c)
次のコードを実行したとき,どのような出力を得るか?
data = pd.Series([0.25, 0.5, 0.75, 1.0, 1.25],
index = ["b", "c", "e", "a", 'd'])
data['e']
以下のコードを実行したときの出力は?
c=np.arange(3,5,0.5)
print(c)
(import numpy as npを実行しているものとする)
次のコードを実行したとき,どのような出力を得るか?
data = pd.Series([0.25, 0.5, 0.75, 1.0, 1.25])
data.loc[1 : 2]
次のコードを実行したとき,どのような出力を得るか?
class Point_test:
def __init__(self, x, y):
self.x = x
self.y = y
def midpoint(self, p):
return Point_test((self.x + p.x) / 2, (self.y + p.y) / 2)
p1 = Point_test(2, 4)
p2 = Point_test(0, 0)
print(p1.midpoint(p2).x, p2.midpoint(p1).y)
次のコードを実行したとき,どのような出力を得るか?
len(sorted([3, 5, 1], reverse = True))
次のコードを実行するために,必要なコードはどれか?
math.log(2)次のコードを実行したとき,どのような出力を得るか?
list(map(lambda a, b: 2 * a + b, [1, 2, 3], [3, 4, 5]))a*=3を実行すると、aに何が代入されるか?
x=14のとき、以下のコードの出力はどうなるか?
if x<12:
print(“Morning”)
else:
print(“Afternoon”)