The chipset and the motherboard are the primary determination here. In fact there have been motherboards available which can take a couple different kinds of ram (so you can go with whatever is cheap) although not at the same time, but with the same CPU.
Pretty much, whatever your motherboard takes, that's what you've gotta use.
The Chipset determines what processor and what kind of RAM can be installed on that board.
Cpu
Ihgg
Rtt
Processors don't connect to a motherboard, there are installed in a socket. What determines if a processor is compatible is the type of processor... PGA(AMD most of the time) or LGA(Intel) and the ammount of pins that are on the motherboard/processor.
The Chip set
The chipset determines the type of processor the motherboard accepts, the type of capacity of RAM, and what sort of internal & external devices the motherboard supports. It serves as an electronic interfaces through which the CPU, RAM and I/O devices interact.
PGA
It should say on the processor tray on the actual motherboard itself.
The socket type that it uses
This all depends on the motherboard and the processor type. Rule of thumb...If there is a release of some sort, a lever, a bush tab etc it is removable.
type of chipset
No It won't. Your processor has to be compatible with motherboard and the type of ram your going to use.
An AM2 Socket is a type of socket used by a Processor on a motherboard. These are AMD processors, as indicated by the "AM". When you buy a motherboard and processor you must make sure that they have the same socket and that your motherboard supports the processor you have chosen. For more info: http://en.wikipedia.org/wiki/Socket_AM2
Pentium II
An LGA 775 socket motherboard (desktop)