Answer:
function
increase_elements_by_x (list, x)
{
var tplist = [];
for (i = 0; i < list.length; i++)
{
tplist[i] = list[i] + x;
print (tplist[i])}
return tplist;
}
var list =[1, 3, 5];
var copyList;
var x = 3;
copyList = increase_elements_by_x (list, x);
print (copyList);
Explanation:
Create a list named list with initial data 1,3,5.
Create a function name increase_elements_by_x which takes list and number as argument.Create empty list tplist. Loop through list, for ever index add x to list[index] and save to an empty list tplist. After loop is exited return tplist.
create a variable copylist and set it to increase_elements_by_x. Value returned by increase_elements_by_x will be saved in copylist. print copy list to see content of copy list.
Answer:
option 1 is correct go with 1s .
Answer:
It is the ALU or the Arithmetic Logic Unit.
Explanation:
It is the ALU. However, keep in mind that registers and buses do a very important task. The number of registers we have, faster is the processing, and the opposite is true as well. And there is a reason behind this if we have different channels for sending and receiving the data from the memory, and several registers for storing the data, and we can formulate the requirement seeing the requirements for full adder and half adders. Remember we need to store several variables in case of the full adder, and which is the carry, and if we have separate registers for each of them, our task becomes easier. Remember its the CU that tells the ALU what operation is required to be performed. Also remember we have the same channel for input and output in the case of Van Neumann architecture, as we have a single bus. and we also have a single shared memory. And Harvard architecture is an advanced version of it.
Answer:
The "Page breaks before" option is the correct approach.
Explanation:
- This attribute specifies whether such a page interruption could perhaps appear just before any component to something which applies.
- This says that you would like this particular section to succeed at the beginning of that same page, irrespective of what it's about, they are being used for paged multimedia, for example, printed publications and otherwise texts or paperwork.
Output device - keyboard
Input device- mouse