Add office photos
Employer?
Claim Account for FREE

Capgemini Engineering

3.5
based on 2.1k Reviews
Filter interviews by

200+ WorldEmp Interview Questions and Answers

Updated 14 Dec 2024
Popular Designations
Q1. Sort an array of 0's, 1's and 2's

You have been given an integer array/list(ARR) of size 'N'. It only contains 0s, 1s and 2s. Write a solution to sort this array/list.

Note :
Try to solve the problem in 'Single ...read more
View 4 more answers
Q2. Detect loop in linked list

You have given a Singly Linked List of integers, determine if it forms a cycle or not.

A cycle occurs when a node's next points back to a previous node in the list. The linked list is ...read more

View 4 more answers
Q3. Remove all occurrences of a character in a string

For a given a string(str) and a character X, write a function to remove all the occurrences of X from the given string.

The input string will remain unchanged if...read more

View 2 more answers
Q4. Detect loop in a Linked List

You have given a Singly Linked List of integers, determine if it forms a cycle or not.

A cycle occurs when a node's next points back to a previous node in the list. The linked list i...read more

View 4 more answers
Discover WorldEmp interview dos and don'ts from real experiences
Q5. Reverse a linked list
Input Format :
The first line of input contains a single integer T, ...read more
View 3 more answers
Q6. Merge Sort

Given a sequence of numbers ‘ARR’. Your task is to return a sorted sequence of ‘ARR’ in non-descending order with help of the merge sort algorithm.

Example :

Merge Sort Algorithm - Merge sort is a Div...read more
View 3 more answers
Are these interview questions helpful?
Q7. Level order traversal of Binary Tree

You have been given a Binary Tree of integers. You are supposed to return the level order traversal of the given tree.

For example:
For the given binary tree 

Example

The level orde...read more
View 2 more answers
Q8. Remove spaces from a given string

Given a string “STR”, you need to remove spaces from the string “STR” and rewrite in the Pascal case. Your task is to return the string “STR”.

In the Pascal case writing style w...read more

View 2 more answers
Share interview questions and help millions of jobseekers 🌟
Q9. Delete Nth node from the end of the given linked list

You have been given a singly Linked List of 'N' nodes with integer data and an integer 'K'. Your task is to remove the Kth node from the end of the given Lin...read more

View 4 more answers
Q10. Quick Sort

You are given an array of integers. You need to sort the array in ascending order using quick sort.

Quick sort is a divide and conquer algorithm in which we choose a pivot point and partition the arra...read more

View 4 more answers

Q11. What are Hooks in React? Name the ones you have used in your project.

Ans.

Hooks are a feature introduced in React 16.8 that allow developers to use state and other React features in functional components.

  • useState() - for managing state in functional components

  • useEffect() - for performing side effects in functional components

  • useContext() - for accessing context in functional components

  • useReducer() - for managing complex state and actions in functional components

  • useCallback() - for memoizing functions in functional components

  • useMemo() - for memoizing...read more

View 1 answer
Q12. Factorial of a number

Write a program to find the factorial of a number.

Factorial of n is:

n! = n * (n-1) * (n-2) * (n-3)....* 1

Output the factorial of 'n'. If it does not exist, output 'Error'.

Input format :...read more
View 3 more answers
Q13. Reverse a string

You are given a string 'STR'. The string contains [a-z] [A-Z] [0-9] [special characters]. You have to find the reverse of the string.

For example:

 If the given string is: STR = "abcde". You hav...read more
View 2 more answers

Q14. What are Higher Order Functions and Higher Order Components. Give examples.

Ans.

Higher Order Functions are functions that take other functions as arguments or return functions as their results.

  • Higher Order Functions can be used to create reusable code by abstracting common functionality into a separate function.

  • They can also be used to implement functional programming concepts like currying and composition.

  • Example: Array.prototype.map() is a higher order function that takes a callback function as an argument and applies it to each element of an array, re...read more

View 1 answer
Q15. Compiler Design Question

What are the real life examples of non deterministic automata?

Add your answer

Q16. How does Event Loop works? What are Event Queue and Event Stack?

