Programmer Analyst
300+ Programmer Analyst Interview Questions and Answers
Q1. 1 Tell me about your self 2 What is c# 3 What is oops concept 4 What is Delegate 5 Difference between polymorphism and what are its type 6 What is out and ref keyword 7 What is call by ref and call by value 8 W...
read moreInterview questions for Programmer Analyst position
C# is a programming language used for developing Windows applications
OOPS concepts include inheritance, encapsulation, abstraction, and polymorphism
Delegate is a type that represents references to methods with a specific parameter list and return type
Polymorphism is the ability of an object to take on many forms. Types include compile-time and runtime polymorphism
Out and ref keywords are used for passing arguments by referenc...read more
Q2. What is stack? How do you convert a queue to stack?
Stack is a data structure that follows LIFO (Last In First Out) principle. Converting a queue to stack requires dequeuing and pushing elements.
Stack is a collection of elements with two main operations: push and pop.
Push adds an element to the top of the stack, while pop removes the top element.
Converting a queue to stack requires dequeuing all elements and pushing them onto a stack.
Example: Queue: 1-2-3-4-5, Stack: 5-4-3-2-1
Programmer Analyst Interview Questions and Answers for Freshers
Q3. What is SQL? define ddl? Why should we hire you?
SQL is a programming language used to manage and manipulate relational databases.
SQL stands for Structured Query Language.
It is used to create, modify, and query databases.
DDL (Data Definition Language) is a subset of SQL used to define the structure of a database.
DDL commands include CREATE, ALTER, and DROP.
I should be hired because of my experience and skills in SQL programming and database management.
Q4. What is the difference between structure and class?
Structures are value types while classes are reference types.
Structures are allocated on stack while classes are allocated on heap.
Structures do not support inheritance while classes do.
Structures cannot have explicit parameterless constructors while classes can.
Structures are used for small data structures while classes are used for larger, more complex objects.
Example of structure: struct Point { int x, y; }
Example of class: class Person { string name; int age; }
Q5. Two defined table and fetching data is done one table has 20 records of 20 students another table has 10 student information if i want to pick the common record how to pick?
Use SQL JOIN to fetch common records from two tables.
Use SQL JOIN to combine the two tables based on a common column (e.g. student ID).
Select the columns you want to retrieve from both tables.
Use the WHERE clause to filter out the records that are common between the two tables.
Q6. What is the difference between RDBMS and DBMS? Explain database with a real life example of database.
RDBMS is a type of DBMS that uses a relational model to store and manage data.
DBMS is a general term for any software that manages data
RDBMS uses tables with rows and columns to store data
RDBMS enforces relationships between tables using keys
Example: MySQL, Oracle, SQL Server
Example of a database: a customer database for a retail store
Share interview questions and help millions of jobseekers 🌟
Q7. Q1. Write a program to check whether the given String is pallindrome or not using two pointers approach in 3 mins?
Program to check if a given string is palindrome or not using two pointers approach.
Initialize two pointers, one at the start and one at the end of the string.
Compare the characters at both pointers and move them towards each other until they meet.
If all characters match, the string is a palindrome.
If any character doesn't match, the string is not a palindrome.
Q8. 1] Introduction 2] Explain automation framework in you project 3] Difference between Smoke, Sanity & Regression 4] Scenario based questions 5] Defect severity vs priority 6] BDD, Cucumber 7] Selenium basic ques...
read moreInterview questions for Programmer Analyst role
Explained automation framework used in the project
Differentiated between Smoke, Sanity & Regression testing
Answered scenario-based questions
Discussed defect severity vs priority
Explained BDD and Cucumber
Answered basic questions on Selenium
Programmer Analyst Jobs
Q9. What is the difference between object storage and block storage?
Object storage stores data as objects while block storage stores data as blocks.
Object storage is ideal for unstructured data like images, videos, and documents.
Block storage is ideal for structured data like databases and virtual machines.
Object storage uses unique identifiers to access data while block storage uses block addresses.
Object storage is more scalable and cost-effective than block storage.
Examples of object storage include Amazon S3 and Google Cloud Storage while...read more
Q10. 1. What are the constraints and give example that's include all constraints? 2. Basic SQL queries were asked but I don't remember 3. Then asked questions from my college projects
Answering questions on constraints and SQL queries for Programmer Analyst position
Constraints are rules that limit the values that can be inserted into a database table
Examples of constraints include primary key, foreign key, unique, check, and not null constraints
Basic SQL queries include select, insert, update, and delete statements
College project questions may vary depending on the project and interviewer
Q11. If i want to select uncommon records which does not match how to pick?
To select uncommon records that do not match, use the NOT IN or NOT EXISTS clause in SQL.
Use the NOT IN clause to select records that do not match a specific list of values.
Use the NOT EXISTS clause to select records that do not have a matching record in a subquery.
Example: SELECT * FROM table_name WHERE column_name NOT IN (value1, value2);
Example: SELECT * FROM table1 WHERE NOT EXISTS (SELECT * FROM table2 WHERE table1.id = table2.id);
Q12. How do you change region your deployed AWS EC2 instance?
To change region of deployed AWS EC2 instance, create an AMI of the instance and launch it in the desired region.
Create an AMI of the instance in the current region
Copy the AMI to the desired region
Launch the copied AMI in the desired region
Q13. Explain me about OOPS Concepts. Write a program in C++ to calculate Fibonacci Series. Write a program in C ++ to calculate Factorial. What is Call by value, Call by reference? Explain abstraction, encapsulation...
read moreOOPS Concepts, Fibonacci Series, Factorial, Call by value/reference, Abstraction, Encapsulation, Polymorphism, Switch, Router, Hub, OSI Model
OOPS Concepts include inheritance, polymorphism, encapsulation, and abstraction
Example of Fibonacci Series program: int fib(int n) { return (n <= 1) ? n : fib(n-1) + fib(n-2); }
Example of Factorial program: int fact(int n) { return (n == 1 || n == 0) ? 1 : n * fact(n-1); }
Call by value passes a copy of the variable, while call by referen...read more
Q14. Technical: SQL queries of join b/w three tables Sorting in descending order c program Full c code to print helloworld Little data structure,dbms Weakness HR: any movies or series recently watched and explain th...
read moreThe question asks for SQL queries for joining three tables, sorting in descending order in C program, and printing 'Hello, World!' in C.
To join three tables in SQL, use the JOIN keyword with appropriate conditions.
To sort in descending order in C, use the qsort() function with a custom comparison function.
To print 'Hello, World!' in C, use the printf() function with the desired message.
Q15. What are availability zones and regions in AWS?
Availability zones and regions are geographical locations in AWS data centers.
Availability zones are isolated locations within a region that contain their own power, cooling, and networking infrastructure.
Regions are separate geographic areas that consist of two or more availability zones.
Each region is completely independent and isolated from the others.
Customers can deploy resources in multiple availability zones to achieve high availability and fault tolerance.
Examples of ...read more
Q16. What is S3? What are the difference classes in S3?
S3 is a cloud-based object storage service provided by Amazon Web Services (AWS).
S3 stands for Simple Storage Service.
It allows users to store and retrieve data from anywhere on the web.
S3 offers different storage classes such as Standard, Infrequent Access, and Glacier.
Standard is for frequently accessed data, Infrequent Access is for data that is accessed less frequently, and Glacier is for long-term archival storage.
S3 also provides features like versioning, lifecycle poli...read more
Q17. If we have to return table, how to create a stored procedure?
To create a stored procedure that returns a table, use SELECT statement within the procedure.
Create a stored procedure using CREATE PROCEDURE statement.
Within the procedure, use SELECT statement to query the data and return the table.
Specify the columns to be returned in the SELECT statement.
Execute the stored procedure to retrieve the table data.
Q18. What is Object oriented programming? What are the 4 principal of Object oriented programming?
Object oriented programming is a programming paradigm that focuses on objects and their interactions to solve problems.
Encapsulation: bundling data and methods that operate on that data within a single unit.
Inheritance: creating new classes from existing ones, inheriting their properties and methods.
Polymorphism: the ability of objects to take on many forms, allowing them to be used in different ways.
Abstraction: hiding implementation details and only showing the necessary in...read more
Q19. difference b/w ref and out , array program to shift the position based on the input, OOPS concepts, question on web api , .net, mvc
Questions on ref, out, array shifting, OOPS, web API, .NET, and MVC for Programmer Analyst role.
ref and out are used to pass arguments by reference in C#
Array program can be implemented using a loop to shift elements based on input
OOPS concepts include inheritance, encapsulation, polymorphism, and abstraction
Web API is a framework for building HTTP services
.NET is a software framework for building Windows applications
MVC is a design pattern used in software engineering
Q20. What do you know about OOPS?
OOPS stands for Object-Oriented Programming System.
OOPS is a programming paradigm that focuses on objects and their interactions.
It emphasizes on encapsulation, inheritance, and polymorphism.
Encapsulation is the process of hiding implementation details from the user.
Inheritance allows a class to inherit properties and methods from another class.
Polymorphism allows objects to take on multiple forms or behaviors.
Examples of OOPS languages include Java, C++, Python, and Ruby.
Q21. What if a wheel of a car suddenly screws off while driving will u apply break suddenly ?
No, I would not apply the brake suddenly.
I would try to maintain control of the car by steering it to the side of the road or a safe area.
Applying the brake suddenly could cause the car to skid or lose control.
I would also turn on the hazard lights to alert other drivers of the situation.
Once the car is safely stopped, I would assess the damage and call for assistance if necessary.
Q22. Object oriented programming, data structures, what is java? , What are tags in HTML, what is tuples and lists in python? Write a code on reverse a string in java.
Interview question on OOP, data structures, Java, HTML tags, and Python lists/tuples with a coding task on string reversal in Java.
Object-oriented programming is a programming paradigm that uses objects to represent and manipulate data.
Data structures are ways of organizing and storing data in a computer so that it can be accessed and used efficiently.
Java is a high-level, object-oriented programming language used to develop applications for a variety of platforms.
HTML tags a...read more
Q23. 1. What is the difference between Inheritance and Abstract Class?
Inheritance is a way to create a new class from an existing class while Abstract Class is a class that cannot be instantiated.
Inheritance allows a subclass to inherit properties and methods from a superclass.
Abstract Class is used as a blueprint for other classes to inherit from.
An Abstract Class can have abstract methods that must be implemented by its subclasses.
Inheritance can create a hierarchy of classes with shared properties and methods.
An Abstract Class cannot be inst...read more
Q24. Two tables a and b with id as their attribute same for both the tables and the values were a(id):1,1, null,null,2 b(id):1,1, null, 2,3
Comparison of two tables with id attribute and null values.
Both tables have the same id attribute.
Table a has null values for the third and fourth rows.
Table b has a null value for the third row and a different value for the fifth row.
Q25. How flexibility can help, what are its advantages and disadvantages
Flexibility can bring advantages like adaptability and creativity, but can also lead to indecisiveness and lack of focus.
Flexibility allows for adaptability to changing situations and creativity in problem-solving.
It can also lead to indecisiveness and lack of focus if not balanced with structure and clear goals.
Advantages include increased resilience, better teamwork, and improved communication.
Disadvantages include potential for burnout and difficulty in prioritizing tasks....read more
Q26. How to determine bug After bug creation what is the next need to take closing story ?
To determine a bug, identify the unexpected behavior and compare it to the expected behavior. After fixing the bug, the next step is to close the story.
To determine a bug, reproduce the unexpected behavior and compare it to the expected behavior.
Use debugging tools to identify the root cause of the bug.
After fixing the bug, test the fix to ensure it resolves the issue.
Once the fix is verified, close the story in the project management tool.
Q27. 10. What is meant by Dependency injection in dot net?
Dependency injection is a design pattern used to remove dependencies between objects and make them more modular.
It allows objects to be created and configured externally, rather than within a class.
It helps to reduce coupling between classes and makes code more testable.
There are three types of dependency injection: constructor injection, property injection, and method injection.
Example: Instead of creating a database connection object within a class, it can be injected from ...read more
Q28. 2. What are sealed classes and partial classes in C#?
Sealed classes cannot be inherited while partial classes allow a class to be divided into multiple files.
Sealed classes prevent inheritance and are used to restrict the class hierarchy.
Partial classes allow a class to be divided into multiple files for easier management.
Sealed classes are marked with the 'sealed' keyword while partial classes are marked with the 'partial' keyword.
Example of sealed class: 'sealed class MyClass {}'
Example of partial class: 'public partial class...read more
Q29. 3. What is the difference between method overloading and overriding?
Method overloading is having multiple methods with the same name but different parameters, while method overriding is having a subclass method with the same name and parameters as the superclass method.
Method overloading is used to provide different ways of calling the same method with different parameters.
Method overriding is used to provide a specific implementation of a method in a subclass that is already defined in the superclass.
Method overloading is resolved at compile...read more
Q30. Can you mention some data structures? Explain Stack and Queue?
Data structures are ways to organize and store data. Stack and Queue are two commonly used data structures.
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.
Stack is used in undo-redo functionality, while Queue is used in scheduling tasks.
Examples of Stack include browser history, call stack in programmin...read more
Q31. Which types are testing are important for web testing?
Functional, Performance, Security and Compatibility testing are important for web testing.
Functional testing ensures that the website functions as expected
Performance testing checks the website's speed and response time
Security testing checks for vulnerabilities and ensures data protection
Compatibility testing ensures the website works on different browsers and devices
Q32. Tell me what you know about AWS cloud.
AWS cloud is a platform that provides a wide range of cloud computing services.
AWS stands for Amazon Web Services
It offers services like computing, storage, databases, analytics, and more
AWS provides a pay-as-you-go pricing model
Examples of AWS services include EC2, S3, RDS, and Lambda
Q33. Swapping of two variables without using temporary variables
Swapping two variables without using temporary variables.
Use arithmetic operations to swap values
X = X + Y
Y = X - Y
X = X - Y
Q34. How to add moving images in flipkart?
Moving images can be added in Flipkart by using HTML and CSS animations.
Use HTML tag to insert the image
Apply CSS animations to create the moving effect
Use keyframes to define the animation behavior
Q35. Inverse of a number has to be found whose digits difference and sum was given.
To find the inverse of a number, calculate the difference and sum of its digits.
Iterate through each digit of the number to calculate the sum and difference.
Reverse the order of the digits to get the inverse number.
For example, if the number is 123, the sum of digits is 1+2+3=6 and the difference is 3-2-1=0. The inverse would be 321.
Q36. what do you mean by machine learning , how you implemented your project .
Machine learning is a subset of AI that enables machines to learn from data and improve their performance.
Machine learning involves training algorithms to make predictions or decisions based on data.
Supervised learning involves training a model on labeled data to make predictions on new data.
Unsupervised learning involves finding patterns in unlabeled data.
Reinforcement learning involves training a model to make decisions based on rewards or punishments.
Examples of machine le...read more
Q37. What you do when a batch fails in production?
I would investigate the cause of the failure and take appropriate actions to resolve it.
Check the error logs to identify the root cause of the failure
Determine if the issue can be resolved by restarting the batch or if a code fix is required
Communicate the issue and resolution plan to relevant stakeholders
Implement the fix and re-run the batch
Perform post-mortem analysis to identify ways to prevent similar failures in the future
Q38. If you could rebuild the brand from the start, how would you do it?
I would focus on creating a strong brand identity and building a loyal customer base.
Develop a clear brand message and mission statement
Create a visually appealing and memorable logo
Offer exceptional customer service to build loyalty
Utilize social media and other marketing channels to reach target audience
Collaborate with influencers and industry leaders to increase brand visibility
Q39. What are OOPS concepts and how will be used in problem solving?
OOPS concepts refer to Object-Oriented Programming principles like inheritance, encapsulation, polymorphism, and abstraction.
Inheritance allows a class to inherit properties and behavior from another class.
Encapsulation involves bundling data and methods that operate on the data into a single unit.
Polymorphism allows objects of different classes to be treated as objects of a common superclass.
Abstraction focuses on hiding the implementation details and showing only the necess...read more
Q40. 4. Write a LINQ query to find all the employees with salary greater than 25000?
LINQ query to find employees with salary > 25000
Use the 'where' clause to filter employees based on salary
Specify the condition for salary greater than 25000
Select the required employee details using 'select'
Example: var result = employees.Where(e => e.Salary > 25000).Select(e => new { e.Name, e.Department });
Q41. What is NoSQL and how is it different from RDBMS.
NoSQL is a non-relational database that stores and retrieves data in a flexible and scalable manner.
NoSQL databases are schema-less and do not require a fixed table structure like RDBMS.
NoSQL databases are horizontally scalable, meaning they can handle large amounts of data and traffic.
Examples of NoSQL databases include MongoDB, Cassandra, and Redis.
RDBMS databases are vertically scalable, meaning they can handle more traffic by adding more resources to a single server.
Examp...read more
Q42. Write a program in java to find the middle element in a list.
Java program to find the middle element in a list.
Create a list and add elements to it.
Find the size of the list using size() method.
Calculate the middle index using size()/2.
Retrieve the middle element using get() method.
Handle cases where the list has even number of elements.
Q43. Logic behind tree and graphs codes?
Trees and graphs are used to represent hierarchical and non-linear relationships respectively in data structures and algorithms.
Trees are used to represent hierarchical relationships between data points, such as in file systems or organizational structures.
Graphs are used to represent non-linear relationships between data points, such as in social networks or transportation systems.
Both trees and graphs can be traversed using various algorithms, such as depth-first search or ...read more
Q44. What do know about Networking ?
Networking involves connecting devices to share resources and communicate with each other.
Networking is the practice of linking devices together to share resources and information.
It involves protocols such as TCP/IP, DNS, and DHCP.
Networking can be wired or wireless, and can be used for local or wide area connections.
Examples of networking devices include routers, switches, and modems.
Networking is essential for internet connectivity and cloud computing.
Q45. How many traffic signals are there in Mumbai?
It is not possible to determine the exact number of traffic signals in Mumbai without available data.
The number of traffic signals in Mumbai can vary over time due to construction, removal, or changes in traffic management.
The Mumbai Traffic Police or Municipal Corporation may have the most accurate data on the number of traffic signals.
Estimating the number of traffic signals in Mumbai would require a comprehensive survey or analysis of the city's road network.
Factors such a...read more
Q46. Time complexity of nested for loop.
Time complexity of nested for loop.
The time complexity is O(n^k) where n is the size of the outer loop and k is the size of the inner loop.
Nested loops can lead to exponential time complexity.
Optimizing the inner loop can improve performance.
Q47. Difference between regression testing and senity testing
Regression testing is to ensure that changes made to the software do not affect existing functionality. Sanity testing is to ensure that the software is stable enough for further testing.
Regression testing is done after changes are made to the software to ensure that existing functionality is not affected.
Sanity testing is done to ensure that the software is stable enough for further testing.
Regression testing is a type of functional testing while sanity testing is a type of ...read more
Q48. do you know python solve the particular piece of code and tell what will be the output
I am familiar with Python and can solve the given code snippet to determine the output.
Identify the code snippet provided
Analyze the syntax and logic used in the code
Execute the code in a Python environment to determine the output
Q49. what are types of functions in js and how does they work!
Types of functions in JavaScript include named functions, anonymous functions, arrow functions, and immediately invoked function expressions (IIFE).
Named functions are defined with a function keyword followed by a function name.
Anonymous functions are defined without a function name.
Arrow functions provide a more concise syntax for writing functions.
IIFE functions are executed immediately after they are defined.
Q50. Writer any program in your preferred language.
I wrote a program in Python to calculate the factorial of a number.
Used a while loop to multiply the number with its previous value until it reaches 1
Implemented error handling for negative numbers and non-integer inputs
Interview Questions of Similar Designations
Top Interview Questions for Programmer Analyst Related Skills
Interview experiences of popular companies
Calculate your in-hand salary
Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary
Reviews
Interviews
Salaries
Users/Month