Add office photos
Engaged Employer

TCS

3.7
based on 89.8k Reviews
Video summary
Filter interviews by

200+ MSC Software Interview Questions and Answers

Updated 7 Feb 2025
Popular Designations

Q101. Tell above Agile methodology & waterfall model

Ans.

Agile methodology is iterative and flexible, while waterfall model is sequential and rigid.

  • Agile focuses on delivering working software in short iterations

  • Waterfall follows a linear sequential flow from requirements to testing

  • Agile allows for changes and feedback throughout the development process

  • Waterfall requires all requirements to be defined upfront

  • Agile is more adaptive to changes in project scope

  • Waterfall is less flexible and changes are difficult to implement

Add your answer

Q102. 3. Explain the code algorithm to find Prime number?

Ans.

Algorithm to find prime numbers

  • Start with 2 and check if the number is divisible by any number between 2 and itself

  • If it is not divisible by any number, it is a prime number

  • Optimization: Only check up to the square root of the number

Add your answer

Q103. What is memory leak?

Ans.

Memory leak is a condition where a program fails to release memory it no longer needs, leading to memory consumption and performance issues.

  • Memory leak occurs when dynamically allocated memory is not deallocated properly.

  • It can happen when a program loses the reference to allocated memory without freeing it.

  • Memory leaks can gradually consume all available memory, causing the program or system to crash.

  • Common causes include forgetting to free memory, incorrect use of pointers,...read more

View 1 answer

Q104. What is the difference between temp table and cte?

Ans.

Temp table is a physical table stored in tempdb, while CTE is a temporary result set defined within the execution scope of a single SELECT, INSERT, UPDATE, DELETE, or CREATE VIEW statement.

  • Temp table is stored in tempdb database, while CTE is defined within the execution scope of a single statement.

  • Temp table can be used multiple times in a query, while CTE can only be referenced within the statement that defines it.

  • CTE is more efficient for smaller result sets, while temp ta...read more

Add your answer
Discover MSC Software interview dos and don'ts from real experiences

Q105. can you explain how a do-while loop work?

Ans.

A do-while loop executes the code block at least once and then repeatedly executes it while the specified condition is true.

  • The code block is executed once before the condition is checked

  • If the condition is true, the code block is executed again and again until the condition becomes false

  • Syntax: do { code block } while (condition);

  • Example: do { x++; } while (x < 5);

Add your answer

Q106. How to convert ASCII to binary?

Ans.

ASCII can be converted to binary by representing each character as its corresponding 8-bit binary code.

  • Each ASCII character has a unique 8-bit binary code.

  • The binary code can be found using an ASCII table.

  • For example, the letter 'A' has a binary code of 01000001.

  • To convert a string of ASCII characters to binary, simply find the binary code for each character and concatenate them together.

Add your answer
Are these interview questions helpful?

Q107. What are OOPS concepts?

Ans.

OOPS concepts are the principles of Object-Oriented Programming that help in designing and implementing software systems.

  • Abstraction

  • Encapsulation

  • Inheritance

  • Polymorphism

  • Classes and Objects

  • Methods and Properties

  • Interfaces

  • Overloading and Overriding

Add your answer

Q108. What is stack and queue?

Ans.

Stack and queue are data structures used to store and retrieve data in a specific order.

  • Stack is a Last-In-First-Out (LIFO) data structure where the last element added is the first one to be removed.

  • Queue is a First-In-First-Out (FIFO) data structure where the first element added is the first one to be removed.

  • Stacks are used in undo-redo functionality, recursive function calls, and browser history.

  • Queues are used in scheduling tasks, printing documents, and handling requests...read more

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

Q109. What are variables in C?

Ans.

Variables in C are containers that hold data values and can be manipulated throughout the program.

  • Variables must be declared before use

  • They can hold different types of data such as integers, floats, and characters

  • Their values can be changed throughout the program

  • They can be used in mathematical operations

  • Examples: int age = 25; float price = 10.99; char letter = 'a';

Add your answer

Q110. what is stack and queue with real-world examples

Ans.

Stack and queue are data structures used to store and retrieve data in a specific order.

  • Stack is a Last-In-First-Out (LIFO) data structure. Example: a stack of plates.

  • Queue is a First-In-First-Out (FIFO) data structure. Example: a queue of people waiting in line.

Add your answer

Q111. What are the SQL commands?

Ans.

SQL commands are used to interact with databases to perform tasks such as querying, updating, and deleting data.

  • SQL commands are used to interact with databases

  • Common SQL commands include SELECT, INSERT, UPDATE, DELETE

  • Examples: SELECT * FROM table_name, INSERT INTO table_name (column1, column2) VALUES (value1, value2), UPDATE table_name SET column1 = value1 WHERE condition

Add your answer

Q112. What is your favourite programming language

Ans.

My favorite programming language is Python.

  • Python is easy to learn and has a simple syntax.

  • It has a vast library of modules and frameworks for various applications.

  • Python is widely used in data science and machine learning.

  • It is versatile and can be used for web development, automation, and scripting.

  • Python has a large and supportive community.

  • Some examples of popular Python frameworks are Django, Flask, and PyTorch.

