Answer:
RAM is used to store programs and data the CPU needs. ROM has prerecorded data and is used to boot the computer
Explanation:
A printer is connected locally on Computer1 and is shared on the network. Computer2 installs the shared printer and connects to it. Computer1 considers the printer to be a(n) ________________ printer, and Computer2 considers the printer to be a(n) ________________ printer.
Answer:
A printer is connected locally on Computer1 and is shared on the network. Computer2 installs the shared printer and connects to it. Computer1 considers the printer to be a(n) _____local___________ printer, and Computer2 considers the printer to be a(n) _____network___________ printer.
Explanation:
Any printer installed directly to Computer 1 is a local printer. If this printer is then shared with computers 2 and 3 in a particular networked environment, it becomes a shared printer. For these other computers 2 and 3, the shared printer is a network printer, because it is not locally installed in each of them. There may be some features which network computers cannot use on a shared printer, especially if the printer can scan documents.
1| def saveUserProfile(firstName, lastName, age, height, country):
2| filename = lastName + firstName + ".txt"
3| outputFile = open(filename, "w")
4| print(lastName, file = outputFile)
5| print(firstName, file = outputFile)
6| print(country, file = outputFile)
7| print(height, file = outputFile)
8| print(age, file = outputFile)
9| outputFile.close()
Above is a function that takes five pieces of information about a user and saves that data to a file. We'll assume firstName, lastName, and country are strings, age is an integer, and height (expressed in meters) is a float.
Assume we call the function above with this line of code:
saveUserProfile("David", "Joyner", 30, 1.8, "USA")
After the function runs, what is name of the file that is created?
a. What is written on line 1 of that file? If there is no line 1 or if line 1 is blank, enter Nothing.
b. What is written on line 2 of that file? If there is no line 2 or if line 2 is blank, enter Nothing.
c. What is written on line 3 of that file? If there is no line 3 or if line 3 is blank, enter Nothing.
d. What is written on line 4 of that file? If there is no line 4 or if line 4 is blank, enter Nothing.
e. What is written on line 5 of that file? If there is no line 5 or if line 5 is blank, enter Nothing.
Answer:
Joyner
David
USA
1.8
30
Explanation:
def saveUserProfile(firstName, lastName, age, height, country):
This is the definition of function named saveUserProfile which accepts the following parameters:
firstNamelastNameageheightcountryfilename = lastName + firstName + ".txt"
When the file is created it will be named as the lastName and firstName string combined with .txt as extension. For example if the lastName contains the name string Joyner and firstName contains the name David then the file created to be written is named as JoynerDavid.txt
outputFile = open(filename, "w")
This statement uses open() method in write mode and uses outputFile object to access the file. "w" represents write mode i.e. file is opened in write mode to write on it.
a) Joyner is written on line 1 of that file because of the following statement of above function:
print(lastName, file = outputFile)
This statement prints the string stored in lastName i.e. Joyner. Here outputFile opens the file in "w" write mode and writes the last name to the first line of the file.
b) David is written on line 2 of that file because of the following statement of above function:
print(firstName, file = outputFile)
This statement prints the string stored in firstName i.e. David. Here outputFile opens the file in "w" write mode and writes the first name to the second line of the file.
c) USA is written on line 3 of that file because of the following statement of above function:
print(country, file = outputFile)
This statement prints the data stored in country i.e. USA. Here outputFile opens the file in "w" write mode and writes the country name to the third line of the file.
d) 1.8 is written on line 4 of that file because of the following statement of above function:
print(height, file = outputFile)
This statement prints the value stored in height i.e. 1.8. Here outputFile opens the file in "w" write mode and writes the height value to the fourth line of the file.
e) 30 is written on line 5 of that file because of the following statement of above function:
print(age, file = outputFile)
This statement prints the value stored in age parameter of function saveUserProfile i.e. 30. Here outputFile opens the file in "w" write mode and writes the age value to the fifth line of the file.
A security administrator is investigating a report that a user is receiving suspicious emails. The user's machine has an old functioning modem installed. Which of the following security concerns need to be identified and mitigated? (Select TWO).
a) Vishing
b) Whaling
c) Spear phishing
d) Pharming
e) War dialing
f) Hoaxing
Answer:
Spear Phishing and War Dialing
Explanation:
So let's tackle these one at a time.
Vishing is simply any type of message (i.e., email, text, phone call, etc.) that appears to be from a trusted source but is not.
Whaling is simply a spear phishing attack of a high-value target such as a CEO or someone with high-level access at a company.
Spear phishing is simply a targeted phishing attack, usually towards a specific person or group of people. (Phishing attack is simply a social attack to try and gain unauthorized access to a resource).
Pharming is an attack that attempts to redirect website traffic to a fake site.
War dialing is a technique to automatically scan a list of numbers in an area in attempt to search for exposed modems, computers, board systems, or fax machines, in order to breach the network.
Hoaxing is simply a social attack that describes a serious threat in attempts to retrieve unauthorized access or money from a victim. (Think microsoft tech support scams)
Now that we have defined these things, let's identify the possible threats that need to be reported.
(a) Vishing? The sec admin report doesn't mention the source of the message so we cannot associate this one
(b) Whaling? The sec admin report says a user, implying someone not high up in the company, but doesn't say it's not someone high up. This is possible.
(c) Spear phishing? The sec admin report says a user, implying that only this user is being targeted so this is definitely valid.
(d) Pharming? The sec admin report says nothing about site redirection.
(e) War dialing? The sec admin report doesn't say anything about unauthorized scanning; however, it mentions the user has an old functioning modem, so this is possible.
(f) Hoaxing? The sec admin report doesn't mention a pop up in the email or the content of the email so we are uncertain.
Thus with these considerations, the two threats that are identified and need mitigation are Spear phishing and War Dialing/Whaling. Note that we aren't positive of the war dialing or whaling, but a case could be made for either; however, given the modem information, the question seems to indicate war dialing.
C create a class called Plane, to implement the functionality of the Airline Reservation System. Write an application that uses the Plane class and test its functionality. Write a method called Check In() as part of the Plane class to handle the check in process Prompts the user to enter 1 to select First Class Seat (Choice: 1) Prompts the user to enter 2 to select Economy Seat (Choice: 2) Assume there are only 5-seats for each First Class and Economy When all the seats are taken, display no more seats available for you selection Otherwise it displays the seat that was selected. Repeat until seats are filled in both sections Selections can be made from each class at any time.
Answer:
Here is the C++ program:
#include <iostream> //for using input output functions
using namespace std; //to identify objects like cin cout
class Plane{ //class Plane
private: // declare private data members i.e. first_class and eco_class
int first_class; //variable for first class
int eco_class; //variable declared for economy class
public: // public access modifier
Plane(){ //constructor to initialize values of first_class and eco_class
first_class=0; //initialized to 0
eco_class=0;} //initialized to 0
int getFirst(){ // class method to get data member first_class
return first_class;} //returns the no of reserved first class seats
int getEco(){ // class method to get data member eco_class
return eco_class;} //returns the no of reserved eco class seats
void CheckIn(){ //method to handle the check in process
int choice; //choice between first and economy class
cout<<"\nEnter 1 to select First Class Seat: "<<endl; //prompts user to enter 1 to reserve first class seat
cout<<"\nEnter 2 to select Economy Class Seat: "<<endl; //prompts user to enter 2 to reserve economy class seat
cin>>choice; //reads the choice from user
switch(choice){ // switch statement is used to handle the check in process
case 1: //to handle the first class seat reservation
if(getFirst()<5){ //if the seat is available and the seat limit has not exceed 5
first_class++; //add 1 to the first_class seat to count that a seat is reserved
cout<<"You reserved First class seat! ";} //display the message about successful seat reservation in first class
cout<<"\nNumber of first class seats reserved: "<<getFirst()<<endl;} //displays the number of seats already reserved
else{ //if all first class seats are reserved then display the following message
cout<<"No more seats available for you selection!"<<endl;
if(getEco()>=5 && getFirst()>=5){ //if all seats from first class and economy class are reserved display the following message
cout<<"All seats are reserved!"<<endl;
exit(1);}} //program exits
break;
case 2: //to handle the economy seat reservation
if(getEco()<5){ //if the seat is available and the seat limit has not exceed 5
eco_class++; //add 1 to the eco_class seat to count that a seat is reserved
cout<<"You reserved Economy class seat! "; //display the message about successful seat reservation in economy class
cout<<"\nNumber of Economy class seats reserved: "<<getEco()<<endl;} //displays the number of seats already reserved
else{ //if all economy class seats are reserved then display the following message
cout<<"No more seats available for you selection!"<<endl;
if(getEco()>=5 && getFirst()>=5){ //if all seats from first class and economy class are reserved display the following message
cout<<"All seats are reserved!"<<endl;
exit(1);}} //program exits
break;
default: cout<<"Enter a valid choice"<<endl; } } }; //if user enters anything other that 1 or 2 for choice then this message is displayed
int main(){ //start of main() function body
int select; // choice from first or economy class
Plane plane; //create an object of Plane class
cout<<"**************************"<<endl;
cout<<"Airline Reservation System"<<endl; //display this welcome message
cout<<"**************************"<<endl;
while(true){ // while loop executes the check in procedure
plane.CheckIn();} } //class CheckIn method of Plane classs using plane object to start with the check in process
Explanation:
The program is elaborated in the comments with each statement of the above code. The program has a class Plane that has a method CheckIn to handle the check in process. The user is prompted to enter a choice i.e. enter 1 to select First Class Seat and enter 2 to select Economy Seat. A switch statement is used to handle this process. If user enters 1 then the case 1 of switch statement executes which reserves a seat for the user in first class. If user enters 2 then the case 2 of switch statement executes which reserves a seat for the user in economy class.There are only 5 seats for each First Class and Economy. So when the limit of the seats reservation exceeds 5 then the no more seats available for you selection is displayed. If all the seats are taken in both the first and economy class then it displays the message All seats are reserved. If the user enters anything other than 1 or 2 then display the message Enter a valid choice. Whenever the user reserves one of first or economy class seats the relevant seat is incremented to 1 in order to count the number of seats being reserved. The program and its output are attached.
Why is a DNS cache poisoning attack dangerous? Check all that apply. A. Errrr...it's not actually dangerous. B. It allows an attacker to redirect targets to malicious webservers. C. It allows an attacker to remotely controle your computer. D. It affects any clients querying the poisoned DNS server.
Answer:
(B) It allows an attacker to redirect targets to malicious webserver.
(D) It affects any clients querying the poisoned DNS server.
Explanation:
DNS cache poisoning is a serious type of attack that is designed to exploit the vulnerabilities inherent in a Domain Name Server (DNS) where a user is redirected from a real server to a fake one. It is also called DNS spoofing.
Normally, when your browser tries to visits a website through a given domain name, it goes through the DNS server. A DNS server maintains a list of domain names and their equivalent Internet Protocol addresses. This server (DNS) then responds to the request with one or more IP addresses for the browser to reach the website through the domain name.
The computer browser then get to the intended website through the IP address.
Now, if the DNS cache is poisoned, then it has a wrong entry for IP addresses. This might be via hacking or a physical access to the DNS server to modify the stored information on it. Therefore, rather than responding with the real IP address, the DNS replies with a wrong IP address which then redirects the user to an unreal website.
Although they might not be able to control your computer remotely as long as you are not trying to visit a web page via the poisoned information, there are other dangers attached to this type of attack.
Once the DNS server has been poisoned, any client trying to query the server will also be affected since there is no direct way of knowing if the information received from the server is actually correct.
A signal travels from point A to point B. At point A, the signal power is 100 W. At point B, the power is 90 W. What is the attenuation in decibels?
Answer:
[tex]Attenuation = 0.458\ db[/tex]
Explanation:
Given
Power at point A = 100W
Power at point B = 90W
Required
Determine the attenuation in decibels
Attenuation is calculated using the following formula
[tex]Attenuation = 10Log_{10}\frac{P_s}{P_d}[/tex]
Where [tex]P_s = Power\ Inpu[/tex]t and [tex]P_d = Power\ outpu[/tex]t
[tex]P_s = 100W[/tex]
[tex]P_d = 90W[/tex]
Substitute these values in the given formula
[tex]Attenuation = 10Log_{10}\frac{P_s}{P_d}[/tex]
[tex]Attenuation = 10Log_{10}\frac{100}{90}[/tex]
[tex]Attenuation = 10 * 0.04575749056[/tex]
[tex]Attenuation = 0.4575749056[/tex]
[tex]Attenuation = 0.458\ db[/tex] (Approximated)
Write a method named removeDuplicates that accepts a string parameter and returns a new string with all consecutive occurrences of the same character in the string replaced by a single occurrence of that character. For example, the call of removeDuplicates("bookkeeeeeper") should return "bokeper" .
Answer:
//Method definition
//Method receives a String argument and returns a String value
public static String removeDuplicates(String str){
//Create a new string to hold the unique characters
String newString = "";
//Create a loop to cycle through each of the characters in the
//original string.
for(int i=0; i<str.length(); i++){
// For each of the cycles, using the indexOf() method,
// check if the character at that position
// already exists in the new string.
if(newString.indexOf(str.charAt(i)) == -1){
//if it does not exist, add it to the new string
newString += str.charAt(i);
} //End of if statement
} //End of for statement
return newString; // return the new string
} //End of method definition
Sample Output:
removeDuplicates("bookkeeeeeper") => "bokeper"
Explanation:
The above code has been written in Java. It contains comments explaining every line of the code. Please go through the comments.
The actual lines of codes are written in bold-face to distinguish them from comments. The program has been re-written without comments as follows:
public static String removeDuplicates(String str){
String newString = "";
for(int i=0; i<str.length(); i++){
if(newString.indexOf(str.charAt(i)) == -1){
newString += str.charAt(i);
}
}
return newString;
}
From the sample output, when tested in a main application, a call to removeDuplicates("bookkeeeeeper") would return "bokeper"
Volume of Pyramid = A*h/3 where A is the area of the base of the pyramid and h is the height of the pyramid. Write a C++ program that asks the user to enter the necessary information about the pyramid (note that the user would not know the area of the base of the pyramid, you need to ask them for the length of one of the sides of the base and then calculate the area of the base). Using the information the user input, calculate the volume of the pyramid. Next display the results (rounded to two decimal places). Example Output (output will change depending on user input): The area of the base of the pyramid is: 25.00 The height of the pyramid is: 5.00 The volume of the pyramid is: 41.67 *Pseudocode IS required for this program and is worth 1 point. The program IS auto-graded.
Answer:
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
double side, height;
cout<<"Enter the length of one of the sides of the base: ";
cin>>side;
cout<<"Enter the height: ";
cin>>height;
double area = side * side;
double volume = area * height / 3;
cout<<"The area of the base of the pyramid is: "<<area<<endl;
cout<<"The height of the pyramid is: "<<height<<endl;
cout<<"The volume of the pyramid is: "<<fixed<<setprecision(2)<<volume<<endl;
return 0;
}
Pseudocode:
Declare side, height
Get side
Get height
Set area = side * side
Set volume = area * height / 3
Print area
Print height
Print volume
Explanation:
Include <iomanip> to have two decimal places
Declare the side and height
Ask the user to enter side and height
Calculate the base area, multiply side by side
Calculate the volume using the given formula
Print area, height and volume (use fixed and setprecision(2) to have two decimal places)
Suppose that an engineer excitedly runs up to you and claims that they've implemented an algorithm that can sort n elements (e.g., numbers) in fewer than n steps. Give some thought as to why that's simply not possible and politely explain
Answer:
The summary including its given problem is outlined in the following section on the interpretation.
Explanation:
That's not entirely feasible, since at least n similarities have to be made to order n quantities. Find the finest representation where the numbers of 1 to 10 have already been arranged.
⇒ 1 2 3 4 5 6 7 8 9 10
Let's say that we identify one figure as the key then compared it towards the numbers across the left. Whether the correct number is greater, therefore, left number, are doing nothing to switch the location elsewhere.
Because although the numbers have already been categorized 2 has always been compared to 1 which would be perfect, 3 becomes especially in comparison to 2 and so much more. This should essentially take 9 moves, or nearly O(n) moves.
If we switch that little bit already
⇒ 1 3 2 4 5 6 7 8 9 10
3 Is contrasted with 1. 2 will indeed be matched against 3 as well as 2. Since 2 has indeed been exchanged, it must, therefore, be matched with 1 as there might be a case whereby each number z exchanged is greater than the number Y as well as the quantity X < Y.
X = 1, Y = 3, and Z = 2.Only one adjustment expanded the steps which culminated in n+1.
It should be noted that it won't be possible because at least n similarities have to be made to order n quantities.
From the information given, it should be noted that it's not possible for the engineer to implement an algorithm that can sort n elements (e.g., numbers) in fewer than n steps.
This is because there are at least n similarities have to be made to order n quantities. In this case, the numbers of 1 to 10 have already been arranged. When a number is greater, it should be noted that the left number will do nothing to switch the location elsewhere.
Therefore, the information given by the engineer isn't feasible.
Learn more about algorithms on:
https://brainly.com/question/24953880
Why do you think it is necessary to set the sequence in which the system initializes video cards so that the primary display is initialized first
Answer:
Because if you don't do it BIOS doesn't support it. ... In troubleshooting a boot problem what would be the point of disabling the quick boot feature in BIOS setup
Explanation:
Write a C function check(x, y, n) that returns 1 if both x and y fall between 0 and n-1 inclusive. The function should return 0 otherwise. Assume that x, y and n are all of type int.
Answer:
See comments for line by line explanation (Lines that begins with // are comments)
The function written in C, is as follows:
//The function starts here
int check(x,y,n)
{
//This if condition checks if x and y are within range of 0 to n - 1
if((x>=0 && x<=n-1) && (y>=0 && y<=n-1))
{
//If the if conditional statement is true, the function returns 1
return 1;
}
else
{
//If the if conditional statement is false, the function returns 0
return 0;
}
//The if condition ends here
}
//The function ends here
Explanation:
The dramatic growth in the number of power data centers, cell towers, base stations, recharge mobiles, and so on is damaging the environment because Radio Frequency Interference (RFI) is overcrowding specific areas of the electromagnetic spectrum.
A. True
B. False
Answer:
A. True
Explanation:
Radio frequency interference abbreviated RFI is radio interference that occurs as a result of radiation in radio frequency energy that usually causes electronic devices to malfunction. Radio frequency interference or RFI is given out or emitted by electrical devices or centres such as mobile phones, satellites or data centres which affects the environment by increasing heat and bringing about increased body temperature in humans
Velma is graduating from Ashford at the end of next year. After she completes her final class, she will reward herself for her hard work with a week-long vacation in Hawaii. But she wants to begin saving money for her trip now. Which of the following is the most effective way for Velma to save money each month?
This question is incomplete because the options are missing; here are the options for this question:
Which of the following is the most effective way for Velma to save money each month?
A. Automatically reroute a portion of her paycheck to her savings account.
B. Manually deposit 10% of her paycheck in her savings account.
C. Pay all of her bills and then place the remaining money in her savings account.
D. Pay all of her bills and then place the remaining money in her piggy bank.
The correct answer to this question is A. Automatically reroute a portion of her paycheck to her savings account.
Explanation:
In this case, Velma needs to consistently save money for her vacation as this guarantees she will have the money for the trip. This means it is ideal every month she contributes consistently to her savings for the vacation.
This can be better be achieved by automatically rerouting a part of her paycheck for this purpose (Option A) because in this way, every month the money for the vacations will increase and the amount of money will be consistent, which means Velma will know beforehand the money she will have for the vacation. Moreover, options such as using a piggy bank or paying the bills and using the rest for her savings, do not guarantee she will contribute to the savings every month, or she will have the money she needs at the end.
Type the correct answer in the box.
Who is responsible for creating and testing the incident response plan?
The _______ is responsible for creating and testing the incident response plan.
Answer: CSIRT
Explanation: CSIRT is team that specializes in day to day cyber incidents
The CSIRT is responsible for creating and testing the incident response plan.
What is CSIRT?CSIRT is the Computer emergency response team. One of the key areas for the efficient operation of a corporation is the legal department. Professionals face enormous challenges, particularly when you take into account the need for other bodies within the company itself.
We can list the reviews of the CSIRT procedures that are conducted through this department as one of its key responsibilities. This department also has the responsibility of comprehending the actions that the CSIRT will take to ensure that they comply with all applicable federal, state, and local laws and regulations.
Therefore, the incident response strategy must be written and tested by the CSIRT.
To learn more about CSIRT, refer to the link:
https://brainly.com/question/18493737
#SPJ2
A hotel salesperson enters sales in a text file. Each line contains the following, separated by semicolons: The name of the client, the service sold (such as Dinner, Conference, Lodging, and so on), the amount of the sale, and the date of that event. Write a program that reads such a file and displays the total amount for each service category. Display an error if the file does not exist or the format is incorrect.
Answer:
Life can get busy and hectic, but relationships matter. What is an effective way of mending relationships that may have had been neglected?Life can get busy and hectic, but relationships matter. What is an effective way of mending relationships that may have had been neglected?
Explanation:
Life can get busy and hectic, but relationships matter. What is an effective way of mending relationships that may have had been neglected?Life can get busy and hectic, but relationships matter. What is an effective way of mending relationships that may have had been neglected?Life can get busy and hectic, but relationships matter. What is an effective way of mending relationships that may have had been neglected?Life can get busy and hectic, but relationships matter. What is an effective way of mending relationships that may have had been neglected?Life can get busy and hectic, but relationships matter. What is an effective way of mending relationships that may have had been neglected?
The new_directory function
Answer:The new directory method creates a new directory within the current working directory.
Explanation:The new directory function and returns the list of the files within that directory.The new directory function allow to with the built in function MK dir().
To the new directory function create a current working directory.
import OS
OS.MKdir()
The code creates the directory projects in the current working directory to specify the full path.
For the Python program below, will there be any output, and will the program terminate?
while True: while 1 > 0: break print("Got it!") break
a. Yes and no
b. No and no
c. Yes and yes
d. No and yes
e. Run-time error
Consider these functions:_________.
def f(x) :
return g(x) + math.sqrt(h(x))
def g(x):
return 4 h(x)
def h(x):
return x x + k(x)-1
def k(x):
return 2 (x + 1)
Without actually compiling and running a program, determine the results of the following function calls.
a. x1 = f(2)
b. x2 = g(h(2)
c. x3 = k(g(2) + h(2))
d. x4 - f(0) + f(l) + f(2)
e. x5 - f{-l) + g(-l) + h(-1) + k(-l)
Answer:
x1 = 39
x2 = 400
x3 = 92
x4 = 62
x5 = 0
Explanation:
a. x1 = f(2)This statement calls the f() function passing 2 to the function. The f(x) function takes a number x as parameter and returns the following:
g(x) + math.sqrt(h(x))
This again calls function g() and h()
The above statement calls g() passing x i.e. 2 to the function g(x) and calls function h() passing x i.e. 2 to h() and the result is computed by adding the value returned by g() to the square root of the value returned by the h() method.
The g(x) function takes a number x as parameter and returns the following:
return 4*h(x)
The above statement calls function h() by passing value 2 to h() and the result is computed by multiplying 4 with the value returned by h().
The h(x) function takes a number x as parameter and returns the following:
return x*x + k(x)-1
The above statement calls function k() by passing value 2 to k() and the result is computed by subtracting 1 from the value returned by k() and adding the result of x*x (2*2) to this.
The k(x) function takes a number x as parameter and returns the following:
return 2 * (x + 1)
As the value of x=2 So
2*(2+1) = 2*(3) = 6
So the value returned by k(x) is 6
Now lets go back to the function h(x)
return x*x + k(x)-1
x = 2
k(x) = 6
So
x*x + k(x)-1 = 2*2 + (6-1) = 4 + 5 = 9
Now lets go back to the function g(x)
return 4*h(x)
As x = 2
h(x) = 9
So
4*h(x) = 4*9 = 36
Now lets go back to function f(x)
return g(x) + math.sqrt(h(x))
As x=2
g(x) = 36
h(x) = 9
g(x) + math.sqrt(h(x)) = 36 + math.sqrt(9)
= 36 + 3 = 39
Hence
x1 = 39b. x2 = g(h(2) )The above statement means that first the function g() calls function h() and function h() is passed a value i.e 2.
As x=2
The function k() returns:
2 * (x + 1) = 2 * (2 + 1) = 6
The function h() returns:
x*x + k(x)-1 = 2*2 + (6-1) = 4 + 5 = 9
Now The function g() returns:
4 * h(x) = 4 * h(9)
This method again calls h() and function h() calls k(). The function k() returns:
2 * (x + 1) = 2 * (9 + 1) = 20
Now The function h() returns:
x*x + k(x)-1 = 9*9 + (20-1) = 81 + 19 = 100
h(9) = 100
Now The function g() returns:
4 * h(x) = 4 * h(9) = 4 * 100 = 400
Hence
x2 = 400c. x3 = k(g(2) + h(2))g() returns:
return 4 h(x)
h() returns:
return x*x + k(x)-1
k(2) returns:
return 2 (x + 1)
= 2 ( 3 ) = 6
Now going back to h(2)
x * x + k(x)-1 = 2*2 + 6 - 1 = 9
Now going back to g(2)
4 h(x) = 4 * 9 = 36
So k(g(2) + h(2)) becomes:
k(9 + 36 )
k(45)
Now going to k():
return 2 (x + 1)
2 (x + 1) = 2(45 + 1)
= 2(46)
= 92
So k(g(2) + h(2)) = 92
Hence
x3 = 92d. x4 = f(0) + f(1) + f(2)Compute f(0)
f() returns:
return g(0) + math.sqrt(h(0))
f() calls g() and h()
g() returns:
return 4 * h(0)
g() calls h()
h() returns
return 0*0 + k(0)-1
h() calls k()
k() returns:
return 2 * (0 + 1)
2 * (0 + 1) = 2
Going back to caller function h()
Compute h(0)
0*0 + k(0)-1 = 2 - 1 = 1
Going back to caller function g()
Compute g(0)
4 * h(0) = 4 * 1 = 4
Going back to caller function f()
compute f(0)
g(0) + math.sqrt(h(0)) = 4 + 1 = 5
f(0) = 5
Compute f(1)
f() returns:
return g(1) + math.sqrt(h(1))
f() calls g() and h()
g() returns:
return 4 * h(1)
g() calls h()
h() returns
return 1*1 + k(1)-1
h() calls k()
k() returns:
return 2 * (1 + 1)
2 * (1 + 1) = 4
Going back to caller function h()
Compute h(0)
1*1 + k(1)-1 = 1 + 4 - 1 = 4
Going back to caller function g()
Compute g(1)
4 * h(1) = 4 * 4 = 16
Going back to caller function f()
compute f(1)
g(1) + math.sqrt(h(1)) = 16 + 2 = 18
f(1) = 18
Compute f(2)
f() returns:
return g(2) + math.sqrt(h(2))
f() calls g() and h()
g() returns:
return 4 * h(2)
g() calls h()
h() returns
return 1*1 + k(2)-1
h() calls k()
k() returns:
return 2 * (2+1)
2 * (3) = 6
Going back to caller function h()
Compute h(2)
2*2 + k(2)-1 = 4 + 6 - 1 = 9
Going back to caller function g()
Compute g(2)
4 * h(2) = 4 * 9 = 36
Going back to caller function f()
compute f(2)
g(2) + math.sqrt(h(2)) = 36 +3 = 39
f(1) = 13.7
Now
x4 = f(0) + f(l) + f(2)
= 5 + 18 + 39
= 62
Hence
x4 = 62e. x5 = f(-1) + g(-1) + h(-1) + k(-1)Compute f(-1)
f() returns:
return g(-1) + math.sqrt(h(-1))
f() calls g() and h()
g() returns:
return 4 * h(-1)
g() calls h()
h() returns
return 1*1 + k(-1)-1
h() calls k()
k() returns:
return 2 * (-1+1)
2 * (0) = 0
Going back to caller function h()
Compute h(-1)
-1*-1 + k(-1)-1 = 1 + 0 - 1 = 0
Going back to caller function g()
Compute g(-1)
4 * h(-1) = 4 * 0 = 0
Going back to caller function f()
compute f(-1)
g(-1) + math.sqrt(h(-1)) = 0
f(-1) = 0
Compute g(-1)
g() returns:
return 4 * h(-1)
g() calls h()
h() returns
return 1*1 + k(-1)-1
h() calls k()
k() returns:
return 2 * (-1+1)
2 * (0) = 0
Going back to caller function h()
Compute h(-1)
-1*-1 + k(-1)-1 = 1 + 0 - 1 = 0
Going back to caller function g()
Compute g(-1)
4 * h(-1) = 4 * 0 = 0
g(-1) = 0
Compute h(-1)
h() returns
return 1*1 + k(-1)-1
h() calls k()
k() returns:
return 2 * (-1+1)
2 * (0) = 0
Going back to caller function h()
Compute h(-1)
-1*-1 + k(-1)-1 = 1 + 0 - 1 = 0
h(-1) = 0
Compute k(-1)
k() returns:
return 2 (x + 1)
k(-1) = 2 ( -1 + 1 ) = 2 ( 0 ) = 0
k(-1) = 0
x5 = f(-1) + g(-1) + h(-1) + k(-1)
= 0 + 0 + 0 + 0
= 0
Hence
x5 = 0When you use Word's Email option to share a document, you should edit the _____ line to let the recipient know the email is from a legitimate source.
Answer:
Subject line
Explanation:
Editing the subject line is very important so as to enable the recipient know the source of received the message (document).
For example, if a remote team working on a project called Project X receives a shared document by one member of team, we would expect the subject line of the email to be– Project X document. By so doing the legitimacy of the email is easily verified.
Some network applications defer configuration until a service is needed. For example, a computer can wait until a user attempts to print a document before the software searches for available printers.
What is the chief advantage of deferred configuration?
Answer:
The drivers wont be loaded and the deamons will not be running in the background unnecessarily, that makes the processes to run more faster
Explanation:
The chief advantage of deferred configuration or the advantage when some network applications defer configuration until a service is needed is that the drivers won't be loaded and the deamons will not be running in the background unnecessarily or when idle, that makes the processes to run more faster.
Network configuration is the activity which involves setting up a network's controls, flow and operation to assist the network communication of an organization or network owner.
If distances are recorded as 4-bit numbers in a 500-router network, and distance vectors are exchanged 3 times/second, how much total bandwidth (in bps) is used by the distributed routing algorithm
Answer:
A total of 6,000 bps of bandwidth is used by the distributed routing algorithm
Explanation:
This is a bandwidth requirement question.
We proceed as follows;
To calculate the total number of bits for a routing table, we use the following formula;
Routing table=Number of routers * length of cost
we are given the following parameters from the question;
Number of routers = 500
length of cost = 4 bits
Routing table = 500*4
=2000
Hence, a routing table is 2000 bits in length.
Now we proceed to calculate the bandwidth required on each line using the formula below;
Bandwidth = no.of seconds * no.of bits in routing table
Bandwidth required on each line = 3*2000
=6000
An algorithm that could execute for an unknown amount of time because it depends on random numbers to exit a function may:_______
a. have a redundancy.
b. get caught in an infinite loop.
c. suffer from indefinite postponement.
d. issue a compiler error.
Answer:
c. suffer from indefinite postponement.
Explanation:
Algorithm is a set of rules that are followed in calculations or other problem solving operation by a computer. An algorithm may execute for unknown amount of time and it may suffer indefinite postponement. Algorithm depends on random numbers and it can execute continuously.
Description:
Create a program that converts the number of miles that you walked on a hike to the number of feet that you walked.
Console:
Hike Calculator
How many miles did you walk?: 4.5
You walked 23760 feet.
Continue? (y/n): y
How many miles did you walk?: 2.5
You walked 13200 feet.
Continue? (y/n): n
Bye!
Specifications:
The program should accept a float value for the number of miles.
Store the code that gets user input and displays output in the main function.
There are 5280 feet in a mile.
Store the code that converts miles to feet in a separate function. This function should return an int value for the number of feet.
Assume that the user will enter a valid number of miles.
Answer:
The programming language is not stated (I'll answer using C++)
#include <iostream>
using namespace std;
int convert(float miles)
{
return miles * 5280;
}
int main() {
cout<<"Console:"<<endl;
cout<<"Hike Calculator"<<endl;
float miles;
char response;
cout<<"How many miles did you walk?. ";
cin>>miles;
cout<<"You walked "<<convert(miles)<<" feet"<<endl;
cout<<"Continue? (y/n): ";
cin>>response;
while(response == 'y')
{
cout<<"How many miles did you walk?. ";
cin>>miles;
cout<<"You walked "<<convert(miles)<<" feet"<<endl;
cout<<"Continue? (y/n): ";
cin>>response;
}
cout<<"Bye!";
return 0;
}
Explanation:
Here, I'll explain some difficult lines (one after the other)
The italicized represents the function that returns the number of feet
int convert(float miles)
{
return miles * 5280;
}
The main method starts here
int main() {
The next two lines gives an info about the program
cout<<"Console:"<<endl;
cout<<"Hike Calculator"<<endl;
float miles;
char response;
This line prompts user for number of miles
cout<<"How many miles did you walk?. ";
cin>>miles;
This line calls the function that converts miles to feet and prints the feet equivalent of miles
cout<<"You walked "<<convert(miles)<<" feet"<<endl;
This line prompts user for another conversion
cout<<"Continue? (y/n): ";
cin>>response;
This is an iteration that repeats its execution as long as user continue input y as response
while(response == 'y')
{
cout<<"How many miles did you walk?. ";
cin>>miles;
cout<<"You walked "<<convert(miles)<<" feet"<<endl;
cout<<"Continue? (y/n): ";
cin>>response;
}
cout<<"Bye!";
nside of your organization that checks how often client machines access it. If a client machine hasn't accessed the server in three months, the server won't allow the client machine to access its resources anymore. What can you set to make sure that your client machines and the server times are in sync
Complete Question:
Let's say that you handle the IT systems administration for your company. There's a server inside of your organization that checks how often client machines access it. If a client machine hasn't accessed the server in three months, the server won't allow the client machine to access its resources anymore. What can you set to make sure that your client machines and the server times are in sync?
Answer:
Network Time Protocol (NTP).
Explanation:
As the IT systems administrator, you can set the network time protocol (NTP) to make sure that your client machines and the server times are in synchronization.
A network time protocol (NTP) can be defined as an internet standard protocol which is used by an IT system administrator to synchronize a computer's clock to a particular time reference over packet switched or local area network (LAN) and variable-latency data networks. NTP was developed at the University of Delaware by Professor David L. Mills.
Basically, the network time protocol uses the coordinated universal time (UTC) and a client-server model to measure the total round-trip delay for a computer process.
Steve wants to take charge of his finances. To do so, he must track his income and expenditures. To accurately calculate his take-home pay, Steve must use his __________.
Answer:brain
Explanation:
to think
Assuming a Stop-and-Wait system, if the bandwidth-delay product of a channel is 500 Mbps and 1 bit takes 25 milliseconds to make the roundtrip, what is the bandwidth-delay product? If the data packets are 2500 bits in length, what is the utilization?
Answer:
Bandwidth delay product = 2500 Kbits
Utilization = 0.02%
Explanation:
We proceed as follows;
From the question, we are given that
band width = 500 Mbps
The bandwidth-delay product is = 500 x 10^6 x 25 x 10^-3
= 2500 Kbits
The system can send 12500 Kbits during the time it takes for the data to go from the sender to the receiver and then back again.
However, the system sends only 2500 bits.
The the link utilization =
2500/(12500 x 10^3) = 0.02%
An organization is struggling to differentiate threats from normal traffic and access to systems. A security engineer has been asked to recommend a system that will aggregate data and provide metrics that will assist in identifying malicious actors or other anomalous activity throughout the environment. Which of the following solutions should the engineer recommend?a. Web application firewall b. SIEM c. IPS d. UTM e. File integrity monitor
Answer:
b. SIEM.
Explanation:
In this scenario, an organization is struggling to differentiate threats from normal traffic and access to systems. A security engineer has been asked to recommend a system that will aggregate data and provide metrics that will assist in identifying malicious actors or other anomalous activity throughout the environment. The solution the engineer should recommend is the Security information and event management (SIEM).
Security information and event management is an enterprise software that provides a holistic view and analyzes activity from various resources across an entire information technology (IT) infrastructure.
The SIEM is used to aggregate important data from multiple source such as servers, routers, firewall, switches, domain controllers, antivirus software and analyzes the data to detect any threat, deviation from the norm, as well as investigate in order to take appropriate actions. Some examples of the SIEM system are IBM QRadar, Splunk, LogRhythm etc.
why does study state that unless you were sleeping it is almost impossible not to be communicating?
Answer:
Because your movements, expressions, and posture are also a type of communication
Explanation:
When you sustain program implementation by staying true to the original design, it is termed A. Goals and objectives B. Program fidelity C. Program evaluation D. Program management
Answer:
Program fidelity
Explanation:
A bit shift is a procedure whereby the bits in a bit string are moved to the left or to the right.
For example, we can shift the bits in the string 1011 two places to the left to produce the string 1110. Note that the leftmost two bits are wrapped around to the right side of the string in this operation.
Define two scripts, shiftLeft.py and shiftRight.py, that expect a bit string as an input.
The script shiftLeft shifts the bits in its input one place to the left, wrapping the leftmost bit to the rightmost position.
The script shiftRight performs the inverse operation.
Each script prints the resulting string.
An example of shiftLeft.py input and output is shown below:
Enter a string of bits: Hello world!
ello world!H
An example of shiftRight.py input and output is shown below:
Enter a string of bits: Hello world!
!Hello world
Answer:
Following are the code to this question:
Defining method shiftLeft:
def shiftLeft(bit_string): #defining method shiftLeft, that accepts parameter bit_string
bit_string= bit_string[1:]+bit_string[0]#use bit_string to provide slicing
return bit_string#return bit_string value
bit_string =input("Enter value: ")#defining bit_string variable for user input
print (shiftLeft(bit_string))#use print method to call shiftLeft method
Defining method shiftRight:
def shiftRight(bit_string):#defining method shiftRight, which accepts bit_string variable
bit_string=bit_string[len(bit_string)-1]+bit_string[0:len(bit_string)-1]#using bit_string variable for slicing
return bit_string#return bit_string calculated value
bit_string= input("Enter value: ")#defining bit_string variable for user input
print(shiftRight(bit_string))#use print method to call shiftLeft method
Output:
Please find the attachment.
Explanation:
method description:
In the above-given python code two methods "shiftLeft and shiftRight" are declared, in which both the method accepts a string variable "bit_string". Inside methods, we use the slicing, in which it provides to use all the sequence values and calculated the value in this variable and return its value. At the last step, the bit_string variable is used to input value from the user end and call the method to print its value.