Answer:
void print2(int row) {
for (int i = 0; i < row; i++) {
char ch = 'a';
char print = ch;
for (int j = 0; j <= i; j++) {
cout << print++;
}
cout << endl;
}
}
int count_digits(int num) {
int count = 0;
int temp = num;
while (temp != 0) {
temp = temp / 10;
count++;
}
return (num % count);
}
Explanation:
Answer:
The answer is "Option b".
Explanation:
In the given code, a static method "inCommon" is declared, that accepts two array lists in its parameter, and inside the method two for loop is used, in which a conditional statement used, that checks element of array list a is equal to the element of array list b. If the condition is true it will return the value true, and if the condition is not true, it will return a false value. In this, the second loop is not used because j>0 so will never check the element of the first element.
Answer:
If they have a job that only pays with ckecks they won't be able to have their paycheck.
Explanation:
Answer:
Option A is the correct answer choice for the above question.
Explanation:
The computer system needs intercommunication which is done inside the processor to process the task given by the user. There are two types of model is used for intercommunication--
- Message passing and
- Shared memory
The difference between two is that message passing passes the message on two points at a single unit of time whereas shared memory simultaneous shares the multiple messages. That's why shared memory is faster than message passing.
- Hence option A is the correct choice because it also refers to the above concept. While the other is not correct because--
- Option B states that message passing is faster than shared memory which is wrong.
- Option C states that message passing is used for large data but shared memory is used for large data.
- Option D states that shared memory is unavailable in some processor which is wrong.