Add your answer

Q113. Introduce urself? Explain ur project? Write a logic for pyramid pattern?

Ans.

I am a candidate for Assistant System Engineer position. I have experience in project development and can write a logic for pyramid pattern.

  • My name is [Name] and I have [Number] years of experience in [Field].

  • I recently worked on a project where I developed a [Project Description].

  • To create a pyramid pattern, I would start with a loop to iterate through the number of rows.

  • Within the loop, I would create another loop to print the spaces before the stars.

  • Then, I would create an...read more

Add your answer

Q114. Write a program on Structures (gave a situation)

Ans.

Program to demonstrate the use of structures in C++

  • Define a structure to hold information about a student (e.g. name, roll number, marks)

  • Create variables of the structure type and assign values to them

  • Access and display the information stored in the structure variables

Add your answer

Q115. If you get away location, so can you adjust there?

Ans.

Yes, I am adaptable and can adjust to new locations easily.

  • I am a quick learner and can adapt to new environments efficiently.

  • I have experience working in diverse locations and have always adjusted well.

  • I am open to new experiences and challenges, which helps me adjust to different locations.

  • I believe in being flexible and resourceful, which allows me to adapt to any location.

Add your answer

Q116. Write a program to sort the elements( Bubble sorting technique)

Ans.

Bubble sort program for sorting an array of strings.

  • Create a function to perform bubble sort

  • Loop through the array and compare adjacent elements

  • Swap elements if they are in the wrong order

  • Repeat until no more swaps are needed

  • Return the sorted array

Add your answer

Q117. When is Iphone 7 released?

Ans.

The iPhone 7 was released on September 16, 2016.

  • The iPhone 7 was released on September 16, 2016.

  • It was the successor to the iPhone 6s and 6s Plus.

  • The iPhone 7 introduced several new features, including a water-resistant design and the removal of the headphone jack.

Add your answer

Q118. what is cloud computing?

Ans.

Cloud computing is the delivery of computing services over the internet.

  • Cloud computing allows users to access and use computing resources on-demand, such as storage, processing power, and software applications.

  • It eliminates the need for users to own and manage physical infrastructure, as the resources are provided by a third-party service provider.

  • Examples of cloud computing services include Amazon Web Services (AWS), Microsoft Azure, and Google Cloud Platform.

Add your answer

Q119. What is tree? and its traversal technique

Ans.

A tree is a data structure consisting of nodes connected by edges. Traversal techniques include in-order, pre-order, post-order, and level-order.

  • A tree is a hierarchical data structure with a root node and child nodes.

  • Traversal techniques include in-order (left subtree, root, right subtree), pre-order (root, left subtree, right subtree), post-order (left subtree, right subtree, root), and level-order (level by level).

  • Examples of trees include binary trees, binary search trees...read more

Add your answer

Q120. Different between primary key and foreign key

Ans.

Primary key uniquely identifies a record in a table, while foreign key refers to a field in another table.

  • Primary key is unique and cannot be null

  • Foreign key is used to establish a relationship between two tables

  • Primary key can be used as a foreign key in another table

  • Foreign key can have null values

  • Example: CustomerID in Orders table is a foreign key referencing CustomerID in Customers table

Add your answer

Q121. What are Oops concepts in Java?

Ans.

Oops concepts are the fundamental principles of object-oriented programming in Java.

  • Encapsulation: wrapping data and methods into a single unit

  • Inheritance: creating new classes from existing ones

  • Polymorphism: using a single method to perform different tasks

  • Abstraction: hiding implementation details and showing only necessary information

Add your answer

Q122. what is stored procedure?

Ans.

A stored procedure is a precompiled set of SQL statements that can be executed on a database server.

  • Stored procedures are used to encapsulate and execute a series of SQL statements.

  • They can be used to improve performance by reducing network traffic.

  • Stored procedures can accept input parameters and return output parameters or result sets.

  • They can be used for complex data manipulation, business logic implementation, and security enforcement.

  • Examples of stored procedures include...read more

Add your answer

Q123. 3. Data types in C++ programming

Ans.

Data types in C++ programming

  • C++ has built-in data types like int, float, double, char, bool, etc.

  • User-defined data types can also be created using classes and structures.

  • Data types determine the size and type of data that can be stored in a variable.

  • Data types also affect the memory allocation and performance of the program.

Add your answer

Q124. Why you want to join tcs OOPs concepts , what is jvm and jdk

Ans.

I want to join TCS because of its reputation and opportunities. OOPs concepts are fundamental to object-oriented programming. JVM and JDK are essential components of Java programming.

  • TCS is a well-known and respected company in the IT industry

  • TCS offers a wide range of opportunities for career growth and development

  • OOPs concepts are important for creating modular and reusable code

  • JVM is the virtual machine that executes Java bytecode

  • JDK is the Java Development Kit that includ...read more

Add your answer

