Answer:
public class ANot {
public static void main(String[] args) {
int numberOfSides = 20;
boolean isQuadrilateral;
if(numberOfSides==4){
isQuadrilateral = true;
System.out.println("The triangle is quadrilateral");
}
else{
isQuadrilateral=false;
System.out.println("The triangle is not quadrilateral");
}
}
}
Explanation:
- Create and Initilize the int variable numberOfSides (You can also receive this from a user using the scanner class for example).
- create a boolean variable isQuadrilateral
- Use if and else statement to check if numberOfSides ==4 and assign true to isQuadrilateral else assign false
Answer:
There are 7 scores recorded. The dropped score is 75
Explanation:
The code snippet above prints through the document.write() function. the output prints the string serving as the argument, and makes use of variables (lgth) and expression also (scores [lgth -1]). what it does is. From the point where it sees +lgth+, it checks the value, which is 7. And when it sees scores [lgth-1] it evaluates it to 75. Hence, the string above is produced.
Answer:
A - 2
B - 3
C - 5
D - 4
E - 1
Explanation:
A. Virtual private network : 2
This is very useful when you have to work from home or visiting a client and need access to files/applications just like if you were at the office.
B. Email : 3
Yes, this is basically why the Internet was created in the first place.
C. Social networking sites : 5
Social networks are indeed a great marketing tool, allowing to target potential customers very precisely.
D. Search engines : 4
Yes, to find information about new products for the company, how the competitors are doing and so on.
E. Video and web conferencing: 1
Another great tool for employees working from home for example, or for employees located in an office at the other side of the country.
Answer : The center lane is designated for left turns
Explanation: This lane is used so that drivers would pull into in order to turn left when a clear merge is available. Its main purpose is not to cause traffic jam while waiting for the chance to turn left. It is illegal to use this lane for any other purposes