Add office photos
Engaged Employer

Wipro

3.7
based on 51k Reviews
Filter interviews by

Bahwan CyberTek Interview Questions and Answers

Updated 5 Feb 2024
Popular Designations

Q1. How to use DI in .Net Core

Ans.

DI in .Net Core allows for loosely coupled and testable code.

  • Add services to the DI container in Startup.cs

  • Inject dependencies into classes using constructor injection

  • Use built-in DI or third-party libraries like Autofac

  • Configure lifetime of services with AddScoped, AddTransient, or AddSingleton

Add your answer

Q2. Ho to add validation in MVC

Ans.

Validation in MVC

  • Use data annotations for server-side validation

  • Use jQuery validation for client-side validation

  • Customize validation messages using ErrorMessage property

  • Use ModelState.IsValid to check if validation passed

  • Use ModelState.AddModelError to add validation errors

Add your answer

Q3. Ho to Use Transactions in Sql

Ans.

Transactions in SQL ensure data consistency and integrity during multiple operations.

  • Transactions group multiple SQL statements into a single unit of work.

  • They ensure that all statements are executed or none are executed.

  • They provide data consistency and integrity during multiple operations.

  • Transactions can be started with BEGIN TRANSACTION and committed with COMMIT or rolled back with ROLLBACK.

  • They are useful in situations where multiple operations need to be performed atomi...read more

Add your answer

Q4. Ho to call DI in controller

Ans.

To call DI in controller, inject the required service in the constructor of the controller.

  • Add required service in ConfigureServices method of Startup.cs

  • Inject the service in the constructor of the controller

  • Use the service in the controller methods

Add your answer
Discover Bahwan CyberTek interview dos and don'ts from real experiences

Q5. How to Use Webapi

Ans.

WebAPI is a framework for building HTTP services that can be consumed by a broad range of clients.

  • Create a new WebAPI project in Visual Studio

  • Define API endpoints using HTTP verbs (GET, POST, PUT, DELETE)

  • Use attribute routing to map URLs to actions

  • Return data in JSON format

  • Secure the API using authentication and authorization

Add your answer

Q6. Clustered vs Non-Clustered

Ans.

Clustered indexes determine physical order of data, non-clustered indexes are separate structures.

  • Clustered indexes sort and store data rows in the table based on their key values.

  • Non-clustered indexes have a separate structure that includes the indexed columns and a pointer to the data row.

  • Tables can have only one clustered index, but multiple non-clustered indexes.

  • Clustered indexes are faster for retrieving large amounts of data, while non-clustered indexes are faster for r...read more

Add your answer

Q7. Query Optimization in Sql

Ans.

Query optimization in SQL

  • Use indexes to speed up queries

  • Avoid using SELECT *

  • Use JOINs instead of subqueries

  • Avoid using functions in WHERE clauses

  • Use EXPLAIN to analyze query performance

Add your answer

Q8. Inner vs Outer Join

Ans.

Inner join returns only matching records while outer join returns all records from both tables.

  • Inner join is used to retrieve records that have matching values in both tables.

  • Outer join is used to retrieve all records from both tables, even if there are no matching values.

  • Left outer join returns all records from the left table and matching records from the right table.

  • Right outer join returns all records from the right table and matching records from the left table.

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ā¤ļø in India. Trademarks belong to their respective owners. All rights reserved Ā© 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter