Answer:
True
Explanation:
In computer, Memory management is a form of resource management, its essential requirement is to provide ways to dynamically allocate portions of memory to programs at their request, and to free it to be used again when not needed. Memory management is critical to any advanced computer system that uses more than a single process.
Several methods that has increased effectiveness of memory management like the Virtual memory systems which separates the memory addresses used by a process from actual physical addresses, thus allowing the separation of processes and increasing the size of the virtual address space beyond the available amount of Random Access Memory (RAM) using paging or swapping to secondary storage have been used.
"The Memory Manager relocates programs to gather together all of the empty blocks and compact them to make one block of memory large enough to accommodate some or all of the jobs waiting to get in from your question.
Answer:
Option(d) i.e "storing a float in an int" is the correct answer for the given question.
Explanation:
- Typecast is used for the changing the one datatype to the another datatype Their are two types of casting
1 implicit
In this typecast we change the smaller datatype into the larger datatype.
For example
int to float
2 Explicit
In this typecast we change the larger datatype into the smaller datatype in an explicit manner.
For example
float to int.
- in the given question we required the casting in the option(d) i.e "storing float in an int" That's why this option is correct and all other options are incorrect.
Answer:
True
Explanation:
Using personal computers for internet access has various advantages because of the physical attributes of these computers. One of the major reason that it is good for internet access is its large screen. The large screen allows things to be easily viewed and read. Also, personal computers have a keyboard that helps for easy data entry, as opposed to pads, and other types of devices that may have just touch-pad and data entry may be difficult.
Answer:
def element_loc():
is_end = 'n'
dimen2 = []
while is_end == 'n':
par1 = input("Enter rows and columns: ").split(",")
part = [int(i) for i in par1]
dimen2. append(part)
is_end = input("Do you want to add more rows? y/n: ")
mini = list()
for i in dimen2:
mini. append(min(i))
result = min(mini)
row_index = mini. index(result)
col_index = dimen2[row_index]. index(result)
print("Row: ", row_index, "Col_index: ", col_index)
element_loc()
Explanation:
The python program solution above prompts users for the two-dimensional array and then the rows of the array are compared with the minimum value stored in another list or array. The row index and the column index are gotten from the mini and dimen2 arrays respectively and are displayed as the position of the minimum value in the two-dimensional array.