Q. 1 What Is Difference Between Static and Dynamic Website?
Q. 1 What Is Difference Between Static and Dynamic Website?
Static sites are meant for those sites that can’t be changed or updates regularly.
And Dynamic sites are those sites that changes or update regularly.
Q.2 what is the difference between static RAM and dynamic RAM?
A.2 your computer probably uses both static RAM and dynamic RAM at the same
time, but it uses them for different reasons because of the cost difference between
the two types. If you understand how dynamic RAM and static RAM chips work
inside, it is easy to see why the cost difference is there, and you can also
understand the names. Dynamic RAM is the most common type of memory in use
today. Inside a dynamic RAM chip, each memory cell holds one bit of information
and is made up of two parts: a transistor and a capacitor. These are, of course,
extremely small transistors and capacitors so that millions of them can fit on a
single memory chip. The capacitor holds the bit of information -- a 0 or a 1 (see How
Bits and Bytes Work for information on bits). The transistor acts as a switch that lets
the control circuitry on the memory chip read the capacitor or change its state. A
capacitor is like a small bucket that is able to store electrons. To store a 1 in the
memory cell, the bucket is filled with electrons. To store a 0, it is emptied. The
problem with the capacitor's bucket is that it has a leak. In a matter of a few
milliseconds a full bucket becomes empty. Therefore, for dynamic memory to work,
either the CPU or the memory controller has to come along and recharge all of the
capacitors holding a 1 before they discharge. To do this, the memory controller
reads the memory and then writes it right back. This refresh operation happens
automatically thousands of times per second. This refresh operation is where
dynamic RAM gets its name. Dynamic RAM has to be dynamically refreshed all of
the time or it forgets what it is holding. The downside of all of this refreshing is that
it takes time and slows down the memory. Static RAM uses a completely different
technology. In static RAM, a form of flip-flop holds each bit of memory (see How
Boolean Gates Work for detail on flip-flops). A flip-flop for a memory cell takes 4 or 6
transistors along with some wiring, but never has to be refreshed. This makes static
RAM significantly faster than dynamic RAM. However, because it has more parts, a
static memory cell takes a lot more space on a chip than a dynamic memory cell.
Therefore you get less memory per chip, and that makes static RAM a lot more
expensive. So static RAM is fast and expensive, and dynamic RAM is less expensive
and slower. Therefore static RAM is used to create the CPU's speed-sensitive cache,
while dynamic RAM forms the larger system RAM space.
Q.3 what is the difference between dynamic and static IP addresses?
A.3 IP address is a 32-bit number that identifies each client or server on the
Internet. This definition is based on the current version 4 of the Internet Protocol
(IPv4). Each packet sent across the Internet
Includes the sender's and receiver's IP addresses in order to route the packets
correctly. You can think of it as the Internet equivalent of a phone number where
you can be reached. IPv4 addresses are divided into 4 parts, each ranging from 0 to
255, separated by dots, for example: 192.168.0.1
Dynamic IP addresses can change each time you connect to the Internet,
while static IP addresses are reserved for you statically and don't change
over time.
The need for dynamic IP addresses arises from the limited number of IP addresses
available in IPv4 (Internet Protocol version 4). Theoretically, there can be about four
billion IPs in the Internet, however, the actual number is much lower for various
reasons. Something had to be done to ensure supply of address space, at least until
IPv6 is widely implemented on the Internet, allowing for 128bit IP addresses. The
limited IP address space is one of the reasons for the wide use of NAT routers, as
well as DHCP and leasing of dynamic IP addresses.
With dynamic IP addressing, there is a pool of IPs that your ISP can assign to users.
When you connect to the Internet, your computer is leased one IP address from that
pool for a number of hours. When you disconnect, or when the lease expires the IP
address is freed and put back into the pool of available IPs. That way, ISPs can have
more subscribers than number of IP addresses (as long as they don't all connect to
the Internet at the same time) and ease IP maintenance.
Even with always-on broadband connections, it's easy to just lease IP addresses as
needed. That's why the DHCP dynamic IP addressing is widely used today,
especially for residential connections where users don't run servers. The downside
is, your IP address, or "phone number" if you will, can change any time you get
disconnected, there is a power outage, ISP maintenance, etc. The fact that you get
disconnected does not necessarily mean the IP address is going to change, just as
the fact that you get the same IP address does not mean it is assigned statically.
Difference number 3: Static testing is many times more cost-effective than dynamic
testing.
Difference number 6: Static testing gives you comprehensive diagnostics for your
code.
Difference number 8: Dynamic testing usually takes longer than static testing.
Dynamic testing may involve running several test cases, each of which may take
longer than compilation.
Difference number 9: Dynamic testing finds fewer bugs than static testing.
Difference number 10: Static testing can be done before compilation, while dynamic
testing can take place only after compilation and linking.
Difference number 11: Static testing can find all of the followings that dynamic
testing cannot find: syntax errors, code that is hard to maintain, code that is hard to
test, code that does not conform to coding standards, and ANSI violations.
A.5
Method.
Super class.
OR
What is Difference between Interface and abstract Class
Interface:
1. Interface has only Signature.
2. All the Methods are Public; it doesn't have access Modifier Controls
3. It have used Multiple inheritance in the Object oriented Language
4. All the Methods are Abstract.
5. It does not have Contructor, destructor, Fileds
6. A Class May inherits several Interfaces
Abstract Class:
1. Abstract Class have Method defination and Implementation
2. It have control the Access Modifiers
3. It does not allow multiple Inheritences
4. Some methods are concrete
5. It has Contructor and destructor
6. Only one abstract have to derived
Particular code and data from all other codes and data. A
Ans. 1) A class is a template that defines the form of an object.2) A class specifies both the
data and the code that will operate on that data.3) Objects are instances of a class.4) The methods
and variables that constitute a class are called members of the class.
Or
The general form of a class definition that contains only instance variables and methods:
class classname {
// declare instance variables
access type var1;
access type var2;
// ...
access type varN;
// declare methods
access ret-type method1(parameters) {
// body of method
}
access ret-type method2(parameters) {
// body of method
}
// ...
access ret-type methodN(parameters) {
// body of method
}
}
1. To access these variables, you will use the dot (.) operator.
2. The dot operator links the name of an object with the name of a member.
3. The general form of the dot operator is shown here:
object.member
You can use the dot operator to access both instance variables and methods.
What is an Abstract class?
An abstract class only allows other classes to inherit from it and cannot be instantiated. When we create an abstract class, it should have
completed methods but at least one or more uncompleted methods and these must be preceded by the key word abstract. If all the metho
abstract class are uncompleted then it is the same as an interface, but there is a restriction that it cannot make a class inherit from it, whi
can not work as a base class.
What is an Interface?
An interface is defined by the key word interface. An interface has no implementation; it only has the definition of the methods without
When we create an interface, we are basically creating a set of methods without any implementation. A class implementing an interface
the implementation of the interface members. All the methods and properties defined in an interface are by default public and abstract.
· An abstract class may contain complete or incomplete methods. Interfaces can contain only the signature of a method but no body. Th
class can implement methods but an interface can not implement methods.
· An abstract class can contain fields, constructors, or destructors and implement properties. An interface can not contain fields, constru
destructors and it has only the property's signature but no implementation.
· An abstract class cannot support multiple inheritance, but an interface can support multiple inheritance. Thus a class may inherit sever
but only one abstract class.
· A class implementing an interface has to implement all the methods of the interface, but the same is not required in the case of an abst
· Various access modifiers such as abstract, protected, internal, public, virtual, etc. are useful in abstract Classes but not in interfaces.
Abstraction
Let’s say you have a class that have many Load methods having
different parameters, this is called Compile time
Polymorphism. Let’s take another example where you have a
virtual method in the base class called Load with one
parameter and you have redefined its functionality in your
sub class by overriding base class Load method, this is
Called Run time polymorphism.