Answer:
Either there is no solution, as in there has not been a way discovered (An algorithm) to figure it out. In that case, a computer can also not figure it out, as it requires humans to write algorithms to solve the specific problem. The second case is how you interpret it: There are some problems that are just not computable.
Answer: Only 1 string is entered
str(dayWeek) is the only string entered into the function.
str(return) is outputted, not inputted.
Numbers are not strings.
// calculate birth month based on the day of the month, day of the week, and the birth year
// dayMonth {number} - a day of a month from 1 to 31
// dayWeek {string} - the name of the day of the week
// year {number} - the birth year
// return {string} - the month you were born
BirthdayLibrary.birthMonth(dayMonth, dayWeek, year);
Answer:
The correct answer is Option A (A class can only have one parent class (superclass))
Explanation:
The inheritance model is a computer program used in Javascript. This model aimed to make code that has been programmed already still relevant to be used again at any time minimizing errors associated with typing a new code. Inheritance makes the attributes of a particular class valid while still possible to use the attributes of another class.
A child class (subclass) inherits from the parent class (superclass). So, it is a single inheritance once the child class (subclass) inherits from a single parent class (superclass) creating a subclass. A parent class (superclass) is the class that gives its attributes for inheritance.
Answer:
5 seconds
Explanation:
Given that :
Message size = 16kb
Packet size = 2kb
Speed = 4kbps
Number of links = 3
The time taken is calculated using the formula :
[Number of packets + (Number of links - 1)] * (packet size / speed)
Number of packets = message size / packet size
Number of packets = 16kb / 2 kb = 8
Hence,
[Number of packets + (Number of links - 1)] * (packet size / speed)
(8 + (3 - 1)) * (2 / 4)
(8 + 2) * (1 /2)
10 * 1/2
= 5 seconds
Answer:
Answer is provided in the explanation section
Explanation:
Given data:
Bandwidth of link = 10* 106 bps
Length of packet = 12* 103 bits
Distance of link = 40 * 103m
Transmission Speed = 3 * 108 meters per second
Formulas:
Transmission Delay = data size / bandwidth = (L /B) second
Propagation Delay = distance/transmission speed = d/s
Solution:
Transmission Delay = (12* 103 bits) / (10* 106 bps) = 0.0012 s = 1.2 millisecond
Propagation Delay = (40 * 103 meters)/ (3 * 108mps) = 0.000133 = 0.13 millisecond