You never said what language so I used C
#include <stdio.h>
<span>int main () { </span>
<span> int a; </span>
<span> for( a = 3; a > 0; a-- ){ </span>
<span> printf("%i \n", a); }</span>
<span> printf(" Blast OFF !!!\n"); </span>
<span>return 0; </span>
<span>}</span>
Answer:
See explaination
Explanation:
Keep two iterators, i (for nuts array) and j (for bolts array).
while(i < n and j < n) {
if nuts[i] == bolts[j] {
We have a case where sizes match, output/return
}
else if nuts[i] < bolts[j] {
this means that size of nut is smaller than that of bolt and we should go to the next bigger nut, i.e., i+=1
}
else {
this means that size of bolt is smaller than that of nut and we should go to the next bigger bolt, i.e., j+=1
}
}
Since we go to each index in both the array only once, the algorithm take O(n) time.
Answer:
B. Programming code for a video game
Explanation:
An item is considered an intellectual property if it is intangible in the sense that the actual property cannot be touched and it does not have a physical presence.
Options A, C and D do not fall in this category because they are tangible and they have physical presence.
Only option A, programming source code does not fall into this category.
Hence, <em>B. Programming code for a video game
</em> answers the question
Answer: Probability/impact risk matrix
Explanation: Probability/impact risk matrix is type of matrix that defines the probability as well as impact that depicts whether the risk is low ,high or moderate.
Impact matrix is sort of tool which helps in conversion of any plan into a action. Probability matrix help in defining the chances in defining the risk.The positioning of the impact value of risk is plotted on the vertical axis and performance value on the horizontal axis.
Thus probability/impact matrix is the correct tool for the problem mentioned in the question.