// Making the function
void getSpeed(int &speed){
// initialize the variable to take input
int input =0;
cout << " Enter the Number in range of 20 through 70 : "<<;
cin>>input;
// validate the input
if(input>=20 && input<=70)
speed = input;
else
speed = 0;
}
An administrator has created a new custom object in a sandbox environment and now is ready to deploy in production. How can the administrator ensure that the field-level security that was tested and approved in the sandbox environment is maintained as part of the deployment? a) Create a change set that includes the custom object and all custom fields b) Create a change set that includes the custom object and all profiles c) Create a change set that includes the custom object, check the retain field-level security option d) Create a change set for the custom object; use Data Loader to transfer field-level security
Answer:
Option D
Explanation:
Option A is rejected because adding a custom object will cost both in memory and computation power. Consider that you have 1 million users, than there will be 1 million custom objects in the memory for checking the security which is not good.
Option B is not answer because again making a custom object will cost in memory and computation power.
Option C is not good because it also makes the custom object.
Option D is selected because change sets can be made which will not cost as much as the other options are costing. Also Data Loader can have come credentials defined in it which we can use to check if the user activities are according to the rules at each level.These days these data loader object technique is used because there will be static change sets for the class of users to check security.
_______________, such as BASIC, Python, Java, Prolog, and C , make the programming process easier by replacing unintelligible strings of 1s and 0s or cryptic assembly commands with understandable commands, such as PRINT and WRITE.
Answer:
High level Languages
Explanation:
High level languages are made so that the byte code, Assembly code that computers can understand should be converted into a higher level human understandable languages such as Python,C++. Also, remember that the compilers of these languages such as Visual studio ultimately converts the high level code into low level code ( Assembly code ) that computers can understand.
Assume that two int constants,FIRST_YEAR and LAST_YEAR have already been declared and initialized with year values (like 2009, 2014), along with a double variable oil that has been initialized with the number of barrels of oil consumed in Canada in the year given by FIRST_YEAR. Write some code that uses a while statement to print on a line by itself, each of the years from FIRST_YEAR to LAST_YEAR inclusive. On each line, after the year, separated by a colon and a space, print the new value amount of oil, taking into account that each year the oil consumed increases by 20%.
// While loop
while(FIRST_YEAR < LAST_YEAR)
{
cour<<"Year : " << First_YEAR << " Oil consumed is : " << oil <<"."<<endl;
FIRST_YEAR+=1;
// calculate the 20% increase
oil = oil + (oil *.20)
}