Programmer

80+ Programmer Interview Questions and Answers

Updated 12 Jul 2025
search-icon

Asked in Chain-Sys

1d ago

Q. How can you restrict the value for a particular button pressed from the keyboard?

Ans.

You can restrict the value for a particular button pressed from the keyboard by using event listeners and conditionals in your code.

  • Use event listeners to detect when a key is pressed on the keyboard

  • Check the value of the key pressed and only allow the desired button to trigger an action

  • You can use if statements or switch cases to restrict the value for a particular button pressed

Q. What are the differences between Micro, Mini, and Mainframe Computers?

Ans.

Micro, Mini, and Mainframe computers differ in terms of size, processing power, and usage.

  • Micro computers are small, low-cost, and designed for personal use.

  • Mini computers are larger and more powerful than micro computers, often used in small businesses or scientific research.

  • Mainframe computers are large, powerful, and used by large organizations for critical applications and data processing.

  • Micro computers include laptops, tablets, and smartphones.

  • Examples of mini computers...read more

Programmer Interview Questions and Answers for Freshers

illustration image

Asked in Movate

1d ago

Q. Java- explain system.out.println statement- why java is platform independent- collections in java

Ans.

Explaining Java's system.out.println statement, platform independence, and collections.

  • System.out.println() is used to print output to the console in Java.

  • Java is platform independent because it uses bytecode that can run on any platform with a JVM.

  • Collections in Java are used to store and manipulate groups of objects, such as ArrayLists and HashMaps.

Asked in Aequs

2d ago

Q. What is kaizens , and how many kaizen are completed in this year ?

Ans.

Kaizens are continuous improvement initiatives aimed at enhancing processes and efficiency. The number of completed kaizens in a year reflects the organization's commitment to improvement.

  • Kaizens are small, incremental changes made to processes to improve efficiency and quality.

  • They are typically implemented by cross-functional teams and involve brainstorming, testing, and implementing solutions.

  • Examples of kaizens include reducing waste in production processes, streamlining ...read more

Are these interview questions helpful?

Asked in AGC Networks

6d ago

Q. How can Polycom video conferencing be controlled via Crestron CP3?

Ans.

To control Polycom video conferencing via Crestron cp3, use the Polycom RealPresence API and Crestron SIMPL#Pro programming language.

  • Use the Polycom RealPresence API to send commands to the Polycom system

  • Create a SIMPL#Pro module to interface with the Crestron cp3

  • Map the commands from the API to the SIMPL#Pro module

  • Use the SIMPL#Pro module to send the mapped commands to the Polycom system

Asked in Infosys

4d ago

Q. Which programming language do you prefer and why?

Ans.

I prefer Python for programming because of its simplicity and versatility.

  • Python has a simple syntax which makes it easy to learn and use.

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

  • Python is versatile and can be used for web development, data analysis, machine learning, and more.

  • It is also open-source and has a large community for support and development.

  • Examples: Django for web development, NumPy for scientific computing, TensorFlow for machine ...read more

Programmer Jobs

Persistent Systems Limited logo
Programmer (Dev) 5-9 years
Persistent Systems Limited
3.6
Hyderabad / Secunderabad
Persistent Systems Limited logo
Programmer (Dev) - 5.2 5-9 years
Persistent Systems Limited
3.6
Bangalore / Bengaluru
Persistent Systems Limited logo
Programmer (Dev) - 5.2 5-9 years
Persistent Systems Limited
3.6
Pune

Asked in Cognizant

6d ago

Q. What is opps ?, Difference between java and python?

Ans.

OOPs is Object Oriented Programming. Java and Python are both OOPs languages, but differ in syntax and usage.

  • Java is statically typed, while Python is dynamically typed

  • Java requires more verbose syntax, while Python is more concise

  • Java is better suited for large-scale enterprise applications, while Python is better for scripting and data analysis

  • Java has a stronger emphasis on performance, while Python prioritizes ease of use and readability

  • Both languages support inheritance,...read more

Q. What are C program projects for Final Year?

Ans.

C program projects for Final Year can include developing a text editor, implementing a file compression algorithm, or creating a simple operating system.

  • Developing a text editor: This project involves creating a program that allows users to create, edit, and save text files.

  • Implementing a file compression algorithm: This project focuses on developing a program that can compress and decompress files using algorithms like Huffman coding or Lempel-Ziv-Welch (LZW) compression.

  • Cre...read more

Share interview questions and help millions of jobseekers 🌟

man-with-laptop

Asked in Intel

3d ago

Q. What is the difference between actual and formal parameters?

Ans.

Actual parameters are passed to a function during its call, while formal parameters are defined in the function's declaration.

  • Actual parameters are the values passed to a function when it is called

  • Formal parameters are the variables declared in the function's definition

  • Actual parameters can be of any data type, while formal parameters must have a specific data type

  • Actual parameters can be constants, variables, or expressions, while formal parameters are always variables

  • The nu...read more

