Junior

40+ Junior Interview Questions and Answers

Updated 12 Jul 2025
search-icon
5d ago

Q. What are the various data structures available in Python?

Ans.

Python offers various built-in data structures for efficient data management and manipulation.

  • 1. List: An ordered, mutable collection. Example: my_list = [1, 2, 3]

  • 2. Tuple: An ordered, immutable collection. Example: my_tuple = (1, 2, 3)

  • 3. Set: An unordered collection of unique elements. Example: my_set = {1, 2, 3}

  • 4. Dictionary: A collection of key-value pairs. Example: my_dict = {'a': 1, 'b': 2}

Asked in Ascendion

2d ago

Q. What is inheritance in the context of object-oriented programming?

Ans.

Inheritance allows a class to inherit properties and methods from another class, promoting code reuse and organization.

  • Inheritance enables a new class (child) to inherit attributes and methods from an existing class (parent).

  • It promotes code reusability, allowing developers to create a new class based on an existing one without rewriting code.

  • Example: If 'Animal' is a parent class, 'Dog' can be a child class that inherits properties like 'species' and methods like 'makeSound(...read more

Junior Interview Questions and Answers for Freshers

illustration image
4d ago

Q. What is the Model-View-Controller (MVC) design pattern?

Ans.

MVC is a design pattern that separates an application into three interconnected components: Model, View, and Controller.

  • Model: Represents the data and business logic (e.g., a class that interacts with a database).

  • View: Displays the data to the user (e.g., HTML/CSS templates in a web application).

  • Controller: Handles user input and updates the Model and View accordingly (e.g., a class that processes user requests).

  • Separation of concerns: Each component has a distinct responsibi...read more

Q. What is your knowledge regarding submarine cable communications?

Ans.

Submarine cable communications involve undersea cables that transmit data globally, forming the backbone of internet connectivity.

  • Submarine cables are laid on the ocean floor and connect continents, enabling international communication.

  • They carry about 99% of global internet traffic, making them crucial for data transfer.

  • Examples include the MAREA cable, which connects the U.S. to Spain, and the SEA-ME-WE 3 cable, linking Southeast Asia to Europe.

  • Cables are made of fiber opti...read more

Are these interview questions helpful?

Q. What are the different sorting techniques?

Ans.

Sorting techniques are algorithms used to arrange data in a specific order, such as ascending or descending.

  • Bubble Sort: Simple comparison-based algorithm, e.g., [5, 3, 8] becomes [3, 5, 8].

  • Selection Sort: Selects the smallest element and places it in order, e.g., [64, 25, 12] becomes [12, 25, 64].

  • Insertion Sort: Builds a sorted array one element at a time, e.g., [3, 1, 2] becomes [1, 2, 3].

  • Merge Sort: Divides the array into halves, sorts them, and merges, e.g., [38, 27, 43] ...read more

Asked in PG Art

2d ago

Q. What are the advantages of using delegates?

Ans.

Delegates provide a flexible way to define callback methods, enabling event handling and asynchronous programming in .NET.

  • Type Safety: Delegates are type-safe, ensuring that the method signature matches the delegate type. Example: `public delegate void MyDelegate(int num);`

  • Multicast: Delegates can reference multiple methods, allowing for event handling where multiple subscribers can respond to an event. Example: `MyDelegate del = Method1; del += Method2;`

  • Encapsulation: Delega...read more

Junior Jobs

Volvo logo
Junior Global Process Solution Key User- P2P 3-5 years
Volvo
3.9
Bangalore / Bengaluru
Volvo logo
Junior Global Process Solution Key User 1-3 years
Volvo
3.9
Bangalore / Bengaluru
Robert Bosch Engineering and Business Solutions Private Limited logo
AMS_Junior_SME_PUN 2-6 years
Robert Bosch Engineering and Business Solutions Private Limited
4.1
Pune

Asked in Cognizant

5d ago

Q. Write Java code using conditional statements to print prime numbers.

Ans.

