Pergunta de entrevista da empresa NMSWorks Software

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