Add office photos
Engaged Employer

TCS

3.7
based on 88.8k Reviews
Video summary
Filter interviews by

200+ Mitra SK Interview Questions and Answers

Updated 21 Jan 2025
Popular Designations

Q1. Palindromic Numbers Finder

Given an integer 'N', your task is to identify all palindromic numbers from 1 to 'N'. These are numbers that read the same way forwards and backwards.

Input:

The first line provides a...read more
View 2 more answers

Q2. Strings of Numbers Problem Statement

You are given two integers 'N' and 'K'. Consider a set 'X' of all possible strings of 'N' number of digits where all strings only contain digits ranging from 0 to 'K' inclus...read more

Add your answer

Q3. Maximum Vehicle Registrations Problem

Bob, the mayor of a state, seeks to determine the maximum number of vehicles that can be uniquely registered. Each vehicle's registration number is structured as follows: S...read more

Add your answer

Q4. Every day, we come across different types of computer software that helps us with our tasks and increase our efficiency. From MS Windows that greets us when we switch on the system to the web browser that is us...

read more
Ans.

Software is a collection of data, programs, procedures, instructions, and documentation that perform tasks on a computer system.

  • Software is essential for computers to be useful.

  • It includes programs, libraries, and non-executable data.

  • Software and hardware work together to enable modern computing systems.

  • Examples of software include operating systems, web browsers, and games.

View 1 answer
Discover Mitra SK interview dos and don'ts from real experiences

Q5. Shuffle Two Strings

You are provided with three strings: A, B, and C. Your task is to determine if C is formed by interleaving A and B. A string C is considered an interleaving of A and B if:

  • The length of C i...read more
Add your answer

Q6. Sum of Even & Odd Digits

You need to determine the sum of even digits and odd digits separately from a given integer.

Input:

The first line of input is an integer T representing the number of test cases. Each t...read more

Add your answer
Are these interview questions helpful?

Q7. Diagonal Sum of Binary Tree

You are given a binary tree with 'N' nodes. Your task is to find and return a list containing the sums of all the diagonals of the binary tree, computed from right to left.

Input:

Th...read more
Add your answer

Q8. Prime Time Again Problem Statement

You are given two integers DAY_HOURS and PARTS. Consider a day with DAY_HOURS hours, which can be divided into PARTS equal parts. Your task is to determine the total instances...read more

Add your answer
Share interview questions and help millions of jobseekers 🌟

Q9. Factorial Calculation Problem

Given an integer N, determine the factorial value of N. The factorial of a number N is the product of all positive integers from 1 to N.

Input:

First line of input: An integer 'T',...read more
Add your answer
Q10. ...read more

Longest Switching Subarray Problem Statement

You are provided with an array 'ARR' consisting of 'N' positive integers. Your task is to determine the length of the longest contiguous subarray that is switching.

Add your answer

Q11. Cycle Detection in a Singly Linked List

Determine if a given singly linked list of integers forms a cycle or not.

A cycle in a linked list occurs when a node's next points back to a previous node in the list. T...read more

Add your answer

Q12. Delete Alternate Nodes from a Singly Linked List

Given a Singly Linked List of integers, remove all the alternate nodes from the list.

Input:

The first and the only line of input will contain the elements of th...read more
Add your answer

Q13. Find All Pairs Adding Up to Target

Given an array of integers ARR of length N and an integer Target, your task is to return all pairs of elements such that they add up to the Target.

Input:

The first line conta...read more
Add your answer

Q14. Smallest Number with Given Digit Product

Given a positive integer 'N', find and return the smallest number 'M', such that the product of all the digits in 'M' is equal to 'N'. If such an 'M' is not possible or ...read more

Add your answer

Q15. Find Duplicates in an Array

Given an array ARR of size 'N', where each integer is in the range from 0 to N - 1, identify all elements that appear more than once.

Return the duplicate elements in any order. If n...read more

Add your answer

Q16. Jar of Candies Problem Statement

You are given a jar containing candies with a maximum capacity of 'N'. The jar cannot have less than 1 candy at any point. Given 'K', the number of candies a customer wants, det...read more

Add your answer

Q17. Middle of a Linked List

You are given the head node of a singly linked list. Your task is to return a pointer pointing to the middle of the linked list.

If there is an odd number of elements, return the middle ...read more

Add your answer

Q18. Add Two Numbers Represented as Linked Lists

