Professional 1 Product Developer
Professional 1 Product Developer Interview Questions and Answers

Asked in DXC Technology

Q. How can you exit a program without executing the final block of code?
To exit without executing the final, use the 'return' statement or 'exit' function.
Use the 'return' statement to exit a function or method without executing the remaining code.
In some programming languages, like C or C++, you can use the 'exit' function to terminate the program immediately.
Consider using conditional statements or loops to control the flow and determine when to exit without executing the final.

Asked in DXC Technology

Q. Write a query to select the top 2 values from a column.
To select the top 2 data of a column, use the 'SELECT TOP' statement in SQL.
Use the 'SELECT TOP' statement followed by the number of rows you want to retrieve.
Specify the column name after the 'SELECT' keyword.
Order the data in the column using 'ORDER BY' clause if needed.
Example: SELECT TOP 2 column_name FROM table_name ORDER BY column_name DESC;


Q. Translation in Angular How we wil do ? CSS
Translation in Angular can be done using ng-translate or ngx-translate libraries. CSS can be applied using Angular's built-in styles or external stylesheets.
Use ng-translate or ngx-translate libraries for translation in Angular
Apply CSS using Angular's built-in styles or external stylesheets
Utilize Angular's ngClass directive for dynamic CSS classes

Asked in DXC Technology

Q. Describe the logic behind a Knight's move in chess.
The knight in chess moves in an L-shape, two squares in one direction and one square in a perpendicular direction.
The knight can move to any of the eight squares that are two squares away in one direction and one square away in a perpendicular direction.
The knight's move is unique as it can jump over other pieces on the board.
The knight's move can be represented using algebraic notation, such as Nf3 or Nc6.
Here are a few examples of valid knight moves: Nf3, Nc6, Ng5, Nh4.



Reviews
Interviews
Salaries
Users

