TCS Internship Selection Test Qustions and Answers for Freshers | Updated 2026

Frequently Asked AI/ML Questions in Microsoft For freshers

About author

venkatesh (Spring Boot Developer )

Venkatesh is a skilled Spring Boot Developer with expertise in Java and Python. He builds scalable, robust applications and excels at problem-solving with strong attention to detail. A collaborative team player, he is committed to continuous learning and staying updated with industry trends.

Last updated on 23rd Jun 2026| 7339

19423 Ratings

Artificial Intelligence (AI) and Machine Learning (ML) are among the most important technologies used at Microsoft. Freshers applying for AI, ML, Data Science, and Software Engineering roles are often asked questions related to fundamental concepts, algorithms, data processing, and practical applications. Understanding these topics helps candidates demonstrate their technical knowledge and problem-solving abilities. The following AI/ML interview questions and answers cover essential concepts frequently discussed during Microsoft fresher interviews and can help candidates prepare effectively for technical assessments and interview rounds.

1. What Is Artificial Intelligence (AI)?

Ans:

Artificial Intelligence Is A Branch Of Computer Science That Enables Machines To Perform Tasks That Normally Require Human Intelligence. These Tasks Include Learning, Reasoning, Problem Solving, And Decision Making. AI Systems Analyze Data And Identify Patterns To Make Predictions. AI Is Used In Chatbots, Recommendation Systems, And Self-Driving Cars. It Helps Automate Complex Processes Efficiently. AI Continues To Transform Industries Worldwide.

2. What Is Machine Learning (ML)?

Ans:

Machine Learning Is A Subset Of AI That Allows Computers To Learn From Data Without Explicit Programming. ML Algorithms Improve Their Performance 

Through Experience. They Identify Patterns And Make Predictions Based On Historical Data. Common Applications Include Spam Detection And Recommendation Engines. 

Machine Learning Models Require Training Data To Learn. It Plays A Significant Role In Modern Technology Solutions.

3. Write A Python Program To Calculate The Mean Of A List

Ans:

This Program Calculates The Average Value Of Numbers In A List. The sum() Function Adds All Elements, And len() Returns The Total Count.

  • numbers = [10, 20, 30, 40, 50]
  • mean = sum(numbers) / len(numbers)
  • print(“Mean:”, mean)

4. What Is Deep Learning?

Ans:

Deep Learning Is A Specialized Area Of Machine Learning Based On Artificial Neural Networks. It Uses Multiple Layers To Process Large Volumes Of Data. Deep Learning Excels In Image Recognition, Speech Processing, And Natural Language Processing. These Models Automatically Extract Features From Data. They Require Significant Computational Resources For Training. Deep Learning Has Driven Major Advances In AI Applications.

5. What Is Supervised Learning?

Ans:

Supervised Learning Is A Machine Learning Approach Where Models Are Trained Using Labeled Data. The Algorithm Learns The Relationship Between Inputs And Outputs. It Is Commonly Used For Classification And Regression Problems. Examples Include Predicting House Prices And Email Spam Detection. Training Data Contains Correct Answers For Learning. The Goal Is To Predict Outcomes For New Data Accurately.

6. What Is Unsupervised Learning?

Ans:

Unsupervised Learning Involves Training Models On Unlabeled Data Without Known Outputs. The Algorithm Identifies Hidden Patterns And Structures Within Data. Clustering And Association Rule Mining Are Common Techniques. It Is Useful For Customer Segmentation And Market Analysis. No Correct Labels Are Provided During Training. The Model Discovers Insights Independently From The Dataset.

7. What Is Reinforcement Learning?

Ans:

Reinforcement Learning Is A Machine Learning Technique Where An Agent Learns Through Trial And Error. The Agent Receives Rewards Or Penalties Based On Actions Taken. The Goal Is To Maximize Long-Term Rewards. It Is Used In Robotics, Gaming, And Autonomous Systems. The Learning Process Involves Interaction With An Environment. Successful Actions Are Reinforced Over Time.

8. What Is A Dataset?

Ans:

A Dataset Is A Collection Of Structured Or Unstructured Data Used For Analysis And Model Training. It Contains Records, Features, And Target Variables. Datasets Are Essential For Building Machine Learning Models. High-Quality Data Leads To Better Predictions. Datasets Can Be Collected From Databases, Sensors, Or External Sources. Proper Data Preparation Improves Model Performance.

9. What Are Features In Machine Learning?

Ans:

Features Are Individual Measurable Properties Or Characteristics Of Data Used By Machine Learning Models. They Serve As Input Variables During Training. Examples Include Age, Salary, And Temperature. Feature Selection Helps Improve Accuracy And Efficiency. Relevant Features Enhance Predictive Performance. Poor Feature Choices Can Negatively Affect Model Results.

10. What Is A Label In Machine Learning?

Ans:

A Label Is The Desired Output Or Target Variable In A Supervised Learning Dataset. It Represents The Correct Answer For Each Training Example. Labels Help Models Learn Relationships Between Inputs And Outputs. For Example, Spam Or Not Spam Can Be Labels In Email Classification. Accurate Labels Improve Model Performance. They Are Essential For Supervised Learning Tasks.

11. What Is Overfitting?

Ans:

  • Overfitting Occurs When A Machine Learning Model Learns Training Data Too Well, Including Noise And Irrelevant Patterns. 
  • It Performs Exceptionally On Training Data But Poorly On New Data. Overfitting Reduces Generalization Ability. Complex Models Are More Prone To This Issue. 
  • Techniques Like Regularization And Cross-Validation Help Prevent Overfitting. Balanced Model Complexity Is Important.

