Answer:
Option c is the correct answer for the above question.
Explanation:
- If the array will store in row-major order, then it will be a store like the first row, then second row and then third row.
- If the user wants to conclude the address of the A[3,5], then the address of the A[3,5] will be 184.
- It is because the 3 states the row number and the 5 states the column number.
- The above question states that every value take 8 bit. and there are 4 rows from 0 to 3 and 6 column (0 to 5) for every row (except the fourth rows because it takes 5 columns from 0 to 4) before the A[3,5].
- So there are 23 value before A[3,5] which are as-- [00,01,02,03,04,05][10,11,12,13,14,15][20,21,22,23,24,25][30,31,32,33,34].
- So when every value takes 8 bit then 23 value takes 184 bits(23*8).
- So the address of A[3,4] is 184.
- Hence option c is the correct and the other is not because of 184 stated from the c option only.
Answer:
The correct answer is B. Free software.
Explanation:
Free software is a term used for software that the holder can use, copy, read, modify and distribute with or without modification at will. Software that falls under this category includes software that is not protected by copyright laws or software that is licensed to be used in this way.
Motives for developing free software can be technical, economic or social. What is significant for developers is the desire to develop as producers of programs by learning from other producers. The desire to help others is also a major motive.
Steady sounds like the best answer but that’s tough
A. yield to the car on your right
Answer:
a=4 , b=1
Explanation:
I'm not a computer science major at all but I think I can help you with this code.
Our program wants us to add 2 to a get new a value while also subtracting 1 from b value to obtain new b value. We we want to for for as long b is not 0 and a/b is nonnegative.
One round we get:
New a=0+2=2
New b=3-1=2
Let's see if we can go another round:
New a=2+2=4
New b=2-1=1
We can't go another round because b would be negative while a is positive which would make a/b negative. So our loop stops at this 2nd round.
a=4 , b=1
Other notes:
2nd choice makes no sense because a is always going to increase because of the addition on a and b was going to decrease because of the subtraction on it.
Third choice makes no sense because a/b doesn't even exist.
Fourth choice a/b is negative not nonnegative.