What are two kind of memory in a computer?

That depends on what you mean by "Memory". If you are talking generally then there is Hard Disk Memory, Flash Memory, and RAM (Random Access Memory), usually when referring to memory in a computer though people are talking about the RAM. There are 4 types of RAM (That I know of) which are SD RAM, DDR, DDR2 and DDR3.