Given two linked lists representing two non-negative integers, where the digits are stored in reverse order (i.e., starting from the least significant digit to the mo...read more

Add your answer

Q19. Distance Greater Than K Problem Statement

You are provided an undirected graph, a source vertex, and an integer k. Determine if there is any simple path (without any cycle) from the source vertex to any other v...read more

Add your answer

Q20. Make Palindrome Problem Statement

You are provided with a string STR of length N comprising lowercase English alphabet letters. Your task is to determine and return the minimum number of characters that need to...read more

Add your answer

Q21. Valid Parentheses Problem Statement

Given a string 'STR' consisting solely of the characters “{”, “}”, “(”, “)”, “[” and “]”, determine if the parentheses are balanced.

Input:

The first line contains an integer...read more
Add your answer

Q22. Number Pattern Problem Statement

Create a number pattern as specified by Ninja. The pattern should be constructed based on a given integer value 'N'.

Example:

Input:
N = 4
Output:
4444 3444 2344 1234

Explanatio...read more

Add your answer

Q23. What will happen if you replace class with struct What is vector Can I add particular element in vector Use insert function Tell me about all the commands you know Tell me all the command in Linux you know Case...

read more
Ans.

Interview questions for a software developer on topics like class vs struct, vectors, Linux commands, inheritance, and pointer safety.

  • Replacing class with struct changes the default access level to public

  • Vector is a dynamic array that can be resized at runtime

  • Elements can be added to vector using push_back() or insert() function

  • Inheritance allows a derived class to inherit properties and methods from a base class

  • To call base class function with derived class object, use scope...read more

Add your answer

Q24. What is list,tuple? What is shallow copy? Name some libraries in python. What is python current version and how do you find on Command prompt? OOPS in python. Abstraction vs Encapsulation

Ans.

Questions related to Python programming language and concepts.

  • List and tuple are data structures in Python. List is mutable while tuple is immutable.

  • Shallow copy creates a new object but references the original object's elements.

  • Some libraries in Python are NumPy, Pandas, Matplotlib, and Scikit-learn.

  • Python's current version is 3.9. You can find it on Command prompt by typing 'python --version'.

  • OOPS in Python stands for Object-Oriented Programming. It allows for creating clas...read more

View 1 answer

Q25. Reverse the String Problem Statement

You are given a string STR which contains alphabets, numbers, and special characters. Your task is to reverse the string.

Example:

Input:
STR = "abcde"
Output:
"edcba"

Input...read more

Add your answer

Q26. Does Java support multiple Inheritance? If not then how an interface inherits two interfaces? Explain

Ans.

Java does not support multiple inheritance, but interfaces can inherit multiple interfaces.

  • Java does not allow a class to inherit from multiple classes, but it can implement multiple interfaces.

  • Interfaces can inherit from multiple interfaces using the 'extends' keyword.

  • For example, interface C can extend interfaces A and B: 'interface C extends A, B {}'

Add your answer

Q27. 1. what is static variables 2. what is a array 3. what is collections 4. Difference between c++ and java 5. what is java Architecture 6. what is java 7. what is Oops

Ans.

Static variables are variables that are shared among all instances of a class. Arrays are a data structure that stores a collection of elements. Collections are classes in Java that store and manipulate groups of objects. C++ and Java differ in syntax, memory management, and platform independence. Java architecture consists of JVM, JRE, and JDK. Java is a high-level programming language known for its platform independence. Object-oriented programming (OOP) is a programming pa...read more

Add your answer

Q28. Do you have any experience in programming ? If yes , explain?

Ans.

Yes, I have experience in programming.

  • I have a Bachelor's degree in Computer Science.

  • I have worked as a software developer for 3 years.

  • I am proficient in programming languages like Java, C++, and Python.

  • I have developed web applications using frameworks like React and Angular.

  • I have experience in database management with SQL and NoSQL databases.

  • I have worked on projects involving data analysis and machine learning algorithms.

View 2 more answers
Q29. What is the contribution of the TATA group towards the betterment of our nation?
Add your answer

Q30. Explain oops concepts with an example

Ans.

Explanation of OOPs concepts with an example

  • OOPs stands for Object-Oriented Programming

  • Encapsulation - Binding data and functions that manipulate the data together

  • Inheritance - A class can inherit properties and methods from another class

  • Polymorphism - Ability of an object to take many forms

  • Abstraction - Hiding implementation details and showing only functionality

  • Example: A car is an object that has properties like color, model, and methods like start, stop, accelerate

  • Encapsu...read more

View 7 more answers
Q31. How would you cut a cake into 3 pieces in 3 cuts?
Add your answer
Q32. How has the COVID-19 pandemic affected the IT industry?
Add your answer

Q33. Reverse Array Elements

Given an array containing 'N' elements, the task is to reverse the order of all array elements and display the reversed array.

Explanation:

The elements of the given array need to be rear...read more

Add your answer
Q34. Write a SQL query to output the data of students whose names start with the letter 'A'.
Add your answer

Q35. how is multithreading implemented in JAVA

Ans.

Multithreading in Java allows concurrent execution of multiple threads.

  • Java provides built-in support for multithreading through the java.lang.Thread class.

  • Threads can be created by extending the Thread class or implementing the Runnable interface.

  • The start() method is used to start a new thread, which calls the run() method.

  • Synchronization mechanisms like synchronized blocks and locks can be used to control access to shared resources.

  • Java also provides high-level concurrency...read more

Add your answer

Q36. What id difference between procedure and function

Ans.

A procedure is a set of instructions that performs a specific task, while a function is a procedure that returns a value.

  • Procedures are used to perform actions, while functions are used to calculate and return values.

  • Procedures do not have a return statement, while functions always have a return statement.

  • Functions can be called within expressions, while procedures cannot.

  • Procedures can have input parameters, while functions can have both input parameters and a return value.

View 1 answer

Q37. Can you explain the concept of object oriented programming?

Ans.

Object oriented programming is a programming paradigm based on the concept of objects, which can contain data in the form of fields and code in the form of procedures.

  • Objects are instances of classes, which define the structure and behavior of the objects.

  • Encapsulation is the concept of bundling data and methods that operate on the data within a single unit, such as a class.

  • Inheritance allows classes to inherit attributes and methods from other classes.

  • Polymorphism allows obj...read more

Add your answer

Q38. how wil you dispaly data of two tables? explain?

Ans.

Display data of two tables by joining them using a common column.

  • Use SQL JOIN statement to combine data from two tables based on a common column.

  • Choose the appropriate type of JOIN based on the relationship between the tables.

  • Specify the columns to be displayed in the SELECT statement.

  • Use aliases to differentiate between columns with the same name in both tables.

  • Apply any necessary filters or sorting to the result set.

Add your answer

Q39. What are the important categories of software?

Ans.

There are two important categories of software: System software and Application software.

  • System software: manages and controls computer hardware so that application software can perform its tasks. Examples: Operating systems, device drivers, firmware.

  • Application software: performs specific tasks for the user. Examples: Word processors, web browsers, games.

Add your answer

Q40. How will you display data of two tables?

Ans.

Join the tables on a common column and display the combined data.

  • Identify the common column in both tables

  • Use JOIN statement to combine the tables

  • Select the columns to display

  • Apply any necessary filters or sorting

  • Display the data in a table or list format

Add your answer

Q41. how multithreading is carried in java

Ans.

Java supports multithreading through the java.lang.Thread class and java.util.concurrent package.

  • Java threads are created by extending the Thread class or implementing the Runnable interface.

  • Threads can be started using the start() method.

  • Synchronization can be achieved using synchronized keyword or locks.

  • Java provides several classes and interfaces to support concurrent programming such as Executor, ExecutorService, Future, etc.

  • Thread pools can be created using ExecutorServi...read more

Add your answer

Q42. How will you display data of two tables? Explain

Ans.

To display data of two tables, we can use JOIN operation in SQL.

  • Identify the common column(s) between the two tables.

  • Use JOIN operation to combine the data from both tables based on the common column(s).

  • Choose the appropriate type of JOIN operation (INNER, LEFT, RIGHT, FULL) based on the requirement.

  • Use SELECT statement to display the required columns from the combined table.

  • Example: SELECT t1.column1, t2.column2 FROM table1 t1 JOIN table2 t2 ON t1.common_column = t2.common_c...read more

Add your answer

Q43. what is multithreading

Ans.

Multithreading is the ability of a program to perform multiple tasks concurrently.

  • Multithreading allows for better utilization of CPU resources

  • It can improve program performance and responsiveness

  • Examples include running multiple downloads simultaneously or updating a GUI while performing a background task

  • Synchronization is important to prevent race conditions and ensure thread safety

View 1 answer

Q44. Explain. Difference between primary key and unique key

Ans.

Primary key uniquely identifies a record in a table, while unique key ensures uniqueness of a column.

  • Primary key cannot have null values, while unique key can have one null value.

  • A table can have only one primary key, but multiple unique keys.

  • Primary key is used as a foreign key in other tables, while unique key is not.

  • Example: Employee ID can be a primary key, while email address can be a unique key.

Add your answer

Q45. What is the role of a software developer?

Ans.

A software developer is responsible for designing, coding, testing, and maintaining software applications.

  • Designing software solutions based on client requirements

  • Writing code in various programming languages

  • Testing and debugging software to ensure functionality

  • Maintaining and updating software applications

  • Collaborating with team members to achieve project goals

Add your answer

Q46. What is trigger explain with syntax

Ans.

A trigger is a special type of stored procedure that automatically executes in response to certain events.

  • Triggers are used to enforce business rules or to perform complex calculations.

  • Syntax: CREATE TRIGGER trigger_name {BEFORE | AFTER} {INSERT | UPDATE | DELETE} ON table_name FOR EACH ROW {trigger_body}

  • Example: CREATE TRIGGER audit_log AFTER INSERT ON employees FOR EACH ROW INSERT INTO audit VALUES (NEW.id, 'inserted', NOW())

View 1 answer

Q47. What is difference between primary key and unique key

Ans.

Primary key uniquely identifies a record in a table, while unique key ensures uniqueness of a column.

  • Primary key cannot have null values, while unique key can have null values.

  • A table can have only one primary key, but multiple unique keys.

  • Primary key is automatically indexed, while unique key may or may not be indexed.

  • Example: Employee ID can be a primary key, while email address can be a unique key.

View 1 answer

Q48. What is your favourite programming language?

Ans.

My favorite programming language is Python because of its simplicity, readability, and versatility.

  • Python is known for its clean and readable syntax, making it easy to learn and understand.

  • Python has a large standard library with built-in modules for various tasks, reducing the need for external libraries.

  • Python is versatile and can be used for web development, data analysis, artificial intelligence, and more.

Add your answer

Q49. if the sides of a rectangle are increased by 20% ,by what percentage does the area increase?

Ans.

Increasing the sides of a rectangle by 20% increases its area by 44%.

  • Calculate the new dimensions of the rectangle after increasing the sides by 20%.

  • Use the formula for the area of a rectangle to calculate the new area.

  • Compare the new area to the original area to determine the percentage increase.

Add your answer

Q50. Difference between Do – While and While loop.

Ans.

Do-While loop executes the code block once before checking the condition, while loop checks the condition first.

  • Do-While loop is used when the code block needs to be executed at least once.

  • While loop is used when the code block may not need to be executed at all.

  • Do-While loop is less efficient than While loop as it always executes the code block at least once.

  • Example of Do-While loop: do { //code block } while (condition);

  • Example of While loop: while (condition) { //code bloc...read more

Add your answer

Q51. what is oops concept waht is multithreading define the term abstraction

Ans.

OOPs is a programming paradigm based on the concept of objects, while multithreading is the ability of a CPU to execute multiple threads concurrently, and abstraction is the process of hiding implementation details while showing only the necessary information.

  • OOPs is based on the concept of objects, which encapsulate data and behavior

  • Multithreading allows for concurrent execution of multiple threads, improving performance

  • Abstraction is the process of hiding implementation det...read more

Add your answer

Q52. what are different types of tag in html and tags which do not require closing tag

Ans.

Different types of HTML tags include block-level tags, inline tags, empty tags, and self-closing tags.

  • Block-level tags: <div>, <p>, <h1>

  • Inline tags: <span>, <a>, <strong>

  • Empty tags: <img>, <br>, <input>

  • Self-closing tags: <img />, <br />

Add your answer

Q53. what is the difference between method and block.

Ans.

Method is a named block of code that can be called multiple times, while a block is a group of statements enclosed in curly braces.

  • A method has a name and can accept parameters, while a block does not.

  • A method can return a value, while a block cannot.

  • A method can be called from anywhere in the program, while a block is only accessible within the scope it was defined.

  • Example of a method: public int add(int a, int b) { return a + b; }

  • Example of a block: if (condition) { int x =...read more

Add your answer

Q54. What is polymorphism

Ans.

Polymorphism is the ability of an object to take on many forms.

  • It allows objects of different classes to be treated as if they were objects of the same class.

  • It is achieved through method overriding and method overloading.

  • Example: A shape class can have different subclasses like circle, square, triangle, etc. and all of them can be treated as shapes.

  • Example: A method can have different implementations in different classes but can be called using the same name.

  • Example: The + o...read more

View 3 more answers

Q55. What are state management

Ans.

State management is the process of managing the state of an application or system.

  • It involves storing and updating data that represents the current state of the application.

  • State can be managed locally or globally, depending on the architecture of the application.

  • Common techniques for state management include using local state, global state, and state containers like Redux.

  • Examples of state management in action include updating the UI based on user input, managing user authen...read more

View 1 answer

Q56. Difference between interface and abastract, required and include, method overriding and method over loading

Ans.

Interface vs abstract, required vs include, method overriding vs overloading

  • Interface is a contract that defines methods that must be implemented by a class, while abstract class can have implemented methods

  • Required is used to specify mandatory dependencies in a module, while include is used to import code from another file

  • Method overriding is when a subclass provides its own implementation of a method from its superclass, while overloading is when a class has multiple method...read more

Add your answer
Q57. Can you define an Operating System and explain what a process table is?
Add your answer

Q58. how does view get to know that binded property has been changed in viewmodel

Ans.

The view gets to know that a binded property has been changed in the viewmodel through data binding mechanisms.

  • Data binding mechanisms like two-way binding or event listeners are used to notify the view of property changes in the viewmodel.

  • Frameworks like Angular, React, or Vue.js provide built-in mechanisms for handling property changes in the viewmodel.

  • ViewModels often implement observable patterns or use libraries like RxJS to notify the view of property changes.

Add your answer

Q59. What is the meaning of ambition box

Ans.

Ambition box is a term used to describe a person's goals, aspirations, and desires for their future.

  • Represents a person's dreams and objectives

  • Can include career goals, personal achievements, and life milestones

  • Often used in career development discussions or personal growth planning

Add your answer

Q60. What are the problems you face while developing software

Ans.

Software development problems

  • Bugs and errors

  • Compatibility issues

  • Lack of documentation

  • Poor performance

  • Security vulnerabilities

Add your answer

Q61. Explain about javascript selector

Ans.

JavaScript selectors are used to select and manipulate HTML elements.

  • Selectors can be used with methods like getElementById(), getElementsByClassName(), and querySelector().

  • Selectors can target specific elements based on their tag name, class, ID, attributes, and more.

  • Selectors can also be combined to create more complex queries.

  • Examples: document.getElementById('myElement'), document.querySelector('.myClass')

View 1 answer

Q62. What are constraints

Ans.

Constraints are limitations or restrictions that are put in place to ensure certain requirements are met.

  • Constraints can be physical, such as the size of a database or the amount of memory available

  • Constraints can also be logical, such as business rules or security requirements

  • Constraints can help ensure data integrity and prevent errors or security breaches

  • Examples of constraints include primary keys, foreign keys, check constraints, and unique constraints

View 2 more answers

Q63. What is view state

Ans.

View state is a feature in ASP.NET that preserves the state of server-side controls between postbacks.

  • View state is used to maintain the state of server-side controls between postbacks.

  • It is a hidden field on the page that stores the values of the controls.

  • View state can be disabled to improve performance, but it may cause issues with control state.

  • Example: A text box retains its value even after a postback due to view state.

View 1 answer

Q64. how it is implemented in java

Ans.

The question is asking about how a specific implementation is done in Java.

  • Explain the implementation details of the specific feature or functionality in Java

  • Provide code examples if applicable

  • Discuss any relevant libraries or frameworks used in the implementation

Add your answer

Q65. Python program to find the count of a letter in a sentence

Ans.

Python program to find the count of a letter in a sentence

  • Use the count() method on the string to find the number of occurrences of a specific letter

  • Convert the sentence to lowercase to make the search case-insensitive

  • Handle both uppercase and lowercase versions of the letter to get an accurate count

View 1 answer

Q66. What is the TCS full form

Ans.

TCS stands for Tata Consultancy Services.

  • TCS is a multinational IT services and consulting company based in India.

  • It is one of the largest IT services firms in the world.

  • TCS provides services in areas such as software development, infrastructure management, and business process outsourcing.

Add your answer

Q67. Write a Java code cheke the given String is palindrome or not ?

Ans.

Java code to check if a given String is a palindrome or not.

  • Create a function that takes a String as input

  • Use two pointers, one starting from the beginning and one from the end, to compare characters

  • If all characters match, return true; otherwise, return false

Add your answer

Q68. diff betn while &amp; do while loop

Ans.

While loop executes only if the condition is true, do-while loop executes at least once before checking the condition.

  • While loop checks the condition first, then executes the code block

  • Do-while loop executes the code block first, then checks the condition

  • While loop may not execute at all if the condition is false initially

  • Do-while loop always executes at least once before checking the condition

Add your answer

Q69. What are static variables and how they are accessed

Ans.

Static variables are variables that retain their values throughout the program's execution and are accessed using the class name.

  • Static variables are declared using the 'static' keyword.

  • They are shared among all instances of a class.

  • Static variables are accessed using the class name followed by the dot operator.

  • Example: ClassName.staticVariableName;

Add your answer

Q70. what is react? explain about react lifecycle

Ans.

React is a JavaScript library for building user interfaces.

  • React is a declarative, efficient, and flexible library for building user interfaces.

  • It allows developers to create reusable UI components.

  • React follows a component-based architecture where UI is broken down into smaller components.

  • React lifecycle consists of three main phases: Mounting, Updating, and Unmounting.

  • During Mounting, a component is created and inserted into the DOM.

  • During Updating, a component re-renders w...read more

Add your answer
Q71. What SQL questions do you have related to joins?
Add your answer

Q72. what is data encapsulation

Ans.

Data encapsulation is the concept of bundling data and methods that operate on that data within a single unit.

  • Data encapsulation helps in hiding the internal state of an object and restricting access to it.

  • It allows for better control over the data by preventing external interference.

  • Encapsulation also promotes code reusability and modularity.

  • Example: In object-oriented programming, a class encapsulates data (attributes) and methods (functions) that operate on that data.

Add your answer

Q73. sql query for highest salary from list of employees table

Ans.

Use SQL query with MAX function to find highest salary from employees table.

  • Use SELECT MAX(salary) FROM employees;

  • Make sure to replace 'employees' with the actual table name if different.

  • Ensure the column name for salary is correct in the query.

Add your answer

Q74. How is security implemented in your application?

Ans.

Security is implemented in our application through encryption, authentication, and authorization mechanisms.

  • We use encryption algorithms to secure sensitive data both at rest and in transit.

  • Authentication is implemented through secure login mechanisms like OAuth or JWT.

  • Authorization controls access to different parts of the application based on user roles and permissions.

Add your answer

Q75. What is TCS Benefits

Ans.

TCS benefits include health insurance, retirement plans, paid time off, and professional development opportunities.

  • Health insurance coverage for employees and their families

  • Retirement plans such as 401(k) with employer match

  • Paid time off for vacation, sick leave, and holidays

  • Professional development opportunities like training programs and certifications

Add your answer

Q76. what is variable and types of variable.

Ans.

A variable is a container that holds a value. There are different types of variables in programming.

  • Variables are used to store data in a program

  • They can be assigned different values during runtime

  • Types of variables include integers, floats, strings, booleans, and more

  • Variables can be declared with a specific data type or left untyped

  • Examples: int age = 25, float price = 9.99, string name = 'John Doe'

Add your answer

Q77. what is multithreaing

Ans.

Multithreading is the ability of a CPU to execute multiple threads concurrently.

  • Multithreading improves performance by utilizing idle CPU time.

  • Threads share the same memory space, allowing for efficient communication.

  • Examples include web servers handling multiple requests and video games rendering graphics while processing user input.

Add your answer

Q78. What are the types f design pattern?

Ans.

Design patterns are reusable solutions to common problems in software design.

  • Creational patterns - Singleton, Factory, Builder

  • Structural patterns - Adapter, Decorator, Facade

  • Behavioral patterns - Observer, Strategy, Template Method

Add your answer

Q79. Different between confidential and over confidential

Ans.

Confidential refers to information that is meant to be kept private, while over confidential implies an excessive level of secrecy.

  • Confidential information is sensitive and should only be shared with authorized individuals.

  • Over confidential suggests an unnecessary or excessive level of secrecy beyond what is required.

  • Examples of confidential information include trade secrets, personal data, and classified documents.

  • An example of over confidential behavior could be refusing to...read more

Add your answer

Q80. What you know about cloud computing?

Ans.

Cloud computing is the delivery of computing services over the internet, including servers, storage, databases, networking, software, analytics, and intelligence.

  • Cloud computing allows users to access resources on-demand without the need for physical infrastructure.

  • It offers scalability, flexibility, and cost-efficiency compared to traditional on-premises solutions.

  • Examples of cloud computing providers include Amazon Web Services (AWS), Microsoft Azure, and Google Cloud Platf...read more

Add your answer

Q81. What is the latest version of android

Ans.

The latest version of Android is Android 12.

  • Android 12 was released on October 4, 2021.

  • It includes new features such as Material You design, privacy enhancements, and improved performance.

  • It is currently available for select devices and will roll out to more in the coming months.

Add your answer

Q82. Define different types of Inheritances in Python

Ans.

Python supports single, multiple, multilevel, hierarchical, and hybrid inheritance.

  • Single Inheritance: A class can inherit from only one base class.

  • Multiple Inheritance: A class can inherit from multiple base classes.

  • Multilevel Inheritance: A class can inherit from a derived class, creating a chain of inheritance.

  • Hierarchical Inheritance: Multiple derived classes inherit from a single base class.

  • Hybrid Inheritance: Combination of multiple and multilevel inheritance.

Add your answer

Q83. What is the use of circular linked list

Ans.

Circular linked list is a linked list where the last node points back to the first node, forming a circle.

  • Allows for efficient traversal from the end of the list to the beginning

  • Useful for applications where data needs to be accessed in a circular manner, such as round-robin scheduling

  • Can be used to implement a circular buffer in data structures

Add your answer

Q84. Multithreading and servlets in Java

Ans.

Multithreading and servlets are important concepts in Java for concurrent programming and web development.

  • Multithreading allows multiple threads to run concurrently, improving performance and responsiveness of applications.

  • Servlets are Java classes that handle HTTP requests and generate responses, used for web development.

  • Multithreading can be used in servlets to handle multiple requests simultaneously.

  • However, care must be taken to ensure thread safety and avoid race conditi...read more

Add your answer

Q85. What is the use of Init method in python

Ans.

The init method in Python is used as a constructor to initialize the object's attributes when an instance of a class is created.

  • Init method is called automatically when a new object is created from a class.

  • It is used to initialize the object's attributes or perform any setup required for the object.

  • The init method is defined with the __init__ function in Python.

Add your answer

Q86. How lists are different from Sets

Ans.

Lists allow duplicate elements and maintain insertion order, while sets do not allow duplicates and do not maintain order.

  • Lists allow duplicate elements, while sets do not

  • Lists maintain insertion order, while sets do not

  • Lists are implemented using classes like ArrayList or LinkedList, while sets are implemented using classes like HashSet or TreeSet

Add your answer

Q87. What is oops and pillars of oops?

Ans.

OOPs stands for Object-Oriented Programming. Pillars of OOPs are Inheritance, Encapsulation, Abstraction, and Polymorphism.

  • OOPs is a programming paradigm based on the concept of objects, which can contain data in the form of fields and code in the form of procedures.

  • Pillars of OOPs include Inheritance (ability of a class to inherit properties and behavior from another class), Encapsulation (binding data and methods that manipulate the data into a single unit), Abstraction (hi...read more

Add your answer

Q88. What is different between java and C++

Ans.

Java is platform-independent, object-oriented, and has automatic memory management, while C++ is platform-dependent, supports multiple inheritance, and requires manual memory management.

  • Java is platform-independent, while C++ is platform-dependent

  • Java is object-oriented, while C++ supports both procedural and object-oriented programming

  • Java has automatic memory management (garbage collection), while C++ requires manual memory management

  • Java does not support multiple inheritan...read more

Add your answer

Q89. diff betn primary &amp; unique key

Ans.

Primary key uniquely identifies a record in a table, while unique key ensures uniqueness of a column.

  • Primary key is a column or set of columns that uniquely identifies each record in a table

  • Primary key cannot have null values

  • A table can have only one primary key

  • Unique key ensures that a column or set of columns have unique values

  • Unique key can have null values

  • A table can have multiple unique keys

Add your answer

Q90. From Java what is friend function

Ans.

Friend function is not a concept in Java.

  • Friend function is a concept in C++ where a non-member function can access private and protected members of a class.

  • Java does not have the concept of friend function.

  • In Java, access to private and protected members of a class is restricted to the class itself and its subclasses.

Add your answer

Q91. Internal working of HashMap and it's implementation in Detais

Ans.

HashMap is a data structure that stores key-value pairs and uses hashing to efficiently retrieve values.

  • HashMap internally uses an array of linked lists to store key-value pairs.

  • When a key-value pair is added, the key is hashed to find the index in the array where the pair will be stored.

  • If multiple keys hash to the same index, a linked list is used to handle collisions.

  • HashMap allows null keys and values, and can have one null key and multiple null values.

  • Example: HashMap ma...read more

Add your answer

Q92. What are the 4 basic principles of OOPS?

Ans.

The 4 basic principles of OOPS are Abstraction, Encapsulation, Inheritance, and Polymorphism.

  • Abstraction: Hiding complex implementation details and showing only necessary information.

  • Encapsulation: Binding data and functions together and restricting access to them.

  • Inheritance: Creating new classes from existing ones, inheriting properties and methods.

  • Polymorphism: Ability of objects to take on multiple forms or behaviors.

Add your answer

Q93. What is c ,c++ and debugging

Ans.

C and C++ are programming languages used for system and application development. Debugging is the process of finding and fixing errors in code.

  • C is a procedural language used for system programming and embedded systems.

  • C++ is an object-oriented language used for application development and game programming.

  • Debugging involves using tools like breakpoints, print statements, and debuggers to identify and fix errors in code.

  • Common debugging techniques include step-by-step executi...read more

Add your answer

Q94. what are types of variables in python?

Ans.

Types of variables in Python include integers, floats, strings, lists, tuples, dictionaries, and booleans.

  • Integers: whole numbers without decimal points (e.g. 5, -3)

  • Floats: numbers with decimal points (e.g. 3.14, -0.5)

  • Strings: sequences of characters enclosed in quotes (e.g. 'hello', '123')

  • Lists: ordered collections of items enclosed in square brackets (e.g. [1, 'apple', True])

  • Tuples: ordered collections of items enclosed in parentheses (e.g. (1, 'banana', False))

  • Dictionaries...read more

Add your answer

Q95. Why do we need oops concepts? Oops concepts

Ans.

OOPs concepts are essential in software development as they provide a structured approach to designing and organizing code.

  • Encapsulation: Helps in bundling data and methods together, providing data security and code reusability.

  • Inheritance: Allows code reuse and promotes code organization by creating a hierarchy of classes.

  • Polymorphism: Enables objects to take on multiple forms, allowing flexibility and extensibility in code.

  • Abstraction: Simplifies complex systems by breaking...read more

Add your answer

Q96. what is inheritance

Ans.

Inheritance is a concept in object-oriented programming where a class inherits properties and behaviors from another class.

  • Allows a class to inherit attributes and methods from another class

  • Promotes code reusability and reduces redundancy

  • Creates a parent-child relationship between classes

  • Derived class can override or extend the functionality of the base class

Add your answer

Q97. how to update records in before insert?

Ans.

Use a before insert trigger to update records before they are inserted into the database.

  • Create a before insert trigger on the object you want to update records for.

  • Write the logic in the trigger to update the records as needed.

  • Make sure to test the trigger thoroughly before deploying it to production.

Add your answer

Q98. Multithreading and how to use it

Ans.

Multithreading allows multiple threads to run concurrently, improving performance and responsiveness.

  • Multithreading is used to execute multiple tasks simultaneously within a single process.

  • It can improve performance by utilizing multiple CPU cores efficiently.

  • Common multithreading libraries include Java's Thread class and C#'s Task Parallel Library.

  • Example: In a web server, multithreading can handle multiple client requests concurrently.

  • Example: In a video game, multithreadin...read more

Add your answer

Q99. Sql Join IIS server Project on which you worked

Ans.

SQL Join is used to combine rows from two or more tables based on a related column between them.

  • INNER JOIN returns only the matching rows between tables

  • LEFT JOIN returns all rows from the left table and matching rows from the right table

  • RIGHT JOIN returns all rows from the right table and matching rows from the left table

  • FULL OUTER JOIN returns all rows from both tables

  • IIS server is a web server used to host web applications

  • Project details depend on individual experience

Add your answer

Q100. What is the advantage of helper file

Ans.

Helper files provide reusable functions and code snippets to simplify development tasks.

  • Organizes code into separate files for better maintainability

  • Encapsulates common functions for easy reuse

  • Reduces code duplication and promotes DRY (Don't Repeat Yourself) principle

  • Improves readability and modularity of code

  • Example: A helper file containing functions for date formatting used across multiple components

Add your answer
1
2
3
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Mitra SK

based on 468 interviews
5 Interview rounds
Technical Round - 1
Technical Round - 2
HR Round - 1
HR Round - 2
Personal Interview1 Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Developer Interview Questions from Similar Companies

3.5
 • 60 Interview Questions
3.5
 • 35 Interview Questions
3.6
 • 12 Interview Questions
3.8
 • 11 Interview Questions
3.2
 • 10 Interview Questions
View all
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

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