COMPLETE QUESTION
I. public class Test {
public static void main(String[] args){
System.out.println("Welcome to Java!");
}
}
II. public class Test { public static void main(String[] args) {System.out.println("Welcome to Java!");}}
Answer:
Both codes will compile and run and display Welcome to Java, but the code in II has a better style than I
Explanation:
When written codes, paying attention to proper coding styles and efficient memory management enables us to create programs that are highly efficient, coding styles refer to proper indentions and avoiding too lenghty lines of code (as is in code I), adding approprite comments etc.
Answer:
1. I would ask her how big is her house, because when it’s big fiber optic cable is the best choice.
2. I would also ask her how loud is her house, as STP cable would be best choice.
Explanation:
Fiber optic cables have larger bandwidth than conventional metal cables. The amount of information transmitted per unit time using fiber over other transmission media is higher when compared to other alternatives. Power loss is minimal as this aid transmission over a long distance, this is why it is the best for big houses.
STP cables, are known for their better efficiency. But are expensive and hard to install, way stiffer and needs a lot of space.
Answer:
There are five main hardware components in a computer system: Input, Processing, Storage, Output and Communication devices. Are devices used for entering data or instructions to the central processing unit.
Explanation:
The second one
01111
This is because a computer uses binary and only understands two digits which consit of 1 and 0