Answer:
def length( mystring):
count = 0
for i in mystring:
count += 1
return count
def reversed( mystring):
strlist = []
for i in range(length(mystring)):
strlist.append(mystring[(length(mystring) - 1) - i])
txt = "".join(strlist)
return txt
string = 'Yolanda'
print(reversed(string))
Explanation:
The python module defines two functions 'reversed' and 'length'. The length function counts the number of characters in a string variable while the reversed function reverses the string variable value.
1. The best option is C) pick an object at random, and keep track of how many copies of an object are left in a game.
2. The best option is D) clockwise and counterclockwise.
3. your 3rd question does not seem to be clear to me.
Ithink that the answer is C)
Answer:
20 will be displayed on the console.
Explanation:
Given code is:
var numList = [10,20,30];
console.log(numList[numlist.length-2]);
The first line of code declares an array named numList and assigns it values given in the square brackets.
The second line of code is written to display the element on the index obtained by [numlist.length-2]
[numlist.length-2] means the second index.
Hence,
after running the code on JavaScript editor and dry running the code
20 will be displayed on the console.
Answer:
The maximum value that are represented as unsigned n -bit binary integer is
. The unsigned binary integer refers to the fixed point of the system that does not contain any fractional digits.
The unsigned binary integer contain module system with the power 2. The number of student table in the class is the best example of the unsigned integer. The numbers can be represented by using the binary notation and bits in the computer system.