Cognizant Interview Question

Technical interview Write the connection code to a database? How did you create it in your project? What are derived data types? Name the user defined data types in C++. Whether higher normal forms better than lower forms as far Redundancy is concerned ? Explain tokens in C++.Also tell about their role and importance. How would you input data to your code? Can a database table exist without a primary key ? What are the similarities and differences between a class and a structure? What is the reason behind using “Inner Join” and “Outer Join” ?