Q. What are the different methods available in jQuery and how should they be implemented according to inline, block, and inline-block?

Ans.

jQuery provides various methods to manipulate CSS display properties like inline, block, and inline-block.

  • Use .css() to set display property: $('.element').css('display', 'block');

  • Toggle display with .toggle(): $('.element').toggle();

  • Check display type with .is(): if ($('.element').is(':visible')) { ... }

  • Hide elements with .hide(): $('.element').hide();

  • Show elements with .show(): $('.element').show();

Q. What is the role of a database in backend development?

Ans.

Database is crucial for storing and managing data in backend development.

  • Database stores and organizes data for efficient retrieval and manipulation.

  • It allows for easy querying and filtering of data.

  • It enables data consistency and integrity through constraints and validations.

  • It facilitates data migration and backup.

  • Examples include MySQL, MongoDB, and PostgreSQL.

Asked in AGC Networks

1d ago

Q. Crestron application licence and working details ? Difference between free version and paid version?

Ans.

Crestron application license has free and paid versions with different working details.

  • Crestron application is a software used for automation and control systems.

  • The free version has limited features and is meant for personal use.

  • The paid version has advanced features and is meant for commercial use.

  • The license is required to activate the software and access all its features.

  • The working details depend on the specific version and license purchased.

Q. Is Java a compile-time language or an interpreted language?

Ans.

Java is a compiled language that also uses interpretation at runtime.

  • Java code is compiled into bytecode which is then interpreted by the Java Virtual Machine (JVM) at runtime.

  • This allows Java to be platform-independent as the bytecode can be executed on any system with a JVM.

  • However, some modern JVMs also use just-in-time (JIT) compilation to improve performance.

  • JIT compilation compiles bytecode into native machine code at runtime, allowing for faster execution.

  • Overall, Java...read more

Asked in Aequs

6d ago

Q. Type of machining we are currently working (eg, drilling ,milling ,taping and slotting )?

Ans.

We are currently working on drilling, milling, tapping, and slotting machining processes.

  • Drilling involves creating holes in a workpiece using a rotating cutting tool.

  • Milling is the process of removing material from a workpiece using a rotating cutter.

  • Tapping is the process of creating internal threads in a hole.

  • Slotting involves cutting slots or grooves in a workpiece.

Asked in Geometric

5d ago

Q. what is java, how is it is executed on command prompt

Ans.

Java is a high-level programming language that is platform-independent and object-oriented. It is executed on command prompt using the 'java' command.

  • Java is a high-level programming language known for its portability and versatility.

  • To execute a Java program on command prompt, first compile the program using the 'javac' command to generate a .class file.

  • Then, use the 'java' command followed by the name of the class containing the main method to run the program.

  • For example, t...read more

6d ago

Q. Write a program to find the frequency of a given character in a sorted string.

Ans.

Use binary search to find the first and last occurrence of the character, then calculate the frequency.

  • Use binary search to find the first occurrence of the character in the string.

  • Use binary search to find the last occurrence of the character in the string.

  • Calculate the frequency by subtracting the indices of the last and first occurrences and adding 1.

1d ago

Q. what is python ? how it different form other language ?

Ans.

Python is a high-level programming language known for its simplicity and readability.

  • Python is an interpreted language, meaning it does not need to be compiled before running.

  • It has a large standard library that provides many pre-built functions and modules.

  • Python supports multiple programming paradigms, including procedural, object-oriented, and functional programming.

  • It is widely used in various domains such as web development, data analysis, artificial intelligence, and au...read more

Q. What is the meaning of the 'implements' keyword in Java?

Ans.

The 'implements' keyword is used to indicate that a class is implementing an interface.

  • The 'implements' keyword is followed by the name of the interface that the class is implementing.

  • A class can implement multiple interfaces by separating them with commas.

  • All methods declared in an interface must be implemented by the class that implements it.

  • Example: 'public class MyClass implements MyInterface { ... }'

Asked in AGC Networks

3d ago

Q. What methods do you use to control third-party devices over the RS232 protocol?

Ans.

RS232 protocol is a standard for serial communication. Third-party device control can be achieved using this protocol.

  • RS232 protocol is a standard for serial communication between devices.

  • Third-party device control can be achieved by sending commands over RS232.

  • Commands can be sent using a terminal emulator or programming language.

  • Examples of devices that can be controlled using RS232 include printers, scanners, and industrial equipment.

Asked in Accenture

1d ago

Q. What is the difference between UNION and UNION ALL?

Ans.

Union combines and removes duplicates, while Union All combines without removing duplicates.

  • Union removes duplicates from the result set, while Union All does not.

  • Union is slower than Union All because it has to perform the additional step of removing duplicates.

  • Union All is used when you want to include all rows from both tables, including duplicates.

