Answer:
// here is code in java.
// import package
import java.util.*;
// class definition
class Main
{
// main method of the class
public static void main (String[] args) throws java.lang.Exception
{
try{
// print the name
System.out.print("my name is Sam. ");
// print the major
System.out.print("my major is CS.");
}catch(Exception ex){
return;}
}
}
Explanation:
In java, System.out.print() will print the statement but didn't go to the next line.If there is another System.out.print(), then it will also print into the same line.So here first the System.out.print() will print the name and second will print the major in the same line.
Output:
my name is Sam. my major is CS.
Answer:
Brute Force attack.
Explanation:
A network is a platform where end user devices like computers are connected to communicate and share resources. There are public networks and private networks.
A public network has its end devices and servers configured with a public IP address, which is routable on the internet, while private networks uses private IP addresses which can be used on the internet.
Private networks can be made accessable to public users by configuring an authentication and authorization policy, which could be one or a multi factor authentication. These requires a password and other factors to access the services of a private network.
An attacker can easily access a one factor or a password accessible user account, if the password is weak by using the process called a brute Force attack.
The brute Force attack exploits the vulnerability of weak passwords by entering possible valid combination from a defined set of possibilities.
Explanation:
A hub is used to send the message from one port to other ports.It does not know the specific address of the destination where the message needs to send.it works on Physical layer of the OSI model(layer 1).
A switch can handle data and it knows the specific address of the destination.A switch works on the data link Layer of the OSI model(layer 2).
Answer:
DDos or Distributed Denial Of Service Attack
Explanation:
:)