Add office photos
Engaged Employer

Tudip Technologies

3.0
based on 264 Reviews
Filter interviews by

30+ Cognizant Interview Questions and Answers

Updated 18 Oct 2024

Q1. what is dbms and tell its acid propertie

Ans.

DBMS is a software system that manages databases and their access. ACID properties ensure data consistency and reliability.

  • DBMS stands for Database Management System

  • It is a software system that manages databases and their access

  • ACID properties ensure data consistency and reliability

  • ACID stands for Atomicity, Consistency, Isolation, and Durability

  • Atomicity ensures that a transaction is treated as a single unit of work

  • Consistency ensures that the database remains in a valid sta...read more

Add your answer

Q2. 2.What are the differences between the constructors and methods?

Ans.

Constructors are special methods used to initialize objects, while methods are regular functions that perform specific tasks.

  • Constructors have the same name as the class, while methods have unique names.

  • Constructors are called automatically when an object is created, while methods need to be called explicitly.

  • Constructors do not have a return type, while methods have a return type.

  • Constructors are used to set initial values of instance variables, while methods can perform var...read more

View 1 answer

Q3. what are oops and was it is used in java

Ans.

OOPs stands for Object-Oriented Programming. It is used in Java to create modular programs and reusable code.

  • OOPs is a programming paradigm that focuses on objects and their interactions

  • Java is an object-oriented language that supports encapsulation, inheritance, and polymorphism

  • OOPs allows for code reusability, modularity, and easier maintenance

  • Example: creating a class for a car object with properties like make, model, and year, and methods like start and stop

Add your answer

Q4. 1.What is the purpose of a default constructor?

Ans.

The purpose of a default constructor is to initialize the object's instance variables with default values.

  • A default constructor is automatically provided by the compiler if no constructor is defined in the class.

  • It is used to create an object of the class with default values for its instance variables.

  • Default constructors are useful when we want to create an object without passing any initial values.

View 1 answer
Discover Cognizant interview dos and don'ts from real experiences

Q5. explain Access modifiers public and default difference how to connect java to database 20 % of 25 superclass of all class sql query for delete last 10 rows from employee table

Ans.

Access modifiers control the visibility and accessibility of classes, methods, and variables in Java.

  • public access modifier allows a class, method, or variable to be accessed from any other class.

  • default access modifier (no keyword) allows a class, method, or variable to be accessed only within the same package.

  • To connect Java to a database, you can use JDBC (Java Database Connectivity) API.

  • The superclass of all classes in Java is the Object class.

  • SQL query to delete the last...read more

Add your answer

Q6. What is Java? What is oops concepts? What is string and what are the types of string?

Ans.

Java is a high-level programming language used for developing applications. OOPs concepts are the principles of object-oriented programming. String is a sequence of characters.

  • Java is an object-oriented language that is platform-independent.

  • OOPs concepts include inheritance, encapsulation, polymorphism, and abstraction.

  • String is a class in Java that represents a sequence of characters.

  • Types of strings include immutable, mutable, and interned strings.

View 1 answer
Are these interview questions helpful?

Q7. 3.Why is the main method static?

Ans.

The main method is static because it needs to be called by the Java Virtual Machine (JVM) without creating an instance of the class.

  • Static methods can be called directly using the class name, without creating an object of the class.

  • The main method is the entry point of a Java program, and it needs to be called by the JVM to start the execution.

  • If the main method were not static, we would need to create an object of the class containing the main method to call it, which is not...read more

View 1 answer

Q8. Difference between abstraction and encapsulation?

Ans.

Abstraction focuses on hiding the implementation details while encapsulation focuses on bundling the data and methods that operate on the data into a single unit.

  • Abstraction is about hiding the complexity of the implementation and showing only the necessary details to the user.

  • Encapsulation is about bundling the data and methods that operate on the data into a single unit.

  • Abstraction allows for creating simple interfaces for complex systems.

  • Encapsulation helps in achieving da...read more

Add your answer
Share interview questions and help millions of jobseekers 🌟

Q9. Database connectivity code implementation

Ans.

Database connectivity code implementation involves establishing a connection between a database and a software application.

  • Use appropriate database drivers for the specific database management system (e.g. JDBC for MySQL, SQLite3 for SQLite).

  • Establish a connection using connection strings with necessary credentials (username, password, database name, host).

  • Execute SQL queries to interact with the database (e.g. SELECT, INSERT, UPDATE, DELETE).

  • Handle exceptions and errors that...read more

Add your answer

Q10. How to test a website on different devices?

Ans.

To test a website on different devices, use responsive design testing tools, emulators, physical devices, and browser developer tools.

  • Use responsive design testing tools like BrowserStack or Responsinator to simulate different screen sizes.

  • Utilize emulators like Android Studio's emulator or Xcode's simulator to test on various mobile devices.

  • Test on physical devices to ensure accurate performance and user experience.

  • Use browser developer tools like Chrome DevTools to simulate...read more

Add your answer

Q11. What is Java and features What is string and types What is dependency injection

Ans.

