Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Select 3 true true statements about Python primitive types. 32-bit integer type (a.k.a. int32) can represent integer value from -2^31 (-2,147,483,648) to 2^31-1

image

1. Select 3 true true statements about Python primitive types. 32-bit integer type (a.k.a. int32) can represent integer value from -2^31 (-2,147,483,648) to 2^31-1 (2,147,483,647) The int type in Python3 cannot represent a number greater than 2^31-1. A binary floating-point method is used to represent fractions in binary numbers. The decimal number 0.1 cannot be expressed without error in binary floating-point format. The float type in Python3 can represent decimal 0.1 without error. 2. Select 3 true statements about Python class. If a class inherits from multiple classes, the order of inheritance does not matter. (In Python 3 or higher) If no class is inherited, it implicitly inherits the object class. A class attribute exists as a unique object regardless of how many instances of the class are. A class attribute can be used without an instance of that class. Properties whose names start with _ (e.g. _name) are private properties and cannot be accessed outside of the corresponding class. 3. Choose 2 true that correctly describe the time complexity of data structures with N data. The average time complexity of the data lookup in a hash table is O(N). The average time complexity of the data lookup in a complete binary tree is O(logN). The average time complexity of deleting an item from an array is 0(1). The average time complexity of accessing the kth element in a linked list is 0(1). The average time complexity of inserting data into a heap is O(logN)

Step by Step Solution

3.42 Rating (155 Votes )

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microeconomics An Intuitive Approach with Calculus

Authors: Thomas Nechyba

1st edition

538453257, 978-0538453257

More Books

Students also viewed these Programming questions

Question

Define the purpose of neuropsychological testing.

Answered: 1 week ago

Question

Explain the importance of Human Resource Management

Answered: 1 week ago