logo

Crowdly

Browser

Add to Chrome

データサイエンス・AI応用基礎(後・土2) (9910A01)

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) 

0%
0%
0%
0%
View this question

次のコードを実行したとき,どのような出力を得るか?

data = pd.Series([0.25, 0.5, 0.75, 1.0, 1.25],

                 index = ["b", "c", "e", "a", 'd'])

data['e']

0%
0%
0%
0%
View this question

以下のコードを実行したときの出力は?

c=np.arange(3,5,0.5)

print(c)

(import numpy as npを実行しているものとする)

0%
100%
0%
0%
View this question

次のコードを実行したとき,どのような出力を得るか?

data = pd.Series([0.25, 0.5, 0.75, 1.0, 1.25])

data.loc[1 : 2]

0%
0%
0%
0%
View this question

次のコードを実行したとき,どのような出力を得るか?

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)

0%
0%
0%
0%
View this question

次のコードを実行したとき,どのような出力を得るか?

len(sorted([3, 5, 1], reverse = True))

0%
0%
0%
0%
View this question

次のコードを実行するために,必要なコードはどれか?

math.log(2)

100%
0%
0%
0%
View this question

次のコードを実行したとき,どのような出力を得るか?

list(map(lambda a, b: 2 * a + b, [1, 2, 3], [3, 4, 5]))

0%
0%
0%
0%
View this question

a*=3を実行すると、aに何が代入されるか?

0%
0%
100%
0%
View this question

x=14のとき、以下のコードの出力はどうなるか?

if x<12:

        print(“Morning”)

   else:

            print(“Afternoon”)

0%
0%
0%
0%
View this question

Want instant access to all verified answers on letus.ed.tus.ac.jp?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome