Capgemini
100+ Graphics Interview Questions and Answers
Q101. What is oracle database structure?
Oracle database structure refers to the organization of data in tables, indexes, views, and other database objects.
Consists of tables, which store data in rows and columns
Includes indexes for faster data retrieval
Views provide virtual representations of data from one or more tables
Constraints ensure data integrity and enforce rules
Stored procedures and functions for processing data
Q102. shuffling happens in repartition not coalesce
Shuffling happens in repartition, not coalesce.
Repartition involves reshuffling data across partitions to create a new set of partitions with the desired number.
Coalesce reduces the number of partitions without shuffling data, if possible.
Example: repartition(4) will shuffle data to create 4 partitions, while coalesce(2) will try to merge partitions without shuffling.
Q103. Why we should give that much ctc
CTC is a reflection of the value and skills the candidate brings to the organization.
CTC is determined based on the candidate's experience, skills, and value they bring to the organization.
Competitive CTC helps attract top talent and retain skilled employees.
CTC reflects the market value of the candidate's role and responsibilities.
Investing in employees through competitive CTC can lead to higher productivity and job satisfaction.
Q104. To find max number in a dict.
To find the max number in a dict.
Use the max() function with the values of the dictionary.
Alternatively, use a loop to compare values and find the maximum.
Consider edge cases such as empty dictionary or non-numeric values.
Q105. What is a choice router?
A choice router is a device or software that directs incoming data packets to the appropriate destination based on predefined rules or user preferences.
A choice router is used in computer networks to manage and control the flow of data.
It examines the header information of incoming packets to determine the best path for forwarding the data.
Choice routers can be hardware devices or software programs.
They can be configured to prioritize certain types of traffic or apply specifi...read more
Q106. Write xpath for Google search button
XPath for Google search button
Use the 'class' attribute to locate the search button element
XPath: //input[@class='gNO89b']
Q107. Different types of waits available in selenium
Different types of waits in Selenium include implicit, explicit, and fluent waits.
Implicit wait: Waits for a certain amount of time before throwing a NoSuchElementException.
Explicit wait: Waits for a certain condition to occur before proceeding further.
Fluent wait: Waits for a condition to be true with a defined polling frequency.
Examples: WebDriverWait, FluentWait
Q108. Telling about Single Page application
Single Page Application (SPA) is a web application that loads a single HTML page and dynamically updates the content.
SPA provides a seamless user experience by avoiding page reloads
It uses AJAX and JavaScript frameworks like Angular, React, Vue.js
SPA can be faster than traditional web applications
Examples include Gmail, Facebook, Twitter
Q109. sqoop incremental load in depth
Sqoop incremental load is a technique to import only new or updated data from a source database to a target database.
Sqoop incremental load is used to import only the new or updated data from a source database to a target database.
It uses a 'last modified' column to identify the new or updated data.
The first time, a full import is done and subsequent imports are incremental.
Sqoop supports two types of incremental loads: append and lastmodified.
Append mode adds new data to the...read more
Q110. Diff between array and array list
Array is a fixed-size data structure while ArrayList is a dynamic-size data structure in Java.
Array is a fixed-size collection of elements of the same data type, while ArrayList is a dynamic-size collection that can grow or shrink as needed.
Arrays can store primitive data types and objects, while ArrayList can only store objects.
Arrays require a specified size at the time of creation, while ArrayList can dynamically resize itself.
Arrays use square brackets [] for declaration,...read more
Q111. Difference between val and const val
val is immutable while const val is compile-time constant
val is used for variables whose values can't be changed once assigned
const val is used for compile-time constants whose values are known at compile time
Example: val name = "John"; const val PI = 3.14;
Q112. Write code to find string in a sentence
Code to find a string in a sentence
Split the sentence into an array of words
Iterate through the array and check if each word matches the target string
Return the index of the word if found, or -1 if not found
Q113. What is dependancy injection
Dependency injection is a design pattern in which a class receives its dependencies from external sources rather than creating them itself.
Allows for easier testing by injecting mock dependencies
Promotes loose coupling between classes
Improves code reusability and maintainability
Commonly used in frameworks like Spring in Java
Q114. What is runtime Polymorphism
Runtime polymorphism is the ability of a function to behave differently based on the object it is called with.
Runtime polymorphism is achieved through method overriding in object-oriented programming.
It allows a subclass to provide a specific implementation of a method that is already provided by its superclass.
The actual method that gets called is determined at runtime based on the type of object.
Example: Animal class has a method 'makeSound', Dog and Cat classes override th...read more
Q115. What is rollback in sql
Rollback in SQL is a command that allows you to undo transactions that have not been committed.
Rollback is used to revert changes made by a transaction
It is typically used in conjunction with the 'BEGIN TRANSACTION' and 'COMMIT' commands
Rollback can be used to undo changes in case of errors or to cancel a transaction
Q116. Performance improvement in Angular app
Performance improvement in Angular app
Use lazy loading to load modules on demand
Optimize change detection strategy
Use trackBy function in ngFor loops
Minimize DOM manipulation
Use AOT compilation
Implement server-side rendering
Use web workers for heavy computations
Use caching for frequently accessed data
Q117. Java 8 New Features and explanation
Java 8 introduced several new features including lambda expressions, streams, and default methods.
Lambda expressions allow for functional programming and simplify code.
Streams provide a way to process collections of data in a functional style.
Default methods allow for adding new methods to interfaces without breaking existing implementations.
Other features include the Optional class, Date and Time API, and Nashorn JavaScript engine.
Q118. Oops concepts used in my projects.
I have used OOPs concepts extensively in my projects.
Encapsulation: Used to hide implementation details and expose only necessary information.
Inheritance: Used to create a hierarchy of classes with shared properties and methods.
Polymorphism: Used to allow objects of different classes to be treated as if they are of the same class.
Abstraction: Used to simplify complex systems by breaking them down into smaller, more manageable parts.
Examples: Used inheritance to create a base ...read more
Q119. difference between coalesce and repartition
Coalesce is used to combine multiple small partitions into a larger one, while repartition is used to redistribute data across a specified number of partitions.
Coalesce reduces the number of partitions in a DataFrame, while repartition increases or decreases the number of partitions.
Coalesce is a narrow transformation that can only decrease the number of partitions, while repartition is a wide transformation that can increase or decrease the number of partitions.
Example: coal...read more
Q120. Internal structure of collections
Internal structure of collections refers to the organization and arrangement of data within a collection.
Collections can be organized using various data structures such as arrays, linked lists, trees, and hash tables.
The choice of data structure depends on the type of data being stored and the operations that need to be performed on the collection.
For example, an array is a good choice for collections with fixed size and random access, while a linked list is better for collec...read more
Q121. Variable and it’s type
A variable is a storage location in a program that holds a value. There are different types of variables.
Variables can be of primitive types such as int, float, boolean, etc.
Variables can also be of non-primitive types such as arrays, classes, interfaces, etc.
Variables can be declared with different access modifiers such as public, private, protected, etc.
Variables can be initialized with a value or left uninitialized.
Variables can be used to store data that can be manipulate...read more
Q122. Testing process followed in the project
The testing process in the project involved thorough unit testing, integration testing, and system testing.
Unit testing was conducted by individual developers to test small units of code.
Integration testing was performed to test the interaction between different modules.
System testing was carried out to validate the entire system's functionality.
Regression testing was also done to ensure that new changes did not affect existing functionalities.
Q123. Write selenium for get windowhandles
Selenium code to get window handles
Use getWindowHandles() method to get all window handles
Store the window handles in a Set
Switch to each window using the handle
Q124. Difference between truncate and delete
Truncate is a DDL command that removes all records from a table, while delete is a DML command that removes specific records.
Truncate is faster than delete as it does not log individual row deletions.
Truncate resets identity columns, while delete does not.
Truncate cannot be rolled back, while delete can be rolled back using a transaction.
Truncate does not fire triggers, while delete does.
Truncate does not require a where clause, while delete does.
Q125. Explain Software testing lifecycle
Software testing lifecycle is a process that includes planning, designing, executing, and evaluating tests to ensure software quality.
1. Planning phase involves defining test objectives, scope, and resources.
2. Design phase includes creating test cases and test data.
3. Execution phase involves running tests and reporting defects.
4. Evaluation phase includes analyzing test results and making decisions based on them.
Q126. Memory management in applications
Memory management is crucial for efficient application performance.
Memory allocation and deallocation should be done carefully to avoid memory leaks.
Unused memory should be released to prevent memory fragmentation.
Memory profiling tools can help identify memory-related issues.
Caching can improve performance by reducing the need for frequent memory allocation.
Examples: Java's garbage collector, C++'s smart pointers, iOS's ARC.
Q127. How to handle multiple windows
To handle multiple windows, use window handles to switch between them.
Use getWindowHandles() method to get all window handles
Use switchTo().window(handle) method to switch to a specific window
Close windows using close() method or quit() method for entire browser
Q128. write some ansible scripts
Ansible scripts automate IT tasks. Here are some pointers:
Use YAML syntax to write playbooks
Define hosts and tasks in playbooks
Use modules to execute tasks on hosts
Use variables to make playbooks reusable
Use roles to organize playbooks
Use Ansible Galaxy to share and reuse roles
Use Ansible Tower for enterprise-level automation
Q129. What is actuator in spring
An actuator in spring is a device that converts energy into motion.
Actuators are used to control the movement of various mechanical systems.
In springs, actuators are used to control the compression and extension of the spring.
Examples of actuators in springs include solenoids, motors, and hydraulic cylinders.
Q130. What are materialised views
Materialized views are precomputed views stored on disk for faster query performance.
Materialized views store the results of a query on disk so that the query can be run faster in the future.
They are updated periodically to reflect changes in the underlying data.
Materialized views are commonly used in data warehousing and reporting applications.
Examples of materialized views include summary tables, aggregated data, and complex joins.
Q131. Collection and examples
Collection is the process of gathering and organizing information or objects.
Collections can be physical or digital
Examples of physical collections include stamps, coins, and artwork
Examples of digital collections include music playlists and photo albums
Q132. Hashmap internal working.
Hashmap is a data structure that stores key-value pairs and uses hashing to locate values based on their keys.
Hashmap uses an array to store the key-value pairs
The key is hashed to generate an index in the array
If multiple keys hash to the same index, a linked list is used to store them
Hashmap provides constant time complexity for insertion, deletion, and retrieval of values
Java's HashMap class is an implementation of the hashmap data structure
Q133. KPI s in an FMCG industry
KPIs in FMCG industry are crucial for measuring performance and achieving business objectives.
Sales growth rate
Market share
Inventory turnover
Customer satisfaction
Brand awareness
Promotion effectiveness
Distribution efficiency
Cost of goods sold
Return on investment
Profit margin
Q134. what is concurrency in java
Concurrency in Java refers to the ability of multiple tasks to run simultaneously within a program.
Concurrency allows for better utilization of resources by executing multiple tasks at the same time.
Java provides built-in support for concurrency through features like threads and thread pools.
Concurrency can lead to issues like race conditions and deadlocks, which need to be carefully managed.
Example: Running multiple threads to perform different tasks concurrently in a web se...read more
Q135. java OOPs concepts applied in selenium
Java OOPs concepts like inheritance, polymorphism, encapsulation, and abstraction are applied in Selenium for creating robust and maintainable test automation scripts.
Inheritance: Allows creating reusable code by extending classes in Selenium, for example creating a base test class with common methods.
Polymorphism: Enables using methods with the same name but different implementations in Selenium, for example overriding WebDriver methods in custom classes.
Encapsulation: Helps...read more
Q136. Deep copy vs shallow copy.
Deep copy creates a new object with the same values as the original, while shallow copy creates a new object with references to the original.
Deep copy duplicates all the nested objects and their values, while shallow copy only duplicates the top-level object.
Deep copy is more memory-intensive and time-consuming than shallow copy.
In Python, deep copy can be achieved using the deepcopy() function from the copy module, while shallow copy can be achieved using the copy() function...read more
Q137. Explain Maven framework
Maven is a build automation tool used primarily for Java projects.
Maven uses a Project Object Model (POM) to manage dependencies and build process
It provides a uniform build system and can manage multiple projects
Maven plugins can be used to extend its functionality
Maven central repository is a widely used repository for Java libraries
Example: mvn clean install command is used to build and package a project
Q138. Oops concepts in JAVA
Oops concepts in JAVA
Encapsulation - hiding implementation details
Inheritance - reusing code and creating parent-child relationships
Polymorphism - multiple forms of a method or class
Abstraction - focusing on essential features and hiding unnecessary details
Q139. Domain experience in years
I have X years of domain experience.
I have worked in this domain for X years.
During my time in this domain, I have gained expertise in various areas such as...
I have worked on projects related to...
I have experience working with clients in this domain.
I keep myself updated with the latest trends and developments in this domain.
Q140. Types of chunking techniques?
Chunking techniques involve breaking information into smaller, manageable chunks for easier processing and retention.
Hierarchical chunking: Breaking information into categories and subcategories.
Serial chunking: Breaking information into a series of smaller chunks.
Spatial chunking: Organizing information based on spatial relationships.
Temporal chunking: Organizing information based on time sequences.
Q141. Explain Multiple Inheritance?
Multiple inheritance is a feature in object-oriented programming where a class can inherit attributes and methods from more than one parent class.
Allows a class to inherit attributes and methods from multiple parent classes
Can lead to the Diamond Problem where ambiguity arises if two parent classes have a method with the same name
Some programming languages like C++ support multiple inheritance while others like Java do not
Q142. What is background
Background refers to a person's education, experience, and qualifications in a particular field.
Includes education, work experience, skills, and qualifications
Provides context for understanding a person's expertise
Can also refer to the history or context of a situation
Example: A candidate for a job may have a background in marketing with a degree in business administration
Q143. Excel skills rating in 10 to 1
I rate my Excel skills at 8 out of 10.
Proficient in using formulas and functions
Able to create and format charts and graphs
Familiar with data analysis tools like PivotTables
Experience in using macros for automation
Limited knowledge in VBA programming
Q144. What is partition?
Partition is the division of a physical or logical structure into multiple parts.
Partitioning helps in organizing data, improving performance, and increasing efficiency.
Examples include disk partitioning in a computer system, partitioning of a database table for better management, and partitioning of a hard drive for separate storage areas.
Q145. Manual testing concepts and examples
Manual testing involves executing test cases without the use of automation tools.
Manual testing is done by testers who manually execute test cases without the use of automation tools.
It involves verifying software applications for bugs, defects, and issues.
Examples of manual testing include functional testing, regression testing, usability testing, and exploratory testing.
Q146. CLI command for policy creation
Use 'policy create' command in CLI to create a policy
Use 'policy create' command followed by the necessary parameters to create a policy
Make sure to specify the policy name, type, and any other required details
Check the CLI documentation for specific syntax and options
Example: policy create --name myPolicy --type access --description 'Policy for access control'
Q147. Explain redis?
Redis is an open-source, in-memory data structure store used as a database, cache, and message broker.
Redis is a NoSQL database that stores data in key-value pairs.
It supports various data structures like strings, hashes, lists, sets, and sorted sets.
Redis can be used as a cache to improve the performance of web applications.
It also supports pub/sub messaging and can be used as a message broker.
Redis is known for its high performance and scalability.
It provides various featur...read more
Q148. use of logic apps
Logic Apps are a cloud-based service that allows you to create and run workflows to automate business processes and integrate systems.
Logic Apps provide a visual designer to create workflows using pre-built connectors and triggers.
They can integrate with various services such as Azure Functions, Azure Service Bus, and more.
Logic Apps can be used for a variety of scenarios such as data integration, file processing, and event-driven workflows.
They offer built-in monitoring and ...read more
Q149. use of function apps
Function apps are a serverless solution for running small pieces of code in the cloud.
Function apps can be used for event-driven scenarios, such as processing data from a queue or triggering a workflow.
They can also be used for building APIs or webhooks.
Function apps support multiple programming languages, including C#, Java, Python, and JavaScript.
They can be easily integrated with other Azure services, such as Azure Storage and Azure Event Grid.
Function apps are billed base...read more
Q150. Latest Power BI updates
Power BI has added new features for data visualization, AI insights, and data modeling.
New AI-powered visuals like decomposition tree and key influencers
New data modeling capabilities like composite models and aggregations
Improved performance and accessibility features
Enhanced integration with Azure services
Q151. Enhancements and its logics
Enhancements refer to improvements made to a system or process to increase efficiency or functionality.
Enhancements can involve adding new features or improving existing ones.
The logic behind enhancements is to address user needs or feedback.
Enhancements should align with the overall goals and objectives of the system or process.
Regularly reviewing and implementing enhancements can help keep a system up-to-date and competitive.
Examples of enhancements include adding a search ...read more
Q152. RFQ and its applications
RFQ stands for Request for Quotation and is used in procurement to solicit bids from suppliers.
RFQ is used by organizations to gather pricing information from potential suppliers for goods or services.
It helps in comparing quotes from different suppliers to make informed purchasing decisions.
RFQs typically include details such as quantity, specifications, delivery requirements, and terms of payment.
Examples of RFQ applications include sourcing raw materials, equipment, or ser...read more
Q153. Release procudure and types
Release procedure refers to the steps followed to release a product or service to the market. Types include alpha, beta, and general availability releases.
Release procedure involves planning, testing, and finalizing the product before making it available to customers.
Types of releases include alpha (internal testing), beta (limited external testing), and general availability (full release to the public).
Each type of release serves a specific purpose in ensuring the product is...read more
Q154. Snowflake Architecture and designs
Snowflake architecture is a cloud-based data warehousing solution that allows for scalable and flexible data storage and processing.
Snowflake uses a unique architecture with separate compute and storage layers, allowing for independent scaling of each component.
It supports semi-structured data types like JSON, Avro, and Parquet, making it versatile for various data types.
Snowflake's architecture enables automatic scaling up or down based on workload demands, reducing costs an...read more
Q155. Types of PowerApps
PowerApps are categorized into Canvas Apps, Model-driven Apps, and Portal Apps.
Canvas Apps allow users to create custom apps from scratch using drag-and-drop interface.
Model-driven Apps are built on top of the Common Data Service and provide a framework for building data-driven apps.
Portal Apps are used to create external-facing websites that allow users to interact with data stored in the Common Data Service.
PowerApps can also be categorized based on their target platform, s...read more
Q156. Write xpath on amazon website
XPath can be used to locate elements on the Amazon website.
Use //tagname to select all elements with a specific tag name
Use @attribute to select elements with a specific attribute
Use [text()='value'] to select elements with specific text content
Q157. Threads allocation in MuleSoft
Threads allocation in MuleSoft involves configuring the number of threads for processing messages and handling concurrent requests.
Threads can be allocated in MuleSoft by configuring the 'maxThreads' attribute in the HTTP Listener configuration.
The 'maxThreads' attribute specifies the maximum number of threads that can be used to process incoming requests.
Proper thread allocation is important to ensure optimal performance and resource utilization in MuleSoft applications.
Q158. Internal working of hashmap
HashMap is a data structure that stores key-value pairs and uses hashing to quickly retrieve values based on keys.
HashMap internally uses an array of linked lists to store key-value pairs.
When a key-value pair is added, the key is hashed to determine the index in the array where it will be stored.
If multiple keys hash to the same index, a linked list is used to handle collisions.
HashMap uses the hashCode() method of keys to calculate the hash value.
HashMap allows null keys an...read more
Q159. Feature of micro services
Microservices are a software development technique that structures an application as a collection of loosely coupled services.
Each service is self-contained and can be developed, deployed, and scaled independently
Promotes flexibility, scalability, and resilience in software development
Allows for different technologies to be used for different services
Enables teams to work on different services simultaneously
Facilitates easier maintenance and updates
Q160. What is bigquery
BigQuery is a fully managed, serverless data warehouse by Google Cloud for analyzing large datasets using SQL.
Fully managed data warehouse service
Serverless - no infrastructure to manage
Allows for analyzing large datasets using SQL
Integrates with other Google Cloud services like Data Studio and Cloud Storage
Q161. What is test mandate
Test mandate is a set of requirements or guidelines that define the scope and objectives of testing activities.
Test mandate outlines the goals, scope, resources, and constraints of the testing process.
It helps in ensuring that the testing activities align with the overall project objectives.
Test mandate may include details on the types of tests to be conducted, testing tools to be used, and timelines for testing.
It serves as a reference document for the testing team to ensure...read more
Q162. Write a java program
Java program to print 'Hello, World!'
Create a class with a main method
Use System.out.println() to print the message
Compile and run the program
Q163. Explain your framework
My framework is based on a combination of industry best practices, data-driven insights, and customized solutions to address specific client needs.
Utilizes industry best practices
Leverages data-driven insights
Tailored solutions for client needs
Q164. Types Software testings
Types of software testing include functional, performance, security, usability, and compatibility testing.
Functional testing ensures that the software meets the specified requirements.
Performance testing checks the software's speed, scalability, and stability under various loads.
Security testing identifies vulnerabilities and ensures that the software is secure.
Usability testing evaluates the software's user-friendliness and ease of use.
Compatibility testing checks the softwa...read more
Q165. Ip phone boot up process
IP phone boot up process involves initialization, self-test, loading firmware, and registration with the server.
IP phone powers on and goes through initialization process
Self-test is performed to check hardware components
Firmware is loaded from the server or local storage
IP phone registers with the server to establish connection
Q166. what is oops concept
Object-oriented programming concept that focuses on creating reusable code through classes and objects.
Encapsulation: Bundling data and methods that operate on the data into a single unit (class).
Inheritance: Allowing a class to inherit properties and behavior from another class.
Polymorphism: Ability for objects of different classes to respond to the same method call.
Abstraction: Hiding the complex implementation details and showing only the necessary features of an object.
Ex...read more
Q167. What is C and C++
C and C++ are programming languages commonly used for system programming and software development.
C is a procedural programming language developed by Dennis Ritchie in 1972.
C++ is an object-oriented programming language based on C, developed by Bjarne Stroustrup in 1983.
C is often used for system programming, embedded systems, and low-level programming.
C++ is used for software development, game development, and high-performance applications.
C++ supports object-oriented progra...read more
Q168. Different types of testing
Different types of testing include unit testing, integration testing, system testing, and acceptance testing.
Unit testing focuses on testing individual components or modules of the software.
Integration testing involves testing how different modules work together.
System testing tests the entire system as a whole.
Acceptance testing is done to ensure the software meets the requirements of the end users.
Q169. Explain Oops concepts
OOPs concepts are the fundamental principles of object-oriented programming.
Encapsulation - binding data and functions together
Inheritance - acquiring properties and behavior of parent class
Polymorphism - ability of objects to take multiple forms
Abstraction - hiding implementation details and showing only necessary information
Q170. Frameworks you worked on
I have worked on various frameworks including Angular, React, and Vue.js.
Developed a web application using Angular framework for a client in the healthcare industry
Built a responsive website using React framework for an e-commerce company
Created a single-page application using Vue.js framework for a startup
Q171. GRC Implementation end to end
GRC implementation involves end-to-end integration of governance, risk management, and compliance processes.
Identify and prioritize risks and compliance requirements
Develop policies and procedures to address identified risks and requirements
Implement controls and monitoring mechanisms to ensure compliance
Regularly review and update the GRC framework to adapt to changing risks and regulations
Examples of GRC software include RSA Archer, MetricStream, and SAP GRC
Q172. Annotations used in Springboot
Annotations are used in Springboot to simplify configuration and reduce boilerplate code.
Annotations are used to define the behavior of Spring components
They can be used to define the scope of a bean, inject dependencies, and handle exceptions
Some commonly used annotations include @Component, @Autowired, and @ExceptionHandler
Q173. Programs in java
Java is a popular programming language used to develop a wide range of applications.
Java is an object-oriented language
It is platform-independent
Java programs are compiled into bytecode
Java has a vast library of pre-built classes and APIs
Examples of Java programs include Android apps, web applications, and enterprise software
Q174. Code to identify a palindrome
Code to identify a palindrome in an array of strings
Iterate through each string in the array
For each string, check if it is equal to its reverse
If it is equal, then it is a palindrome
Q175. Different operation used
Different operations are used in consulting to address various client needs and challenges.
Strategic planning
Process improvement
Organizational restructuring
Market research and analysis
Financial analysis and modeling
Q176. Process followed in project
The process followed in the project involved thorough planning, execution, monitoring, and evaluation.
Initial planning phase to define project scope and objectives
Execution phase where tasks were assigned and completed
Monitoring phase to track progress and make necessary adjustments
Evaluation phase to assess project outcomes and lessons learned
Q177. Test NG parallel execution
TestNG allows for parallel execution of test cases to save time and improve efficiency.
TestNG provides the 'parallel' attribute in the testng.xml file to specify the parallel execution mode.
Parallel execution can be done at the test level, class level, method level, or even group level.
For example,
will run all test tags in parallel. Make sure to handle thread safety and synchronization issues when running tests in parallel.
Q178. POM creation real time pages
POM creation for real-time pages involves creating page object models to represent dynamic elements on a webpage.
Identify dynamic elements on the webpage that need to be interacted with in real-time
Create separate page classes for each page containing methods to interact with the dynamic elements
Use Page Factory in Selenium to initialize elements in the page classes
Implement wait strategies to handle dynamic loading of elements
Q179. what is Hoc in react
Higher Order Components (HOC) in React are functions that take a component and return a new component with additional functionality.
HOCs are a pattern used for code reuse, logic abstraction, and component composition in React.
They are commonly used for adding props, state, or lifecycle methods to components.
Example: withAuth HOC can be used to restrict access to certain components based on authentication status.
Q180. Pickling technique in python
Pickling is a technique in Python used to serialize and deserialize objects.
Pickling is used to convert a Python object into a byte stream.
The pickle module is used for pickling and unpickling.
The pickle.dump() method is used to pickle an object.
The pickle.load() method is used to unpickle an object.
Pickling is useful for storing and transmitting data between different Python programs.
Q181. what are WCF and
WCF stands for Windows Communication Foundation, a framework for building service-oriented applications.
WCF is a part of the .NET framework and provides a platform for building and running connected systems.
It enables secure, reliable, and transacted messaging between applications.
WCF supports various communication protocols such as HTTP, TCP, and MSMQ.
It allows for interoperability between different platforms and technologies.
Examples of WCF applications include web services...read more
Q182. Collection in java
Collection is a framework in Java that provides an architecture to store and manipulate a group of objects.
Collection is an interface that extends Iterable interface
List, Set, and Queue are the main subinterfaces of Collection
ArrayList, LinkedList, HashSet, and TreeSet are some of the commonly used implementations of Collection
Collections class provides various utility methods to operate on Collection objects
Q183. Pricing procedure
Pricing procedure involves determining the pricing strategy and structure for products or services.
Understand the cost structure and profit margins
Analyze market demand and competition
Consider pricing objectives and positioning
Implement pricing tactics such as discounts or bundling
Regularly review and adjust pricing strategy
Q184. SQL query using inner joins
SQL query using inner joins
Use INNER JOIN to combine rows from two or more tables based on a related column between them
Specify the columns to select from each table
Add a WHERE clause to specify the condition for the join
Q185. Window handling in selenium
Window handling in Selenium involves switching between multiple windows or tabs during test execution.
Use getWindowHandles() to get all window handles
Use switchTo().window() to switch between windows
Use getWindowHandle() to get the handle of the current window
Q186. Describe features of Java 8.
Java 8 introduced new features like lambda expressions, functional interfaces, streams, and default methods.
Lambda expressions allow you to write code in a more concise way.
Functional interfaces can have only one abstract method and are used to implement lambda expressions.
Streams provide a way to work with sequences of elements and perform operations like filter, map, reduce, etc.
Default methods allow interfaces to have concrete methods.
Java 8 also introduced the Optional cl...read more
Q187. Define Enterprise Structure
Enterprise structure refers to the organization of a company's departments, divisions, and subsidiaries.
It defines the hierarchy of the organization
It determines how information flows within the company
It can be based on geography, product lines, or business functions
Examples include a centralized, decentralized, or matrix structure
Q188. Request library in python
Python has a built-in module called 'requests' for making HTTP requests to APIs and websites.
To use the requests module, first install it using pip
Then import the requests module in your Python script
Use the requests.get() method to make a GET request to a URL
Use the requests.post() method to make a POST request to a URL
Use the requests.put() method to make a PUT request to a URL
Use the requests.delete() method to make a DELETE request to a URL
Q189. Explain events in reports
Events in reports refer to the sequence of actions or incidents described in a document or presentation.
Events in reports should be presented in a chronological order to provide a clear understanding of the situation.
Each event should be described with relevant details such as date, time, location, and individuals involved.
Reports may include events such as meetings, interviews, observations, experiments, or incidents.
Events in reports help to convey a narrative or analysis o...read more
Q190. types of locator in selenium
Types of locators in Selenium include ID, Name, Class Name, Tag Name, Link Text, Partial Link Text, XPath, and CSS Selector.
ID - locate elements by their id attribute
Name - locate elements by their name attribute
Class Name - locate elements by their class attribute
Tag Name - locate elements by their tag name
Link Text - locate elements by the exact text of a link
Partial Link Text - locate elements by a partial match of link text
XPath - locate elements using XPath expressions
CS...read more
Q191. 1. Polymorphism in Java
Polymorphism in Java allows objects of different classes to be treated as objects of a common superclass.
Polymorphism allows methods to be called on objects of different classes that share a common superclass.
There are two types of polymorphism in Java: compile-time polymorphism (method overloading) and runtime polymorphism (method overriding).
Example of runtime polymorphism is when a subclass overrides a method of its superclass.
Polymorphism helps in achieving flexibility an...read more
Q192. Methods in streams
Methods in streams are used to perform operations on elements in a sequential manner.
Methods like map, filter, reduce, forEach, etc. are commonly used in streams to manipulate data.
Map method is used to transform each element in the stream.
Filter method is used to select elements based on a condition.
Reduce method is used to combine all elements into a single result.
ForEach method is used to perform an action on each element without returning a new stream.
Q193. Base loaction is hyd
The base location is in Hyderabad.
Hyderabad is the base location for this position.
Candidates should be willing to work in Hyderabad.
Knowledge of local area and amenities in Hyderabad may be beneficial.
Q194. Day to day tasks
The day-to-day tasks of a Consultant involve providing expert advice, analyzing data, developing strategies, and collaborating with clients.
Providing expert advice to clients
Analyzing data and conducting research
Developing strategies and recommendations
Collaborating with clients and team members
Preparing reports and presentations
Q195. Current Location
I am currently located in New York City.
I am living in Manhattan, specifically in the Upper East Side neighborhood.
I work remotely from my apartment due to the COVID-19 pandemic.
I enjoy the cultural diversity and vibrant atmosphere of the city.
Q196. hashmap working
HashMap is a data structure that stores key-value pairs and allows for fast retrieval of values based on keys.
HashMap uses hashing to store and retrieve elements efficiently.
Keys in a HashMap must be unique, but values can be duplicated.
HashMap is not synchronized, so it is not thread-safe. Use ConcurrentHashMap for thread-safe operations.
Q197. spting vs springboot
Spring is a framework for building Java applications, while Spring Boot is a tool for quickly creating stand-alone Spring-based applications.
Spring is a comprehensive framework for building Java applications, providing support for various modules like Spring MVC, Spring Data, and Spring Security.
Spring Boot is an opinionated tool that simplifies the setup and configuration of Spring applications, allowing developers to quickly create stand-alone, production-ready applications...read more
Q198. Java8 stream program
Java8 stream program to demonstrate filtering and mapping operations.
Use filter() method to select elements based on a condition.
Use map() method to transform elements into another form.
Use collect() method to accumulate the elements into a collection.
Q199. Explain oops concept
OOPs (Object-Oriented Programming) is a programming paradigm based on the concept of objects, which can contain data and code.
OOPs focuses on creating objects that interact with each other to solve problems
Key concepts include encapsulation, inheritance, polymorphism, and abstraction
Encapsulation involves bundling data and methods that operate on the data into a single unit
Inheritance allows a class to inherit properties and behavior from another class
Polymorphism allows obje...read more
More about working at Capgemini
Top HR Questions asked in Graphics
Interview Process at Graphics
Top Consultant Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month