Cognizant
Bombardier Transportation Interview Questions and Answers
Q1. What is the difference between a Controller and a Rest Controller in the context of web applications?
A Controller handles web requests, while a Rest Controller specifically manages RESTful web services.
A Controller typically returns views (HTML) for web applications.
A Rest Controller returns data (JSON/XML) for APIs.
Example of Controller: @Controller in Spring MVC.
Example of Rest Controller: @RestController in Spring Boot.
Rest Controllers are stateless and focus on resource representation.
Q2. What is input and output functions used in c language,..ect
Input and output functions in C language are used to interact with the user and the external environment.
Input functions in C include scanf() for reading input from the user and getchar() for reading a single character.
Output functions in C include printf() for displaying output to the user and putchar() for displaying a single character.
File input and output functions in C include fopen(), fclose(), fread(), and fwrite() for reading from and writing to files.
Q3. What are header files,and use .?
Header files contain declarations of functions, variables, and constants used in a program.
Header files are included in source code files using #include directive.
They help in organizing code by separating declarations from implementation.
Common header files in C/C++ include
, , and .
Q4. What are the advantages of using Spring Boot?
Spring Boot simplifies Java development with rapid setup, built-in features, and microservices support.
Rapid Development: Spring Boot allows developers to create stand-alone applications quickly with minimal configuration.
Convention over Configuration: It provides sensible defaults, reducing the need for extensive XML configuration.
Embedded Servers: Spring Boot includes embedded servers like Tomcat and Jetty, enabling easy deployment and testing.
Microservices Ready: It suppor...read more
Q5. how many types of database
There are mainly four types of databases: relational, NoSQL, object-oriented, and graph databases.
Relational databases: store data in tables with rows and columns (e.g. MySQL, PostgreSQL)
NoSQL databases: store data in non-tabular format, suitable for large amounts of data (e.g. MongoDB, Cassandra)
Object-oriented databases: store data as objects, allowing for complex data structures (e.g. db4o)
Graph databases: store data in nodes and edges to represent relationships (e.g. Neo4...read more
Q6. Datatypes in c language.
Datatypes in C language include int, float, char, double, and more.
Basic datatypes: int, float, char, double
Derived datatypes: arrays, pointers, structures, unions
Enumerated datatypes: enum
Void datatype: void
Example: int num = 10; char letter = 'A'; float value = 3.14;
Q7. what is database
A database is a structured collection of data that is organized in a way to easily access, manage, and update information.
Database stores data in tables with rows and columns.
It allows for efficient retrieval, insertion, and updating of data.
Examples include MySQL, PostgreSQL, MongoDB.
Q8. whr ar eu from
I am from a small town in the Midwest of the United States.
Midwest region of the United States
Small town upbringing
Cultural diversity in the Midwest
More about working at Cognizant
Top HR Questions asked in Bombardier Transportation
Interview Process at Bombardier Transportation
Top Junior Software Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month