Solution :
check_palindrome
lower_
_string
string
_lower()
Let stack = new Stack()
Let queue = new Queue();
for each character c in lower_case_string:
stack.push(c);
queue.enqueue(c);
let isPalindrome = true;
while queue is not empty {
if (queue.remove().equals(stack.pop())) {
continue;
} else {
isPalindrome=false;
break while loop;
}
}
return isPalindrome
Input = aabb
output = true
input =abcd
output = false
Answer:
C. real time web access
Explanation:
Real time web access can be used to demonstrate how to do something special on the web, such as displaying articles found on websites that support your topic.
It can also be used to it provide a sense of immediacy to your speech.
It involves employing a live internet feed as a visual media or information resource during a speech, that is using a real time video online to deliver your speech.
Answer:
Please find in attachment.
Explanation:
The details in attachment are self explanatory.
Answer:
#here is code in python
#recursive function to find nth Fibonacci term
def nth_fib_term(n):
#if input term is less than 0
if n<0:
print("wronng input")
# First Fibonacci term is 0
elif n==0:
return 0
# Second Fibonacci term is 1
elif n==1:
return 1
else:
#find the nth term of Fibonacci sequence
return nth_fib_term(n-1)+nth_fib_term(n-2)
n=int(input("please enter the term:"))
print(n,"th Fibonacci term is: ")
print(nth_fib_term(n))
Explanation;
Read the term "n" which user wants to know of Fibonacci sequence.If term term "n" is less than 0 then it will print "wrong input". Otherwise it will calculate nth term of Fibonacci sequence recursively.After that function nth_fib_term(n) will return the term. Print that term
Output:
please enter the term:7
7 th Fibonacci term is:
13