Ans.

Event Loop is a mechanism that allows JavaScript to handle asynchronous operations.

  • Event Loop is a continuous process that checks the Event Queue and moves events to the Event Stack.

  • Event Queue holds all the events that are waiting to be processed.

  • Event Stack holds the events that are currently being processed.

  • When the Event Stack is empty, the Event Loop checks the Event Queue for new events.

  • JavaScript uses Event Loop to handle asynchronous operations like setTimeout(), setI...read more

Add your answer

Q17. What have you done on real implementation on linux OS?

Ans.

I have implemented various software applications on Linux OS.

  • Developed a web application using Python Flask framework on Linux server

  • Created a custom Linux kernel module for a hardware device driver

  • Implemented a distributed system using Apache Kafka on Linux machines

  • Optimized performance of a database server running on Linux by tuning kernel parameters

Add your answer

Q18. What is microprocessor and explain register names?

Ans.

A microprocessor is a computer processor that incorporates the functions of a central processing unit on a single integrated circuit.

  • Microprocessors are used in various electronic devices such as computers, smartphones, and gaming consoles.

  • Register names include program counter (PC), accumulator (ACC), general-purpose registers (GPR), and memory address register (MAR).

  • Registers are used to store data and instructions temporarily for processing.

  • The number of registers and thei...read more

Add your answer

Q19. What is difference between C and C++?

Ans.

C++ is an extension of C with object-oriented programming features.

  • C++ supports object-oriented programming while C does not.

  • C++ has classes and templates while C does not.

  • C++ has better support for exception handling than C.

  • C++ has a standard library while C does not.

  • C++ allows function overloading while C does not.

Add your answer

Q20. What is difference between array and linked list?

Ans.

Arrays are contiguous blocks of memory while linked lists are made up of nodes that point to the next node.

  • Arrays have fixed size while linked lists can grow dynamically.

  • Insertion and deletion are faster in linked lists than in arrays.

  • Arrays have better cache locality while linked lists have better memory utilization.

  • Arrays are accessed using indices while linked lists are accessed using pointers.

  • Examples of arrays include int[] and char[] while examples of linked lists inclu...read more

Add your answer

Q21. Explain whole process for Example.c file to Example.exe conversion

Ans.

The process of converting Example.c file to Example.exe involves several steps.

  • Preprocessing: includes header file inclusion, macro expansion, and conditional compilation

  • Compilation: converts source code to object code

  • Linking: combines object code with libraries to create executable file

  • Debugging: identifying and fixing errors in code

  • Optimization: improving performance of executable file

Add your answer

Q22. Say your house is at Position X and You’re currently at position Y which is 3 kms away from your home and you have a car and a cycle for you to take home. You have to take both of them anyhow as the place is no...

read more
Add your answer

Q23. What is data abstraction and explain with code?

Ans.

Data abstraction is the process of hiding implementation details and showing only necessary information.

  • Abstraction is achieved through abstract classes and interfaces.

  • It helps in reducing complexity and increasing efficiency.

  • Example: abstract class Shape with abstract method draw() implemented by its subclasses like Circle and Rectangle.

Add your answer
Q24. C++ Question

What are local, global and static variables?

Add your answer

Q25. I am working on multiple language so how you are comfortable to work on multiple language

Ans.

I am comfortable working with multiple languages and have experience in doing so.

  • I have experience working with languages such as Java, Python, C++, and JavaScript.

  • I am able to quickly adapt to new languages and learn them efficiently.

  • I understand the importance of proper documentation and commenting in code to ensure readability for others.

  • I have worked on projects that required integration of multiple languages, such as a web application with a backend in Python and a front...read more

Add your answer
Q26. Operating System Question

What is the difference between page and frame?

Add your answer
Q27. C Question

What are near, far and huge pointers?

Add your answer
Q28. Java Question

What are the types of access modifiers in Java?

Add your answer
Q29. Java Question

How are Java objects stored in memory?

Add your answer
Q30. Time Complexity Question

What are the time complexities for each sorting algorithms?

Add your answer
Q31. Computer Network Question