Q125. Differences between C and Java?

Ans.

C is a procedural language while Java is an object-oriented language.

  • C is compiled while Java is interpreted

  • C has pointers while Java does not

  • Java has automatic garbage collection while C does not

  • Java has platform independence while C does not

  • Java has built-in exception handling while C does not

Add your answer

Q126. Write code regarding addition of two integers in python .type it in chat

Ans.

Code for adding two integers in Python.

  • Declare two integer variables and assign values to them.

  • Add the two variables using the '+' operator.

  • Print the result using the 'print' function.

Add your answer

Q127. Anuly framework you know ?

Ans.

Yes

  • AngularJS - a JavaScript framework for building web applications

  • React - a JavaScript library for building user interfaces

  • Django - a high-level Python web framework

  • Spring - a Java framework for building enterprise-level applications

Add your answer

Q128. Two coding question-program for anagrams and find the number is prime or not.

Ans.

Two coding questions - program for anagrams and finding if a number is prime or not.

  • For anagrams, compare sorted versions of the two strings.

  • For prime numbers, check if the number is divisible by any number less than its square root.

  • Use a loop to iterate through the numbers less than the square root of the number.

Add your answer

Q129. difference between template driven and reactive form

Ans.

Template driven forms are based on directives while reactive forms are based on reactive programming.

  • Template driven forms are easier to use and require less code.

  • Reactive forms are more flexible and allow for more complex validation.

  • Template driven forms are suitable for simple forms while reactive forms are better for complex forms.

  • Template driven forms use two-way data binding while reactive forms use observable streams.

  • Template driven forms are synchronous while reactive ...read more

Add your answer

Q130. What is type casting?

Ans.

Type casting is the process of converting a variable from one data type to another.

  • It is also known as type conversion.

  • It can be done implicitly or explicitly.

  • Explicit type casting is done using casting operators.

  • Examples of casting operators include (int), (float), and (char).

  • Type casting can lead to loss of data if the target data type cannot hold the original value.

Add your answer

Q131. What are the languages that you know?

Ans.

I am proficient in several programming languages.

  • Java

  • Python

  • C++

  • JavaScript

Add your answer

Q132. what is static variable?

Ans.

A static variable is a variable that is shared by all instances of a class and retains its value even after the function ends.

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

  • They are initialized only once, at the start of the program execution.

  • Static variables are stored in the data segment of memory.

  • They can be accessed directly using the class name without creating an object.

  • Changes made to a static variable in one instance of a class will be reflected in all other...read more

Add your answer

Q133. What is MVC? Explain how it is work

Ans.

MVC stands for Model-View-Controller. It is a software design pattern used to separate an application's concerns.

  • Model represents the data and business logic

  • View displays the data to the user

  • Controller handles user input and updates the model and view accordingly

  • MVC promotes separation of concerns and modularity

  • Examples include Ruby on Rails, ASP.NET MVC, and Spring MVC

Add your answer

Q134. What is ASCII?

Ans.

ASCII stands for American Standard Code for Information Interchange. It is a character encoding standard used to represent text in computers.

  • ASCII is a 7-bit character set that includes 128 characters.

  • Each character is represented by a unique numeric code.

  • ASCII codes are used to represent characters in computer systems and communication protocols.

  • Common ASCII codes include 65 for 'A', 97 for 'a', and 48 for '0'.

View 1 answer

Q135. Aspects of language c c++ data structure

Ans.

Aspects of language C/C++ data structure

  • C/C++ have built-in data structures like arrays, linked lists, stacks, queues, trees, etc.

  • Data structures help in organizing and manipulating data efficiently.

  • C/C++ provide libraries for implementing advanced data structures like hash tables, graphs, etc.

  • Understanding data structures is crucial for efficient algorithm design and problem-solving.

  • Example: In C/C++, an array is a data structure that stores a fixed-size sequential collectio...read more

View 2 more answers

Q136. Is their any drawbacks of Agile model

Ans.

Yes, there are drawbacks of Agile model.

  • Lack of predictability in terms of project timelines and deliverables

  • Difficulty in handling large and complex projects

  • Dependency on customer collaboration and feedback can sometimes slow down the process

  • Requires experienced team members for effective implementation

  • May lead to scope creep if not managed properly

Add your answer

Q137. 4. Difference between Class and Structure?

Ans.

Classes are reference types while structures are value types.

  • Classes support inheritance while structures do not.

  • Classes can have default constructor while structures cannot.

  • Classes are stored in heap memory while structures are stored in stack memory.

  • Classes can be null while structures cannot.

  • Classes are used for complex data types while structures are used for simple data types.

Add your answer

Q138. Why do you want tcs?

Ans.

I want to work at TCS because of its global presence, diverse projects, and opportunities for growth.

  • TCS is a global company with a strong presence in multiple countries, which provides me with the opportunity to work on diverse projects and gain exposure to different cultures and work environments.

  • TCS has a reputation for being a leader in the IT industry, and I believe working here will allow me to enhance my skills and knowledge.

  • TCS offers excellent career growth opportuni...read more