This Java code checks and prints prime numbers within a specified range using conditional statements.

  • Prime Number Definition: A prime number is a natural number greater than 1 that cannot be formed by multiplying two smaller natural numbers.

  • Loop Through Range: Use a loop to iterate through numbers from 2 to a specified limit to check for primality.

  • Check for Factors: For each number, check if it has any divisors other than 1 and itself by looping from 2 to the square root of t...read more

5d ago

Q. What is CNN, what are the components?

Ans.

CNN, or Convolutional Neural Network, is a deep learning model primarily used for image processing and computer vision tasks.

  • Components include convolutional layers, pooling layers, and fully connected layers.

  • Convolutional layers apply filters to extract features from images.

  • Pooling layers reduce the dimensionality of feature maps, e.g., max pooling.

  • Fully connected layers connect every neuron from the previous layer to the next, used for classification.

  • Example: CNNs are widel...read more

Share interview questions and help millions of jobseekers 🌟

man-with-laptop

Asked in GKM IT

4d ago

Q. How does a transformer in GenAI work?

Ans.

Transformers use self-attention mechanisms to process and generate sequences of data efficiently.

  • Transformers consist of an encoder and decoder architecture.

  • Self-attention allows the model to weigh the importance of different words in a sentence.

  • Positional encoding helps the model understand the order of words.

  • Example: In a translation task, the model can focus on relevant words in the source language.

  • Transformers are the backbone of models like BERT and GPT.

3d ago

Q. What are your expectations for the company overall?

Ans.

Companies expect growth, profitability, and a positive impact on customers and employees while maintaining ethical standards.

  • Achieve sales targets: For example, increasing quarterly sales by 15%.

  • Enhance customer satisfaction: Implementing feedback systems to improve service.

  • Foster teamwork: Encouraging collaboration through team-building activities.

  • Maintain ethical standards: Adhering to industry regulations and promoting transparency.

Q. What do you know about fiber optic cables?

Ans.

Fiber cable is a high-speed data transmission medium made of glass or plastic fibers, used for internet and telecommunications.

  • Fiber optic cables transmit data as light signals, allowing for faster speeds compared to copper cables.

  • They are less susceptible to electromagnetic interference, making them ideal for long-distance communication.

  • Fiber cables come in two types: single-mode (for long distances) and multi-mode (for shorter distances).

  • Examples of use include internet ser...read more

3d ago

Q. define call by reference and call by value

Ans.

Call by reference passes the address of a variable, while call by value passes a copy of the variable's value.

  • Call by Value: A copy of the variable is made. Changes do not affect the original variable.

  • Example: In a function, if 'x' is passed by value, modifying 'x' inside the function won't change the original 'x'.

  • Call by Reference: The address of the variable is passed. Changes affect the original variable.

  • Example: If 'y' is passed by reference, modifying 'y' inside the func...read more

Asked in PG Art

5d ago

Q. What is inheritance in programming?

Ans.

Inheritance is a fundamental OOP concept allowing a class to inherit properties and methods from another class.

  • Promotes code reusability: A derived class can use methods and properties of a base class.

  • Supports polymorphism: Allows methods to be overridden in derived classes for specific behavior.

  • Example: If 'Animal' is a base class, 'Dog' and 'Cat' can inherit from it, sharing common properties like 'Legs' and methods like 'Speak'.

  • Facilitates a hierarchical classification: Cl...read more

1d ago

Q. What is the effect of vacuum on the boiling point of a material?

Ans.

Vacuum lowers the boiling point of materials by reducing atmospheric pressure, allowing substances to vaporize at lower temperatures.

  • Boiling point is the temperature at which a liquid's vapor pressure equals atmospheric pressure.

  • In a vacuum, atmospheric pressure is reduced, which lowers the boiling point.

  • For example, water boils at 100°C at sea level but can boil at 70°C in a vacuum.

  • This principle is used in vacuum distillation to separate heat-sensitive compounds.

  • Vacuum cook...read more

Asked in GKM IT

5d ago

Q. What is the difference between MCP and normal Tool Calling?

Ans.

MCP (Multi-Channel Processing) allows simultaneous tool calls, enhancing efficiency compared to normal tool calling.

  • MCP enables multiple tools to be called at once, improving processing speed.

  • Normal tool calling processes one tool at a time, which can be slower.

  • Example of MCP: Using parallel processing in data analysis to handle large datasets.

  • Normal tool calling might be used in simpler tasks where speed is not critical.