What is serial port and parallel port?

Add your answer
Q32. OOPS Question

What are the types of polymorphism?

Add your answer
Q33. Operating System Question

What is mutual exclusion?

Add your answer

Q34. Difference between Let, Const and Var. Write code and explain.

Ans.

Let, Const, and Var are used to declare variables in JavaScript with different scoping and reassignment abilities.

  • Var has function scope and can be redeclared and reassigned.

  • Let has block scope and can be reassigned but not redeclared.

  • Const has block scope and cannot be reassigned or redeclared.

View 1 answer

Q35. How can you optimize a React App?

Ans.

Optimizing a React app involves reducing bundle size, using lazy loading, and optimizing rendering performance.

  • Reduce bundle size by code splitting and using dynamic imports

  • Use lazy loading to load components only when needed

  • Optimize rendering performance by using shouldComponentUpdate and PureComponent

  • Use React.memo to memoize functional components

  • Avoid unnecessary re-renders by using useMemo and useCallback

  • Use performance profiling tools like React DevTools and Chrome DevTo...read more

Add your answer
Q36. Basic HR Questions

1. What do you know about Aricent?
2. A real time situation which tests our skills on leadership and team work

Add your answer

Q37. 1. What is the difference between ipV4 and IPv6? 2. What is TCP/IP? 3. What is TCP/IP 3 way handshake? 4. Questions related to minor projects which I have done in B.Tech.

Add your answer

Q38. What is array ? What is constructor ? What is difference between class and object ?

Ans.