View 1 answer

Q139. What is 503 status code used for?

Ans.

503 status code is used to indicate that the server is temporarily unable to handle the request due to maintenance or overload.

  • 503 Service Unavailable status code indicates that the server is currently unable to handle the request due to a temporary overload or maintenance.

  • It can also be used when the server is down for maintenance or experiencing issues that prevent it from fulfilling the request.

  • Commonly seen during high traffic periods or server maintenance.

  • Example: A webs...read more

Add your answer

Q140. Difference between and Java and c

Ans.

Java is a high-level, object-oriented programming language with automatic memory management, while C is a low-level, procedural programming language with manual memory management.

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

  • Java has automatic garbage collection, while C requires manual memory management.

  • Java is more secure due to its strong type system, while C allows for more direct memory manipulation.

  • Java is used for developing web applications, mobile apps,...read more

Add your answer

Q141. Dynamic memory allocation in C++

Ans.

Dynamic memory allocation in C++ allows for the allocation and deallocation of memory during program execution.

  • Dynamic memory allocation is done using the 'new' keyword in C++.

  • It allows for the creation of arrays or individual objects on the heap.

  • Memory allocated dynamically must be explicitly deallocated using the 'delete' keyword.

  • Dynamic memory allocation is useful when the size of data is not known at compile-time.

  • It can help optimize memory usage and improve program flexi...read more

Add your answer

Q142. 4. Data Structures in C++ programming

Ans.

Data structures in C++ are used to organize and store data efficiently.

  • C++ provides various built-in data structures like arrays, linked lists, stacks, queues, trees, and graphs.

  • Data structures help in performing operations like searching, sorting, and inserting data efficiently.

  • Choosing the right data structure is important for optimizing the performance of a program.

  • C++ also allows creating custom data structures using classes and templates.

Add your answer

Q143. Write a program to check a number is prime

Ans.

Program to check if a number is prime

  • A prime number is only divisible by 1 and itself

  • Loop through numbers from 2 to n-1 and check if n is divisible by any of them

  • If n is divisible by any number, it is not prime

  • If n is not divisible by any number, it is prime

Add your answer

Q144. What is object oriented programming language

Ans.

Object-oriented programming language is a programming paradigm based on the concept of objects.

  • It focuses on creating objects that contain both data and functions

  • Encapsulation, inheritance, and polymorphism are key concepts

  • Examples include Java, C++, Python, and Ruby

Add your answer

Q145. What is pipelining?

Ans.

Pipelining is a technique used in computer architecture to increase the throughput of a processor.

  • Pipelining breaks down the execution of instructions into smaller stages that can be overlapped.

  • Each stage of the pipeline performs a specific task on the instruction.

  • The output of one stage is passed as input to the next stage.

  • This allows multiple instructions to be processed simultaneously.

  • Examples of pipelined processors include Intel Pentium and ARM Cortex-A series.

Add your answer

Q146. What are strings?

Ans.

Strings are arrays of characters used to represent text in programming languages.

  • Strings are a data type in programming languages.

  • They are typically enclosed in quotation marks.

  • Strings can contain letters, numbers, symbols, and spaces.

  • They can be concatenated or manipulated using various string operations.

  • Examples: 'Hello, World!', '12345', 'This is a string.'

View 1 answer

Q147. Difference between if and while loop.

Ans.

