Answer:
<em>The programming language is not stated; However, I'll answer this question using 2 programming languages (Python and C++)</em>
<em></em>
<em>Comments are used for explanatory purpose </em>
Python program starts here
def get_my_age(): #Declare function
age = 21 #Assign value to age
print(age) #Print age
get_my_age() #Call function
#End of Program
C++ Programming Language starts here
#include<iostream>
using namespace std;
int get_my_age() //Declare Function
{
int age = 21; //Assign value to age
cout<<age; //Print age
}
int main()
{
get_my_age(); //Call Function
return 0;
}
Answer:
The correct answer for the given question is "source code"
Explanation:
When you writing a code in any programming language that code is known as source code.The source code is also known as primary code, when source code is compiles it produce runtime code.
The source code is created by the compiler it can be easily understood by the human being.
for example in c language we write a source code after compilation it produces object code .
Answer:
B:2 should be the first answer
C: 14 the second
A 2d array (i.e. 2 dimensional array) represents its elements in rows and columns
<h3>The program in Java</h3>
The method in Java, where comments are used to explain each line is as follows
//This defines the method
public static int diagSum(int[][] myArray) {
//This initializes sum to 0
int sum = 0;
//This iterates through each row of the array
for (int i = 0; i < myArray.length; i++) {
//This calculates the sum of the diagonals
sum+=myArray[i][i];
}
//This returns the sum
return sum;
}
Read more about methods at:
brainly.com/question/15969952
The answer for this question is true