TCS iON
Atin Promotions Advertising Interview Questions and Answers
Q1. Asynchronous and multi-threading code. How to stop async code based on specification condition
To stop async code based on specification condition, use cancellation tokens.
Use CancellationTokenSource to create a cancellation token
Pass the cancellation token to the async method
Check the cancellation token in the async method using ThrowIfCancellationRequested()
Cancel the token when the specification condition is met
Q2. Project details and OOP with real time example ?
OOP is a programming paradigm that uses objects to represent real-world entities. Project details can be explained using OOP concepts.
OOP is based on the concept of classes and objects
Classes are like blueprints for objects
Objects have properties and methods
Encapsulation, inheritance, and polymorphism are key OOP concepts
Example: A car class can have properties like make, model, and year, and methods like start and stop
Q3. tell me different types of queues?
Different types of queues include linear, circular, priority, and double-ended.
Linear queue follows a First-In-First-Out (FIFO) order.
Circular queue is similar to linear queue but the last element points to the first element.
Priority queue assigns a priority to each element and dequeues the highest priority element first.
Double-ended queue allows insertion and deletion at both ends.
Q4. Swap array elements and string reverse by using recursive method
Swapping array elements and reversing string using recursion.
Create a recursive function that swaps the first and last elements of the array until the middle is reached.
Create a recursive function that reverses the string by swapping the first and last characters until the middle is reached.
Use a temporary variable to store the value of the element being swapped.
Make sure to handle edge cases such as empty arrays or strings.
Q5. Interested area in coding Front end and backend
I am interested in both front-end and back-end development.
I enjoy creating user interfaces with HTML, CSS, and JavaScript.
I also like working with databases and server-side languages like Python and PHP.
I believe that having knowledge of both front-end and back-end development is important for creating well-rounded applications.
Q6. what is an array?
An array is a data structure that stores a collection of elements of the same type in a contiguous block of memory.
Arrays can be accessed using an index starting from 0.
They have a fixed size, which is determined at the time of declaration.
Arrays can store elements of any data type, including strings.
Example: ['apple', 'banana', 'orange']
Top Junior Software Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month