Array is a collection of similar data types. Constructor is a special method used to initialize objects. Class is a blueprint while object is an instance of a class.

  • Array is used to store multiple values in a single variable.

  • Constructor is called when an object of a class is created.

  • Class defines the properties and methods of an object while object is an instance of a class.

  • Example of array: int[] numbers = {1, 2, 3};

  • Example of constructor: public class Car { public Car() { /...read more

Add your answer

Q39. What is prelayout signal integrity? How will you do that

Ans.

Prelayout signal integrity is the analysis of signal quality before the layout of a printed circuit board.

  • It involves simulating the behavior of signals on a PCB before the actual layout is done.

  • The goal is to identify potential signal integrity issues and correct them before the layout is finalized.

  • Tools such as SPICE simulators and electromagnetic field solvers are used for prelayout signal integrity analysis.

  • Factors such as trace length, impedance, and crosstalk are consid...read more

Add your answer
Q40. OOPS Question

What is a virtual function?

Add your answer

Q41. Write a code by which you can find the no. of same train no. Occurrence in a snapshot from a database in railway ticketing system?

Add your answer

Q42. Write a SQL query to join two tables?

Ans.

SQL query to join two tables

  • Use JOIN keyword to combine two tables based on a common column

  • Specify the columns to be selected using SELECT keyword

  • Use ON keyword to specify the common column between two tables

Add your answer
Q43. Computer Organization and Architecture Question

What is a program counter?

Add your answer
Q44. Computer Network Question

How many bits make up IPv4 and IPv6 addresses?

Add your answer

Q45. WAP for recursion and explain its working?

Ans.

Recursion is a technique where a function calls itself to solve a problem. WAP for recursion is to write a program using recursion.

  • Recursion is used to solve problems that can be broken down into smaller sub-problems.

  • The base case is the condition where the function stops calling itself.

  • The recursive case is where the function calls itself with a smaller input.

  • Example: Factorial of a number can be calculated using recursion.

  • Example: Fibonacci series can be generated using rec...read more

Add your answer
Q46. OOPS Question

What is data abstraction?

Add your answer
Q47. Operating System Question

What is Paging?

Add your answer

Q48. how many ways we can find the element on page in selenium

Ans.

There are multiple ways to find elements on a page in Selenium, including by ID, name, class name, tag name, link text, partial link text, XPath, and CSS selector.

  • By ID: driver.findElement(By.id("elementId"))

  • By name: driver.findElement(By.name("elementName"))

  • By class name: driver.findElement(By.className("className"))

  • By tag name: driver.findElement(By.tagName("tagName"))

  • By link text: driver.findElement(By.linkText("linkText"))

  • By partial link text: driver.findElement(By.partia...read more

Add your answer
Q49. C++ Question

Difference between Definition and Declaration

Add your answer

Q50. Which service needs to run to connect to other unified communication applications.

Ans.

The service that needs to run to connect to other unified communication applications is the Session Initiation Protocol (SIP).

  • Session Initiation Protocol (SIP) is a signaling protocol used for initiating, maintaining, modifying, and terminating real-time sessions involving video, voice, messaging, and other communications applications.

  • SIP is commonly used in Voice over IP (VoIP) systems and allows for the establishment and control of multimedia communication sessions.

  • By runni...read more

Add your answer
Q51. C Question

What are the differences between structures and arrays?

Add your answer
Q52. Operating System Question

What does the fork command do?

Add your answer
Q53. Software Engineering Question

What are the principles of testing?

Add your answer

Q54. How can you access any function from main function which is written in a header file without including the header file in C?

Add your answer

Q55. Where to take logs when one iphone not able to call other.

Ans.

Logs should be taken from the network devices involved in the call flow.

  • Check logs on the caller's iPhone

  • Check logs on the recipient's iPhone

  • Check logs on the network devices (routers, switches) involved in the call flow

  • Look for any error messages or anomalies in the logs

  • Analyze the logs to identify any network issues or misconfigurations

Add your answer
Q56. Computer Network Question

What is switching? Explain packet switching.

Add your answer

Q57. How do you check/verify the IBIS models?

Ans.

IBIS models can be verified by comparing simulation results with actual measurements.

  • Compare simulation results with actual measurements

  • Use a variety of test cases to ensure accuracy

  • Verify the model's compliance with IBIS standards

  • Check for consistency with other models and datasheets

Add your answer
Q58. OOPS Question

What does static variable mean?

Add your answer
Q59. C Question

What is the invalid pointer arithmetic?

Add your answer
Q60. Operating System Question

What is virtual memory?

Add your answer
Q61. Operating System Question

What is segmentation?

Add your answer

Q62. What is the difference between C, C++ and Java ?

Ans.

C is a procedural language, C++ is an object-oriented language, and Java is a class-based object-oriented language.

  • C is a low-level language with limited abstraction and no built-in support for object-oriented programming.

  • C++ is an extension of C with added support for object-oriented programming, templates, and exception handling.

  • Java is a high-level language with automatic memory management, platform independence, and a large standard library.

  • C and C++ are compiled language...read more

Add your answer

Q63. What is the difference between JVM, JDK and JRE?

Ans.

JVM is a virtual machine that executes Java bytecode. JDK is a development kit that includes JRE and tools for developing Java applications. JRE is a runtime environment that executes Java bytecode.

  • JVM stands for Java Virtual Machine and is responsible for executing Java bytecode.

  • JDK stands for Java Development Kit and includes JRE along with tools for developing Java applications.

  • JRE stands for Java Runtime Environment and provides a runtime environment for executing Java by...read more

Add your answer

Q64. What is software engineering. Tell all the steps involved in it?

Add your answer

Q65. What is testing, what are different types of testing?

Add your answer

Q66. What are state and props. Difference.

Ans.

State and props are two important concepts in React. State represents the internal data of a component, while props are used to pass data from a parent component to a child component.

  • State is mutable and can be changed within a component.

  • Props are read-only and cannot be modified within a component.

  • State is used to manage component-specific data, while props are used for inter-component communication.

  • State is initialized and managed within a component, while props are passed ...read more

View 1 answer

Q67. What is connection less and connection oriented protocol and their implementation

Add your answer

Q68. What is TCP/IP,OSI model?

Ans.

TCP/IP is a protocol used for communication between devices on the internet. OSI model is a conceptual framework for network communication.

  • TCP/IP is a suite of protocols that governs communication between devices on the internet.

  • OSI model is a conceptual framework that divides network communication into seven layers.

  • TCP/IP is based on a four-layer model, which includes the application, transport, internet, and network access layers.

  • The OSI model includes the physical, data li...read more

Add your answer

Q69. What is program counter?

Ans.

Program counter is a register that stores the memory address of the next instruction to be executed by the processor.

  • Program counter is also known as instruction pointer.

  • It is a part of the processor's control unit.

  • The value of program counter is incremented after each instruction is executed.

  • If a program counter is corrupted, the processor may execute incorrect instructions.

  • Example: If the program counter is pointing to memory address 100, the next instruction to be executed...read more

Add your answer
Q70. Operating System Question

Difference between Mutex and Semaphore

Add your answer
Q71. Computer Network Question

Explain the different OSI Layers.

Add your answer
Q72. Operating System Question

What are semaphores?

Add your answer
Q73. Computer Network Question

What are routing protocols?

Add your answer
Q74. Computer Network Question

What is TCP/IP model?

Add your answer
Q75. C Question

Difference between an array of pointers and a pointer to an array?

Add your answer

Q76. What is switching. Explain and draw the packet switching and circuit switching

Ans.

Switching is the process of connecting devices in a network.

  • Packet switching breaks data into packets and sends them individually through the network.

  • Circuit switching establishes a dedicated communication path between two devices.

  • Packet switching is more efficient and flexible than circuit switching.

  • Examples of packet-switched networks include the Internet and Ethernet.

  • Examples of circuit-switched networks include traditional telephone networks.

Add your answer
Q77. C Question

What are the uses of a pointer?

Add your answer

Q78. How to get unique elements from list

Ans.

To get unique elements from a list, use set() function.

  • Convert the list to a set using set() function

  • Convert the set back to list using list() function

  • Example: list(set(['apple', 'banana', 'apple', 'orange'])) will return ['apple', 'banana', 'orange']

Add your answer

Q79. If I remove the pointer from main argument like In case of main(int argc, char *argv[]) it will main(int argc, char argv[]) then what is the effect?

Add your answer

Q80. What is Scheduling. Explain different types of scheduling

Add your answer

Q81. Do you know what is the near, far, and huge pointer?

Add your answer

Q82. Difference between Local and Session Storage

Ans.

Local Storage is persistent storage that remains even after the browser is closed, while Session Storage is temporary and is cleared when the browser is closed.

  • Local Storage has no expiration date, while Session Storage is cleared when the session ends

  • Local Storage can store larger amounts of data compared to Session Storage

  • Local Storage is accessible across different browser tabs and windows, while Session Storage is limited to the current tab or window

  • Local Storage can be a...read more

View 1 answer
Q83. C Question

Difference between a array name and a pointer variable?

Add your answer

Q84. What are the disadvantages of Frame 9FA Gas turbine.

Ans.

Disadvantages of Frame 9FA gas turbine include high maintenance costs, lower efficiency compared to newer models, and environmental concerns.

  • High maintenance costs due to complex design and aging components

  • Lower efficiency compared to newer gas turbine models, resulting in higher fuel consumption

  • Environmental concerns such as emissions of greenhouse gases and pollutants

  • Limited flexibility in terms of load following capabilities

  • Noise and vibration issues during operation

Add your answer

Q85. Write a code for launching 100 windows and select a particular window from opened tabs

Ans.

Launch 100 windows and select a particular window from opened tabs

  • Use a loop to launch 100 windows

  • Keep track of each window's handle or identifier

  • Use the handle or identifier to select the desired window

Add your answer

Q86. write a code for sorting the elements in array and result should be without duplicates

Ans.

Code to sort array elements without duplicates

  • Use a Set to store unique elements while iterating through the array

  • Convert the Set back to an array for the final result

  • Use Array.sort() method to sort the elements in the array

Add your answer

Q87. Single linked list operations ( adding and deleting a node)

Ans.

Single linked list operations involve adding and deleting nodes in a linear data structure.

  • To add a node, create a new node and set its next pointer to the current head, then set the head to the new node.

  • To delete a node, traverse the list until the node to be deleted is found, then set the previous node's next pointer to the node after the one being deleted.

  • Be careful to handle edge cases such as adding to an empty list or deleting the head node.

Add your answer

Q88. What is Ethical Hacking because it is given as my interest?

Add your answer
Q89. Computer Network Question

What is DNS?

Add your answer
Q90. C Question

Are the expressions *ptr ++ and ++ *ptr same?

Add your answer

Q91. Do you use console to locate elements in a web page?

Ans.

Yes, I use console to locate elements in a web page for debugging and testing purposes.

  • Yes, I use console commands like document.querySelector() or document.getElementById() to locate elements on a web page.

  • Console is helpful for quickly testing and verifying element selectors before implementing them in automated tests.

  • Using console to locate elements can help in identifying issues with element selection and improve test script efficiency.

Add your answer

Q92. Do you use the console to locate elements in web page?

Ans.

Yes, I use the console to locate elements in web pages for debugging and testing purposes.

  • I use the console to inspect elements and identify unique attributes like IDs, classes, or XPath.

  • I can use commands like document.getElementById(), document.querySelector(), or $() to locate elements.

  • I also use the console to test CSS selectors and verify if elements are being correctly identified.

Add your answer

Q93. Why is Linux preferred over Wi dows for Server

Ans.

Linux is preferred over Windows for servers due to its stability, security, flexibility, and cost-effectiveness.

  • Linux is open-source, allowing for customization and flexibility in server configurations.

  • Linux is known for its stability and reliability, making it a popular choice for servers that require constant uptime.

  • Linux has a strong focus on security, with regular updates and a large community of developers actively working to address vulnerabilities.

  • Linux is cost-effecti...read more

Add your answer

Q94. What are all the tools you worked on?

Ans.

I have worked on various hardware tools including oscilloscopes, logic analyzers, multimeters, and soldering irons.

  • Oscilloscopes

  • Logic analyzers

  • Multimeters

  • Soldering irons

Add your answer

Q95. How to delete CTL and ITL files from phone.

Ans.

To delete CTL and ITL files from a phone, access the phone's settings, navigate to the security or device administration section, and delete the files.

  • Access the phone's settings

  • Navigate to the security or device administration section

  • Locate the CTL and ITL files

  • Delete the files

Add your answer
Q96. C Question

Explain the sizeof operator.

Add your answer
Q97. Computer Network Question

What is padding?

Add your answer

Q98. Difference between Promise and Async-Await?

Ans.

Promise is a callback function that returns a value in the future. Async-Await is a syntax that simplifies working with Promises.

  • Promises are used to handle asynchronous operations and avoid callback hell.

  • Async-Await is a syntax that allows writing asynchronous code that looks like synchronous code.

  • Async-Await is built on top of Promises and uses the same underlying mechanism.

  • Async-Await can only be used within an async function.

  • Async-Await can handle errors using try-catch b...read more

Add your answer

Q99. JCL code to execute cobol-db2 program? What if dynamic called program is completed with nodynam option? Situation based questions on sort?

Ans.

To execute a COBOL-DB2 program using JCL code, include the necessary job control statements and specify the program name and input/output files.

  • Include job control statements like JOB, EXEC, and DD statements in the JCL code.

  • Specify the program name in the EXEC statement, along with any necessary parameters.

  • Define input and output files using DD statements.

  • If the dynamic called program is completed with the 'nodynam' option, it means that the program will not be dynamically c...read more

Add your answer

Q100. What is Hoisting in JS?

Ans.

Hoisting is a JavaScript behavior where variable and function declarations are moved to the top of their scope.

  • Hoisting applies to both variable and function declarations.

  • Variable declarations are hoisted but not their initializations.

  • Function declarations are fully hoisted, including their definitions.

  • Hoisting can lead to unexpected behavior if not understood properly.

View 1 answer
1
2
3
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at WorldEmp

based on 157 interviews in the last 1 year
Interview experience
4.1
Good
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

3.9
 • 1.4k Interview Questions
3.5
 • 646 Interview Questions
3.4
 • 303 Interview Questions
4.0
 • 199 Interview Questions
4.3
 • 156 Interview Questions
3.7
 • 138 Interview Questions
View all
Top Capgemini Engineering 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
Get AmbitionBox app

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