TCS
200+ MSC Software Interview Questions and Answers
Q101. Tell above Agile methodology & waterfall model
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
Q102. 3. Explain the code algorithm to find Prime number?
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
Q103. What is memory leak?
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
Q104. What is the difference between temp table and cte?
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
Q105. can you explain how a do-while loop work?
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);
Q106. How to convert ASCII to binary?
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.
Q107. What are OOPS concepts?
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
Q108. What is stack and queue?
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
Q109. What are variables in C?
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';
Q110. what is stack and queue with real-world examples
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.
Q111. What are the SQL commands?
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
Q112. What is your favourite programming language
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.
Q113. Introduce urself? Explain ur project? Write a logic for pyramid pattern?
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
Q114. Write a program on Structures (gave a situation)
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
Q115. If you get away location, so can you adjust there?
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.
Q116. Write a program to sort the elements( Bubble sorting technique)
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
Q117. When is Iphone 7 released?
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.
Q118. what is cloud computing?
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.
Q119. What is tree? and its traversal technique
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
Q120. Different between primary key and foreign key
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
Q121. What are Oops concepts in Java?
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
Q122. what is stored procedure?
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
Q123. 3. Data types in C++ programming
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.
Q124. Why you want to join tcs OOPs concepts , what is jvm and jdk
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
Q125. Differences between C and Java?
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
Q126. Write code regarding addition of two integers in python .type it in chat
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.
Q127. Anuly framework you know ?
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
Q128. Two coding question-program for anagrams and find the number is prime or not.
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.
Q129. difference between template driven and reactive form
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
Q130. What is type casting?
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.
Q131. What are the languages that you know?
I am proficient in several programming languages.
Java
Python
C++
JavaScript
Q132. what is static variable?
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
Q133. What is MVC? Explain how it is work
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
Q134. What is ASCII?
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'.
Q135. Aspects of language c c++ data structure
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
Q136. Is their any drawbacks of Agile model
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
Q137. 4. Difference between Class and Structure?
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.
Q138. Why do you want tcs?
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
Q139. What is 503 status code used for?
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
Q140. Difference between and Java and c
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
Q141. Dynamic memory allocation in C++
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
Q142. 4. Data Structures in C++ programming
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.
Q143. Write a program to check a number is prime
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
Q144. What is object oriented programming language
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
Q145. What is pipelining?
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.
Q146. What are strings?
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.'
Q147. Difference between if and while loop.
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 }
Q148. How the distillation column works.What is VDU
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
Q149. Explain how to connect DB with API
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
Q150. What is Pointer?
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.
Q151. What are your skills in programming?
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
Q152. What is ASCII code of 'a'?
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.
Q153. Difference between Tuple and list in python
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]
Q154. Difference between Agile and waterfall model
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
Q155. Famous brand logos and their meanings
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
Q156. What is pointer in c?
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.
Q157. what are angular life cycle?
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
Q158. Q6- what are the types of normalisation
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)
Q159. write code to swap numbers without using third variable.
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.
Q160. Difference between object oriented and procedure oriented
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
Q161. Why pointer is not in Java?
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++.
Q162. Write the logic of recursion?
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.
Q163. Latest version of html why use html css
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.
Q164. What are different types of inheritance
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
Q165. diff bw c and C++, explain operater overloading,polymorphism
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
Q166. how does angular application starts
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.
Q167. Do you have any active backlogs
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
Q168. What is cloud, types of cloud.
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
Q169. Why TCS?
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
Q170. How do you retrieve a file?
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
Q171. What is the products and Services of TCS
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
Q172. What TCS do? Tell me about TCS.
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
Q173. What you know about programming?
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
Q174. What are access specifiers
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
Q175. What is scope of variables
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
Q176. Why you used C language in test
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
Q177. What is a DBMS ans what are the types
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
Q178. Difference between C and C++?
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
Q179. Explain scope of variables?
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
Q180. what is a foreign key in SQL?
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.
Q181. What is inheritance
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'
Q182. uses of for loop in python
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
Q183. what is Inheritance . Give some example
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'
Q184. What is recursion. Write a code.
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
Q185. Tell me something which is not in resume
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
Q186. Sell me a pen
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
Q187. What is malloc calloc?
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.
Q188. What is Oops? Explain
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
Q189. why is java platform independent
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
Q190. Run time exceptions?
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.
Q191. What is inheritance in Java?
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
Q192. write HTML code to display to take input.
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
Q193. What is inner join ?
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
Q194. 4 oops concepts in c programming
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
Q195. Sorting an array based on odd and even numbers
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
Q196. What do you know in SQL?
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
Q197. What is a binary tree what is bubble sort
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
Q198. What are 1CNF, 2CNF, 3CNF ?
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.
Q199. Write a program to swap 2 numbers
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
Q200. 2. ANY BACKLOGS AND GRADUATION MARKS
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
More about working at TCS
Top HR Questions asked in MSC Software
Interview Process at MSC Software
Reviews
Interviews
Salaries
Users/Month