I have write a very simple code for you in python and i hope it will help you a lot.
def generateString(char, val):
print(char * val)
Explanation:
This is how you can create your function in python and this function will give you the desired output.
How to Call a function:
generateString('a',12)
this is how you can call the function to get output.
I hope you get the idea.
Answer:
O(N!), O(2N), O(N2), O(N), O(logN)
Explanation:
N! grows faster than any exponential functions, leave alone polynomials and logarithm. so O( N! ) would be slowest.
2^N would be bigger than N². Any exponential functions are slower than polynomial. So O( 2^N ) is next slowest.
Rest of them should be easier.
N² is slower than N and N is slower than logN as you can check in a graphing calculator.
NOTE: It is just nitpick but big-Oh is not necessary about speed / running time ( many programmers treat it like that anyway ) but rather how the time taken for an algorithm increase as the size of the input increases. Subtle difference.
Answer: Memory hierarchy is the hierarchy that is created on the basis of the response time of different memories. The performance obtained by the memory helps in creating a computer storage space in distinguished form. The factors considered for the creating of the hierarchy structure are usually response time, storage capacity, complexity etc.
Usage of different kind of memories take place due to different kind of requirements from the system which cannot be fulfilled using one memory device.The requirement is based on saving time, decreasing complexity , improving performance etc.Example of requirements can be like some functions and files do not require much space , some might require quick accessing,etc.
Thus hierarchy of any particular system is in the form of fast to slow order from registers,cache memory, Random access memory(RAM) and secondary memory.
Answer:
True on a web page such meta name will not appear in web view source and irrelevant information will be displayed.
Explanation:
Basically web page source is compiled version of HTML script so the end-user he or she tries to view pages system will show only in HTML.
so meta name information and active object information will not be displayed while viewing the web source code instead of that the irrelevant informant ions will be displayed and end-user cannot under anything out of the web source code.
Moreover, even the client side validation script also will not be displayed.
Only HTML will be displayed
Answer:
Remote access VPN
Explanation:
The solution that represents the majority of VPN's on the markets and is commonly referred to as a VPN appliance is the Remote access VPN
A remote access VPN is a type of VPN that works by creating a virtual channel (appliance ) between different devices for the purpose of exchanging data in an encrypted form. although this Tunnel passes through the public internet the Data exchanged are only accessible by the devices connected via the tunnel only .
The remote access VPN is mostly used to connect an employee to the company's network therefore it represent the majority of VPNs in the market.