12. What Is Underfitting?

Ans:

Underfitting Happens When A Model Is Too Simple To Capture Patterns In The Data. It Performs Poorly On Both Training And Testing Datasets. Important Relationships Remain Unlearned. Underfitting Often Results From Insufficient Features Or Inadequate Training. Increasing Model Complexity Can Improve Performance. The Goal Is To Find The Right Balance Between Simplicity And Accuracy.

13. What Is Training Data?

Ans:

  • Training Data Is The Dataset Used To Teach A Machine Learning Model. It Contains Input Features And Corresponding Outputs. 
  • The Model Learns Patterns And Relationships From This Data. High-Quality Training Data Is Essential For Accurate Predictions. The Training Process Adjusts Model Parameters Based On Examples. 
  • Well-Prepared Data Improves Overall Performance. It Forms The Foundation For Building Reliable And Effective Machine Learning Models.

14. What Is Testing Data?

Ans:

Testing Data Is A Separate Dataset Used To Evaluate A Trained Machine Learning Model. It Measures How Well The Model Generalizes To Unseen Data. Testing Data Is Not Used During Training. Performance Metrics Are Calculated Using Test Results. Proper Evaluation Prevents Biased Assessments. It Helps Determine Real-World Effectiveness. Testing Ensures The Model Can Make Accurate Predictions On New Data.

15. What Is Validation Data?

Ans:

Validation Data Is Used During Model Development To Tune Hyperparameters And Improve Performance. It Helps Compare Different Model Configurations. Validation Occurs Before Final Testing. The Dataset Is Separate From Training And Testing Data. Proper Validation Reduces Overfitting Risks. It Supports Better Model Selection Decisions. Validation Plays A Key Role In Optimizing Model Accuracy And Stability.

16. What Is A Machine Learning Model?

Ans:

A Machine Learning Model Is A Mathematical Representation Created By Learning Patterns From Data. It Uses Algorithms To Make Predictions Or Decisions. Models Are Trained Using Historical Data. Different Models Suit Different Problems. Examples Include Decision Trees And Neural Networks. Model Performance Depends On Data Quality And Design. A Well-Trained Model Can Effectively Handle Real-World Tasks.

17. What Is A Classification Problem?

Ans:

  • A Classification Problem Involves Predicting Categories Or Labels Based On Input Data. The Output Belongs To A Predefined Class. 
  • Examples Include Spam Detection And Disease Prediction. Classification Models Learn From Labeled Data. Common Algorithms Include Logistic Regression And Decision Trees.
  • Accuracy Is Often Used To Measure Performance. Classification Is Widely Used In Business And Healthcare Applications.

18. Write A Python Program To Find The Maximum Value In A Dataset

Ans:

This Program Finds The Largest Value Present In A Dataset. The max() Function Scans All Elements And Returns The Highest Value. Finding Maximum Values Helps Identify Peaks And Outliers In Data.

  • data = [12, 45, 67, 23, 89]
  • maximum = max(data)
  • print(“Maximum Value:”, maximum)

19. What Is A Neural Network?

Ans:

A Neural Network Is A Computing Model Inspired By The Human Brain. It Consists Of Layers Of Connected Nodes Called Neurons. Neural Networks Learn Complex Patterns From Data. They Are Widely Used In Deep Learning Applications. These Models Perform Well In Image And Speech Recognition. Training Requires Large Amounts Of Data. Neural Networks Have Revolutionized Artificial Intelligence Development.

20.What Is The Difference Between Supervised Learning And Unsupervised Learning?

Ans:

Feature Supervised Learning Unsupervised Learning
Definition Learns From Labeled Data Where The Correct Output Is Known.. Learns From Unlabeled Data Without Known Outputs.
Training Data Requires Input Data And Corresponding Labels. Uses Only Input Data Without Labels
Goal Predict Outcomes Or Classify Data Accurately.. Discover Hidden Patterns And Relationships In Data..
Output Produces Predicted Categories Or Numerical Values. Produces Clusters, Groups, Or Associations

21. What Is Feature Engineering?

Ans:

Feature Engineering Is The Process Of Creating Or Transforming Variables To Improve Model Performance. It Helps Extract Useful Information From Raw Data. Good Features Improve Prediction Accuracy. Techniques Include Scaling, Encoding, And Aggregation. Feature Engineering Requires Domain Knowledge. It Plays A Critical Role In Machine Learning Projects. Effective Features Often Lead To Better Outcomes Than Complex Models.

22. What Is Data Preprocessing?

Ans:

Data Preprocessing Involves Cleaning And Preparing Data Before Training A Model. It Includes Handling Missing Values And Removing Duplicates. Data Transformation Improves Data Quality. Preprocessing Makes Data Suitable For Analysis. Poor Quality Data Can Affect Accuracy. It Is A Vital Step In Machine Learning Workflows. Proper Preparation Leads To More Reliable Predictions. It Ensures That Models Receive Consistent And Meaningful Input Data.

23. What Are Missing Values?

Ans:

  • Missing Values Refer To Data Entries That Are Unavailable Or Undefined In A Dataset. They Can Occur Due To Errors Or Incomplete Records. 
  • Missing Data Can Affect Model Accuracy. Common Solutions Include Imputation Or Removal. Understanding Missing Patterns Is Important. 
  • Proper Handling Improves Data Quality. Managing Missing Values Helps Build Better Models. Effective Treatment Of Missing Data Enhances Model Reliability And Performance.

24. What Is Data Normalization?

