Answer:
To determine the correct statement in the choices presented, we first have to solve the area of the tray. We assume it to be in a rectangular form so the area is:
Explanation:
Area = 10 in x 10 in x 7/2.54 in = 275.59 in³ for the paint tray
1 gallon paint = 231 in³ paint
Therefore, the correct answer is the first option. The paint will not fill the tray by 44.59 in³.
Answer: Image preloading
Explanation:
The Image Preloading process can be describes as follows:
1. Using the new keyword an instance of the image object is created.
2. The src property and the flename of the image is set be equal.
3. Then image is downloaded into the cache with displaying it.
4. The src property is set equal to the prefetched image when it is required to display the image.
Answer:
1 void parseEmailAddress(string email, string& username, string& domain)
2 {
3 int found = email.find("@")
4 if (found > 0)
5 {
6 username = email.substr(0, found);
7 domain = email.substr(found+1, -1);
8 }
9 return;
10}
Explanation line by line:
- We define our function.
- We use an open curly bracket to tell the program that we are starting to write the function down.
- We apply the find method to the email variable that was passed by the main program. The find method tells us where is the "@" located within the email.
- We use an if statement to ensure that the value that we found is positive (The value is negative if an only if "@" is not in the email address).
- We use an open curly bracket to tell the program that we are starting to write inside the if statement.
- We apply the substr method to the email to take the username; it receives a start and an end value, this allows us to take from the beginning of the email (position 0) until the "@".
- We apply the substr method to the email to take the domain; it receives the position of the "@" character plus one to take the first letter after the "@" and a minus-one representing the last character on the email.
- We use a closing curly bracket to tell the program that the if statement has finished.
- We return nothing because we are using reference parameters, which means that the memory positions of username and domain are going to be filled by our parseEmailAddress function and the main function can access those values directly.
- We use a closing curly bracket to tell the program that the function has finished.
Answer:
1) Standalone machine
2) Local
3) Either Wide area network(WAN) or a web
Done your first 3
Answer:
The main reason why we use hexadecimal numbers is because it provides a more human-friendly representation and is much easier to express binary number representations in hex than it is in any other base number system. Computers do not actually work in hex. Lets take an example, using a byte.
Hope this answer is right!!