Capita
30+ Diam Display India Private Limited Interview Questions and Answers
Q1. Palindrome String Validation
Determine if a given string 'S' is a palindrome, considering only alphanumeric characters and ignoring spaces and symbols.
Note:
The string 'S' should be evaluated in a case-insensi...read more
Q2. Reverse Stack with Recursion
Reverse a given stack of integers using recursion. You must accomplish this without utilizing extra space beyond the internal stack space used by recursion. Additionally, you must r...read more
Q5. How to display values fetch from a table with alternate value
Display values from a table with alternate value
Use a loop to iterate through the table values
Use an if-else statement to check for alternate values
Display the alternate values using a different formatting or color
Consider using CSS or JavaScript to enhance the display
Q12. Where did u implemented oops concepts in your project? Stream api, Map in Collections
Yes
Implemented OOPs concepts in the project using Stream API
Utilized Map in Collections to implement OOPs principles
Used Stream API to apply functional programming concepts in the project
Q13. How to remove low values while fetching data from table in DB2
Use SQL query with WHERE clause to filter out low values while fetching data from DB2 table
Use SELECT statement to fetch data from table
Add WHERE clause with condition to filter out low values
Example: SELECT * FROM table_name WHERE column_name > 10
Use ORDER BY clause to sort the data in ascending or descending order
Q15. Write controller to serve POST request for a rest call in spring
A controller to handle POST requests in a Spring REST API.
Create a new class annotated with @RestController
Define a method in the class annotated with @PostMapping
Use @RequestBody annotation to bind the request body to a parameter
Implement the logic to handle the POST request
Return the response using ResponseEntity
Q24. Annotations used in web services, pagination, exception handling in spring
Annotations used in web services, pagination, exception handling in Spring
Web services in Spring can be annotated with @RestController or @Controller
Pagination can be achieved using @PageableDefault and @PageableParam
Exception handling can be done using @ExceptionHandler and @ControllerAdvice
Q28. Usage of @Transactional annotation in spring JPA
The @Transactional annotation is used in Spring JPA to manage transactions in database operations.
The @Transactional annotation is used to mark a method or class as transactional.
It ensures that all database operations within the annotated method or class are executed within a single transaction.
If an exception occurs, the transaction is rolled back, and changes made within the transaction are not persisted.
The @Transactional annotation can be used with different propagation ...read more
Q30. Sort using JCL and COBOL
Sorting using JCL and COBOL
JCL can be used to submit a COBOL program for sorting
COBOL program can use SORT verb to sort data
Sorting can be done based on specific fields or criteria
COBOL program can use SORT-RETURN to check the status of the sort operation
Q32. Cursor in DB2
Cursor is a database object used to manipulate data in a result set.
Cursor is used to fetch a set of rows from a result set.
It allows the application to move forward and backward through the result set.
Cursor can be declared and opened in SQL.
It can be used to update or delete rows in a result set.
Cursor can be closed explicitly or implicitly.
Top HR Questions asked in Diam Display India Private Limited
Interview Process at Diam Display India Private Limited
Top Software Consultant Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month