Question

D Question 12 1.5 pts Check the true statements about NumPy arrays: O A single instantiated NumPy array can store multiple tyDQuestion 13 1.5 pts Check the true statements about copy modules methods copy) and deepcopy) Assume that the term referencD Question 15 1.5 pts Check the true statement(s) about enum types. In order to access an enum literal, one must, at some poiDQuestion 16 1.5 pts Select the description(s) that result in a ragged 2-D (matrix) array instantiation. (This means that dir

D Question 12 1.5 pts Check the true statements about NumPy arrays: O A single instantiated NumPy array can store multiple types (e.g., ints and strings) in its individual element positions. A NumPy array object can be instantiated using multiple types (e.g., ints and strings) in the list passed to its constructor O Memory freeing will require a double-nested loop. The number of bits used to store a particular NumPy array object is fixed. O The numpy.append(my.array, new_list) operation mutates my array so it can hold more elements. The number of array elements in a particular NumPy array object is fixed.
DQuestion 13 1.5 pts Check the true statements about copy module's methods copy) and deepcopy) Assume that the term "references" mentioned in the statements below refers to direct members (attributes) or types, not nested members E.g., in an object a, any of a's references are its immediate attributes, not deeper attributes of its possible member objects or member lists, tuples, etc. b copy.copy(a) performs a shallow copy, which means it is like a simple assignment b a. No new object is created. b-copy deepcopy a produces a new o ect that has different re erences than thosen the originala, and a copied "deeply," so that changes to all data- even mutable and deeply nested data-in a will not affect b. members that are tableare eur ve b copy.deepcopy(a) produces a new object with a separate set of attribute references (i.e., references to the attributes defined directly in a's top-level class). b's member references will, initially, point to the same objects as a's references. Changes to mutable data referenced by a's attributes will affect b, however, changes to immutable primitive attributes of a will not affect b. b copy.copy(a) produces a new object with a separate set of attribute references (i.e., references to the attributes defined directly in a's top-level class) b's member references will, initially, point to the same objects as a's references. Changes to mutable data referenced by a's attributes will affect b, however, changes to immutable primitive attributes of a will not affect b.
D Question 15 1.5 pts Check the true statement(s) about enum types. In order to access an enum literal, one must, at some point, dereference the enum type name, as in MyType.SOME LITERAL When you print an enum literal (one of your enum "members"), the default behavior is that the display will show both the enum's value and the enum's name All enums have a natural ordering, so we can use comparitors like, or, for example, to compare enums, as in: if (destination > Planet. JUPITER) To create your own enum sub-type, you have to do two things: 1. import Enum from the enum module. 2. Use subclassing syntax to "inherite" from the Enum type (or some subclass of that type) In order to loop over an enum, they must all have int values.
DQuestion 16 1.5 pts Select the description(s) that result in a ragged 2-D (matrix) array instantiation. (This means that directly after the described instantiation, the matrix will be a ragged array with some row lengths being different from other row lengths in the matrix, not a matrix in which all the row lengths in are the same.) A NumPy 1-D array whose individual elements point to separate NumPy 1-D arrays (each of which might be a different length). APython list-of-lists in which not all of the inner lists are the same length. A NumPy 2-D array whose shape is described by a tuple, like (4, 8) or (3,4), passed to the constructor. A Python list-of-lists in which all of the inner lists are the same length.
0 0
Add a comment Improve this question Transcribed image text
Answer #1

12.B

The NumPy array object that can be used to instantiate using the multiple types that are strings and integers in the list that are passed to the constructor.

13.D

B= copy.copy ( a ) that produces a new object that will separate the set of attribute reference that is a reference to the attributes that are directly in a top-level class.B is the member reference that will initially point o the same object's as an's reference.

it changes mutable data referenced by an's an attribute that will affect b, however, changes to the immutable primitive attribute of a will not affect b.

15.C

All enum has a natural Ordering, So we can use comparators like < =, or >, for example, two compare enums as in

if ( destination > planet . JUPITER )

16.A

A NumPy 1-D array whose individual elements points to separate NumPy 1 - D Array (each of which might be a different length )

Add a comment
Know the answer?
Add Answer to:
D Question 12 1.5 pts Check the true statements about NumPy arrays: O A single instantiated NumPy array can store multi...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT