1) What is a NumPy array? a) A collection of different data types b) A data structure that stores elements of the same data type in continuous memory c) A Python list with mixed values d) A dictionary-like structure 2) Which attribute returns the shape of a NumPy array? a) size b) dtype c) shape d) ndim 3) For the array arr = np.array([[10,20,30],[40,50,60]]), what is arr.size? a) 2 b) 3 c) 6 d) 12 4) Which attribute gives the total memory consumed by an array in bytes? a) arr.size b) arr.shape c) arr.dtype d) arr.nbytes 5) What is the output of arr[0,1] for arr = [[10,20,30],[40,50,60]]? a) 10 b) 20 c) 30 d) 40 6) Which operation is used to extract a part of an array? a) Indexing b) Aggregation c) Slicing d) Reshaping 7) What is the output of arr[:,1]? a) First row b) First column c) Second column d) Second row 8) Which method changes the shape of an array without changing its data? a) resize() b) reshape() c) split() d) concatenate() 9) What will a.reshape(2,3) do? a) Converts array into 3D b) Converts array into 2 rows and 3 columns c) Deletes elements d) Changes data type 10) Which function joins two arrays into one? a) split() b) join() c) concatenate() d) stack()
0%
NumPy Array Basics & Attributes
공유
공유
공유
만든이
Asvadhana2007
콘텐츠 편집
인쇄
퍼가기
더보기
할당
순위표
더 보기
접기
이 순위표는 현재 비공개입니다.
공유
를 클릭하여 공개할 수 있습니다.
자료 소유자가 이 순위표를 비활성화했습니다.
옵션이 자료 소유자와 다르기 때문에 이 순위표가 비활성화됩니다.
옵션 되돌리기
랜덤휠
(은)는 개방형 템플릿입니다. 순위표에 올라가는 점수를 산출하지 않습니다.
로그인이 필요합니다
비주얼 스타일
글꼴
구독 필요
옵션
템플릿 전환하기
모두 표시
액티비티를 플레이할 때 더 많은 포맷이 나타납니다.
결과 열기
링크 복사
QR 코드
삭제
자동 저장된
게임을 복구할까요?