
CGI Group


300+ CGI Group Interview Questions and Answers
Q101. sql query for seleting a particular column from a table and give the employer count
Use SQL query to select a particular column from a table and get the count of entries.
Use SELECT statement to specify the column you want to retrieve.
Use COUNT() function to get the count of entries in that column.
Combine both in a single query to achieve the desired result.
Selenium is a tool used for automating web browsers, while Cucumber is a tool used for behavior-driven development.
Selenium is primarily used for automating web browsers to test web applications.
Cucumber is a tool that supports behavior-driven development (BDD) by allowing tests to be written in plain language.
Selenium requires programming knowledge to write test scripts, while Cucumber allows tests to be written in a more human-readable format using Gherkin syntax.
Selenium c...read more
LVM stands for Logical Volume Manager, used to manage disk space efficiently by allowing for dynamic resizing of volumes.
LVM allows for easy resizing of volumes without needing to unmount the filesystem
It provides features like striping, mirroring, and snapshots for data management
LVM is required for efficient storage management in enterprise environments
The '/proc' file system in Linux is a virtual file system that provides detailed information about the system's hardware, processes, and kernel.
It is a virtual file system that exists only in memory and does not correspond to any physical disk storage.
It provides real-time information about various system resources such as CPU, memory, processes, and devices.
Users can access and manipulate system information by reading from and writing to files within the '/proc' directory.
Fo...read more
Use grep command with -i flag to print lines containing 'july' ignoring case.
Use the following command: grep -i 'july' file.txt
Replace 'file.txt' with the actual file name if applicable
The -i flag makes the search case-insensitive
Q106. What is polymorphism and examples of it
Polymorphism is the ability of an object to take on many forms. It allows objects of different classes to be treated as if they were of the same class.
Polymorphism can be achieved through method overloading and method overriding
Method overloading is when multiple methods have the same name but different parameters
Method overriding is when a subclass provides its own implementation of a method that is already defined in its superclass
An example of polymorphism is the use of a ...read more
Q107. Diff between Rest Controller & Controller?
Rest Controller is used for RESTful web services while Controller is used for general web applications.
Rest Controller is used for creating RESTful web services that can consume and produce JSON, XML, etc.
Controller is used for general web applications that render views and handle form submissions.
Rest Controller uses @RestController annotation while Controller uses @Controller annotation.
Rest Controller methods return data directly while Controller methods return ModelAndVie...read more
Agile is a methodology that focuses on flexibility and adaptability, while Scrum is a specific framework within Agile that defines roles, events, and artifacts.
Agile is a broader methodology that emphasizes flexibility and adaptability in software development.
Scrum is a specific framework within Agile that defines roles (Product Owner, Scrum Master, Development Team), events (Sprint Planning, Daily Standup, Sprint Review, Sprint Retrospective), and artifacts (Product Backlog,...read more
There are five aggregate functions available in SQL: COUNT, SUM, AVG, MIN, and MAX.
COUNT: Returns the number of rows that match a specified condition.
SUM: Returns the sum of a numeric column.
AVG: Returns the average value of a numeric column.
MIN: Returns the minimum value in a column.
MAX: Returns the maximum value in a column.
Five essential UNIX commands are ls, cd, pwd, mkdir, and rm.
ls - list directory contents
cd - change directory
pwd - print working directory
mkdir - make directory
rm - remove files or directories
Q111. Why we use class explain with example
Classes are used in object-oriented programming to define a blueprint for creating objects.
Classes provide encapsulation, inheritance, and polymorphism.
They help organize code and make it more reusable.
Example: class Car { String make; int year; }
Example: Car myCar = new Car(); myCar.make = "Toyota"; myCar.year = 2021;
Q112. Why python is a dynamic language
Python is a dynamic language because it allows for runtime changes and doesn't require variable declarations.
Python doesn't require variable declarations, allowing for dynamic typing
Functions and classes can be modified at runtime
Python's built-in functions like type() and setattr() allow for dynamic behavior
Dynamic behavior allows for more flexibility and faster development
Example: changing the type of a variable during runtime
Q113. How to convert dictionary into list
Convert dictionary to list in Python
Use the items() method to get key-value pairs as tuples
Convert the tuples to a list using list()
Append the lists to a new list using append()
Alternatively, use list comprehension to convert the dictionary to a list
Q114. Write sql query to display the avg salary of each dept.
SQL query to display average salary of each department
Use GROUP BY clause to group the results by department
Use AVG() function to calculate the average salary
Join the tables if necessary to get department information
Q115. Write a python program to print every number as even and odd from 0 to 100.
Python program to print numbers from 0 to 100 as even and odd.
Use a for loop to iterate from 0 to 100.
Check if the number is even or odd using the modulo operator.
Print the number along with 'Even' or 'Odd' accordingly.
ALIAS command in SQL is used to give a table or column a temporary name.
ALIAS command is used to create a temporary name for a table or column in a SQL query
It is often used to make the SQL query more readable and concise
ALIAS can be used for tables (e.g. SELECT * FROM employees AS e) or columns (e.g. SELECT emp_id AS employee_id FROM employees)
Hibernate caching is a mechanism used to improve the performance of Hibernate applications by reducing the number of database queries.
Hibernate caching stores frequently accessed data in memory to reduce the need for repeated database queries.
There are different levels of caching in Hibernate, such as first-level cache and second-level cache.
First-level cache is associated with the Session object and is enabled by default.
Second-level cache is shared across multiple sessions ...read more
Q118. Integration with third party applications like microsoft dynamics and SAP
Integration with third party applications is crucial for seamless data flow and efficient business processes.
Experience with APIs and web services
Knowledge of data mapping and transformation
Familiarity with middleware solutions like MuleSoft and Dell Boomi
Ability to troubleshoot and debug integration issues
Examples: integrating Salesforce with SAP for order management, integrating Microsoft Dynamics with HubSpot for marketing automation
Q119. Parent and child class in Java Constructor overloading
Parent and child classes in Java can have constructors with different parameters, known as constructor overloading.
In Java, a child class can have its own constructors in addition to inheriting constructors from the parent class.
Constructor overloading allows multiple constructors with different parameters in the same class.
Example: Parent class 'Vehicle' with a constructor taking 'int speed' parameter, and child class 'Car' with a constructor taking 'int speed' and 'String m...read more
Q120. What programming language do you Know? What scripting language do you know
I know multiple programming and scripting languages.
Programming languages: Java, C++, Python, JavaScript
Scripting languages: Bash, PowerShell, Ruby
Examples: Java - used for building enterprise-level applications, Python - used for data analysis and machine learning
I am familiar with both object-oriented and functional programming paradigms
Q121. Visual studio > file > new > project name
Creating a new project in Visual Studio involves navigating to File > New > Project and providing a name for the project.
Navigate to File menu in Visual Studio
Select New option
Choose Project option
Enter a name for the project
No, static methods cannot be overridden in Java.
Static methods belong to the class itself, not to any specific instance of the class.
Subclasses can define static methods with the same signature as the parent class, but it is not considered overriding.
Example: Parent class has a static method 'display()', and subclass also has a static method 'display()', but it is not overriding.
A view in SQL is a virtual table based on the result-set of a SELECT statement.
Views are used to simplify complex queries by storing them as virtual tables.
They can be used to restrict access to specific columns or rows of a table.
Views do not store data themselves, but display data from the tables they are based on.
Changes made to the underlying tables are reflected in the view.
Q124. If "WAS" is shutdown are you ok with DEVops
Yes, I am comfortable with DEVops if WAS is shutdown.
I have experience with both WAS and DEVops
I understand the dependencies between the two systems
I am confident in my ability to troubleshoot and resolve any issues that may arise
Q125. type of marker interface
Marker interfaces are interfaces with no methods, used to mark classes for special treatment.
Marker interfaces have no methods, they simply mark a class as having a certain property or behavior.
Examples include Serializable interface in Java, which marks a class as serializable for object serialization.
Another example is Cloneable interface in Java, which marks a class as cloneable for object cloning.
Q126. time complexity of hashmap
Time complexity of hashmap operations is O(1) on average, but can be O(n) in worst case.
HashMap operations like get, put, remove have constant time complexity O(1) on average due to hashing
In worst case scenario, all keys hash to the same bucket resulting in linear search O(n)
Rehashing occurs when load factor exceeds a threshold, increasing time complexity temporarily
Q127. types of spring beans scopes
Spring beans can have different scopes like singleton, prototype, request, session, and application.
Singleton scope: Bean is created only once per Spring IoC container
Prototype scope: Bean is created each time it is requested
Request scope: Bean is created once per HTTP request
Session scope: Bean is created once per HTTP session
Application scope: Bean is created once per ServletContext
Q128. Remove repeating letters in a string using streams
Use streams to remove repeating letters in a string
Convert the string to a character array
Use a stream to filter out repeating characters
Collect the characters back into a string
Q129. What is difference between tuple and list and where did you used it in your project?
Tuple is immutable and ordered, while list is mutable and ordered. Tuples are used for fixed data, lists for dynamic data.
Tuple is created using parentheses (), while list is created using square brackets []
Tuples are immutable, meaning their elements cannot be changed once defined, while lists are mutable and can be modified
Tuples are typically used for fixed data that will not change, while lists are used for dynamic data that may need to be updated or modified
Example: Tupl...read more
Q130. Programme on file handling?
A program on file handling is a software that allows users to create, read, update, and delete files on a computer system.
File handling involves operations such as opening, closing, reading, writing, and deleting files.
File handling can be done using various programming languages such as C, C++, Java, Python, etc.
Examples of file handling operations include creating a new file, reading data from a file, writing data to a file, and deleting a file.
File handling also includes c...read more
Agile testing is important for continuous feedback, quick adaptation to changes, and delivering high-quality software.
Allows for continuous feedback from stakeholders and customers
Enables quick adaptation to changes in requirements or priorities
Helps in delivering high-quality software in shorter iterations
Promotes collaboration between developers, testers, and business stakeholders
Spike and Zero Sprint are Agile terms used for addressing uncertainties and technical challenges.
Spike is a time-boxed research activity to explore potential solutions or gather information.
Zero Sprint is a short sprint used to set up the project environment, tools, and infrastructure.
Spike helps in making informed decisions and reducing risks before committing to a full sprint.
Zero Sprint ensures that the team is ready to start the project without any technical hindrances.
Bo...read more
Q133. What is the security system of AWS access?
AWS provides a comprehensive security system for access control.
AWS Identity and Access Management (IAM) allows you to manage access to AWS services and resources.
IAM enables you to create and manage users, groups, and roles, and assign permissions to them.
AWS provides various authentication methods like username/password, multi-factor authentication, and integration with external identity providers.
Access can be controlled at various levels including service level, resource ...read more
Q134. List and Tuple bases Split string Remove spaces and special characters
List and Tuple bases, split string, remove spaces and special characters.
Use list comprehension to split string into individual characters
Use join() method to remove spaces and special characters
Convert the result back into a list or tuple
Q135. what are microservices according to you?
Microservices are a software development technique where an application is divided into smaller, independent services that communicate with each other through APIs.
Microservices are small, independent services that focus on specific business functions.
Each microservice can be developed, deployed, and scaled independently.
Microservices communicate with each other through APIs, typically using lightweight protocols like HTTP or messaging queues.
They promote flexibility, scalabi...read more
Q136. Explain Microservices Architecture used in your project
Microservices architecture is a design approach where a single application is composed of small, independent services that communicate with each other.
Each microservice is responsible for a specific business function or capability
Microservices communicate with each other through APIs
Each microservice can be developed, deployed, and scaled independently
Microservices architecture promotes flexibility, scalability, and resilience
Examples: Netflix, Amazon, Uber
Q137. How can a person create value by looking at a percentage
By analyzing a percentage, a person can identify trends, make informed decisions, and optimize processes.
Identify trends by comparing percentages over time or between groups
Make informed decisions by using percentages to evaluate options
Optimize processes by using percentages to identify areas for improvement
For example, a software developer can use percentage of code coverage to identify areas of code that need more testing and optimization
Q138. What is difference between final and finally and finalize
final is a keyword used to restrict inheritance, finally is a block used in exception handling, and finalize is a method used for cleanup.
final is a keyword in Java used to restrict inheritance, meaning a class cannot be subclassed.
finally is a block used in exception handling to ensure a piece of code is always executed, whether an exception is thrown or not.
finalize is a method in Java used for cleanup operations before an object is garbage collected.
Q139. How to improve computation time using STL a container Vector??
Using STL container Vector can improve computation time by providing efficient dynamic memory allocation and access.
Use reserve() function to preallocate memory for the vector to avoid frequent reallocation.
Avoid inserting or erasing elements in the middle of the vector as it requires shifting elements.
Use emplace_back() instead of push_back() for better performance when constructing objects.
Consider using vector
instead of vector for memory optimization. Use iterators instead...read more
Q140. What is the command to get the value present at 80th row , 100th column?
To get the value present at 80th row, 100th column, you can use the command 'awk' in Unix/Linux systems.
Use the 'awk' command with the syntax 'awk 'NR==80 {print $100}' filename' to get the value at the specified row and column.
Replace 'filename' with the actual file name where the data is stored.
Ensure that the row and column numbers are adjusted based on the indexing starting from 1 in 'awk'.
Q141. What is the command to search a file like test.txt in linux?
The command to search a file like test.txt in Linux is 'grep'.
Use the 'grep' command followed by the search term and the file name to search for a specific text in a file.
For example, to search for the word 'hello' in a file named test.txt, you would use the command 'grep hello test.txt'.
Q142. Sort the list of car model in reverse order
Sort the list of car models in reverse order
Use a sorting algorithm like bubble sort or quicksort to rearrange the array in reverse order
Alternatively, use built-in functions like sort() with a custom comparator function to achieve the same result
Q143. How do you connect to to AWS as a developer?
To connect to AWS as a developer, you can use the AWS Management Console, AWS CLI, or AWS SDKs.
Use the AWS Management Console to access AWS services through a web-based user interface.
Utilize the AWS Command Line Interface (CLI) to interact with AWS services using commands in the terminal.
Leverage AWS Software Development Kits (SDKs) to integrate AWS services into your applications.
For example, you can use the AWS SDK for Python (Boto3) to connect to AWS services programmatic...read more
Q144. What is scatter gather? How the output format will be
Scatter gather is a technique used in parallel computing to improve performance by dividing tasks and collecting results.
Scatter gather involves dividing a large task into smaller sub-tasks that can be executed in parallel.
The results of each sub-task are then collected and combined to produce the final output.
This technique is commonly used in high-performance computing and data processing applications.
Examples of scatter gather implementations include MPI (Message Passing I...read more
Q145. Type of data,garbage collector etc What kind of project have you done before
I have worked on various projects including web applications, desktop applications, and mobile applications.
Developed a web application using ASP.NET MVC and Entity Framework
Created a desktop application using WPF and MVVM pattern
Built a mobile application using Xamarin.Forms
Used garbage collector to manage memory in all projects
Handled different types of data such as text, images, and videos
Q146. What is run time polymorphism ?
Run time polymorphism is the ability of a function to behave differently based on the object it is called with.
Run time 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 parent class.
The actual method that gets called is determined at runtime based on the type of object.
Example: Inheritance in Java allows for run time polymorphism when a method...read more
Q147. What are the annotation you have used
I have used annotations like @Override, @Deprecated, @SuppressWarnings in Java programming.
@Override - Indicates that a method overrides a method in its superclass
@Deprecated - Marks a method as deprecated, discouraging its use
@SuppressWarnings - Suppresses compiler warnings for a given type of annotation
Q148. Write even and odd number code
Code to print even and odd numbers
Use a loop to iterate through numbers
Check if the number is even or odd using modulus operator
Print the number accordingly
Q149. Oops concept examples?
Examples of OOP concepts include inheritance, polymorphism, and encapsulation.
Inheritance: A child class inherits properties and methods from a parent class.
Polymorphism: Objects of different classes can be treated as objects of a common superclass.
Encapsulation: Data and methods are bundled together in a class, hiding internal details.
Q150. Different SQL queries?
Different SQL queries are used to retrieve, manipulate, and manage data in a relational database.
SELECT query: retrieves data from one or more tables
INSERT query: inserts new data into a table
UPDATE query: modifies existing data in a table
DELETE query: removes data from a table
JOIN query: combines data from multiple tables based on a related column
GROUP BY query: groups data based on a specific column
ORDER BY query: sorts data based on a specific column
COUNT query: counts the...read more
Q151. What are different kind of testing frameworks in django?
Different testing frameworks in Django include Django's built-in test framework, pytest, and unittest.
Django's built-in test framework: Provides tools for testing Django applications and is easy to use.
pytest: A popular testing framework that offers more features and flexibility compared to Django's built-in test framework.
unittest: A standard Python testing framework that can also be used for testing Django applications.
Q152. What are different AWS services used in your project?
We use AWS services like EC2, S3, RDS, Lambda, and CloudWatch in our project.
EC2 - for hosting our application servers
S3 - for storing and serving static assets
RDS - for managing our relational database
Lambda - for serverless computing
CloudWatch - for monitoring and logging
Q153. What is the purpose of the "super" keyword in Java?
The 'super' keyword in Java is used to refer to the immediate parent class object.
Used to access methods and variables of the parent class
Used to call the parent class constructor
Helps in achieving method overriding
Q154. How do you utilize the enhanced optimization option in AWS Glue?
Enhanced optimization in AWS Glue improves job performance by automatically adjusting resources based on workload
Enhanced optimization in AWS Glue automatically adjusts resources like DPUs based on workload
It helps improve job performance by optimizing resource allocation
Users can enable enhanced optimization in AWS Glue job settings
Q155. What are the best practices for optimizing querying in Amazon Redshift?
Optimizing querying in Amazon Redshift involves proper table design, distribution keys, sort keys, and query optimization techniques.
Use appropriate distribution keys to evenly distribute data across nodes for parallel processing.
Utilize sort keys to physically order data on disk, reducing the need for sorting during queries.
Avoid using SELECT * and instead specify only the columns needed to reduce data transfer.
Use ANALYZE command to update statistics for the query planner t...read more
Q156. What is Active Directory, DNS, DHCP and other server roles?
Active Directory, DNS, DHCP are server roles used in managing network resources and providing services to clients.
Active Directory is a directory service used to manage users, computers, and other network resources.
DNS (Domain Name System) is used to translate domain names into IP addresses.
DHCP (Dynamic Host Configuration Protocol) is used to automatically assign IP addresses to devices on a network.
Other server roles include file and print services, web services, and remote...read more
Q157. What is anonymous function
An anonymous function is a function without a name.
Anonymous functions are often used as arguments to higher-order functions.
They can be defined using the function keyword or as arrow functions.
Example: const add = function(x, y) { return x + y; }
Example: const multiply = (x, y) => x * y;
Q158. What is inheritance method
Inheritance is a mechanism in object-oriented programming where a class is derived from another class.
Inheritance allows a subclass to inherit properties and methods from a superclass.
The subclass can also add its own properties and methods.
Inheritance promotes code reuse and helps in creating a hierarchical class structure.
For example, a Car class can inherit from a Vehicle class, which can inherit from a Transport class.
The Car class will have access to all the properties a...read more
Q159. What is data structures
Data structures are ways of organizing and storing data in a computer so that it can be accessed and used efficiently.
Data structures are used to manage and manipulate data in computer programs.
Examples of data structures include arrays, linked lists, stacks, queues, trees, and graphs.
Choosing the right data structure for a particular problem can greatly improve the efficiency of a program.
Data structures can be implemented in various programming languages such as C, C++, Jav...read more
Q160. Write a code to find second largest number without using built functions and write one test case for that function
Code to find second largest number in an array without using built-in functions
Iterate through the array to find the largest number
Keep track of the largest number and update it if a larger number is found
Once the largest number is found, iterate again to find the second largest number
Q161. What is null What is String is used and and char index What is pass by reference and call by reference Diff between array list and linked list
Null is a special value in programming that represents the absence of a value. String is a sequence of characters. Pass by reference means passing the memory address of a variable, while call by reference means passing the value of a variable.
Null is used to indicate that a variable does not have a value assigned to it.
String is a data type used to represent text as a sequence of characters. Example: 'Hello World'.
Char index refers to the position of a character in a string. ...read more
Q162. What type of jenkins jobs have you created
I have created various types of Jenkins jobs including build, deployment, testing, and automation jobs.
Build jobs for compiling and packaging code
Deployment jobs for deploying code to different environments
Testing jobs for running automated tests
Automation jobs for performing routine tasks
Parameterized jobs for customizing job runs
Pipeline jobs for creating complex workflows
Scheduled jobs for running jobs at specific times
Multibranch jobs for managing multiple branches of cod...read more
Q163. 4. How Dev and Ops team collaborate and mange conflicts
DevOps collaboration involves communication, transparency, and shared goals.
Dev and Ops teams should have regular meetings to discuss progress and potential conflicts.
Both teams should have a clear understanding of each other's roles and responsibilities.
Collaboration tools such as Jira, Slack, and Trello can help facilitate communication and task management.
Dev and Ops teams should work towards shared goals, such as improving product quality and increasing efficiency.
Conflic...read more
Q164. Programming languages which I am good at and what are the problems that I have solved
I am proficient in Java, Python, and C++. I have solved problems related to data structures, algorithms, and software development.
Proficient in Java, Python, and C++
Solved problems related to data structures and algorithms
Experience in software development projects
Q165. Find the palindrome in an array
Find palindromes in an array of strings
Iterate through each string in the array
Check if the string is equal to its reverse to determine if it's a palindrome
Store palindromes in a separate array
Q166. What is sortcards how it is used
Sortcards is a utility program used for sorting data on punched cards in mainframe computers.
Sortcards is a utility program commonly used in mainframe computers to sort data on punched cards.
It is used to rearrange the order of data on punched cards based on specified criteria.
Sortcards can be used to sort data alphabetically, numerically, or based on custom sorting rules.
An example of using sortcards is sorting a deck of customer information cards by last name.
Q167. Write code for producer- consumer problem
Producer-consumer problem involves synchronization between two processes sharing a common buffer.
Use a shared buffer to store data produced by the producer and consumed by the consumer
Implement synchronization mechanisms like mutex or semaphore to control access to the shared buffer
Producer adds data to the buffer and notifies the consumer, while consumer removes data and notifies the producer
Annotations in Cucumber are tags used to define the behavior of the test methods.
Annotations in Cucumber are used to define the behavior of the test methods.
Annotations are used to mark methods with specific behavior, such as @Given, @When, @Then.
Annotations help Cucumber to understand the steps in the feature file and map them to the corresponding methods in the step definition file.
Q169. Content Migration approaches and scenarios
Content migration approaches and scenarios
Assess the source and target systems
Determine the scope of the migration
Choose the appropriate migration method (manual, automated, hybrid)
Plan for data mapping and transformation
Test the migration thoroughly before executing
Consider post-migration tasks such as data validation and cleanup
Q170. What is VPC and it's components?
VPC stands for Virtual Private Cloud. It is a virtual network dedicated to a user's AWS account.
VPC allows users to launch AWS resources into a virtual network
Components of VPC include subnets, route tables, internet gateways, network ACLs, security groups, and VPC endpoints
VPC provides users with control over their virtual networking environment
Users can customize their VPC by selecting their own IP address range, creating subnets, and configuring route tables
Q171. What is difference Between monothic and microservices
Monolithic architecture is a single unified unit while microservices architecture is composed of small, independent services.
Monolithic architecture is a single, indivisible unit where all components are tightly coupled.
Microservices architecture breaks down the application into smaller, independent services that communicate with each other through APIs.
Monolithic applications are easier to develop and deploy but can be harder to scale and maintain.
Microservices allow for bet...read more
Q172. OOPS concept and how it is used in your project
OOPS is used extensively in our project for creating modular and reusable code.
We use inheritance to create a base class for common functionalities and derive child classes for specific functionalities.
We use encapsulation to hide the implementation details of a class and provide a clean interface for other modules to interact with it.
We use polymorphism to allow objects of different classes to be treated as if they are of the same class, enabling code reuse and flexibility.
W...read more
Q173. How to scale your microservices
Scaling microservices involves using containerization, load balancing, auto-scaling, and service discovery.
Use containerization tools like Docker or Kubernetes to easily deploy and manage microservices
Implement load balancing to distribute incoming traffic evenly across multiple instances of microservices
Utilize auto-scaling to automatically adjust the number of instances based on traffic demand
Employ service discovery mechanisms like Consul or Eureka to dynamically locate an...read more
Q174. Current project architecture
Our current project architecture follows a microservices approach.
We use Docker containers to deploy each microservice.
We have a centralized API gateway to handle requests and routing.
We use Kubernetes for orchestration and scaling.
We use a combination of NoSQL and SQL databases depending on the service's needs.
Q175. Difference between list and tuple
List is mutable while tuple is immutable in Python.
List can be modified while tuple cannot be modified.
List uses square brackets [] while tuple uses parentheses ().
List is slower than tuple in terms of performance.
List is used for collections of data while tuple is used for grouping related data.
Example of list: [1, 2, 3] and example of tuple: (1, 2, 3).
Q176. Explain about homogeneous elements
Homogeneous elements are elements of the same type or kind.
Homogeneous elements have similar properties and characteristics.
They can be combined or compared easily.
Examples include a set of integers, a group of apples, or a collection of red flowers.
Q177. Visual studio project creation steps
Visual Studio project creation involves several steps to set up a new project.
Open Visual Studio IDE
Click on 'File' > 'New' > 'Project'
Select the project type (e.g. Console Application, Web Application)
Choose the programming language (e.g. C#, VB.NET)
Specify project name, location, and solution name
Click 'Create' to generate the project files
Q178. How to reverse a linked list
To reverse a linked list, iterate through the list and change the direction of pointers.
Start with three pointers: current, previous, and next
Iterate through the list, updating the pointers to reverse the direction
Update the head of the list to be the previous node after reaching the end
Q179. 1.What is jvm jre and jdk 2.what is null and its value 3.what is pass by reference 4.what is regular expression
1. JVM is a virtual machine that executes Java bytecode. JRE is a runtime environment that includes JVM and libraries. JDK is a development kit that includes JRE and tools for developing Java applications. 2. Null is a special value that represents the absence of a value. Its value is typically used to indicate that a variable does not refer to any object. 3. Pass by reference is a method of parameter passing where the memory address of a variable is passed to a function, all...read more
Q180. How to identify the root-cause if an executor is taking longer time compared to others
Identifying root cause of slow executor compared to others
Check resource utilization of the slow executor (CPU, memory, disk)
Look for any specific tasks or stages that are taking longer on the slow executor
Check for network latency or communication issues affecting the slow executor
Monitor garbage collection and JVM metrics for potential bottlenecks
Consider data skew or unbalanced data distribution causing slow performance
Q181. Explain framework used in your project
The framework used in my project is a custom-built automation framework.
The framework is designed to support end-to-end testing of the application.
It follows a modular approach, allowing easy maintenance and scalability.
The framework supports various testing types such as functional, regression, and performance testing.
It integrates with popular testing tools like Selenium and JUnit.
The framework includes features like test data management, reporting, and logging.
It promotes ...read more
Q182. What is difference between django and flask?
Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design. Flask is a lightweight WSGI web application framework.
Django is a full-featured framework with built-in ORM, admin panel, and authentication system, while Flask is more lightweight and flexible.
Django follows the 'batteries included' philosophy, providing many built-in features out of the box, whereas Flask is more minimalistic and allows developers to choose their own t...read more
Q183. differentiate joins in MySql?
MySql supports four types of joins: INNER, LEFT, RIGHT, and FULL OUTER.
INNER JOIN returns only the matching rows from both tables.
LEFT JOIN returns all the rows from the left table and matching rows from the right table.
RIGHT JOIN returns all the rows from the right table and matching rows from the left table.
FULL OUTER JOIN returns all the rows from both tables, with NULL values in the columns where there is no match.
JOIN and INNER JOIN are equivalent.
LEFT OUTER JOIN and LEF...read more
Reflection in C# is the ability to inspect and manipulate metadata of types at runtime.
Allows accessing type information at runtime
Enables examining and modifying properties, methods, and attributes of types dynamically
Useful for creating generic algorithms and frameworks
Example: Getting all properties of a class dynamically
Q185. What are the functions in mulesoft?
Functions in MuleSoft are pre-built modules that can be used to perform specific tasks.
Functions can be used for data transformation, error handling, logging, and more.
Examples of functions include the HTTP Listener, DataWeave, Logger, and Choice.
Functions can be customized and extended using Java or scripting languages like Groovy.
MuleSoft also provides connectors to integrate with various systems and APIs.
Functions can be organized into flows to create a complete integratio...read more
Q186. parameter and argument difference in JavaScript ? 2. Closures and hoisting in Javascript ? 3. Var, let and Const difference ?
Q187. How to improve the performance of a running application.
To improve the performance of a running application, consider optimizing code, database queries, caching, and server resources.
Optimize code by identifying and fixing bottlenecks, reducing unnecessary loops, and improving algorithms.
Optimize database queries by using indexes, avoiding unnecessary joins, and limiting the amount of data retrieved.
Implement caching mechanisms to store frequently accessed data in memory, reducing the need to fetch it from the database repeatedly....read more
Q188. What is the difference between tJoin and tMap in Talend?
tJoin is used to join two data streams based on a common key, while tMap is used to transform and manipulate data within a single data stream.
tJoin is used to combine data from two input streams based on a common key field
tMap is used to perform transformations, lookups, and calculations on data within a single input stream
tJoin is typically used for joining data from different sources, while tMap is used for data manipulation within a single source
Example: tJoin can be used ...read more
Q189. Different design pattern and how you have implement in projects
I have implemented design patterns like Singleton, Factory, and Observer in various projects.
Implemented Singleton pattern to ensure only one instance of a class exists.
Utilized Factory pattern to create objects without specifying the exact class of object that will be created.
Used Observer pattern to establish a one-to-many dependency between objects, so that when one object changes state, all its dependents are notified and updated automatically.
Q190. What are tools you used
I have used a variety of tools including IDEs, version control systems, testing frameworks, and build tools.
IDEs: Visual Studio, IntelliJ IDEA, Eclipse
Version Control Systems: Git, SVN
Testing Frameworks: JUnit, Selenium
Build Tools: Maven, Gradle
Q191. What is an array
An array is a collection of similar data types stored in contiguous memory locations.
Arrays can be of any data type, such as integers, floats, characters, etc.
Arrays are accessed using an index, starting from 0.
Arrays can be one-dimensional, two-dimensional, or multi-dimensional.
Example: string[] names = {"John", "Jane", "Bob"};
Example: int[] numbers = new int[5];
Q192. Find minimum positive value in array.
Find minimum positive value in array of strings.
Convert array elements to integers
Filter out negative values
Find minimum positive value
Q193. What are some Cloud Security related services in Google Cloud Platform and AWS
Q194. what framework you are using in your project?
We are using the Selenium framework for automation testing in our project.
Selenium is a popular open-source automation testing framework
It supports multiple programming languages like Java, Python, C#, etc.
Selenium WebDriver is used for automating web applications
It provides features for browser automation, testing across different browsers, and parallel test execution
Q195. what is internal workflow for the BFSI domain?
Internal workflow for BFSI domain involves processes related to banking, financial services, and insurance.
Customer onboarding and account setup
Transaction processing and monitoring
Risk management and compliance checks
Customer support and issue resolution
Data analysis and reporting
Q196. Riles if regulatory in R&D ECTD Quality
The question is asking about the role of regulatory in R&D, specifically related to ECTD and quality.
Regulatory plays a crucial role in R&D by ensuring compliance with applicable regulations and guidelines.
ECTD (Electronic Common Technical Document) is a standard format for submitting regulatory information in electronic form.
Quality is an essential aspect of regulatory compliance in R&D, ensuring that products meet the required standards.
Regulatory involvement in R&D include...read more
Q197. Diff between abstract and abstract keyword? Diff between abstract and interface?
Abstract is a class that cannot be instantiated, while abstract keyword is used to declare a method as abstract. Interface is a contract that defines methods that a class must implement.
Abstract class cannot be instantiated, but can have concrete methods.
Abstract keyword is used to declare a method as abstract, meaning it has no implementation.
Interface is a contract that defines methods that a class must implement.
A class can implement multiple interfaces, but can only exten...read more
Q198. What are steplib and jcl lib
Steplib and JCL lib are libraries used in mainframe programming for storing reusable code and job control language (JCL) statements.
Steplib is a library where commonly used program objects are stored for easy access in mainframe programming.
JCL lib is a library where job control language (JCL) statements are stored for reuse in mainframe batch processing.
Both steplib and JCL lib help in organizing and managing code and JCL statements efficiently in mainframe development.
Q199. Find the reverse of a number
To reverse a number, convert it to a string, reverse the string, and convert it back to a number.
Convert the number to a string
Reverse the string
Convert the reversed string back to a number
Q200. What is callback?
A callback is a function that is passed as an argument to another function and is executed after a certain event occurs.
Callback functions are commonly used in event handling, asynchronous programming, and APIs.
They allow for more flexible and modular code by separating concerns.
Example: setTimeout function in JavaScript takes a callback function as an argument to be executed after a specified time.
More about working at CGI Group







Top HR Questions asked in CGI Group
Interview Process at CGI Group

Top Interview Questions from Similar Companies








Reviews
Interviews
Salaries
Users/Month