Ans:

Data Normalization Scales Numerical Values To A Common Range. It Prevents Features With Large Values From Dominating Others. Normalization Improves Model Performance. Techniques Include Min-Max Scaling. It Is Commonly Used In Neural Networks. Normalized Data Helps Algorithms Converge Faster. It Creates Balanced Inputs For Learning Models. This Process Makes Feature Comparisons More Consistent Across Datasets.

25. What Is The Internet?

Ans:

The Internet Is A Global Network Connecting Millions Of Devices Worldwide. It Enables Communication And Information Sharing. Users Can Access Websites, Emails, And Online Services. The Internet Supports Education, Business, And Entertainment. It Uses Standard Communication Protocols. The Internet Has Revolutionized Global Connectivity. It Is A Fundamental Part Of Modern Life.

26. What Is An IP Address?

Ans:

  • An IP Address Is A Unique Numerical Identifier Assigned To A Device On A Network. It Helps Devices Communicate With Each Other. 
  • IP Addresses Can Be IPv4 Or IPv6. They Identify The Source And Destination Of Data Packets. Every Internet-Connected Device Requires An IP Address. 
  • IP Addresses Support Network Routing. They Are Essential For Internet Communication.

27. What Is HTTP?

Ans:

HTTP Stands For Hypertext Transfer Protocol. It Is Used For Communication Between Web Browsers And Servers. HTTP Transfers Web Pages Over The Internet. It Follows A Request And Response Model. HTTP Enables Users To Access Websites Easily. It Is One Of The Core Technologies Of The Web. Secure Communication Uses HTTPS. HTTP Plays A Vital Role In Delivering Web Content Quickly And Efficiently.

28. Write A Program To Find The Sum Of Natural Numbers

Ans:

This Program Uses A Loop To Add Natural Numbers From 1 To N. The Sum Variable Stores The Running Total.

  • #include
  • int main() {
  • int n=10; printf(“%d”, n*(n+1)/2);
  • }

29. What Is Cloud Computing?

Ans:

Cloud Computing Provides Computing Services Over The Internet. Users Can Access Storage, Software, And Servers Remotely. It Reduces Infrastructure Costs For Organizations. Cloud Services Offer Scalability And Flexibility. Popular Providers Include AWS, Azure, And Google Cloud. Cloud Computing Supports Digital Transformation. It Is Widely Used Across Industries

30. What Is Artificial Intelligence?

Ans:

Artificial Intelligence Is The Simulation Of Human Intelligence In Machines. AI Enables Systems To Learn And Make Decisions. It Is Used In Voice Assistants And Recommendation Systems. AI Improves Automation And Efficiency. Machine Learning Is A Subset Of AI. AI Is Transforming Many Industries. It Continues To Evolve Rapidly. AI Helps Solve Complex Problems With Greater Speed And Accuracy.

31. What Is Machine Learning?

Ans:

  • Machine Learning Is A Branch Of AI That Enables Systems To Learn From Data. It Improves Performance Without Explicit Programming. 
  • ML Algorithms Identify Patterns And Trends. Applications Include Image Recognition And Predictive Analytics. 
  • Machine Learning Supports Data-Driven Decision Making. It Is Widely Used In Technology And Business. ML Plays A Significant Role In Modern AI.

32. What Is Data Mining?

Data Mining Is The Process Of Extracting Useful Information From Large Datasets. It Identifies Hidden Patterns And Relationships. Organizations Use Data Mining For Business Insights. It Supports Decision Making And Forecasting. Data Mining Combines Statistics And Machine Learning. It Improves Understanding Of Customer Behavior. It Is Valuable For Data Analysis

33. What Is Cyber Security?

Ans:

  • Cyber Security Protects Systems, Networks, And Data From Digital Attacks. It Ensures Confidentiality And Integrity Of Information. 
  • Cyber Security Includes Firewalls And Encryption Techniques. It Prevents Unauthorized Access To Systems. 
  • Organizations Invest In Security To Protect Assets. Cyber Threats Continue To Evolve Rapidly. Cyber Security Is Essential In The Digital Era.

34. What Is Encryption?

Ans:

Encryption Is The Process Of Converting Data Into A Secure Format. It Protects Information From Unauthorized Access. Only Authorized Users Can Decrypt The Data. Encryption Is Used In Online Banking And Messaging Applications. It Enhances Privacy And Security. Strong Encryption Reduces Data Breach Risks. It Is A Key Component Of Cyber Security.

35. What Is A Firewall?

Ans:

A Firewall Is A Security System That Monitors Network Traffic. It Controls Incoming And Outgoing Connections. Firewalls Block Unauthorized Access To Networks. They Help Protect Systems From Cyber Threats. Firewalls Can Be Hardware Or Software Based. They Improve Network Security Significantly. Firewalls Are Widely Used In Organizations.

35. What Is A Firewall?

Ans:

A Firewall Is A Security System That Monitors Network Traffic. It Controls Incoming And Outgoing Connections. Firewalls Block Unauthorized Access To Networks. They Help Protect Systems From Cyber Threats. Firewalls Can Be Hardware Or Software Based. They Improve Network Security Significantly. Firewalls Are Widely Used In Organizations. Firewalls Act As A Protective Barrier Between Trusted And Untrusted Networks.

36. What Is Software?

Ans:

  • Software Is A Set Of Programs That Instruct Computers To Perform Tasks. It Includes System And Application Software. 
  • Software Enables Users To Interact With Hardware. Examples Include Operating Systems And Mobile Apps. Software Improves Productivity And Automation. 
  • It Is Developed Using Programming Languages. Software Is Essential For Computer Functionality.