Java is a high-level programming language. String is a sequence of characters. Dependency Injection is a design pattern.

  • Java is an object-oriented language with features like platform independence, automatic memory management, and multithreading.

  • String is a class in Java used to represent a sequence of characters. It is immutable and can be concatenated using the '+' operator.

  • Dependency Injection is a design pattern used to remove hard-coded dependencies between objects. It a...read more

Add your answer

Q12. Tree traversal code implementation

Ans.

Tree traversal code implementation involves visiting each node in a tree data structure in a specific order.

  • There are three main types of tree traversal: in-order, pre-order, and post-order.

  • In-order traversal visits the left subtree, then the root, then the right subtree.

  • Pre-order traversal visits the root, then the left subtree, then the right subtree.

  • Post-order traversal visits the left subtree, then the right subtree, then the root.

Add your answer

Q13. constructor vs method , api call process

Ans.

Constructor is a special method used to initialize an object, while a method is a function that performs a specific task.

  • Constructors are called automatically when an object is created, while methods need to be called explicitly.

  • Constructors have the same name as the class, while methods can have any name.

  • Constructors can have parameters, while methods may or may not have parameters.

  • API call process involves making requests to an API endpoint, sending data, and receiving a re...read more

Add your answer

Q14. Write a code to reverse a string

Ans.

Code to reverse a string

  • Create an empty string to store the reversed string

  • Loop through the original string from end to start

  • Append each character to the empty string

  • Return the reversed string

Add your answer

Q15. 1st Technical round : Difference between Epic and User story.

Ans.

An Epic is a large body of work that can be broken down into smaller tasks called User Stories.

  • Epic is a high-level requirement that is too large to be completed in a single iteration.

  • User Story is a small, specific piece of work that can be completed in a single iteration.

  • Epics are usually broken down into multiple User Stories for implementation.

  • User Stories are more detailed and focused compared to Epics.

  • Example: Epic - Develop a new feature for the website. User Story - A...read more

Add your answer

Q16. Diff between final finally finalize

Ans.

Final is an adjective, finally is an adverb, and finalize is a verb.

  • Final is used to describe something that is last or ultimate (e.g. final exam)

  • Finally is used to indicate the end of a series of events or actions (e.g. finally, we reached our destination)

  • Finalize is used to complete or finish something (e.g. finalize a contract)

Add your answer

Q17. Joins in SQL with example

Ans.

Joins in SQL are used to combine rows from two or more tables based on a related column between them.

  • Types of joins include INNER JOIN, LEFT JOIN, RIGHT JOIN, and FULL JOIN

  • Example: SELECT * FROM table1 INNER JOIN table2 ON table1.column = table2.column

Add your answer

Q18. Why java is independent?

Ans.

Java is independent because of its platform-independent nature.

  • Java code is compiled into bytecode which can run on any platform with a JVM.

  • It follows the 'Write Once, Run Anywhere' (WORA) principle.

  • Java's platform independence is achieved through its architecture and class libraries.

  • Java's platform independence makes it a popular choice for developing cross-platform applications.

Add your answer

Q19. what is C++ and what are the basics

Ans.

C++ is a high-level programming language used for developing system software, application software, and video games.

  • C++ is an extension of the C programming language

  • It supports object-oriented programming concepts like classes, inheritance, polymorphism, etc.

  • It is a compiled language and provides low-level memory manipulation features

  • C++ is widely used in developing operating systems, device drivers, game engines, and financial software

  • Some popular C++ libraries are STL, Boos...read more

Add your answer

Q20. Where do you use abstract class

Ans.

Abstract classes are used to provide a common interface and partial implementation for related classes.

  • Abstract classes are used when you want to create a base class that cannot be instantiated on its own but can be inherited by other classes.

  • They are useful when you want to define common methods and properties that multiple related classes should have.

  • Abstract classes can have both abstract and non-abstract methods.

  • Abstract methods are declared without an implementation and ...read more

Add your answer

Q21. What is final keywords?

Ans.

final keyword is used in Java to make a variable, method or class unchangeable or unextendable.

  • final variables cannot be reassigned

  • final methods cannot be overridden

  • final classes cannot be extended

  • final keyword is used for optimization in Java

  • final keyword is used to ensure immutability in Java

Add your answer

Q22. What's is authentication and authorisation

Ans.

Authentication is the process of verifying the identity of a user, while authorization is the process of granting access to specific resources.

  • Authentication confirms the identity of a user through credentials such as username and password.

  • Authorization determines what resources a user can access based on their role or permissions.

  • Examples of authentication include logging into a website or entering a PIN at an ATM.

  • Examples of authorization include granting access to certain ...read more

Add your answer

Q23. What is increment operator

Ans.

The increment operator is used to increase the value of a variable by 1.

  • The increment operator is denoted by ++.

  • It can be used with both integers and floating-point numbers.

  • It can be used as a prefix (++x) or postfix (x++).

  • When used as a prefix, the value is incremented before the expression is evaluated.

  • When used as a postfix, the value is incremented after the expression is evaluated.

  • Example: int x = 5; x++; // x is now 6

  • Example: int y = 10; ++y; // y is now 11

Add your answer

Q24. Explain JDBC-SQL

