Answer: C
<span>Explanation: C) Mobile users read messages one screen at a time; therefore, divide your message into small "chunks" of information.</span>
Answer:
The program in recursion is:
def find_max(nums):
if len(nums) == 0:
return "None"
elif len(nums) == 1:
return nums[0]
else:
return max(nums[0],find_max(nums[1:]))
Explanation:
This line defines the function
def find_max(nums):
This checks if the list is empty.
if len(nums) == 0:
If yes, it returns "None"
return "None"
If the list has just one element
elif len(nums) == 1:
It returns the only element as the maximum
return nums[0]
If the list has numerous elemente
else:
The maximum is determined recursively
return max(nums[0],find_max(nums[1:]))
To the (b) part:
<em>This program does not necessarily need to be done recursively because the max built-in function can be used to determine the maximum of the list in just one line of code and it is more efficient.</em>
Answer:
{"double", "char", "char", "double"} will be stored in word.
Explanation:
Given the word is an array of four strings, {"algorithm", "boolean", "char", "double"}. Hence, the length of the word array is 4.
The for-loop will only run for two iterations due to i < word.length/2, with i = 0 (first loop) and i = 1 (second loop).
In the first loop,
- word[word.length - 1 - i] = word[4 - 1 - 0] = word[3] = "double"
- Hence, the string "double" will be assigned to word[0] and overwrite "algorithm"
In the second loop,
- word[word.length - 1 - i] = word[4 - 1 - 1] = word[2] = "char"
- Hence, the string "char" will be assigned to word[1] and overwrite "boolean"
At last, the word array will hold {"double", "char", "char", "double"}
Answer:
Five provisions of cyber ethics are:
Your computer or system should not be used to harm others. Your cyber knowledge should not be used to steal other people's resources. One should not use or copy softwares for which you have not paid. ... Never use other people's resources without their consent.
Answer:
C.
Explanation:
The elements involved in the evaluation of the presentation of a speech includes visual aids, vocal technique, and body language.
Adding vivid pictures in the presentation makes it graphic and proficient. The visual aids in presentation also provides the succinct and clear meaning of the message to the reader.
The vocal technique is another element that adds value in presentation. A speaker's confidence is reflected through his/her tone. It is the speaker's voice that becomes an influential tool that draws the audience's attention.
Body language, like vocal technique, helps in effective delivering of the speech. Body language is a non-verbal form of communicatin that communicates a lot to the audience than one can imagine.
Therefore, option C is correct.