Answer:
a reverse chronological journaling site.
Explanation:
A blog originally known as weblog, is an online journal containing informational or educational content, it usually displays information from the last added item ( that is why it is called reverse chronological journaling site), it can be personal or for a corporate entity for promoting brand identity.
both software coding and testing occurs during Engineering phase
Answer:
For question one, the first line It is Iteration, The second line is Comparator, the third line is none of these is correct.
Question two, the index based method for (a) is O(1) (b) O(1) (c) O(N) (d) O(N)
Explanation:
<em>Solution to the question</em>
Question 1:
The Iteration operation is required by the Iterable interface.
n application can indicate a specific way to order the elements of a SortedABList list by passing a(n) Comparator so that we can customize the sorting object to a constructor of the list class.
Suppose a list names contains 8 elements. A call to names.add(0, "Albert") results in: (e) None of these is correct
Question 2:
let us assume that the LBList is built on top of a Linked List and the ABList is built on top of an array:
(a) the add method index based is O(1) in the average case and the O(N) in the worst case
(b) The Index based set operation is O(1) since we can simply move to any index of an array of time constant.
(c) It is O(N) since index Of method needs to look for the whole array (based on worst case or average) to get the index
(d) It is O(N) since index Of method needs to find the whole linked list (on worst case or average ) to search the index.
Answer:
Program:
month=['January', 'Februrary', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] #list which stores the name of the month.
CheckMonth= int(input("Enter the number of the month")) #it is used to take the inputs from the user.
if CheckMonth>=1 and CheckMonth<=12: #check the condition for valid month.
print(str(CheckMonth)+" is a valid month which name is: "+ str (month [CheckMonth-1])) #print the name of month which is enter by the user.
else:
print(str(CheckMonth)+" is not a valid month, please enter the valid month") # print for the invalid month.
Output:
- If the user inputs 1, it will prints "1 is a valid month which name is: January".
- If the user inputs is 0, then it will prints "0 is not a valid month, please enter the valid month"
Explanation:
- The above program is in python language, in which the first line of the code is used to hold the list of the month.
- Then the second line is used to render a message for the user input, take the input from the user and save it into a variable.
- Then that value is checked by the if-condition that it lies in between 1 to 12 or not.
- If it lies, then print the valid month otherwise it prints that the month is invalid.