Ans.

JDBC-SQL is a Java API for connecting and executing SQL queries on a database.

  • JDBC stands for Java Database Connectivity

  • It allows Java programs to interact with databases using SQL

  • JDBC provides classes and interfaces for connecting to a database, sending queries, and retrieving results

  • Example: Establishing a connection to a database, creating a statement, executing queries, and processing results

Add your answer

Q25. What is volatile keyword?

Ans.

The volatile keyword in software engineering is used to indicate that a variable's value can be modified by multiple threads.

  • Volatile keyword ensures that the variable's value is always read from and written to the main memory, rather than cached in a thread's local cache.

  • It is used to prevent unexpected behavior in multi-threaded environments where multiple threads may access and modify the same variable simultaneously.

  • The volatile keyword is often used in scenarios where va...read more

Add your answer

Q26. What all software worked on?

Ans.

I have experience working with various software including Microsoft Office Suite, SAP, Oracle, and HRIS systems.

  • Microsoft Office Suite

  • SAP

  • Oracle

  • HRIS systems

Add your answer

Q27. What is abstract class

Ans.

An abstract class is a class that cannot be instantiated and is meant to be subclassed.

  • An abstract class can have abstract methods that must be implemented by its subclasses.

  • An abstract class can also have non-abstract methods that can be inherited by its subclasses.

  • An abstract class provides a common interface for its subclasses.

  • An abstract class can have instance variables and constructors.

  • An abstract class cannot be instantiated directly but can be used as a reference type...read more

Add your answer

Q28. Write an appraisal email to the candidate

Ans.

Appraisal email to candidate

  • Start with a positive opening, mentioning the candidate's strengths

  • Provide specific examples of the candidate's achievements or contributions

  • Highlight areas for improvement in a constructive manner

  • End on a positive note, expressing confidence in the candidate's potential

  • Offer support for any further development or training opportunities

Add your answer

Q29. Explain dbms and rdbms

Ans.

DBMS is a software that manages databases, while RDBMS is a type of DBMS that uses a relational model.

  • DBMS stands for Database Management System

  • It is a software that allows users to create, manipulate, and manage databases

  • RDBMS is a type of DBMS that organizes data into tables with rows and columns

  • It enforces the relational model and supports SQL for querying and managing data

  • Examples of DBMS: MySQL, Oracle, SQL Server

  • Examples of RDBMS: PostgreSQL, SQLite, MySQL

Add your answer

Q30. Test cases of Data grid.

Ans.

Test cases for data grid involve verifying data display, sorting, filtering, pagination, editing, and deleting functionalities.

  • Verify data is displayed correctly in the grid

  • Test sorting functionality by sorting columns in ascending and descending order

  • Test filtering functionality by applying filters and checking if data is displayed correctly

  • Test pagination by navigating through multiple pages of data

  • Test editing functionality by updating data in the grid

  • Test deleting functio...read more

Add your answer

Q31. Volume of cabin, Introduction

Ans.

The volume of a cabin refers to the amount of space inside the cabin.

  • Volume can be calculated by multiplying the length, width, and height of the cabin.

  • For example, if a cabin is 10 feet long, 8 feet wide, and 6 feet high, the volume would be 480 cubic feet.

  • Volume is often measured in cubic units such as cubic feet or cubic meters.

Add your answer

Q32. Run tasks on Code Sandbox

Ans.

Code Sandbox allows running tasks for front-end development

  • Open Code Sandbox and create a new project

  • Add necessary dependencies and files

  • Run tasks using npm scripts or command line

  • Examples: build, start, test

Add your answer

Q33. Example of prority and severity

Ans.

Priority and severity are used in software testing to determine the urgency and impact of a defect.

  • Priority is the level of importance assigned to a defect, based on factors like business impact and customer requirements.

  • Severity is the impact of a defect on the system, ranging from minor inconveniences to critical failures.

  • Examples: A spelling mistake in a button label may have low severity but high priority if it affects user experience. A system crash would have high sever...read more

Add your answer

Q34. Sourcing experience

Ans.

I have over 10 years of experience in sourcing candidates for various positions in operations and HR.

  • Utilized job boards, social media, and networking events to source qualified candidates

  • Developed relationships with staffing agencies and headhunters to expand candidate pool

  • Implemented employee referral programs to encourage internal sourcing

  • Utilized applicant tracking systems to streamline sourcing process

Add your answer

Q35. Types of testing

Ans.

Types of testing include unit testing, integration testing, system testing, and acceptance testing.

  • Unit testing: Testing individual components or modules of the software.

  • Integration testing: Testing how different modules work together.

  • System testing: Testing the entire system as a whole.

  • Acceptance testing: Testing to ensure the software meets the requirements of the end users.

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Cognizant

based on 47 interviews
Interview experience
3.5
Average
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

4.0
 • 1.2k Interview Questions
4.0
 • 690 Interview Questions
4.1
 • 540 Interview Questions
3.9
 • 253 Interview Questions
4.2
 • 203 Interview Questions
4.1
 • 157 Interview Questions
View all
Top Tudip Technologies Interview Questions And Answers
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

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

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter