Answer:
p(x,n)
1. if(n==0) [if power is 0]
2. then result =1.
3.else
4. { result=1.
5. for i=1 to n.
6. { result = result * x. } [each time we multiply x once]
7. return result.
8. }
Let's count p(3,3)
3
0, so come to else part.
i=1: result = result *3 = 3
i=2: result = result *3 = 9
i=2: result = result *3 = 27
Explanation:
here the for loop at step 4 takes O(n) time and other steps take constant time. So overall time complexity = O(n)
Every node connects to a central network device. like a hub, switch, or computer.
Answer:
4160000 bytes
Explanation:
One page = 52 lines of text
One line of text = 80 characters
=> One page = 80 x 52 = 4160 characters
Therefore, 500 pages of text will have 4160 x 500 characters = 2080000 characters.
Since 1 character takes up 2 bytes of computer memory, it impleies that a 500 page novel will take up 2080000 x 2 bytes = 4160000 bytes.
Answer:
True
Explanation:
Domain extensions always appear at the end of a website's address.
It's a means to categorise websites.
.edu domains are used for educational purposes
.gov are restricted to by government entities
.org is largely used by nonprofit websites.
While
.net is derived from the word network, indicating it was originally intended for organizations involved in networking technologies, such as Internet service providers and other infrastructure companies
.biz is intended for registration of domains to be used by businesses
The right domain extension adds credibility and memorability to your website by aligning it with a specific brand purpose.