Asked in Cognizant

4d ago

Q. Write a program to print "hello world" to the output screen.

Ans.

Printing 'hello world' is a fundamental programming task that demonstrates basic syntax and output functionality in various languages.

  • Python Example: Use the print() function: print('hello world')

  • Java Example: Use System.out.println(): System.out.println('hello world');

  • JavaScript Example: Use console.log(): console.log('hello world');

  • C Example: Use printf(): printf('hello world');

  • Ruby Example: Use puts: puts 'hello world'

Asked in Cognizant

2d ago

Q. Write Python code to swap a 3x3 matrix.

Ans.

Swapping a 3x3 matrix involves exchanging its rows or columns to achieve a desired arrangement.

  • Row Swap: To swap the first and second rows of a 3x3 matrix, you can use: matrix[0], matrix[1] = matrix[1], matrix[0].

  • Column Swap: To swap the first and second columns, iterate through each row: for row in matrix: row[0], row[1] = row[1], row[0].

  • Example Matrix: Given matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]], swapping rows results in [[4, 5, 6], [1, 2, 3], [7, 8, 9]].

  • In-Place Swap:...read more

Asked in TCS

3d ago

Q. What is polymorphism?

Ans.

Polymorphism allows objects to be treated as instances of their parent class, enabling method overriding and overloading.

  • Types of polymorphism: compile-time (method overloading) and runtime (method overriding).

  • Example of method overloading: multiple functions with the same name but different parameters.

  • Example of method overriding: a subclass providing a specific implementation of a method defined in its superclass.

  • Polymorphism promotes code reusability and flexibility in pro...read more

5d ago

Q. What is a RESTful API?

Ans.

A RESTful API is an architectural style for designing networked applications using HTTP requests to access and manipulate data.

  • Stateless: Each API call from a client contains all the information needed to process the request, with no stored context on the server.

  • Resource-Based: RESTful APIs use resources (e.g., users, products) identified by URIs, allowing clients to interact with them using standard HTTP methods.

  • HTTP Methods: Common methods include GET (retrieve data), POST ...read more

2d ago

Q. What is a web server?

Ans.

A web server is a software or hardware that serves web content to users over the internet using HTTP/HTTPS protocols.

  • Processes requests from clients (browsers) and serves web pages.

  • Examples include Apache, Nginx, and Microsoft IIS.

  • Handles static content (HTML, CSS, images) and dynamic content (via server-side scripts).

  • Can manage multiple requests simultaneously using threading or asynchronous processing.

Q. Can you explain the refrigeration cycle?

Ans.

Refrigeration cycle is a process in which refrigerant absorbs heat from the indoor air and releases it outside to cool the indoor space.

  • Refrigerant absorbs heat from indoor air in the evaporator coil

  • The refrigerant is then compressed in the compressor to increase its temperature and pressure

  • The hot refrigerant releases heat to the outside air in the condenser coil

  • The refrigerant expands in the expansion valve, lowering its temperature and pressure, and the cycle repeats

Asked in Cognizant

4d ago

Q. Write a Java code snippet demonstrating the use of try-catch blocks.

Ans.

Java's try-catch block handles exceptions, allowing graceful error management in code execution.

  • The 'try' block contains code that may throw an exception.

  • The 'catch' block handles the exception if it occurs.

  • Multiple catch blocks can handle different types of exceptions.

  • Finally block can be used for cleanup code, executed regardless of exceptions.

  • Example: try { int result = 10 / 0; } catch (ArithmeticException e) { System.out.println('Division by zero!'); }

6d ago

Q. How do you operate a vacuum pump?

Ans.

A vacuum pump removes gas molecules from a sealed volume to create a vacuum, essential in various applications.

  • Understand the types of vacuum pumps: rotary vane, diaphragm, and scroll pumps.

  • Check the pump's specifications for the required vacuum level and flow rate.

  • Ensure proper connections to avoid leaks; use appropriate fittings and seals.

  • Regularly maintain the pump by checking oil levels and replacing filters.

  • Example: A rotary vane pump is commonly used in laboratories for...read more

