Answer:
ip = enrollment + section;
Explanation:
The variable ip has been declared to be a pointer to int.
int * ip;
The variable enrollment has been declared as an array of 20 elements .
int enrollment[20];
The variable section has been declared as an int.
int section;
In order to make ip point to the element in the array indexed by section, we can use the following statement :
ip = enrollment + section;
This will make ip point to enrollment[section].
Answer:
B. 1 6 3
Explanation:
Given function definition for calc:
void calc (int a, int& b)
{
int c;
c = a + 2;
a = a * 3;
b = c + a;
}
Function invocation:
x = 1;
y = 2;
z = 3;
calc(x, y);
cout << x << " " << y << " " << z << endl;
- Since x is passed by value, its value remains 1.
- y is passed by reference to the function calc(x,y);
Tracing the function execution:
c=3
a=3
b=c+a = 6;
But b actually corresponds to y. So y=6 after function call.
- Since z is not involved in function call, its value remain 3.
So output: 1 6 3
Answer:
The answer to this question is given below in the explanation section.
Explanation:
The value stored by a variable can be changed after it is assigned(true).
The value of a variable can be changed after it is assigned, for example:
int a=10;
and we can change the value of variable a in letter program such as:
a=15;
Variables are a name for a spot in the computer's memory (true).
it is true, because the variables value stored in the computer's memory and we can access theses values by their name (variable name). so Variables are a name for a spot in the computer's memory.
Variable names can be words: such as temperature or height (true).
Yes, the variable name can be words such as height, width, temperature etc.
The value stored by a variable cannot be changed after it is assigned (false).
It is noted that the value stored by a variable can be changed after it is assigned. However, it is noted that is some programming language, you can't change the value of static variable.
Answer: True
Explanation:
Yes, the given statement is true that the web based database used the various types of database applications for transferring the information or data.
- The web database applications are basically designed so that the users managed and easily access the information by using the internet.
- It is works as the middleware form for transferring the data from the internal database of an organization to the web server and it is known as web page for the user interface.
- We can store various types of business and also personal related data by using the web database.
A comper??><>?????????????????????????????????????