Network topology is the arrangement of the elements of a communication network. Network topology can be used to define or describe the arrangement of various types of telecommunication networks, including command and control radio networks, industrial fieldbusses and computer networks.
Advantages:
It is easy to handle and implement.
It is best suited for small networks.
Disadvantages:
The cable length is limited. This limits the number of stations that can be connected.
This network topology can perform well only for a limited number of nodes.
Answer:
C. &&
Explanation:
Of the options provided:
A) ++ : increment operator. For example : ++1 = 2
B) || : Logical OR operator. A || B is true if any one of A or B is true.
C) && : Logical AND operator. A && B is true if both A and B are true.
A B A && B
False False False
False True False
True False False
True True True
D) @ : Ampersand character (commonly used in email addresses) e.g, [email protected]
Answer:
The output is "A"
Explanation:
public class Solution {
public static void main(String args[]) {
mystery(7);
}
public static void mystery(int a) { System.out.println("A"); }
public static void mystery(double a) { System.out.println("B"); }
public static void mystery(int a, double b) { System.out.println("C"); }
public static void mystery(double a, int b) { System.out.println("D"); }
}
In the code above; mystery is defined in four different ways called method overloading. Method overloading is when same method is defined with different parameters.
In the first case; mystery will be called if the argument is int.
In the second case; mystery will be called if the argument is double.
In the third case; mystery will be called if the arguments are int and double.
In the fourth case; mystery will be called if the arguments are double and int.
When mystery(7) is called; the mystery method requiring only int will be called and the output is "A".
1. ughhhh not entirely sure but B, 2. again not entirely sure should be B as well and finally 3.is D remember these are not always the answer just most likely what one person thinks