Pregunta de entrevista de NMSWorks Software

1. Difference between foreign key and primary key? 2. Write a program to check whether the both strings are same or not?