Smtp : Simple Mail Transfer Protocol
Good luck and I hope u can find the right answer
Answer:
The program to this question as follows:
Program:
quote="You can always edit a bad page. You can’t edit a blank page."
name="Jodi Picoult"
print("Quote:\n",quote)
print ('\t\t\t\t\t\t\t',"Author name-", name)
Output:
Quote:
You can always edit a bad page. You can’t edit a blank page.
Author name- Jodi Picoult
Explanation:
In the above python code, two variable "quote and name" is defined, in which variable both variable holds some string value.
- In the next line, the print function is defined, that first print "Quote" as a message, and for line breaking "\n" is used, then print quote variable value.
- In the last step, first, we use "\t" for line spacing then message "Author name-", and then name variable value.
Answer:
4) 3 11 44
Explanation:
Given data
int [] val = { 3, 10, 44 };
The total number of parameters of given array are 3, so total length of array is also 3.
The indexing of array starts with '0', Therefore the indexes of array with length zero are: {0,1,2}
The value of array at index 0 is = 3
similarly,
value at index 1 = 10
value at index 2 = 44
Here, Int i = 1 is storing the value '1' in integer variable i.
In addition to that, any value of index 'i' of an array is selected using array[i].
Therefore,
val[i] is selecting the value of array located at index '1' because i = 1.
val[i] = val[1] = 10
val[i]+1 is selecting the value of array located at index 'i' that is (1) and adding 1 to it
=> val[i] = 10
=> val[i]+1 = 10+1 = 11
Finally,
val[i] = val[i]+1; is copying the val[i]+1 = 11 to value placed at index 1 (10). Hence, the output would be {3 11 44}. So 4th option is correct.