Certain ways exist to simplify the process of data sharing between programs.some of these ways are;
A) When there are two programs that are not running at the same time,then the pipes or the sockets won't be able to work as their buffers would not be able to hold large files because they are small.
Looking at this scenerio,shared memory can be used.
The Sysv IPC shared memory API, POSIX shared the memory API or rather files on a tmpfs system of files can actually be used for shared memory operations.
B) Another possible solution can be named file. Instead of using an unnamed and shell pipeline,a name pipeline them uses the file system.
However,it can be treated with the use of mkfifo() or mknod() commands and then two separate programs or also processes can as well access the pipe by making use of the name of the pipe.
But one process(program) can actually open the pipe but as a reader for reading purposes and the other for writing purposes as a writer.
wordList is a list of words that currently contains the values ["tree", "rock", "air"]
Which of the following lines will result in the list containing the values ["air", "rock", "air"]
A. wordList[0] = wordList[2]
B. wordList[2] = wordList[O]
C.insertitem(wordList, O, "air")
D. removeltem(wordList,0)
Answer:
A. wordList[0] = wordList[2]
Explanation:
Required
Which line would give ["air", "rock", "air"]
From the question, we have that:
wordList = ["tree", "rock", "air"]
which means that:
wordList[0] = "tree"
wordList[1] = "rock"
wordList[2] = "air"
Analyzing the options.
A. wordList[0] = wordList[2]
This will assign the item in wordList[2] to wordList[0].
and the result would be
So:
wordList[0] = "tree"
would change to
wordList[0] = "air"
The new content of wordList would then be ["air", "rock", "air"]
Option (A) answers the question
The list variable wordList contains three string values, Hence, to obtain the list, ["air", "rock", "air"], the lines wordList[0] = wordList[2] would be used.
List values are indexed from 0 ; hence, tree = index 0 ; rock = index 1 ; air = index 2 To assign the the string "tree" to index 0, then wordList[2] is assigned to wordList[0].wordList[0] is now "air"Hence, the required line of code would be wordList[0] = wordList[2]
Learn more :https://brainly.com/question/19117781
Armstrong Numbers Programming challenge description: An Armstrong number is an n-digit number that is equal to the sum of the nth powers of its digits. Determine if the input numbers are Armstrong numbers. Input: Your program should read lines from standard input. Each line has a positive integer. Output: Print out True if the number is an Armstrong number, or False if not. Test 1 Test Input 351 Expected Output False
Answer:
Written in Python
number = int(input("Enter a number: "))
computesum = 0
lent = len(str(number))
for digit in str(number):
computesum += int(digit)**lent
if number == computesum:
print("true")
else:
print("false")
Explanation:
This line prompts user for Input input
number = int(input("Enter a number: "))
This line initialises the sum of the nth power of the digits to 0
computesum = 0
This line gets the length of input (i.e. number of digits)
lent = len(str(number))
The following iteration iterates through the digit to check for Armstrong numbers
for digit in str(number):
computesum += int(digit)**lent
This checks if the input number equals the computed sum
if number == computesum:
print("true") --- if yes, "true" is printed
else:
print("false") --- if otherwise, "false" is printed
See attachment for complete program in its right format
Write a function named getResults that accepts radius of a sphere and returns the volume and surface area. Call this function with radius = 3.5 , and display results in one decimal format.
volume = 4/3 * pi * r ^ 3
Surface Area = 4pi * r ^ 2
Python
def getResults():
radius = float(input())
pi = 3.1415
volume = 4/3 * pi * radius ** 3
surfaceArea = 4*pi * radius ** 2.0
print (volume)
print (surfaceArea)
getResults()
C#:
public static void Main(string[] args)
{
getResults(Convert.ToDouble(Console.ReadLine()));
}
public static double[] getResults(double radius)
{
double radiusObj = radius;
double volume = 1.33333333333 * Math.PI * Math.Pow(radiusObj, 3);
double surfaceArea = 4 * Math.PI * Math.Pow(radiusObj, 2) ;
double[] surfaceAndVolume = { volume, surfaceArea };
Console.WriteLine(volume.ToString());
Console.WriteLine(surfaceArea.ToString());
return surfaceAndVolume;
}
Java:
public static void main(String[] args)
{
Scanner scanner = new Scanner(System.in);
getResults(scanner.nextDouble());
}
public static double[] getResults(double radius)
{
double radiusObj = radius;
double volume = 1.33333333333 * Math.PI * Math.pow(radiusObj, 3);
double surfaceArea = 4 * Math.PI * Math.pow(radiusObj, 2) ;
double[] surfaceAndVolume = { volume, surfaceArea };
System.out.println(volume);
System.out.println(surfaceArea);
return surfaceAndVolume;
}
Explain
the three types of periodic
maintanance. .
Answer:
poop i think
Explanation:
uestion
7. If you want to learn how to perform an action, which feature of the Excel window should you use?
A. Quick Access toolbar
B. Tell Me box
C. Status bar
D. File tab
Please help ASAP
13 List five examples of functionality that can be added when using express
cards?
Answer:
This Answer Was Pasted Over From ayushisingh5
Explanation:
ExpressCards can connect a variety of devices to a computer including mobile broadband modems (sometimes called connect cards), IEEE 1394 (FireWire) connectors, USB connectors, Ethernet network ports, Serial ATA storage devices, solid-state drives, external enclosures for desktop-size PCI Express graphics cards and ...
What are some areas in Computer Science that make use of multivariate statistical testing or MCM methods? Explain why they are used.
Explanation:
Computational modeling is one of the areas of Computer Science that uses mathematical systems to perform multivariate statistical tests to solve highly complex problems in multidisciplinary areas, such as medicine, engineering, science, etc.
An example of the use of multivariate statistical tests is social development research in social science, which uses multiple variables to find more hypotheses and greater coverage between variables.
Multivariate statistical tests have the benefit of making research more effective and providing a more systematic and real view of the study.
Which kind of storage has a spinning platter?
magnetic hard disk
O server
O solid state hard disk
O cloud
Answer:
Magnetic hard disk
Explanation:
The type of storage that has a spinning platter is called MAGNETIC HARD DISK reason been that MAGNETIC HARD DISK are made up of one or more disks that are been covered with a magnetic coasting or magnetic material to help store information or data permanently on a desktop or a computer and lastly this type of disks help to read data and as well write and rewrite data.
When was the information last updated
what is the norm that psychoanalysis of Freud deviates?
Answer:
Freud deviates from the norm of current mainstream psychology which has more or less lost its way - if it ever had one - under the influence of the same pressures which produce our dysfunctional politics and our troubled societies at large (technological change, globalisation, and so on).
Explanation:
Creds to Quora
jibran has made a presentation on save environment for a competition. his teacher suggested some changes.which view should be using following changes
Answer:
Jibran has set up five slides in his new presentation and is ready to enter some text. He wants to focus on entering text without having to think about other PowerPoint elements such as graphics, pictures, sound, and animation. The best method for Jibran to enter text is by using which feature of Microsoft PowerPoint?
Sptr is a pointer pointing to the beginning of an array called sarray. To access the value in sarray[3] by using the pointer, you would use:a) *sptr[*3] b) *sptr+3 c) sptr +3 d) *(sptr + 3)
Answer:
The correct option for accessing the value in sarray[3] is : d) *(sptr+3)
Explanation:
a) *sptr[*3] is wrong option because its syntax is not right it will give errors.
b) *sptr+3 is also wrong option because it will add 3 to the value of sarray[0].
c) sptr+3 is wrong option because it will only access the address of sarray[3] not the value it contains.
d) *(sptr +3) is correct syntax for accessing value in sarray[3] by using pointer
Explain why the expected value of an F ratio is 1.00 when the null hypothesis is true if there is no treatment effect the numerator.
Answer:
The reason is that the f ratio is balanced due to the numerator and denominator having equal sources of variability.
Explanation:
The expected value of an F ratio is 1.00 when the null hypothesis is true because in a scenario where there is no treatment effect, we have both the numerator and the denominator of the F ratio both measuring equal sources of variability.
Whenever this happens then the F ratio will be balanced and also it will have a value that is near 1.00.
In the Allow list box in the Data Validation dialog box,the _____ option means that the cell will accept only times.A) ChronologyB) ClockC) TimeD) Calendar
Answer:
C) Time
Explanation:
Given that Data validation is a feature in Microsoft Excel in which a user used to specify or determines the type of value or characters that can be typed or entered into a cell.
For example, using data validation to ensure a value of a number is whole numbers, or to ensure character entry is less than 25 characters.
Hence, in this case, the correct answer is the TIME option, will only result in cell accepting only times.
When would it be necessary to edit the information shown on an electronic business card?
Answer:
It's D dear
Explanation:
Answer:
D. to show only relevant information to people inside your organization
Explanation:
hope this helps :)
kali linux os and window os who is the best
Answer:
Windows
Explanation:
It is down to preference. I prefer windows due to its large compatibility with a wide range of apps.
Answer:
It is only what you prefer
Explanation:
im doing programming with kali and i have no problems. although windows is more user friendly and what people use on a day to day, kali is for pentsters mostly.
What is the advantage of using a translation look-aside buffer (TLB), also called associative memory, in the logical-physical address mapping process? Explain how the logical-physical address mapping logic works using an inverted page table. When does the MMU detect page-fault? Explain four of the main steps for resolving page faults.
Answer:
A) The advantage of using TLB is that it is used for storing the recent transactions of the virtual memory to the physical memory and this is used for the sole purpose of fast retrieval of data
B) When using an inverted table the logical-physical address mapping logic works as a hashing function by connecting pieces of the hardware of logical address and getting them translated to the physical address. this hash function in turn generates the index to the frame table
C) The MMU detect page-fault when there is an exception been raised by the computer when a program is ran to access a memory page and this program is not mapped out by the MMU in the process
The four steps are :
The first step is to check on the memory address requested to make sure of a valid memory request.
The second step is to setup A free frame and a disk operation that is scheduled for getting the necessary page from the disk.
As the the I/O is been completed the processor table is been updated
Finally the Instruction will get restarted from the beginning indicating what might have been caused by a page fault.
Explanation:
A) The advantage of using TLB is that it is used for storing the recent transactions of the virtual memory to the physical memory and this is used for the sole purpose of fast retrieval of data
B) When using an inverted table the logical-physical address mapping logic works as a hashing function by connecting pieces of the hardware of logical address and getting them translated to the physical address. this hash function in turn generates the index to the frame table
C) The MMU detect page-fault when there is an exception been raised by the computer when a program is ran to access a memory page and this program is not mapped out by the MMU in the process
The four steps are :
The first step is to check on the memory address requested to make sure of a valid memory request.
The second step is to setup A free frame and a disk operation that is scheduled for getting the necessary page from the disk.
As the the I/O is been completed the processor table is been updated
Finally the Instruction will get restarted from the beginning indicating what might have been caused by a page fault.
different between input and output device
Answer:
An input device is something you connect to a computer that sends information into the computer. An output device is something you connect to a computer that has information sent to it.
Explanation:
help plz!!!!!!!!!! neeeeeeeeeeeeeeeeeeeeeeeeeeeeeedddddddddddd heeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeelllllllllppppppppppppppppppppppppppppppppppppppppppppppppppppppp
Answer:
how to those with other people is so good if you have
Answer:
for what what is your questions
anthill is to ant _________ is as to king
Answer: palace or castle
Explanation: the anthill is the big place where the ants live and the palace is the big place where the king lives.
A server process in Host B has a welcoming socket at port 977. What will trigger the server process to create a connection socket?
Answer:
Explanation:
This connection socket will be created when Host B receives a TCP SYN segment that contains the destination port number 977. This means that there is data that is trying to enter through that port number, as a welcoming socket this destination is available and when data requests access through it the OS creates a connection socket using Host B in order to allow access to the TCP SYN segment.
Originally, Java was used to create similar apps as what other language?
Perl
Python
CSS
Javascript
Answer:
Python
Explanation:
Took the test
Originally, Java was used to create similar apps as other languages, which as python. The correct option is b.
What are computer languages?The computer languages are Java and Python is in their conversion; the Java compiler converts Java source code into an intermediate code known as bytecode, whereas the Python interpreter converts Python source code into machine code line by line.
Curly braces are used in Java to define the beginning and end of each function and class definition, whereas indentation is used in Python to separate code into separate blocks.
Multiple inheritances is done partially through interfaces in Java, whereas Python continues to support both solitary and multiple inheritances.
Therefore, the correct option is b. Python.
To learn more about computer languages, refer to the below link:
https://brainly.com/question/14523217
#SPJ2
If process P0 is switched to process P1, state for P0 will be saved into ____, and state from ___ will be reloaded.
Answer:
1. PCB0
2. PCB1
Explanation:
Given that PCB is often referred to as Process Control Block, is a form of data structure that is applicable and utilized by the computer operating systems to store all the information concerning a process.
This process is carried out in a way that when Process P0 is initialized, the operating system established a related process that takes the computer processing unit from Process P0 and allocates it to Process P1, the Operating System, in turn, will save P0's PCB, and then reload P1's PCB.
Hence, If process P0 is switched to process P1, the state for P0 will be saved into "PCB0" and the state from "PCB1" will be reloaded.
Write a function that will sum all of the numbers in a list, ignoring the non-numbers. The function should takes one parameter: a list of values (value_list) of various types. The recommended approach for this:
a. create a variable to hold the current sum and initialize it to zero.
b. use a for loop to process each element of the list.
c. test each element to see if it is an integer or a float, and, if so, add its value to the current sum.
d. return the sum at the end.
In python 3.8:
def func(value_list):
lst = [x for x in value_list if type(x) == int or type(x) == float]
return sum(lst)
print(func(["h", "w", 32, 342.23, 'j']))
This is one solution using list comprehensions. I prefer this route because the code is concise.
def func(value_list):
total = 0
for x in value_list:
if type(x) == int or type(x) == float:
total += x
return total
print(func(["h", "w", 32, 342.23, 'j']))
This is the way as described in your problem.
Look at the picture, list down the things you must do to make it more organize
Answer:
The electrical cable
Explanation:
The most dangerous is the electrical cable to be organised as much as you can as in case any damage or not double insulation could cause a harm to the people.
Consider a distributed denial of service (DDOS) attack, Assume the attacker has compromised a number of broadband connected computers to use as zombie systems. If the ISP provides a maximum uplink data rate of 512 Kbps in ADSL, what is the maximum number of 512-byte ICMP echo request (ping) packets a single zombie computer can send per second? How many such zombie systems would the attacker need to flood a target server in an organization that has
a. A Fast Ethernet.
b. A Gigabit Ethernet.
Answer:
A ) 200 Zombie systems
B ) 200 Zombie systems
Explanation:
maximum uplink data rate : 512 kbps = 512 * 1000 * 8 = 4096000 bits/sec
Determine the number of 512 byte ICMP echo packets = 512 * 8 = 4096 bits
hence the maximum number of 512-byte ICMP echo request (ping) packets a single zombie computer can send per second = 400 packets/sec
i.e. for 512kbps = 400 packets/sec
Determine the number of Zombie systems that the attacker will need to flood a target server
A) For a fast ethernet
A fast ethernet = 100 mbps
The number of Zombie systems needed = 1 zombie system * 200
and 1 zombie system = 512 kbps
therefore for a Fast ethernet the number of zombies systems needed = 200
B) For A Gigabit Ethernet
same as a fast ethernet system i.e. = 200
meaning of leanness in organization
A new version of your operating system is released with several changes made to the transport layer protocols. Specifically, TCP has been removed completely but UDP was not changed. What specific changes must be made to your application to accomodate these changes?
Answer:
Throughout the description section down, the overview and per the instance.
Explanation:
Throughout terms of communicating and maintaining a link between the application as well as the network, TCP protocols were essential. The program would not be linked or activated if the TCP has indeed been fully disabled. The essential TCP protocol that enables the application to be linked from over network become HTTP as well as HTTPS. Almost all of the significant protocols needed to operate some programs are based primarily on TCP protocols. Besides, as SSH would not operate as a TCP protocol, the OS would not be remotely linked.Therefore, that would also make it impossible for all the administrators to operate upon this system.
Consider sending a packet from a source host to a destination host over a fixed route. List the delay components in the end-to-end delay. Which of these delays are constant and which are variable? Draw a picture to illustrate your network and where each type of delay occurs.
The delay components in the end-to-end delay are processing delay, Transmission delay, Propagation delay, and Queuing delay.
What is an end-to-end Delay?End-to-end delay, also known as one-way delay, is the length of time it takes for a packet to go from its source to its destination across a network. It is a word frequently used in the monitoring of IP networks, and it varies from round-trip time in that only the path from source to destination is measured.
Now according to the question, the propagation, transmission, and processing delays are all constant. The time required to send data bits is the cause.
Variable queuing delays exist.
The waiting time is dependent on packet size, and only one packet can be transferred at a time in the queue process.
To get more information about End-to-End delay :
https://brainly.com/question/28584250
#SPJ2
a good look of a web page depends upon?
Answer:
Depends mostly on your opinion