37. What Is Hardware?

Ans:

Hardware Refers To The Physical Components Of A Computer System. Examples Include Monitor, Keyboard, CPU, And Mouse. Hardware Executes Instructions Provided By Software. It Supports Input, Processing, Storage, And Output Functions. Hardware Components Work Together Efficiently. Advances In Hardware Improve System Performance. Hardware Forms The Foundation Of Computing Systems.

38. What Is SDLC?

Ans:

SDLC Stands For Software Development Life Cycle. It Is A Structured Process For Developing Software. SDLC Includes Planning, Design, Development, Testing, And Maintenance. It Ensures Quality And Efficiency In Projects. SDLC Helps Manage Resources Effectively. Different Models Exist Such As Waterfall And Agile. It Improves Project Success Rates.

39. What Is Agile?

Ans:

Agile Is A Software Development Methodology Focused On Flexibility And Collaboration. It Divides Projects Into Small Iterations. Agile Encourages Continuous Feedback And Improvement. Teams Deliver Working Software Frequently. Agile Supports Rapid Response To Changes. It Enhances Customer Satisfaction. Agile Is Widely Adopted In Modern Development.

40. What Is Waterfall Model?

Ans:

The Waterfall Model Is A Sequential Software Development Approach. Each Phase Must Be Completed Before The Next Begins. It Includes Requirement Analysis, Design, Development, Testing, And Maintenance. Waterfall Is Easy To Understand And Manage. It Works Well For Stable Requirements. Changes Are Difficult To Implement Later. It Is One Of The Oldest SDLC Models.

41. What Is Testing?

Ans:

Testing Is The Process Of Evaluating Software To Ensure It Works Correctly. It Helps Identify Errors And Defects Before Release. Testing Improves Software Quality And Reliability. It Ensures Requirements Are Properly Implemented. Testing Can Be Manual Or Automated. Different Types Include Functional And Performance Testing. Testing Is Essential For Delivering High-Quality Software. It Helps Increase Customer Satisfaction And Product Stability.

42. What Is Debugging?

Ans:

  • Debugging Is The Process Of Finding And Fixing Errors In A Program. It Helps Ensure Correct Program Execution. Developers Analyze Code To Identify Issues. 
  • Debugging Improves Software Reliability And Performance. Various Tools Assist In The Debugging Process. It Reduces The Chances Of System Failures. 
  • Debugging Is An Important Skill For Programmers. It Helps Deliver Error-Free And Efficient Applications

43. What Is Object-Oriented Programming?

Ans:

Object-Oriented Programming Is A Programming Paradigm Based On Objects And Classes. It Helps Organize Code Efficiently. OOP Promotes Reusability Through Inheritance. It Supports Encapsulation And Data Hiding. OOP Makes Software Easier To Maintain. It Simplifies Complex Application Development. OOP Is Widely Used In Modern Programming Languages. It Enhances Scalability And Code Reusability

44. What Is A Class?

Ans:

A Class Is A Blueprint Used To Create Objects. It Defines Data Members And Methods. Classes Help Organize Related Functionality. They Promote Code Reusability And Modularity. A Single Class Can Create Multiple Objects. Classes Are Fundamental Components Of OOP. They Improve Software Design And Structure. Classes Help Reduce Redundant Coding Efforts.

45. What Is An Object?

Ans:

An Object Is An Instance Of A Class. It Represents A Real-World Entity In Programming. Objects Contain Data And Methods. They Interact With Other Objects To Perform Tasks. Objects Support Reusability And Flexibility. They Are Central To Object-Oriented Programming. Objects Help Build Efficient Software Applications. Objects Make Programs More Realistic And Organized.

46. What Is Encapsulation?

Encapsulation Is The Process Of Combining Data And Methods Into A Single Unit. It Protects Data From Unauthorized Access. Encapsulation Supports Data Hiding. It Improves Security And Maintainability. Users Access Data Through Defined Methods. Encapsulation Reduces Complexity In Programs. It Is One Of The Core OOP Principles. It Ensures Better Control Over Program Data.

47. What Is Inheritance?

Ans:

Inheritance Allows A Class To Acquire Properties And Methods Of Another Class. It Promotes Code Reusability. The Existing Class Is Called The Parent Class. The Derived Class Is Called The Child Class. Inheritance Reduces Duplicate Code. It Supports Hierarchical Relationships. It Is A Key Feature Of OOP. Inheritance Improves Development Speed And Efficiency.

48. What Is Polymorphism?

Ans:

  • Polymorphism Means One Interface Can Have Multiple Forms. It Allows Different Implementations Of The Same Method.
  •  Polymorphism Improves Code Flexibility. It Supports Method Overloading And Overriding. It Enhances Software Extensibility. 
  • Polymorphism Simplifies Complex Systems. It Is A Fundamental OOP Concept. It Makes Programs More Adaptable To Future Changes.

49. What Is Abstraction?

Ans:

Abstraction Is The Process Of Hiding Internal Details And Showing Essential Features. It Reduces Complexity For Users. Abstraction Focuses On What An Object Does. It Improves Security By Hiding Implementation Details. Abstract Classes And Interfaces Support Abstraction. It Makes Programs Easier To Use. Abstraction Is A Core OOP Principle. It Helps Developers Focus On Important Functionalities.

50. What Is Java?

Ans:

Java Is A Popular Object-Oriented Programming Language. It Follows The Principle Of Write Once Run Anywhere. Java Programs Run On The Java Virtual Machine. It Is Used For Web, Mobile, And Enterprise Applications. Java Provides Strong Security Features. It Supports Multithreading. Java Remains One Of The Most Widely Used Languages. Java Is Highly Preferred For Large-Scale Business Applications.

51. What Is Python?

Ans:

Python Is A High-Level Programming Language Known For Its Simplicity. It Has Easy-To-Read Syntax. Python Is Used In Web Development And Data Science. It Supports Artificial Intelligence Applications. Python Has A Large Collection Of Libraries. It Increases Developer Productivity. Python Is Popular Among Beginners And Professionals. Python Enables Rapid Application Development And Innovation.

52. What Is C Language?

Ans:

C Is A General-Purpose Procedural Programming Language. It Is Known For Its Speed And Efficiency. C Provides Low-Level Memory Access. It Is Widely Used In System Programming. Many Modern Languages Are Influenced By C. It Helps Build Operating Systems And Embedded Systems. C Remains An Important Programming Language. It Forms The Foundation For Learning Advanced Programming Concepts.

53. What Is C++?

Ans:

C++ Is An Extension Of The C Programming Language. It Supports Object-Oriented Programming Concepts. C++ Provides High Performance And Flexibility. It Is Used In Game Development And System Software. C++ Supports Classes And Objects. It Offers Features Like Inheritance And Polymorphism. C++ Is Widely Used In Industry. It Is Suitable For Performance-Critical Applications.

54. What Is JavaScript?

Ans:

  • JavaScript Is A Scripting Language Used For Web Development. It Makes Websites Interactive And Dynamic. JavaScript Runs Directly In Web Browsers. 
  • It Supports Event Handling And Animations. Modern Frameworks Use JavaScript Extensively. It Works Alongside HTML And CSS. 
  • JavaScript Is Essential For Front-End Development. It Helps Create Engaging User Experiences On Websites

55. What Is HTML?

Ans:

HTML Stands For HyperText Markup Language. It Is Used To Create Web Pages. HTML Defines The Structure Of Web Content. It Uses Tags To Organize Information. HTML Works With CSS And JavaScript. It Is Easy To Learn And Use. HTML Is The Foundation Of Web Development. Every Website Relies On HTML For Content Structure. HTML Supports The Creation Of Text, Images, Links, Tables, And Forms On Web Pages.

56. Write A Program To Reverse A Number

Ans:

This Program Reverses A Number By Extracting Digits One By One. The Modulus Operator Retrieves The Last Digit.

  • int n=123, rev=0;
  • while(n>0){ rev=rev*10+n%10; n/=10; }
  • printf(“%d”, rev);
  • return 0;

57. What Is An API?

Ans:

API Stands For Application Programming Interface. It Allows Different Software Systems To Communicate. APIs Enable Data Exchange Between Applications. They Simplify Integration Processes. APIs Improve Development Efficiency. Many Web Services Use APIs. They Are Essential In Modern Software Development. APIs Help Build Connected And Scalable Applications.

58. What Is JSON?

Ans:

JSON Stands For JavaScript Object Notation. It Is A Lightweight Data Exchange Format. JSON Is Easy To Read And Write. It Is Widely Used In APIs. JSON Stores Data In Key-Value Pairs. It Supports Efficient Data Transfer. JSON Is Popular In Web Applications. It Facilitates Fast Communication Between Systems. JSON Is Language-Independent And Supported By Most Modern Programming Languages.

59. What Is XML?

Ans:

XML Stands For Extensible Markup Language. It Is Used To Store And Transport Data. XML Uses Custom Tags To Organize Information. It Is Both Human And Machine Readable. XML Supports Data Sharing Across Systems. It Is Widely Used In Enterprise Applications. XML Remains Important In Data Exchange. It Helps Maintain Structured And Consistent Data.

60. What Are Cookies?

Ans:

Cookies Are Small Files Stored In A User’s Browser. They Store Information About User Preferences. Websites Use Cookies To Improve User Experience. Cookies Help Maintain Login Sessions. They Enable Personalized Content. Cookies Support Website Analytics. They Play An Important Role In Web Applications. Cookies Help Websites Remember User Activities Efficiently.

61. What Is A Session?

Ans:

A Session Is A Temporary Interaction Between A User And A System. It Stores User Information During Website Usage. Sessions Help Maintain Login Status. They Improve User Experience. Session Data Is Usually Stored On The Server. Sessions Enhance Security Compared To Cookies. They Are Commonly Used In Web Applications. Sessions Ensure Secure And Consistent User Interactions.

62. What Is The Difference Between RAM And ROM?

Ans:

Feature RAM (Random Access Memory) ROM (Read Only Memory)
Definition RAM Is Temporary Memory Used To Store Data Being Processed. ROM Is Permanent Memory Used To Store Important System Instructions.
Data Storage Encompasses all components for SAP apps Represents a specific process/task
Components Stores Temporary Data. Stores Permanent Data.
Volatility Volatile Memory (Data Is Lost When Power Is Off). Non-Volatile Memory (Data Remains Even After Power Is Off).

63. What Is A Process?

Ans:

A Process Is A Program In Execution. It Contains Code, Data, And Resources. Processes Operate Independently. Each Process Has Its Own Memory Space. Operating Systems Manage Processes Efficiently. Multiple Processes Can Run Simultaneously. Processes Are Fundamental To Computing Systems. Processes Enable Computers To Perform Multiple Tasks Effectively.

64. What Is Multithreading?

Ans:

Multithreading Is The Execution Of Multiple Threads Within A Process. It Improves Application Responsiveness. Threads Share Resources Efficiently. Multithreading Supports Concurrent Operations. It Enhances CPU Utilization. Many Modern Applications Use Multithreading. It Improves Overall Performance. It Helps Applications Handle Multiple Tasks Simultaneously.

65. What Is Deadlock?

Ans:

  • Deadlock Occurs When Multiple Processes Wait Indefinitely For Resources. None Of The Processes Can Continue Execution.
  •  Deadlocks Reduce System Performance. They Occur Due To Resource Contention. Proper Resource Allocation Helps Prevent Deadlocks. 
  • Operating Systems Use Detection Techniques. Deadlock Management Is Important In Computing. Avoiding Deadlocks Ensures Smooth System Operation.

66. What Is An Operating System Function?

Ans:

An Operating System Manages Hardware And Software Resources. It Handles Memory Management. It Controls Process Scheduling. It Provides Security And File Management. The OS Manages Input And Output Devices. It Acts As A User Interface. It Ensures Efficient System Operation. It Serves As The Backbone Of Computer Functionality. An Operating System Enables Communication Between Users, Applications, And Hardware Components.

67. What Is Virtual Memory?

Ans:

Virtual Memory Is A Memory Management Technique. It Uses Disk Space As Additional Memory. Virtual Memory Allows Larger Programs To Run. It Improves Multitasking Capabilities. The Operating System Manages Virtual Memory Automatically. It Enhances Resource Utilization. Virtual Memory Supports Efficient Execution. It Extends The Effective Capacity Of Main Memory.

68. What Is Paging?

Ans:

Paging Is A Memory Management Technique. It Divides Memory Into Fixed-Size Pages. Paging Eliminates External Fragmentation. It Improves Memory Utilization. Pages Are Mapped To Physical Memory Frames. The Operating System Handles Paging. It Supports Efficient Memory Management. Paging Enhances Overall System Performance And Stability. Paging Allows Processes To Access Memory Efficiently Without Requiring Contiguous Memory Allocation.

69. What Is CPU Scheduling?

Ans:

CPU Scheduling Determines Which Process Executes Next. It Maximizes CPU Utilization. Scheduling Improves System Efficiency. Common Algorithms Include FCFS And Round Robin. It Reduces Waiting Time. Scheduling Enhances Performance. It Is An Important OS Function. Efficient Scheduling Improves Overall System Throughput. CPU Scheduling Ensures Fair Allocation Of Processor Time Among Multiple Processes.

70. What Is Binary Search?

Ans:

Binary Search Is A Fast Searching Algorithm. It Works On Sorted Data. The Search Space Is Repeatedly Divided In Half. Binary Search Has O(Log N) Complexity. It Is Faster Than Linear Search. It Is Widely Used In Applications. It Improves Search Efficiency. Binary Search Significantly Reduces Search Time For Large Datasets. Binary Search Is Commonly Used In Databases, Search Engines, And Data Processing Applications.

71. What Is Linear Search?

Ans:

Linear Search Is A Simple Searching Technique Used To Find An Element In A List. It Checks Each Element One By One. The Search Continues Until The Target Element Is Found. It Works On Both Sorted And Unsorted Data. Linear Search Is Easy To Implement. Its Time Complexity Is O(N). It Is Suitable For Small Data Collections. It Is Commonly Used When Data Size Is Limited.

72. What Is Bubble Sort?

Ans:

  • Bubble Sort Is A Simple Sorting Algorithm. It Repeatedly Compares Adjacent Elements. Elements Are Swapped If They Are In The Wrong Order. 
  • The Process Continues Until The List Is Sorted. Bubble Sort Is Easy To Understand. It Has O(N²) Time Complexity. 
  • It Is Mainly Used For Educational Purposes. It Helps Beginners Understand Basic Sorting Concepts.

73. Write A Program To Check Whether A Number Is Prime

Ans:

This Program Checks Whether A Number Has Factors Other Than 1 And Itself. If Such A Factor Exists, The Number Is Not Prime. Otherwise, It Is Prime

  • int n=13,i,flag=1;
  • for(i=2;i
  • if(flag) printf(“Prime”);
  • else printf(“Not Prime”);

74. What Is Merge Sort?

Ans:

Merge Sort Is A Divide And Conquer Sorting Algorithm. It Divides The Array Into Smaller Parts. Each Part Is Sorted Independently. The Sorted Parts Are Then Merged Together. Merge Sort Provides Consistent Performance. Its Time Complexity Is O(N Log N). It Is Efficient For Large Data Collections. It Is A Stable Sorting Algorithm Widely Used In Practice. Merge Sort Is Commonly Used In Applications Requiring Reliable And Efficient Sorting Performance.

75. What Is Quick Sort?

Ans:

Quick Sort Is A Fast Sorting Algorithm Based On Divide And Conquer. It Selects A Pivot Element. Elements Are Partitioned Around The Pivot. The Process Continues Recursively. Quick Sort Is Efficient For Large Datasets. Its Average Time Complexity Is O(N Log N). It Is One Of The Most Widely Used Sorting Algorithms. It Often Outperforms Other Sorting Methods In Real Applications.

76. What Is Recursion?

Ans:

  • Recursion Is A Technique In Which A Function Calls Itself. It Solves Problems By Breaking Them Into Smaller Subproblems. 
  • A Base Condition Stops The Recursive Calls. Recursion Simplifies Complex Logic. It Is Commonly Used In Tree And Graph Problems. 
  • Proper Design Prevents Infinite Loops. Recursion Makes Certain Algorithms Easier To Implement. It Is Widely Used In Divide And Conquer Algorithms.

77. What Is A Tree?

Ans:

A Tree Is A Non-Linear Data Structure. It Consists Of Nodes Connected By Edges. The Top Node Is Called The Root. Trees Represent Hierarchical Relationships. They Support Efficient Searching And Sorting. Trees Are Used In Databases And File Systems. They Are Important In Data Organization And Retrieval. Trees Help Manage Structured Data Efficiently. Different Types Of Trees Include Binary Trees, AVL Trees, And B-Trees For Various Applications.

78. What Is A Binary Tree?

Ans:

A Binary Tree Is A Tree Data Structure. Each Node Has At Most Two Children. These Children Are Called Left And Right Child. Binary Trees Support Efficient Data Operations. They Are Used In Searching And Expression Evaluation. Binary Trees Are Fundamental In Computer Science. They Form The Basis Of Many Advanced Data Structures. They Are Frequently Used In Competitive Programming And Interviews.

79. What Is A Graph?

Ans:

A Graph Is A Collection Of Nodes And Edges. Nodes Represent Entities While Edges Represent Connections. Graphs Can Be Directed Or Undirected. They Are Used To Model Real-World Relationships. Graphs Support Complex Data Representation. Many Algorithms Operate On Graph Structures. Graphs Are Widely Used In Networking And Social Media Applications. Graphs Help Solve Many Real-World Connectivity Problems.

80. What Is DFS?

Ans:

DFS Stands For Depth First Search. It Is A Graph Traversal Algorithm. DFS Explores One Branch Completely Before Backtracking. It Uses A Stack Or Recursion. DFS Is Useful For Path Finding Problems. It Helps Detect Cycles In Graphs. DFS Is Widely Used In Graph-Based Applications. It Is Effective For Exploring Deep Structures Efficiently. DFS Is Commonly Used In Maze Solving, Topological Sorting, And Connected Component Analysis.

81. What Is BFS?

Ans:

BFS Stands For Breadth First Search. It Is A Graph Traversal Algorithm. BFS Explores Nodes Level By Level. It Uses A Queue Data Structure. BFS Finds The Shortest Path In Unweighted Graphs. It Is Efficient For Network Traversal. BFS Is Commonly Used In Search And Routing Problems. It Ensures All Nearby Nodes Are Visited First. BFS Is Frequently Used In Social Networks, GPS Navigation, And Web Crawling Applications.

82. What Is Hashing?

Ans:

Hashing Is A Technique Used To Store And Retrieve Data Quickly. It Uses A Hash Function To Generate Index Values. Hashing Reduces Search Time Significantly. It Supports Fast Data Access. Hash Tables Use Hashing Mechanisms. Hashing Is Common In Databases. It Improves Overall Application Performance. Hashing Enables Near Constant-Time Data Retrieval. Hashing Is Widely Used In Caching, Password Storage, And Data Indexing Applications.

83. What Is Big O Notation?

Ans:

Big O Notation Measures Algorithm Efficiency. It Describes Time And Space Complexity. Big O Helps Compare Different Algorithms. It Predicts Performance For Large Inputs. Common Complexities Include O(1), O(N), And O(Log N). It Assists In Optimization. Big O Is Essential For Algorithm Analysis. It Helps Developers Choose The Best Solution For A Problem. Big O Notation Helps Evaluate The Scalability And Efficiency Of Algorithms As Data Size Increases.

84. What Is Stack Overflow?

Ans:

  • Stack Overflow Occurs When Excessive Memory Is Used In The Stack Area. It Often Happens Due To Infinite Recursion. The Program Exceeds The Stack Limit. 
  • This Causes Application Failure. Proper Coding Prevents Stack Overflow Errors. Developers Use Debugging Tools To Detect Issues. 
  • Understanding Stack Usage Helps Avoid Such Problems. Efficient Memory Management Reduces The Risk Of Stack Overflow.

85. What Is Exception Handling?

Ans:

Exception Handling Is A Mechanism For Managing Runtime Errors. It Prevents Program Crashes. Exceptions Are Handled Using Try And Catch Blocks. It Improves Program Reliability. Exception Handling Separates Error Logic From Main Logic. It Supports Better User Experience. It Ensures Smooth Program Execution During Errors. It Makes Applications More Robust And User Friendly.

86. What Is A Constructor?

Ans:

A Constructor Is A Special Method Used To Initialize Objects. It Is Called Automatically When An Object Is Created. Constructors Assign Initial Values To Variables. They Simplify Object Initialization. Constructors Improve Code Readability. They Can Be Overloaded. Constructors Ensure Objects Start In A Valid State. They Play A Key Role In Object Creation. Constructors Help Establish Default Settings And Prepare Objects For Immediate Use.

87. Write A Program To Find The Factorial Of A Number

Ans:

This Program Calculates The Factorial Of A Number Using A Loop. Factorial Is The Product Of All Positive Integers Up To The Given Number.

  • int n=5,f=1,i;
  • for(i=1;i<=n;i++) f*=i;
  • printf(“%d”,f);
  • return 0;

88. What Is An Interface?

Ans:

An Interface Defines A Set Of Methods Without Implementation. Classes Implement Interfaces To Provide Functionality. Interfaces Support Abstraction. They Promote Flexibility And Reusability. Multiple Classes Can Implement The Same Interface. Interfaces Improve Software Design. They Enable Consistent Behavior Across Different Classes. Interfaces Encourage Loose Coupling In Applications.

89. What Is A Package?

Ans:

  • A Package Is A Collection Of Related Classes And Interfaces. It Helps Organize Code Efficiently. Packages Prevent Naming Conflicts. 
  • They Improve Code Reusability. Packages Support Modular Development. They Simplify Maintenance Of Large Projects. 
  • Packages Enhance Overall Project Structure. They Make Large Applications Easier To Manage.

90. What Is A Framework?

Ans:

A Framework Is A Predefined Structure For Application Development. It Provides Reusable Components. Frameworks Speed Up Development. They Reduce Coding Effort. Popular Frameworks Include Spring And Django. Frameworks Promote Best Practices. They Help Build Robust Applications Efficiently. Frameworks Improve Productivity And Maintainability.

91. What Is Git?

Ans:

Git Is A Distributed Version Control System. It Tracks Changes In Source Code. Git Supports Team Collaboration. Developers Can Revert To Previous Versions. Git Helps Manage Project History. It Is Widely Used In Software Development. Git Improves Code Management And Productivity. It Enables Efficient Collaboration Across Development Teams.

92. What Is GitHub?

Ans:

GitHub Is A Platform For Hosting Git Repositories. It Supports Collaboration Among Developers. GitHub Provides Version Control Features. Teams Can Review And Manage Code Changes. It Supports Open Source Projects. GitHub Integrates With Development Tools. It Is One Of The Most Popular Developer Platforms. It Simplifies Project Sharing And Collaboration.

93. What Is DevOps?

Ans:

DevOps Is A Set Of Practices Combining Development And Operations. It Promotes Collaboration Between Teams. DevOps Automates Software Delivery Processes. It Improves Deployment Speed. DevOps Enhances Software Quality. Continuous Monitoring Is A Key Aspect. It Helps Deliver Reliable Software Faster. DevOps Improves Efficiency Throughout The Software Lifecycle.

94. What Is CI/CD?

Ans:

CI/CD Stands For Continuous Integration And Continuous Deployment. It Automates Code Building And Testing. CI/CD Reduces Manual Effort. It Helps Detect Issues Early. Continuous Deployment Speeds Up Releases. CI/CD Improves Software Quality. It Supports Faster And More Reliable Development Cycles. It Enables Frequent And Consistent Software Updates.

95. What Is Docker?

Ans:

Docker Is A Platform For Containerization. It Packages Applications With Their Dependencies. Docker Ensures Consistent Environments. It Simplifies Deployment Processes. Containers Are Lightweight And Portable. Docker Supports Scalability. It Has Become Essential In Modern Software Development. Docker Reduces Environment-Related Deployment Issues. Docker Enables Faster Application Development, Testing, And Deployment Across Different Platforms.

96. What Is Kubernetes?

Ans:

  • Kubernetes Is A Container Orchestration Platform. It Automates Container Deployment And Management. Kubernetes Supports High Availability. 
  • It Improves Resource Utilization. It Handles Scaling Automatically. Kubernetes Simplifies Container Operations. 
  • It Is Widely Used In Cloud-Native Applications. It Helps Manage Large-Scale Containerized Systems Efficiently.

97. What Is Blockchain?

Ans:

Blockchain Is A Distributed Ledger Technology. It Stores Data In Linked Blocks. Blockchain Ensures Transparency And Security. Data Cannot Be Easily Modified. It Supports Decentralized Applications. Blockchain Is Used In Cryptocurrencies. It Is Transforming Many Industries Beyond Finance. It Provides Trust Without Requiring Central Authorities. Blockchain Enhances Data Integrity By Recording Transactions Permanently Across Multiple Network Nodes.

98. What Is Internet Of Things (IoT)?

Ans:

IoT Refers To Connected Smart Devices. These Devices Exchange Data Over Networks. IoT Supports Automation And Monitoring. Examples Include Smart Homes And Wearables. IoT Improves Efficiency And Convenience. It Is Used In Many Industries. IoT Continues To Drive Digital Innovation Worldwide. IoT Enhances Real-Time Data Collection And Analysis.

99. What Is Big Data?

Ans:

Big Data Refers To Extremely Large Data Sets. Traditional Tools Cannot Process Them Efficiently. Big Data Supports Advanced Analytics. It Helps Organizations Make Better Decisions. Big Data Includes Structured And Unstructured Information. It Is Used In Various Industries. Big Data Plays A Key Role In Business Intelligence. It Enables Data-Driven Strategies And Innovations.

100. What Is Hadoop?

Ans:

  • Hadoop Is A Framework For Distributed Data Storage And Processing. It Handles Large Volumes Of Data Efficiently. 
  • Hadoop Uses HDFS For Storage. It Supports Parallel Processing Through MapReduce. Hadoop Is Scalable And Reliable. 
  • It Is Widely Used In Big Data Applications. Hadoop Enables Cost-Effective Processing Of Massive Data Sets. It Helps Organizations Analyze Big Data Efficiently And Economically.

Enroll in Spring Boot Training and UPGRADE Your Skills

Weekday / Weekend BatchesSee Batch Details
Course Curriculum

Learn Spring Boot with Advanced Concepts By Industry Experts

  • Instructor-led Sessions
  • Real-life Case Studies
  • Assignments
Explore Curriculum

Upcoming Batches

Name Date Details
TCS

22 - Jun - 2026

(Weekdays) Weekdays Regular

View Details
TCS

24 - Jun - 2026

(Weekdays) Weekdays Regular

View Details
TCS

27 - Jun - 2026

(Weekends) Weekend Regular

View Details
TCS

28 - Jun - 2026

(Weekends) Weekend Fasttrack

View Details