Answer:
public class Date {
private int month;
private int day;
private int year;
// Constructor
public Date(int month, int day, int year) {
this.month = month;
this.day = day;
this.year = year;
}
//Getters and setter
public int getMonth() {
return month;
}
public void setMonth(int month) {
this.month = month;
}
public int getDay() {
return day;
}
public void setDay(int day) {
this.day = day;
}
public int getYear() {
return year;
}
public void setYear(int year) {
this.year = year;
}
void displayDate(){
System.out.println(getMonth()+"/"+getDay()+"/"+getYear());
}
}
//Test Class
class DateTest {
public static void main(String[] args) {
Date dateOne = new Date(12, 25, 2019);
dateOne.displayDate();
}
}
Explanation:
- Using Java programming Language
- Create the Date class with the instance variables (Month, day and year) all of type int
- Create the the constructor to initialize all the instance variables
- Create getters and setters for all the instance variables
- Create the displayDate() method which uses string concatenation along with the get() method of all the instance variables
- Create a test class that initializes an instance of the of the Date class
- Call the method displayDate on the instance of the class created
I would go with c. Audio and visuals catch peoples attention
Answer:
As a bounce
Explanation:
The options are:
As an interaction
As a click
As an event
As a bounce
And the correct option is as a bounce. You will find that Google analytics calculates the bounce specifically in terms of a session which gets triggered only as a single plea to the server, and which is the analytics server like the use clicks and opens a certain page on any website, and then exits without making any further request to that server in that session. And hence, this will be counted as a bounce.
Answer:
Hash function have less collision than a internet checksum because of computational infeasibility.
Explanation:
A collision means there is more then one way to produce the same sum. It is nearly difficult to developed two messages with same hash however, in checksum, it is more easier to develop or modify two messages to have same sum, thereby enabling attackers to have access to the message or the information arising to less message integrity.