If loop is used for conditional execution while while loop is used for repetitive execution.

  • If loop executes the code block only if the condition is true.

  • While loop executes the code block repeatedly as long as the condition is true.

  • If loop is used for decision-making while while loop is used for iteration.

  • Example of if loop: if (x > 5) { // do something }

  • Example of while loop: while (x < 10) { // do something }

Add your answer

Q148. How the distillation column works.What is VDU

Ans.

Distillation column separates components of a mixture based on their boiling points. VDU is a type of distillation column used in oil refineries.

  • Distillation column works on the principle of separating components of a mixture based on their boiling points.

  • The mixture is heated and vaporized, then the vapor is condensed and collected in trays or packing material.

  • The trays or packing material provide a large surface area for the vapor to condense and separate into different com...read more

Add your answer

Q149. Explain how to connect DB with API

Ans.

To connect a database with an API, you need to establish a connection between the database and the API server.

  • Create an API endpoint that will handle database operations such as CRUD (Create, Read, Update, Delete) operations.

  • Use database drivers or ORM (Object-Relational Mapping) libraries to interact with the database from the API code.

  • Establish a secure connection between the API server and the database by configuring authentication and authorization mechanisms.

  • Handle error...read more

Add your answer

Q150. What is Pointer?

Ans.

A pointer is a variable that stores the memory address of another variable.

  • Pointers are used to manipulate data directly in memory.

  • They are commonly used in C and C++ programming languages.

  • Pointers can be used to pass values by reference, allowing functions to modify the original data.

  • Null pointers are used to indicate that a pointer does not point to a valid memory address.

Add your answer

Q151. What are your skills in programming?

Ans.

I have strong skills in programming languages such as Java, Python, and C++.

  • Proficient in Java, Python, and C++ programming languages

  • Experience with data structures and algorithms

  • Familiarity with software development methodologies

  • Ability to troubleshoot and debug code efficiently

Add your answer

Q152. What is ASCII code of 'a'?

Ans.

The ASCII code of 'a' is 97.

  • ASCII stands for American Standard Code for Information Interchange.

  • Each character is assigned a unique numerical value.

  • The ASCII code for lowercase letters starts from 97.

  • The ASCII code for uppercase letters starts from 65.

  • The ASCII code for numbers starts from 48.

Add your answer

Q153. Difference between Tuple and list in python

Ans.

Tuple is immutable, ordered collection of elements while list is mutable, ordered collection of elements in Python.

  • Tuple is created using parentheses () while list is created using square brackets []

  • Tuple elements cannot be changed once assigned while list elements can be modified

  • Tuple is faster than list for iteration and accessing elements

  • Example: tuple_example = (1, 2, 3) and list_example = [1, 2, 3]

Add your answer

Q154. Difference between Agile and waterfall model

Ans.

Agile is iterative and flexible, while waterfall is sequential and rigid.

  • Agile involves continuous feedback and adaptation, while waterfall follows a linear approach.

  • Agile is best suited for projects with changing requirements, while waterfall is better for projects with well-defined requirements.

  • Agile promotes collaboration and communication among team members, while waterfall focuses on documentation and formal processes.

  • Agile allows for early delivery of working software, ...read more

Add your answer

Q155. Famous brand logos and their meanings

Ans.

Famous brand logos have hidden meanings that represent their brand values and identity.

  • The Nike swoosh represents motion and speed.

  • The Apple logo is an apple with a bite taken out of it, symbolizing knowledge and innovation.

  • The McDonald's golden arches represent the letter M for McDonald's.

  • The FedEx logo has an arrow hidden between the letters E and X, representing speed and precision.

  • The Amazon logo has an arrow pointing from A to Z, indicating that they sell everything from...read more

Add your answer

Q156. What is pointer in c?

Ans.

A pointer in C is a variable that stores the memory address of another variable.

  • Pointers are used to manipulate memory and create dynamic data structures.

  • They can be used to pass values by reference to functions.

  • Pointer arithmetic can be used to iterate over arrays and manipulate data.

  • Null pointers are used to indicate that a pointer does not point to a valid memory address.

View 1 answer

Q157. what are angular life cycle?

Ans.

Angular lifecycle hooks are methods that get called at specific stages of a component's life.

  • There are eight lifecycle hooks in Angular

  • ngOnInit() is called after the component is initialized

  • ngOnChanges() is called when the component's input properties change

  • ngDoCheck() is called during every change detection cycle

  • ngAfterViewInit() is called after the component's view has been initialized

  • ngOnDestroy() is called just before the component is destroyed

Add your answer

Q158. Q6- what are the types of normalisation

Ans.

Normalization is a process of organizing data in a database to reduce redundancy and dependency.

  • First Normal Form (1NF)

  • Second Normal Form (2NF)

  • Third Normal Form (3NF)

  • Boyce-Codd Normal Form (BCNF)

  • Fourth Normal Form (4NF)

  • Fifth Normal Form (5NF) or Project-Join Normal Form (PJNF)

  • Domain-Key Normal Form (DKNF)

Add your answer

Q159. write code to swap numbers without using third variable.

Ans.

Swapping numbers without using a third variable in code.

  • Use bitwise XOR operation to swap numbers without using a third variable.

  • Example: a = 5, b = 10. a = a XOR b, b = a XOR b, a = a XOR b. Result: a = 10, b = 5.

Add your answer

Q160. Difference between object oriented and procedure oriented

Ans.

Object oriented focuses on objects and classes, while procedure oriented focuses on functions and procedures.

  • Object oriented programming involves creating objects, classes, inheritance, polymorphism, and encapsulation.

  • Procedure oriented programming involves writing a list of instructions for the computer to follow.

  • In object oriented programming, data is stored within objects and functions are used to manipulate the data.

  • In procedure oriented programming, data is stored in var...read more

Add your answer

Q161. Why pointer is not in Java?

Ans.

Java doesn't have pointers because of security and memory allocation issues.

  • Java uses references instead of pointers.

  • Pointers can cause security vulnerabilities and memory leaks.

  • Java's garbage collector manages memory allocation automatically.

  • Java's lack of pointers makes it more secure and easier to use than languages like C++.

Add your answer

Q162. Write the logic of recursion?

Ans.

Recursion is a programming technique where a function calls itself in order to solve a problem.

  • Recursion involves breaking down a problem into smaller subproblems and calling the function recursively on those subproblems.

  • A base case is needed to stop the recursion and prevent infinite loops.

  • Examples of recursive functions include factorial calculation, Fibonacci sequence generation, and tree traversal.

Add your answer

Q163. Latest version of html why use html css

Ans.

HTML is used to structure content on web pages, while CSS is used to style and layout the content.

  • HTML is the latest version of the markup language used to create the structure of web pages.

  • CSS is used to style and layout the content created with HTML.

  • Using HTML and CSS together allows for more visually appealing and user-friendly web pages.

  • HTML5 introduced new features like video and audio elements, canvas for graphics, and improved semantics.

Add your answer

Q164. What are different types of inheritance

Ans.

Types of inheritance include single, multiple, multilevel, hierarchical, hybrid, and multipath inheritance.

  • Single inheritance: a class inherits from only one base class

  • Multiple inheritance: a class inherits from more than one base class

  • Multilevel inheritance: a class inherits from a class which in turn inherits from another class

  • Hierarchical inheritance: multiple classes inherit from a single base class

  • Hybrid inheritance: combination of multiple and multilevel inheritance

  • Mult...read more

Add your answer

Q165. diff bw c and C++, explain operater overloading,polymorphism

Ans.

C is a procedural programming language while C++ is an object-oriented programming language. Operator overloading allows operators to be redefined for user-defined types. Polymorphism allows objects of different classes to be treated as objects of a common superclass.

  • C is a procedural programming language, while C++ is an object-oriented programming language

  • Operator overloading in C++ allows operators to be redefined for user-defined types, enabling custom behavior for operat...read more

Add your answer

Q166. how does angular application starts

Ans.

Angular application starts by bootstrapping the AppModule.

  • Angular application is a single page application that runs in the browser.

  • The AppModule is the root module of the application.

  • The AppModule is bootstrapped by calling the bootstrapModule method in main.ts file.

  • The bootstrapModule method creates an instance of the AppModule and starts the application.

Add your answer

Q167. Do you have any active backlogs

Ans.

No active backlogs

  • No, I do not have any active backlogs

  • I have successfully completed all my courses without any pending assignments

  • I am up to date with all my work and responsibilities

Add your answer

Q168. What is cloud, types of cloud.

Ans.

Cloud refers to the delivery of computing services over the internet. There are three types of cloud: public, private, and hybrid.

  • Cloud computing allows users to access data and applications from anywhere with an internet connection

  • Public cloud services are provided by third-party companies like Amazon Web Services and Microsoft Azure

  • Private cloud services are operated solely for a single organization

  • Hybrid cloud combines public and private cloud services to create a customiz...read more

Add your answer
Ans.

TCS is a global IT services and consulting company with a strong reputation for innovation and client satisfaction.

  • TCS has a strong global presence with operations in over 46 countries.

  • TCS has a diverse range of clients across industries such as banking, healthcare, and retail.

  • TCS has a strong focus on innovation and invests heavily in research and development.

  • TCS has a strong reputation for client satisfaction and has won numerous awards for its services.

  • TCS offers a wide ra...read more

Add your answer

Q170. How do you retrieve a file?

Ans.

To retrieve a file, locate the file in the file system and open it.

  • Open the file explorer or file manager

  • Navigate to the folder where the file is located

  • Locate the file and double-click on it to open it

  • If the file is not visible, use the search function to locate it

  • If the file was recently worked on, check the recent files list in the application used to create or edit the file

Add your answer

Q171. What is the products and Services of TCS

Ans.

TCS offers a wide range of IT services, consulting, and business solutions to clients worldwide.

  • IT services

  • Consulting

  • Business solutions

  • Digital transformation services

  • Cloud services

  • Analytics and insights

  • Automation and AI solutions

Add your answer

Q172. What TCS do? Tell me about TCS.

Ans.

TCS (Tata Consultancy Services) is a global IT services, consulting, and business solutions company.

  • TCS provides IT services, consulting, and business solutions to clients worldwide.

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

  • TCS offers a wide range of services including application development, infrastructure services, and digital transformation.

  • The company is known for its innovation and expertise in emerging technologies like AI, IoT, and blockchain.

  • TCS has...read more

Add your answer

Q173. What you know about programming?

Ans.

I have knowledge of programming languages such as Java, Python, and C++.

  • Proficient in Java, Python, and C++ programming languages

  • Experience with object-oriented programming concepts

  • Familiarity with data structures and algorithms

  • Knowledge of software development methodologies

Add your answer

Q174. What are access specifiers

Ans.

Access specifiers define the visibility and accessibility of class members in object-oriented programming.

  • Access specifiers are keywords used in object-oriented programming languages like Java and C++.

  • They determine the level of access that other classes or objects have to the members of a class.

  • There are three access specifiers: public, private, and protected.

  • Public members are accessible from anywhere in the program.

  • Private members are only accessible within the class itsel...read more

Add your answer

Q175. What is scope of variables

Ans.

The scope of variables refers to the visibility and accessibility of variables within a program.

  • Variables have different scopes depending on where they are declared

  • Local variables have a limited scope and are only accessible within the block of code where they are declared

  • Global variables have a wider scope and can be accessed from anywhere in the program

  • Scope can also be influenced by the use of keywords like 'public', 'private', 'protected' in object-oriented programming

  • Var...read more

Add your answer

Q176. Why you used C language in test

Ans.

C language is used in test due to its efficiency and low-level control over hardware.

  • C is a low-level language that allows for direct manipulation of hardware

  • C is efficient in terms of memory usage and execution speed

  • C is widely used in embedded systems and operating systems

  • C allows for easy integration with assembly language

  • Examples of C-based tests include system-level testing and hardware testing

Add your answer

Q177. What is a DBMS ans what are the types

Ans.

A DBMS (Database Management System) is a software that manages databases, allowing users to store, retrieve, and manipulate data efficiently.

  • DBMS types include relational, hierarchical, network, object-oriented, and NoSQL.

  • Relational DBMS (RDBMS) organizes data into tables with rows and columns, like MySQL and Oracle.

  • Hierarchical DBMS organizes data in a tree-like structure, like IBM's IMS.

  • Network DBMS allows multiple relationships between records, like IDMS and RDM.

  • Object-ori...read more

Add your answer

Q178. Difference between C and C++?

Ans.

C is a procedural programming language while C++ is an extension of C with added features of object-oriented programming.

  • C is a procedural language, while C++ supports both procedural and object-oriented programming.

  • C does not have built-in support for classes and objects, while C++ does.

  • C supports only procedural programming constructs like functions and structures, while C++ supports additional features like classes, inheritance, and polymorphism.

  • C++ has a more extensive st...read more

Add your answer

Q179. Explain scope of variables?

Ans.

The scope of variables refers to the portion of a program where a variable can be accessed and used.

  • Variables have different scopes depending on where they are declared.

  • Local variables have a limited scope and can only be accessed within the block of code where they are declared.

  • Global variables have a broader scope and can be accessed from anywhere in the program.

  • Scope can also be influenced by factors like function calls and nested blocks.

  • Variables with the same name can ha...read more

Add your answer

Q180. what is a foreign key in SQL?

Ans.

A foreign key is a column or set of columns in a table that refers to the primary key of another table.

  • It establishes a link between two tables.

  • It ensures referential integrity.

  • It can be used to join tables.

  • Example: CustomerID in Orders table refers to CustomerID in Customers table.

Add your answer

Q181. What is inheritance

Ans.

Inheritance is a concept in object-oriented programming where a class can inherit attributes and methods 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 access the properties and methods of the base class

  • Example: Class 'Car' can inherit from class 'Vehicle' and inherit its attributes like 'color' and methods like 'drive'

Add your answer

Q182. uses of for loop in python

Ans.

For loop in Python is used to iterate over a sequence (list, tuple, string) or other iterable objects.

  • Iterating over a list of numbers

  • Iterating over a string to access each character

  • Iterating over a dictionary to access keys and values

Add your answer

Q183. what is Inheritance . Give some example

Ans.

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

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

  • Promotes code reusability and reduces redundancy

  • Derived class can add its own attributes and methods or override existing ones

  • Example: Parent class 'Animal' with attributes 'name' and method 'eat', Child class 'Dog' inherits 'Animal' and adds method 'bark'

Add your answer

Q184. What is recursion. Write a code.

Ans.

Recursion is a process in which a function calls itself repeatedly until a base condition is met.

  • Recursion is useful for solving problems that can be broken down into smaller sub-problems.

  • It is important to have a base case to prevent infinite recursion.

  • Examples of recursive algorithms include factorial, Fibonacci sequence, and binary search.

  • Recursive functions can be less efficient than iterative solutions.

  • Recursion can be used to traverse data structures such as trees and g...read more

Add your answer

Q185. Tell me something which is not in resume

Ans.

I have experience in troubleshooting complex network issues.

  • I have successfully resolved network connectivity issues for a large organization.

  • I am skilled in using network monitoring tools to identify and resolve network problems.

  • I have implemented network security measures to protect against cyber threats.

  • I have experience in configuring and managing routers, switches, and firewalls.

  • I have a strong understanding of TCP/IP protocols and network protocols such as DNS, DHCP, an...read more

Add your answer

Q186. Sell me a pen

Ans.

This pen is not just any pen, it's a tool that can help you achieve your goals.

  • This pen is sleek and stylish, perfect for any professional setting.

  • It writes smoothly and effortlessly, making it easy to jot down notes or sign important documents.

  • The ink is long-lasting and won't smudge or smear, ensuring your writing stays legible.

  • It's also versatile, with the ability to write on a variety of surfaces including paper, cardboard, and even glossy surfaces.

  • This pen is a must-have...read more

Add your answer

Q187. What is malloc calloc?

Ans.

malloc and calloc are functions used in C programming language to dynamically allocate memory.

  • malloc stands for memory allocation and is used to allocate a block of memory of specified size.

  • calloc stands for contiguous allocation and is used to allocate multiple blocks of memory of specified size.

  • Both functions return a pointer to the first byte of the allocated memory.

  • It is important to free the allocated memory using the free() function to avoid memory leaks.

Add your answer

Q188. What is Oops? Explain

Ans.

Oops stands for Object-Oriented Programming System. It is a programming paradigm based on objects.

  • Oops is a programming paradigm that focuses on objects and their interactions.

  • It allows for encapsulation, inheritance, and polymorphism.

  • Encapsulation refers to the hiding of implementation details within an object.

  • Inheritance allows for the creation of new classes based on existing ones.

  • Polymorphism allows for the use of a single interface to represent multiple types of objects....read more

Add your answer

Q189. why is java platform independent

Ans.

Java is platform independent because of its bytecode and JVM.

  • Java code is compiled into bytecode which is platform-independent

  • Java Virtual Machine (JVM) interprets bytecode and executes it on any platform

  • JVM acts as an abstraction layer between Java code and underlying platform

  • Example: A Java program compiled on Windows can run on Linux without any modifications

Add your answer

Q190. Run time exceptions?

Ans.

Run time exceptions are errors that occur during program execution.

  • They are unexpected and can cause the program to crash.

  • Examples include null pointer exceptions and arithmetic exceptions.

  • They can be handled using try-catch blocks.

  • Proper error handling can prevent run time exceptions.

Add your answer

Q191. What is inheritance in Java?

Ans.

Inheritance is a mechanism in Java where a class acquires the properties and methods of another class.

  • It allows for code reusability and promotes a hierarchical organization of classes.

  • The class that is being inherited from is called the superclass or parent class.

  • The class that inherits from the superclass is called the subclass or child class.

  • The keyword 'extends' is used to inherit from a superclass.

  • The subclass can override methods of the superclass to provide its own imp...read more

Add your answer

Q192. write HTML code to display to take input.

Ans.

HTML code to display input form

  • Use <form> tag to create a form

  • Use <input> tag to create input fields

  • Specify input type using 'type' attribute (e.g. text, number, email)

  • Use <label> tag to provide a label for the input field

Add your answer

Q193. What is inner join ?

Ans.

Inner join is a type of join operation in relational databases that returns only the matching rows from both tables.

  • Inner join combines rows from two or more tables based on a related column between them.

  • It returns only the rows where the join condition is true.

  • The result set of an inner join contains only the columns that are common to both tables.

  • Inner join is commonly used to retrieve data that exists in multiple tables.

  • Example: SELECT * FROM table1 INNER JOIN table2 ON ta...read more

Add your answer

Q194. 4 oops concepts in c programming

Ans.

4 OOPs concepts in C programming are encapsulation, inheritance, polymorphism, and abstraction.

  • Encapsulation: bundling of data and functions that manipulate them

  • Inheritance: creating new classes from existing ones

  • Polymorphism: ability of objects to take on multiple forms

  • Abstraction: hiding implementation details and showing only functionality

Add your answer

Q195. Sorting an array based on odd and even numbers

Ans.

Sort an array of strings based on odd and even numbers

  • Iterate through the array and separate odd and even numbers into two separate arrays

  • Sort the odd and even arrays separately

  • Combine the sorted odd and even arrays back into one sorted array

Add your answer

Q196. What do you know in SQL?

Ans.

I am proficient in writing SQL queries, creating and modifying database tables, and performing data manipulation tasks.

  • Knowledge of basic SQL commands such as SELECT, INSERT, UPDATE, DELETE

  • Understanding of database normalization and relationships

  • Experience in creating stored procedures, functions, and triggers

  • Ability to write complex queries involving multiple tables and joins

  • Familiarity with indexing, transactions, and performance tuning

  • Example: SELECT * FROM employees WHERE...read more

Add your answer

Q197. What is a binary tree what is bubble sort

Ans.

A binary tree is a data structure in which each node has at most two children, referred to as the left child and the right child.

  • Consists of nodes connected by edges

  • Each node can have at most two children

  • Used for efficient searching and sorting operations

  • Examples: Binary search tree, AVL tree

Add your answer

Q198. What are 1CNF, 2CNF, 3CNF ?

Ans.

1CNF, 2CNF, and 3CNF are types of Boolean satisfiability problems used in computer science.

  • 1CNF is a Boolean formula in conjunctive normal form with at most one literal per clause.

  • 2CNF is a Boolean formula in conjunctive normal form with at most two literals per clause.

  • 3CNF is a Boolean formula in conjunctive normal form with at most three literals per clause.

  • These types of problems are commonly used in computer science for optimization and decision-making tasks.

Add your answer

Q199. Write a program to swap 2 numbers

Ans.

A program to swap 2 numbers

  • Declare two variables and assign values to them

  • Use a temporary variable to store the value of one variable

  • Assign the value of the second variable to the first variable

  • Assign the value of the temporary variable to the second variable

Add your answer

Q200. 2. ANY BACKLOGS AND GRADUATION MARKS

Ans.

No backlogs, graduation marks above 70%

  • No, I do not have any backlogs

  • My graduation marks are above 70%

  • I have successfully completed all my courses without any pending exams

Add your answer
1
2
3
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
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