Programmer Analyst
300+ Programmer Analyst Interview Questions and Answers

Asked in Cognizant

Q. 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

Asked in Cognizant

Q. 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

Asked in Cognizant

Q. Given two tables, one with 20 student records and another with 10, how would you retrieve the common records between them?
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.

Asked in YASH Technologies

Q. What is the difference between a structure and a 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; }

Asked in Exela Technologies

Q. 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.

Asked in Cognizant

Q. 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
Programmer Analyst Jobs

Asked in Cognizant

Q. Write a program to check whether the given String is a palindrome or not using the two pointers approach.
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.

Asked in Cognizant

Q. 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
Share interview questions and help millions of jobseekers 🌟

Asked in Ramco Systems

Q. 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

Asked in Cognizant

Q. 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

Asked in Cognizant

Q. How do you select uncommon records that do not match?
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);

Asked in Cognizant

Q. How do you change the region of 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

Asked in Cognizant

Q. 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

Asked in Cognizant

Q. 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.

Asked in Cognizant

Q. 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

Asked in Argusoft

Q. Write a function to calculate the angle between the hour and minute hands on a clock.
Calculate the angle between the hour and minute hands of a clock based on given time.
Each hour represents 30 degrees (360 degrees / 12 hours).
Each minute represents 6 degrees (360 degrees / 60 minutes).
Hour hand moves 0.5 degrees per minute (30 degrees / 60 minutes).
Formula: Angle = |(30*hour + 0.5*minutes) - (6*minutes)|.
Example: For 3:15, Angle = |(30*3 + 0.5*15) - (6*15)| = |97.5 - 90| = 7.5 degrees.

Asked in Cognizant

Q. How do you create a stored procedure to return a table?
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.

Asked in Cognizant

Q. 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

Asked in Cognizant

Q. 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

Asked in Boeing

Q. 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

Asked in Xceedance

Q. After performing a join operation on this table, what is the count of rows that would be returned?
The count of rows returned after a join depends on the type of join and the matching records in the tables.
Inner Join: Returns rows with matching values in both tables. Example: If Table A has 5 rows and Table B has 3 matching rows, result = 3.
Left Join: Returns all rows from the left table and matched rows from the right table. Example: If Table A has 5 rows and Table B has 2 matching rows, result = 5.
Right Join: Returns all rows from the right table and matched rows from th...read more

Asked in Cognizant

Q. 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.

Asked in Cognizant

Q. If a wheel of a car suddenly comes off while driving, would you apply the brakes 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.

Asked in Capgemini

Q. 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.
Java, HTML, Python concepts and code implementation for Programmer Analyst interview.
Object oriented programming is a programming paradigm based on the concept of objects, which can contain data in the form of fields and code in the form of procedures.
Data structures are ways of organizing and storing data in a computer so that it can be accessed and modified efficiently.
Java is a high-level, class-based, object-oriented programming language that is designed to have as few im...read more

Asked in Xceedance

Q. Given two tables, A and B, both having an 'id' attribute. Table A contains the following 'id' values: 1, 1, null, null, 2. Table B contains the following 'id' values: 1, 1, null, 2, 3. What can you infer from t...
read moreComparison 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.

Asked in Cognizant

Q. 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

Asked in Argusoft

Q. A person gives away half of their oranges to another person three times. If they have 9 oranges left, how many oranges did they start with?
To find the initial number of oranges, we reverse the process of giving away half three times from a total of 9 oranges.
Start with the final count of oranges: 9.
After the third giving away, she had 9 oranges, which means she had 18 before giving half away.
Before the second giving away, she had 18 oranges, which means she had 36 before giving half away.
Before the first giving away, she had 36 oranges, which means she originally had 72 oranges.

Asked in Cognizant

Q. 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

Asked in CognAI

Q. 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.

Asked in Cognizant

Q. 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
Interview Questions of Similar Designations
Interview Experiences of Popular Companies
Top Interview Questions for Programmer Analyst Related Skills
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