Cognizant Programmer Trainee Interview Questions

Cognizant Programmer Trainee

Cognizant Programmer Trainee is an entry-level role in Cognizant. In this page, you will find Cognizant Programmer Trainee Interview Questions and Answers.

Page Highlights:

Cognizant Programmer Trainee Technical Interview Questions

Cognizant Placement Paper

What is Cognizant Programmer Trainee?

Programmer Trainee in Cognizant is a role offered to freshers, as an entry level job. Students from BCA and B.Sc. are eligible for this profile. The job profile of a Programmer Trainee in Cognizant revolves around learning and working with technologies and software. Candidates with good programming skills and fair knowledge of MySql, .Net etc. are preferred for this role.

Cognizant Programmer Trainee Eligibility Criteria

  • B.Sc. and BCA students are eligible
  • Minimum of 60% in X, XII and graduation
  • No standing arrears.

What is Cognizant Programmer Trainee Salary?

A fresher Programmer Trainee in Cognizant makes around Rs. 2.5 lakhs per annum. This amount will increase as an employee gains experience and works on different projects in Cognizant.

Cognizant Programmer Trainee Interview Questions and Answers

For Cognizant Programmer Trainee Profile, two interviews are conducted. 

  • Cognizant Programmer Trainee Technical Interview
  • Cognizant Programmer Trainee HR Interview

Cognizant Programmer Trainee Interview Topics

For Cognizant Programmer Trainee role, the interviewer will ask questions on topics including:-

  • Resume based questions
  • Project based questions
  • Internship/Certification questions
  • Technical questions on programming languages like C, Java, Python
  • Coding questions
  • DBMS and SQL questions

Cognizant Programmer Trainee Technical Interview Questions

1.What is the difference between local variable and global variable in C?

Answer:

 

Basis for comparisonLocal variableGlobal variable
DeclarationA variable that is declared inside a function or block is known as a local variable.A variable that is declared outside function or block is known as a global variable.
ScopeThe scope of a variable is within a function in which they are declared.The scope of a variable is throughout the program.
AccessVariables can be accessed only by those statements inside a function in which they are declared.Any statement in the entire program can access variables.
LifeLife of a variable is created when the function block is entered and destroyed on its exit.Life of a variable exists until the program is executing.
StorageVariables are stored in a stack unless specified.The compiler decides the storage location of a variable.

2.What do you mean by an IDE?

Answer:

An IDE or Integrated Development Environment which helps programmer design and build applications.

3.What is recursion in C?

Answer:

In some cases, a function can call itself, this process is called recursion and this function is called a recursive function. There are two phases of recursion:-

  • winding phase
  • unwinding phase

4.What is a pointer in C?

Answer:

A pointer is a variable that refers to the address of a value. Whenever a variable is declared inside a program then the system allocates some memory to a variable. The memory contains some address number. The variables that hold this address number is known as pointer variable.

5.What is package in Java?

Answer:

Packages in Java are collection of related classes and interfaces which are bundled together. Packages help in code reusability.

6.What are the main concepts of OOPs in Java?

Answer:

  • Inheritance:- inheritance is the process  by which one class (child class) can acquire the properties of another class (parent class).
  • Encapsulation:- Encapsulation in Java wraps up the data and code together in a single unit.
  • Abstraction:- Abstraction hides the implementation details from users.
  • Polymorphism:- Polymorphism is the ability of a variable, function or object to take multiple forms.

7.What is aggregation?

Answer:

Aggregation is the relationship between two classes where the aggregate class contains a reference to the class it owns. 

8.What is exception handling?

Answer:

Exception handling in OOPs is used to manage errors. Exception handler allows errors to be thrown and caught and implements a centralized mechanism to resolve them.

9.What is the purpose of normalization in DBMS?

Answer:

Normalization is the process of analyzing relational schemas which are based on their respective functional dependencies and the primary keys in order to fulfill certain properties, including:

  • minimize data redundancy
  • minimize Insert, Delete and Update anomalies

10.What is data abstraction in DBMS?

Answer:

Data abstraction in DBMS is a process of hiding irrelevant details from users.

11. Define Atomicity and Aggregation.

Answer:

  • Atomicity: It assures a users that incomplete transactions will be taken care of. Incomplete transactions are left undone in DBMS.
  • Aggregation: The collected entities and their relationship are aggregated in this model. It is used in expressing relationships within relationships.

12. What are the types of joins? Explain.

Answer:

  • Inner Join: Returns rows when there is at least one match of rows between tables.
  • Right Join: Returns rows which are common between the tables and rows of the right hand side table.
  • Left Join: Returns rows which are common between the tables and rows of the left-hand side table.
  • Full Join: Returns rows when there are matching rows in any one of the tables

13.What is a query?

Answer:

Query is a request for data. A database query is written in order to get information from the database.

14.What do you understand by SDLC models?

Answer:

SDLC models define all the phases of software development. The different SDLC models include:-

  • waterfall model
  • iteratice waterfall model
  • agile model
  • spiral model
  • prototype model

15.What are the various phases of software development lifecycle?

Answer:

The phases of SDLC include:-

  1. Research and Resources Gathering
  2. System Analysis
  3. Design
  4. Coding
  5. Testing
  6. Implementation

Find Most Asked Technical Interview Questions here : 

Cognizant Programmer Trainee Coding Questions

Question 1: 

Write a program to check if a number is palindrome or not.

Question 2: 

Write a program to check for leap year.

Question 3: 

Find the prime numbers between 1 to 100.

Question 4: 

Write a code to reverse an array.

Question 5: 

Write a program to check if two strings are anagram or not

Also Check:

Cognizant Programmer Trainee Interview Preparation

Interview Preparation

Find the most asked technical questions with answers, most asked HR questions and how to solve them. Also includes most asked coding questions and top 100 Interview Puzzles

Cognizant Programmer Trainee Interview Experience

Interview Experience

Read Interview Experiences of candidates selected and placed in various service based and product based companies include Microsoft, Cognizant, Infosys, PayPal and more

FAQs on Cognizant Programmer Trainee

Question: What is the salary of programmer trainee in Cognizant?

Answer:-

The salary of Cognizant Programmer Trainee is  Rupees 2.5 lakhs per annum, for freshers. For experienced candidates the salary can be up to 4 lakhs per annum.

Question: What is programmer trainee?

Answer:-

As a programmer trainee in Cognizant you will be working on projects, where you are led by a supervisor. These projects are assigned based on the technologies you are taught in your training period.