6d ago

Q. How many bearings are in a centrifuge?

Ans.

Centrifuges typically have two to four bearings, depending on the design and size of the machine.

  • Bearings support the rotor and allow it to spin smoothly.

  • Common types of bearings used include ball bearings and roller bearings.

  • The number of bearings can vary based on the centrifuge's capacity and intended use.

  • For example, a small laboratory centrifuge may have two bearings, while a large industrial centrifuge may have four.

Q. How many types of reactors are there?

Ans.

There are several types of reactors, primarily categorized into nuclear and chemical reactors, each serving distinct purposes.

  • Nuclear Reactors: Used for generating energy through nuclear fission (e.g., Pressurized Water Reactor).

  • Chemical Reactors: Facilitate chemical reactions (e.g., Batch Reactor, Continuous Stirred Tank Reactor).

  • Bioreactors: Used for biological processes, such as fermentation (e.g., Fermenter).

  • Photoreactors: Utilize light to drive chemical reactions (e.g., ...read more

Q. What is threading?

Ans.

Threading is a programming concept that allows multiple threads to run concurrently within a single process.

  • Threading enables parallel execution, improving application performance.

  • Each thread shares the same memory space, allowing for efficient data sharing.

  • Example: A web server can handle multiple requests simultaneously using threads.

  • Threading can lead to issues like race conditions if not managed properly.

  • Languages like Java and Python provide built-in support for threadin...read more

3d ago

Q. Tell me about your costing experience with sheet metal.

Ans.

Experience in sheet metal costing involves material selection, fabrication processes, and labor estimation for accurate budgeting.

  • Material Selection: Choosing the right type of sheet metal (e.g., stainless steel vs. aluminum) affects cost significantly.

  • Fabrication Processes: Understanding processes like laser cutting, bending, and welding helps estimate costs accurately.

  • Labor Estimation: Calculating the time required for each process and the associated labor costs is crucial....read more

1d ago

Q. What is a class?

Ans.

A class is a blueprint for creating objects in programming, encapsulating data and behavior in a single entity.

  • Classes define properties (attributes) and methods (functions) that the objects created from the class can use.

  • Example: A 'Car' class may have attributes like 'color' and 'model', and methods like 'drive()' and 'stop()'.

  • Classes support inheritance, allowing new classes to inherit properties and methods from existing ones.

  • Example: A 'ElectricCar' class can inherit fro...read more

Asked in VeARC India

1d ago

Q. Given an array of integers, find the minimum element.

Ans.

To find the minimum value in an array, iterate through the elements and compare each to find the smallest one.

  • Initialize a variable to hold the minimum value, e.g., minValue = array[0].

  • Loop through each element in the array starting from the second element.

  • If the current element is less than minValue, update minValue.

  • Return minValue after completing the loop.

  • Example: For array = ['3', '1', '4', '2'], the minimum is '1'.

Asked in Cognizant

6d ago

Q. Write Python code to catch an exception.

Ans.

Python's try-except blocks handle exceptions, allowing graceful error management and maintaining program flow.

  • Try Block: Code that may raise an exception is placed inside a try block. Example: try: x = 1 / 0

  • Except Block: Code to handle the exception is placed in the except block. Example: except ZeroDivisionError: print('Division by zero!')

  • Multiple Exceptions: You can handle multiple exceptions using multiple except blocks. Example: except (TypeError, ValueError): print('Type...read more

1
2
Next

Interview Experiences of Popular Companies

Accenture Logo
3.7
 • 8.7k Interviews
Cognizant Logo
3.7
 • 5.9k Interviews
Hetero Logo
3.9
 • 256 Interviews
Sodexo Logo
4.1
 • 176 Interviews
View all
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories
Junior Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+

Reviews

10L+

Interviews

4 Cr+

Salaries

1.5 Cr+

Users

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2025 Info Edge (India) Ltd.

Follow Us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter
Profile Image
Hello, Guest
AmbitionBox Employee Choice Awards 2025
Winners announced!
awards-icon
Contribute to help millions!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos
Add office benefits
Add office benefits