1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
lubasha [3.4K]
3 years ago
6

First time using this site so be mindful if I make any mistakes

Computers and Technology
1 answer:
Leto [7]3 years ago
5 0

Answer:

Okay... Well

I will. help you out dear

You might be interested in
Which function returns the rank of a value within a dataset, assigning an average rank for tied values
ANTONII [103]
Z-y bcuz it is a function and u need to revail rate
4 0
3 years ago
Answer the following Python Interview questions • How is Python an interpreted language? • What is the difference between Python
8_murik_8 [283]

Answer:

1. Python is called as interpreted language. However as a programming language it is not fully compiled nor interpreted language. Python program runs from direct source code which makes it byte code interpreted.

An Interpreter is the one which takes the code and performs the actions specified in the code. It turns the code into intermediate language which is again translated to machine language understood by the processor. Interpreted or compiled are the property of the implementation and not of the language.

2. Array : It is a collection of same data type elements stored at contagious memory location. It is handled in python with module array. All the elements of array must be of same data type. In order to manipulate same data types arrays are used.

Ex: array1 = a.array ('i', [10, 20, 30]) this is a array of integer type.

Lists : Python lists are ordered data structure and are like non homogeneous dynamic sized arrays. It may contain integers, strings, boolean, or objects.

Ex: List1 = [70, 89, 98] , List2 = ["Rose", "Lilly", "Jasmine"]

List3 = [1, 10, 100, 'Test', 'Test1']

Tuple : It is a collection of objects separated by commas and they are immutable. It is static which makes them faster.

Ex: tupule1 = ('element1', 'element2')

List and Tuple in Python are the class of data structure. The list is dynamic, whereas tuple has static characteristics.

Lists are mutable but tuples are not.

tuples are mainly used to access the elements where as lists are used in operations like insertion and deletion.

Iterations are time consuming in list where as it is faster in tuples.

tuples don't have inbuilt methods but list has many builtin methods.

tuples takes slightly less memory that lists in Python

Records: Records data structure will have fixed number of fields and each field may have a name and different type. Immutable records are implemented using named tuple.

3. Syntax of slice in python is list[<start>:<stop>:<step>] and it can be used on tuples and lists.

so X [::-1] means that it will start from the end towards the first element by taking each of the elements.

for ex: X = '9876'

X [::-1] will result in '6789'.

Means it will reverse all the elements in the array.

4. Items of list can be shuffled with the random.shuffle() function of a random module.

Syntax is : random.shuffle(x, random)

x- It is a sequence to shuffle and can be list or tuple.

random- it is a optional argument which returns random float number between 0.1 to 1.0.

5. range() – Range function returns a range object which is a type of iterable object.

xrange() – xrange function returns the generator object that can be used to display numbers only by looping. Only particular range is displayed on demand and hence called “lazy evaluation“.

• Return type of range () is range object whereas that of xrange() is xrange object.

• Variable to store the range using range () takes more memory but xrange takes comparative less memory.

• Range returns the list but xrange returns the xrange object. Hence operations on list can be applied for range but not on xrange.

• Xrange is faster to implement than range as xrange evaluates only generator objects.

• Xrange is depreciated in Python 3 and above.

For ex :

x = range (10, 100)

y= xrange (10, 100)

#To know the return type we can print it

print ( return type of range () is : “)

print (type (x))

print ( return type of xrange () is : “)

print (type (y))

Output will be list and xrange respectively.

6. NumPy's arrays are more compact than Python lists

reading and writing items is also faster with NumPy.

Memory taken by python lists are way higher than NumPy arrays.

Python lists don’t support vectorized operation.

Since lists can contain objects of different types its type information must be stored and executed every time operation is performed on it.

Memory taken by python lists are a lot higher than that of NumPy Arrays.

Reading and writing of elements in NumPy arrays are faster than lists.

NumPy arrays are compact and accumulate lesser storage.

Numpy is convenient and efficient.

For ex :

Metrics operations are easy in NumPy.

Checkerboard pattern can be done using NumPy.

7. Attached as Image

8. split() method returns a list of strings after breaking the given string by the specified separator. It is splitting of string into list with each word is a list item.

Syntax : str.split ( separator, maxsplit)

Separator : its is delimiter used and by default whitespace is used as separator.

Maxsplit : Maximum number of times to split the string. By default it has no limit.

For ex:

text = 'apples and oranges are different '

print(text.split())

output will be : ['apples', 'and', 'oranges', 'are', 'different' ]

Explanation:

7 0
3 years ago
Mention five internet services​
sergiy2304 [10]
<h3>1 ) cable internet </h3><h3>2) DSL internet </h3><h3>3) sattalite internet</h3><h3>4) mobile internet</h3><h3>5) BSNL </h3>

<h2>please mark me as brainlist</h2>

7 0
3 years ago
Read 2 more answers
In order for a 2 Bit Computer, or 4 Bit Computer, or an 8 Bit Computer, or 16 Bit Computer, or 32 Bit Computer to process the ex
melisa1 [442]

Answer:

Check the explanation

Explanation:

• The 2-bit architecture is a microprocessor or computer architecture that has a datapath width or a highest operand width of 2 bits.

• These architectures typically have a matching register file with registers width of 2 bits. Very few 2-bit architecture CPUs were commercially marketed, mo. were bit-slice microprocessors.

4 bit computer:  

• In computer architecture, 4-bit integers, man°, addresses, or other data units are those that are 4 bits wide.

• 4-bit CPU and ALU architectures are those which are solely based on registers, address buses, or data buses of that size.

• A group of four bits is also called a nibble and has 2° = 16 possible values.

8 bit computer:

• In computer architecture, 8-bit integers, memo, addresses, or other data units are those that are 8 bits (1 octet) wide.

• 8-bit CPU and ALU architectures are those which are solely based on registers, address bums, or data be of that size.

• 8-bit is also a generation of microcomputers in which 8-bit microprocessors were the norm).

16 bit computer:  

• In computer architecture, 16-bit integers, memory addresses, or other data units are those that are 16 bits (2 octets) wide.

• 16-bit CPU and ALU architectures are those which are solely based on registers, address buses, or data bums of that size.

• 16-bit microcomputers are those type of computers in which 16-bit microprocessors were the norm.

32 bit computer:  

• In computer architecture, 32-bit integers, maim, addresses, or other data units are the that are 32 bits (4 octets) wide.

• 32-bit CPU and ALLI architectures are those which are solely based on registers, address buses, or data bums of that size.

• 132-bit microcomputers are those type of computers in which 32-bit microprocessors are the norm).

5 0
3 years ago
What information on social networking sites could be used to discriminate against a potential employee
NISA [10]

the answer on plato is b

political affiliations

3 0
3 years ago
Other questions:
  • The range A2:B4 has how many cells?<br><br> Answers:<br> 2,4,6,8
    10·2 answers
  • Can some one help me on 4&amp;5
    6·1 answer
  • My internet works but my router won't let any devices connect to it unless you use a cat. 5 cable :\
    12·1 answer
  • When a person devises the idea for the venture, develops a business plan, uses savings or loans to acquire other resources and a
    9·1 answer
  • What are the characteristics of a good text-based adventure game? In other words, what are some features that should be in the g
    7·1 answer
  • Use the drop-down menus to match each description with the part of a report where it is located.
    10·1 answer
  • Mathematics and modern technology​
    14·1 answer
  • What is the benifet of the manager feature
    13·1 answer
  • Project planning output is :
    9·1 answer
  • A company is looking for an employee to help organize customer information for the sales team. Which computer field includes thi
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!