All three JDBC, ADO.NET, and PHP programming languages are used for database connectivity and acess the records. JDBC, ADO.NET, and PHP programming language are used in web page development.
<u>Explanation:</u>
Each has their own plus and minus on programming languages.
JDBC is java based and proper database access driver has to be installed in web server hosting places. JDBC is faster in ‘connectivity and access the database. It supports most of the browser available in the market
ADO.NET is based on visual basic programming languages is used mostly in Microsoft edger and Microsoft internet explorer.
PHP to develop web pages and access database is very limited.
All depends on end user knowledge.
JDBC technology is better.
Answer:
Hi
In the first scenario we have
S = []
then:
S=[1],
S=[2,1]
S=[3,2,1]
S=[2,1]
S=[4,2,1]
S=[2,1]
S=[1]
So when it's call the method peek to S, X will be assigned 1
Explanation:
Stack is a linear data structure which follows a particular order in which the operations are performed. The order may be LIFO(Last In First Out). There are many real-life examples of a stack. Consider an example of plates stacked over one another in the canteen. (Taken from wikipedia)
- The method <em>push</em> is to put the element on the top of the stack
- The method <em>pop</em> is take out the top element of the stack
- The method <em>peek</em> is to see what is the top element of the stack
Answer:
See the code below.
Explanation:
The nth armonic number is obtained from the following induction process:
And for the the n term we have this:
In order to create a code for the ne term we can use the following code using python:
# Code to find the nth armonic
# Function to find n-th Harmonic Number
def armonicseries(n) :
# a1 = 1
harmonic = 1
# We need to satisfy the following formulas:
# an = a1 + a2 + a3 ... +..... +an-1 + an-1 + 1/n
for i in range(2, n + 1) :
harmonic += 1 / i
return harmonic
##############################
And then with the following instructions we find the solution for any number n.
n = 3 # thats the number of n that we want to find
print(round(armonicseries(n),5))
Answer:
Explanation:
I don't know what language you use, but mod is a common command in almost all of them. You could write it like this
for x = 1 to 10 do begin
if x mod 2 = 0 then print x " is even."
id x mod 2 = 1 then print x " is odd."
end;