1d ago

Q. OOPs concepts, and their pillars. Design a Vehicle class, by understanding the requirements

Ans.

OOPs concepts and pillars. Design a Vehicle class based on requirements.

  • OOPs concepts: Abstraction, Encapsulation, Inheritance, Polymorphism

  • Vehicle class requirements: attributes like make, model, year, methods like start, stop, accelerate

2d ago

Q. What is the difference between the truncate and delete commands?

Ans.

Truncate removes all data from a table while delete removes specific rows.

  • Truncate is faster than delete as it doesn't log individual row deletions

  • Truncate cannot be rolled back while delete can be

  • Truncate resets the identity of the table while delete doesn't

  • Truncate doesn't fire triggers while delete does

  • Truncate is a DDL command while delete is a DML command

Asked in AGC Networks

3d ago

Q. How can RS232 commands be sent over an IR port?

Ans.

RS232 commands can be sent over IR port using an IR to RS232 converter.

  • Use an IR to RS232 converter to convert the IR signals to RS232 commands.

  • Connect the IR to RS232 converter to the device that needs to receive the commands.

  • Send the RS232 commands through the IR port using the converter.

  • Ensure that the IR port and the converter are compatible with each other and the device.

  • Test the connection and commands to ensure proper functionality.

Asked in Aequs

3d ago

Q. OEE (Overall Equipment Effectiveness) with example?

Ans.

OEE is a measure of how well a manufacturing process is utilized, calculated by multiplying availability, performance, and quality.

  • OEE is calculated by multiplying Availability x Performance x Quality.

  • Availability measures the percentage of time the equipment is running during planned production time.

  • Performance measures the speed at which the equipment is running compared to its maximum speed.

  • Quality measures the good units produced compared to the total units produced.

  • For e...read more

Q. Find the average of the ages of females and males, and list those below the average age.

Ans.

Calculate average age of male and female and list below average age.

  • Separate male and female ages into two arrays

  • Calculate average of each array

  • List out ages below the average for each array

Q. What are Visual Studio Tools for Office?

Ans.

Visual Studio Tools for Office (VSTO) is a set of tools and features that enable developers to create custom Office solutions.

  • VSTO allows developers to extend and customize Microsoft Office applications such as Excel, Word, and Outlook.

  • It provides a way to add new functionality to Office applications using managed code.

  • Developers can create add-ins, document-level customizations, and other solutions using VSTO.

  • VSTO integrates with Visual Studio IDE to provide a seamless devel...read more

2d ago

Q. Which model is used in credit card fraud detection?

Ans.

Credit card detection uses machine learning models.

  • Machine learning models like logistic regression, decision trees, and neural networks are used for credit card detection.

  • These models analyze patterns in credit card transactions to detect fraudulent activity.

  • The models are trained on large datasets of both legitimate and fraudulent transactions.

  • The models can be updated and improved over time as new data becomes available.

Asked in Aequs

5d ago

Q. 8D , eloborate and what mean of SPC?

Ans.

8D is a problem-solving methodology used to identify, correct, and prevent recurring problems. SPC stands for Statistical Process Control.

  • 8D is an eight-step problem-solving process used to address and prevent recurring issues in a systematic manner.

  • SPC is a method of quality control which uses statistical tools to monitor and control a process.

  • Examples of SPC tools include control charts, histograms, and scatter diagrams.

Asked in Cognizant

5d ago

Q. How to implement stack? How does real analysis work?

Ans.

Stack can be implemented using arrays or linked lists. It follows LIFO (Last In First Out) principle.

  • Create an empty array or linked list

  • Push elements onto the stack

  • Pop elements from the stack

  • Check if the stack is empty

  • Example: Infix to Postfix conversion using stack

  • Example: Undo/Redo functionality in text editors

4d ago

Q. Do you have a strong understanding of OOPS concepts?

Ans.

Understanding OOP concepts is crucial for effective coding, enabling better organization and reusability of code.

  • Encapsulation: Bundling data and methods that operate on the data within one unit, e.g., a class in Java.

  • Inheritance: Mechanism to create a new class using properties of an existing class, e.g., a 'Dog' class inheriting from an 'Animal' class.

  • Polymorphism: Ability to present the same interface for different data types, e.g., method overloading in C++.

  • Abstraction: H...read more

1
2
3
Next

Interview Experiences of Popular Companies

TCS Logo
3.6
 • 11.1k Interviews
Infosys Logo
3.6
 • 7.9k Interviews
Wipro Logo
3.7
 • 6.1k Interviews
Cognizant Logo
3.7
 • 5.9k Interviews
View all

Top Interview Questions for Programmer Related Skills

interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories
Programmer 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