Answer:
Printer is a output device.
Explanation
It takes the input from the user and gives the output in the form of a texted document. It is called hard copy of our document. Printer is Output and Scanner is input Devices.
Answer:
a. cout<<hidden(15,10)<<endl;
output = 5
b. cout << compute(3, 9) << endl;
output=3
c. cout << hidden(30, 20) << " " << compute(10, hidden(30, 20)) << endl;
output = 10
d. x = 2; y = 8; cout << compute(y, x) << endl;
output= 8
Explanation:
solution a:
num1= 15;
num2= 10;
according to condition 1, num1 is not greater than 20. In condition 2, num2 is also not greater than 20.
so,
the solution is
return num1 - num2 = 15 - 10 = 5
So the output for the above function is 5.
solution b:
as in function there are two integer type variables named as one and two. values of variables in given part are:
one = 3
two = 9
secret = one = 3
for (int i= one + 1 = 3+1 = 4; i<=9%2=1; i++ )
9%2 mean find the remainder for 9 dividing by 2 that is 1.
// there 4 is not less than equal to 1 so loop condition will be false and loop will terminate. statement in loop will not be executed.
So the answer will be return from function compute is
return secret ;
secret = 3;
so answer return from the function is 3.
solution c:
As variables in first function are num1 and num2. the values given in part c are:
num1 = 30;
num2= 20;
According to first condition num1=30>20, So,
num1= num2/10
so the solution is
num1 = 20/10 = 2
now
num1=2
now the value return from function Hidden is,
return num1*num2 = 2* 20 = 40
Now use the value return from function hidden in function compute as
compute(10, hidden(30, 20))
as the value return from hidden(30, 20) = 40
so, compute function becomes
compute(10, 40)
Now variable in compute function are named as one and two, so the values are
one= 10;
two = 40;
as
secret = one
so
secret = 10;
for (int i= one + 1 = 10+1 = 11; i<=40%2=0; i++ )
40%2 mean find the remainder for 40 dividing by 2 that is 0.
// there 11 is not less than equal to 0 so loop condition will be false and loop will terminate. statement in loop will not be executed.
So the answer will be return from function compute is
return secret ;
secret = 10;
so answer return from the function is 10.
solution d:
Now variable in compute function are named as one and two, so the values are
one = y = 8
two = x = 2
There
Secret = one = 8;
So
for (int i= one + 1 = 8+1 = 9; i<=2%2=0; i++ )
2%2 mean find the remainder for 2 dividing by 2 that is 0.
// there 9 is not less than equal to 0 so loop condition will be false and loop will terminate. statement in loop will not be executed.
So the answer will be return from function compute is
return secret ;
secret = 8;
so answer return from the function is 8.
Answer:
Role of websites in internet
Importance of internet in our daily life
As a technician, since you have been tasked with increasing the ram memory on a laptop by adding a so-dimm module to an empty memory slot. The process that seats the module in the slot is option D:
The processor, RAM, and computer memory all have an impact on how quickly your laptop operates. The pace increases as each number increases. For example, 4GB of RAM operates more quickly than 2GB. A 2 GHz machine will operate more quickly than a 1 GHz one since processor speed is measured in gigahertz.
Therefore, One application may run on this much memory. If your computer only has 4 GB of RAM, upgrading it would significantly enhance performance. 4-6 GB: The typical user's chores, including as web browsing, working with Word documents, and emailing, will be easily handled by this normal RAM amount.
Learn more about ram memory from
#SPJ1
See options below
Which of the following processes will seat the module in the slot?
Slide the memory into the external Expresscard slot horizontally until the card is even with the laptop case and you hear a click.
Add the mounting pegs to the side of the memory module. Attach the ribbon cable and press into place until the mounting clips catch the mounting pegs.
Align the notch on the long side of the memory module with the rise in the memory slot. Insert the module pins into the slot at a 90-degree angle to the motherboard and press down until the side hold-down clips snap into place.
Align the notch on the long side of the memory module with the rise in the memory slot. Insert the module pins into the slot at a 45-degree angle. Rotate the module by pressing down until the side hold-down clips snap into place.
Answer:
RAID level 1 fits the criteria to yield the least amount of interference between the rebuild and ongoing disk accesses.
Explanation:
RAID system can be defined as the process in which hard drives which are connected to the system are been set up in order to help speed up the performance of a computer system disk storage which is why RAID is mostly used on servers and high performance computers system . This RAID as well helps to combines multiple physical disk drive components into various logical units for the aim of increasing system performance.
Therefore RAID level 1 fits the criteria to yield the least amount of interference between the rebuild and ongoing disk accesses. This is because the level 1 of RAID copies just the data from the failed Systems disk mirror during the rebuilding period where as the other levels of RAID copies the whole lot of content of the other disks due to the fact that RAID 1 often requires at least minimum of two physical drives because data is written simultaneously to two places in which the drives are essentially mirror images of one another in which if one fails, the other one can take over and help to provide access to the data that is been stored on that drive.
np.numpy
numpy
Answer:
The correct option is np.array
Explanation:
Numpy is a library to perform numerical calculation in python. It allows us to create and modify vectors, and make operations on them easily. Numpy arrays are an excellent alternative to python lists. Some of the key advantages of numpy arrays are that they are fast, easy to work with, and offer users the opportunity to perform calculations through full arrays.
To start using numpy, the library must be imported:
import numpy as np
The most common way to create a vector or matrix already initialized is with the np.array function, which takes a list (or list of lists) as a parameter and returns a numpy matrix. The numpy arrays are static and homogeneous typing. They are more efficient in the use of memory.
Example:
list = [25,12,15,66,12.5]
v = np.array (list)
print (v)
Answer:
a. 7 bits
b. 8 bits
c. 9 bits
d. 24 bits
Explanation:
Required
Number of bits per word
The formula to get the number of bits per word is:
Where
n = bits
N = numbers
Solving (a) 0 to 100
There are 101 digits between 0 and 100 (inclusive)
So:
Substitute 101 for N in
101 can not be expressed as an exponent of 2.
So, we substitute 101 for the closest number greater than 101 that can be expressed as an exponent of 2.
So:
Express 128 as an exponent of 2
Apply law of indices
Hence, 7 bits are required
Solving (b): 0 through 255
There are 256 digits between 0 and 255 (inclusive)
So:
Substitute 256 for N in
Express 256 as an exponent of 2
Apply law of indices
Hence, 8 bits are required
Solving (c): 0 through 256
There are 257 digits between 0 and 256 (inclusive)
So:
Substitute 257 for N in
257 can not be expressed as an exponent of 2.
So, we substitute 257 for the closest number greater than 101 that can be expressed as an exponent of 2.
So:
Express 512 as an exponent of 2
Apply law of indices
Hence, 9 bits are required
Solving (d): 0 through 10000000
There are 10000001 digits between 0 and 10000000 (inclusive)
So:
Substitute 10000000 for N in
10000000 can not be expressed as an exponent of 2.
So, we substitute 10000000 for the closest number greater than 101 that can be expressed as an exponent of 2.
So:
Express 16777216 as an exponent of 2
Apply law of indices
Hence, 24 bits are required