Add office photos
Employer?
Claim Account for FREE

TCS iON

3.9
based on 1.2k Reviews
Filter interviews by

10+ Desai Construction Interview Questions and Answers

Updated 19 Oct 2024
Popular Designations

Q1. What is Encapsulation?

Ans.

Encapsulation is the process of hiding internal details and providing a public interface for accessing and manipulating data.

  • Encapsulation is a fundamental concept in object-oriented programming.

  • It combines data and methods into a single unit called a class.

  • The class encapsulates the data and provides methods to interact with it.

  • Access to the data is controlled through the class's public interface.

  • Encapsulation helps in achieving data abstraction, data hiding, and code reusab...read more

View 1 answer

Q2. Give the difference between Interface and Abstraction?

Ans.

Interface defines the contract between a class and the outside world, while Abstraction provides a generalized view of an object.

  • Interface is a blueprint of a class that defines the methods and properties that a class must implement.

  • Abstraction is a concept that hides the implementation details and provides a generalized view of an object.

  • Interface is used to achieve multiple inheritance in Java.

  • Abstraction is used to achieve encapsulation in Java.

  • Interface can be implemented...read more

Add your answer

Q3. Program to check whether the number is Palindrome or not?

Ans.

Program to check whether the number is Palindrome or not

  • Convert the number to a string

  • Reverse the string

  • Compare the original and reversed string

  • If they are equal, the number is a palindrome

Add your answer

Q4. Who is the CEO of TCS?

Ans.

Rajesh Gopinathan is the CEO of TCS.

  • Rajesh Gopinathan became the CEO of TCS in February 2017.

  • He joined TCS in 2001 and has held various leadership positions.

  • Under his leadership, TCS has achieved significant growth and global recognition.

  • Rajesh Gopinathan has played a key role in driving TCS' digital transformation initiatives.

  • He has a strong background in finance and has contributed to TCS' financial success.

View 2 more answers
Discover Desai Construction interview dos and don'ts from real experiences

Q5. What are pointers . Write a short program to explain concept of pointers

Ans.

Pointers are variables that store memory addresses of other variables.

  • Pointers are used to access and manipulate memory addresses directly.

  • They are denoted by an asterisk (*) before the variable name.

  • Example: int *ptr; // declares a pointer to an integer variable

Add your answer

Q6. Swap the number without using Third variable.

Ans.

Swapping numbers without using a third variable.

  • Add the two numbers to be swapped

  • Assign the sum to the first variable

  • Subtract the second variable from the sum and assign it to the second variable

  • Subtract the second variable from the first variable and assign it to the first variable

Add your answer
Are these interview questions helpful?

Q7. What is Polymorphism?

Ans.

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

  • Polymorphism 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 parent class Animal can have child classes like Dog, Cat, and Cow. All these child classes can have their own implementation of the method 'makeSound', which is defined in the parent class.

  • Polymorphism makes code more flexible and reusab...read more

Add your answer

Q8. What is the difference between a list and tuple

Ans.

A list is mutable and can be changed, while a tuple is immutable and cannot be changed.

  • List is defined using square brackets [], while tuple is defined using parentheses ().

  • Elements in a list can be modified, added, or removed, while elements in a tuple cannot be changed once defined.

  • Lists are typically used for collections of items that may need to be modified, while tuples are used for fixed collections of items.

  • Example: list - [1, 2, 3], tuple - (4, 5, 6)

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

Q9. Program to Reverse the String?

Ans.

Program to reverse a string

  • Use a loop to iterate through the characters of the string

  • Create a new string and append each character in reverse order

  • Return the reversed string

View 1 answer

Q10. Why python is called interpreted language

Ans.

Python is called an interpreted language because it executes code line by line at runtime.

  • Python code is not compiled into machine code before execution, instead it is translated into intermediate code which is then interpreted by the Python interpreter.

  • This allows for easier debugging and dynamic typing, as code can be executed and tested immediately without the need for compilation.

  • Interpreted languages like Python are generally slower than compiled languages, as the code i...read more

Add your answer

Q11. What is Multiple Inheritence?

Ans.

Multiple Inheritance is a feature in object-oriented programming where a class can inherit properties and behavior from multiple parent classes.

  • A class can inherit from more than one class using multiple inheritance.

  • It can lead to the diamond problem where two parent classes have a common method or attribute.

  • Languages like C++ support multiple inheritance while Java does not.

  • It can be useful in creating complex class hierarchies and reusing code.

  • Example: A class 'Athlete' can...read more

Add your answer

Q12. what is the use of group by in MySQL

Ans.

GROUP BY in MySQL is used to group rows that have the same values into summary rows.

  • Used with SELECT statement to group rows based on one or more columns

  • Can be used with aggregate functions like COUNT, SUM, AVG, etc.

  • Helps in summarizing data and performing calculations on grouped data

  • Example: SELECT department, COUNT(*) FROM employees GROUP BY department

Add your answer

Q13. Program to check Prime Number.

Ans.

Program to check if a number is prime or not.

  • A prime number is a number greater than 1 that has no positive divisors other than 1 and itself.

  • To check if a number is prime, iterate from 2 to the square root of the number and check if it divides the number evenly.

  • If any divisor is found, the number is not prime. Otherwise, it is prime.

View 1 answer

Q14. What is data structure ?

Ans.

Data structure is a way of organizing and storing data in a computer so that it can be accessed and used efficiently.

  • Data structure is a collection of data values, the relationships among them, and the functions or operations that can be applied to the data.

  • Examples of data structures include arrays, linked lists, stacks, queues, trees, graphs, and hash tables.

  • Choosing the right data structure for a particular task is important for efficient and effective programming.

  • Data str...read more

Add your answer

Q15. How to run python file

Ans.

To run a Python file, use the command 'python filename.py' in the terminal.

  • Open the terminal or command prompt

  • Navigate to the directory where the Python file is located

  • Run the command 'python filename.py' to execute the file

Add your answer

Q16. Program to print fibanocci series

Ans.

A program to print the Fibonacci series using a loop or recursion.

  • Use a loop or recursion to generate the Fibonacci series

  • Start with 0 and 1 as the first two numbers in the series

  • Add the previous two numbers to get the next number in the series

Add your answer

Q17. What is osi model

Ans.

The OSI model is a conceptual framework that standardizes the functions of a telecommunication or computing system into seven different layers.

  • The OSI model stands for Open Systems Interconnection model.

  • It helps in understanding how different networking protocols work together.

  • Each layer has specific functions and communicates with the adjacent layers.

  • Examples of layers include physical layer, data link layer, network layer, transport layer, etc.

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

Interview Process at Desai Construction

based on 8 interviews
2 Interview rounds
Aptitude Test Round
Technical Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Assistant System Engineer Trainee Interview Questions from Similar Companies

3.7
 • 221 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