Answer:
a.
++score = score + 1
Explanation:
First you have to understand the increment operator;
There are three possible ways to increment the value of variable by 1.
1. <u>post increment</u>
syntax:
name++
it using in expression first then increase the value by 1.
2. <u>Pre increment</u><u> </u>
syntax:
++name
it increase the value by 1 before it using in expression.
3. simple method
name = name +1
In the question,
option 1: ++score = score + 1
it increase the value of score by 2 because their are two increment is used first for (score + 1) and second ++score.
Therefore, the correct option is a.
Answer:
#include <iostream>
#include <cstdlib>
using namespace std;
int m, n;
void transpose(int matrix[]){
int transp[m][n];
for (int i = 0; i < n; i++){
for (int j = 0; j < m; j++){
transp[j][i] = matrix[i][j];
cout<< transp[j][i]<< " ";
}
cout<< "\n";
}
}
int main(){
cout<< "Enter the value for n: ";
cin>> n;
cout>> "Enter the value for m: ";
cin>> m;
int mymatrix[n][m];
for (int i = 0; i < n; i++){
for (int j = 0; j < m; j++){
mymatrix[i][j] = (rand() % 50);
}
}
transpose(mymatrix);
}
Explanation:
The C source code defined a void transpose function that accepts a matrix or a two-dimensional array and prints the transpose on the screen. The program gets user input for the row (n) and column (m) length of the arrays. The C standard library function rand() is used to assign random numbers to the array items.
The answer is the Executive-in charge
The concept of an Executive-in charge came from the military’s
chain of command. A chain of command ranges from a supervisor to the top
executive of the organization. When a crisis arises, it is possible that one or
more of the senior top managers may not be available for consultations because
of the travel-intensive positions.
D. <span>if a > 12 AND b > 8 then output "Yes"
</span>D is the only one that correctly combines those two logic gates. The and statement requires both conditions to be met just as the lengthy piece of code above does.
Answer:
Option (A) i.e., Remote Desktop is the correct answer to the following question.
Explanation:
The following option is correct because the remote desktop is an application or software which connects your computer to another system through the internet from anywhere and we can also connect with each other without the internet but in a range.
<u>Steps to connect in Windows 10</u>:
Step-1: Firstly, start your window and click on the start button.
Step-2: Then, type remote setting in search box.
Step-3: Then, you have to allow the remote access to the system.
Step-4: Then, you have select the Remote Tab which appears in System Properties.
Step-5: Then, you have to click and select the to Allow the Remote Connection.