CodeClouds
10+ GlobalLogic Interview Questions and Answers
Q1. What is document object model?
Document Object Model (DOM) is a programming interface for web documents.
DOM is a tree-like structure that represents the HTML or XML document.
It allows developers to manipulate the content and structure of a web page using programming languages like JavaScript.
DOM provides a set of methods and properties to access and modify the elements of a web page.
Changes made to the DOM are reflected in the web page in real-time.
DOM can be used to create dynamic web pages and web applic...read more
Q2. What is ACID property?
ACID property ensures database transactions are reliable and consistent.
ACID stands for Atomicity, Consistency, Isolation, and Durability.
Atomicity ensures that a transaction is treated as a single, indivisible unit.
Consistency ensures that a transaction brings the database from one valid state to another.
Isolation ensures that concurrent transactions do not interfere with each other.
Durability ensures that once a transaction is committed, it will remain so even in the face o...read more
Q3. What is normalization?
Normalization is the process of organizing data in a database to reduce redundancy and dependency.
Normalization helps to eliminate data redundancy and inconsistencies.
It involves breaking down a table into smaller tables and defining relationships between them.
Normalization is achieved through a series of normal forms, such as first normal form (1NF), second normal form (2NF), and so on.
Normalization ensures data consistency and improves database performance.
Example: A custom...read more
Q4. What is multilevel inhertance
Multilevel inheritance is a concept in object-oriented programming where a class inherits properties and methods from another class, which in turn inherits from another class.
Multilevel inheritance involves creating a hierarchy of classes, where each class inherits from the class above it.
The derived class inherits the properties and methods of the base class, and can also add its own unique properties and methods.
This type of inheritance allows for code reusability and promo...read more
Q5. interface vs abstract class
Interface defines only method signatures while abstract class can have method implementations.
Interface cannot have constructors while abstract class can.
A class can implement multiple interfaces but can inherit only one abstract class.
Abstract class can have non-abstract methods while interface cannot.
Abstract class can have instance variables while interface cannot.
Example of interface: Runnable interface in Java.
Example of abstract class: HttpServlet class in Java Servlet ...read more
Q6. Which data structure is used to reverse an array?
The data structure used to reverse an array is a stack.
A stack data structure can be used to reverse an array by pushing each element onto the stack and then popping them off in reverse order.
Example: If we have an array of strings ['apple', 'banana', 'cherry'], we can reverse it using a stack to get ['cherry', 'banana', 'apple'].
Q7. How to upload files in Nodejs Application
To upload files in a Node.js application, you can use the 'multer' middleware package.
Install 'multer' package using npm
Set up multer middleware in your Node.js application
Create a route in your application to handle file uploads
Use 'multer' to process and save uploaded files to a specified destination
Q8. Explain Event Loop in NodeJS
Event Loop in NodeJS manages asynchronous operations by executing callback functions when certain events occur.
Event Loop continuously checks the Call Stack and Callback Queue to see if there are any functions that need to be executed.
If the Call Stack is empty, Event Loop will move functions from the Callback Queue to the Call Stack for execution.
Event Loop allows NodeJS to handle multiple requests concurrently without blocking the execution of other code.
Example: setTimeout...read more
Q9. What is justify content
justify-content is a CSS property that defines how flex items are aligned along the main axis of a flex container.
It is used in CSS flexbox layout.
It controls the alignment of flex items horizontally.
Possible values include: flex-start, flex-end, center, space-between, space-around, and space-evenly.
Default value is flex-start.
Q10. How to change cursor color?
Use CSS property 'caret-color' to change cursor color.
Use 'caret-color' property in CSS to change cursor color
Specify the color value for 'caret-color' property
Example: input { caret-color: red; }
Q11. What is display Flex
display: flex is a CSS property that allows flexible and responsive layout design.
It is used to create a flexible box layout model.
Elements inside a flex container can be easily aligned and positioned.
Flexbox provides powerful features for distributing space and controlling the size of items.
It simplifies the process of creating responsive designs.
Example: .container { display: flex; }
Q12. What is object fit
Object fit is a CSS property that specifies how an image or video should be resized and positioned within its container.
Object fit can be set to values like 'contain' or 'cover' to control the scaling and positioning of the content.
The 'contain' value scales the content to fit within the container while preserving its aspect ratio.
The 'cover' value scales the content to cover the entire container, potentially cropping parts of it.
Other values like 'fill', 'none', 'scale-down'...read more
Q13. Agile Testing methods
Agile testing methods involve continuous testing throughout the development process to ensure quality and timely delivery.
Testing is integrated into the development process
Testing is done in short iterations or sprints
Testing is focused on customer requirements
Test automation is used to speed up testing
Collaboration between developers and testers is essential
Q14. Alternative of using loop to print 1 to 100
Using recursion to print numbers from 1 to 100 without a loop
Create a recursive function that takes a number as input and prints it
Call the function with 1 as the initial input and increment the input by 1 in each recursive call
Stop the recursion when the input reaches 100
Q15. States and its role in
States play a crucial role in the functioning of a country's government and administration.
States are administrative divisions within a country.
They have their own governments and are responsible for managing their own affairs.
States play a key role in the federal system of government, where power is shared between the central government and the states.
They are responsible for implementing policies and programs at the local level.
Examples of states include California, Texas, ...read more
Q16. 2NF and 3NF difference
2NF eliminates partial dependencies, while 3NF eliminates transitive dependencies.
2NF eliminates partial dependencies by ensuring all non-key attributes are fully functionally dependent on the primary key.
3NF eliminates transitive dependencies by ensuring that non-key attributes are not dependent on other non-key attributes.
Example: In a table with columns A, B, and C where A is the primary key, if B depends on A and C depends on B, it violates 3NF.
Example: In a table with co...read more
Q17. Delete and Truncate Difference
Delete removes rows from a table while truncate removes all rows from a table.
Delete is a DML command while truncate is a DDL command.
Delete operation can be rolled back while truncate operation cannot be rolled back.
Delete operation fires triggers on each row deletion while truncate operation does not fire triggers.
Q18. Difference between Traits and Interface
Traits are reusable code blocks that can be mixed into classes, while interfaces define a contract that a class must follow.
Traits can be used to add methods to a class without inheritance
Interfaces define a set of methods that a class must implement
A class can implement multiple interfaces, but can only inherit from one class
Traits promote code reusability and reduce code duplication
Q19. What is the Agile?
Agile is a project management methodology that emphasizes flexibility, collaboration, and continuous improvement.
Agile focuses on delivering value to customers through iterative and incremental development.
It promotes adaptive planning, evolutionary development, early delivery, and continuous improvement.
Scrum and Kanban are popular frameworks used in Agile project management.
Daily stand-up meetings, sprint planning, and retrospectives are common practices in Agile.
Agile valu...read more
Interview Process at GlobalLogic
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month