Add office photos
Engaged Employer

CodeClouds

4.5
based on 429 Reviews
Filter interviews by

10+ GlobalLogic Interview Questions and Answers

Updated 3 Jan 2025

Q1. What is document object model?

Ans.

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

Add your answer

Q2. What is ACID property?

Ans.

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

Add your answer

Q3. What is normalization?

Ans.

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

Add your answer

Q4. What is multilevel inhertance

Ans.

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

View 2 more answers
Discover GlobalLogic interview dos and don'ts from real experiences

Q5. interface vs abstract class

Ans.

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

Add your answer

Q6. Which data structure is used to reverse an array?

Ans.

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'].

Add your answer
Are these interview questions helpful?

Q7. How to upload files in Nodejs Application

Ans.

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

Add your answer

Q8. Explain Event Loop in NodeJS

Ans.

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

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

Q9. What is justify content

Ans.

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.

Add your answer

Q10. How to change cursor color?

Ans.

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; }

Add your answer

Q11. What is display Flex

Ans.

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; }

Add your answer

Q12. What is object fit

Ans.

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

Add your answer

Q13. Agile Testing methods

Ans.

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

Add your answer

Q14. Alternative of using loop to print 1 to 100

Ans.

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

Add your answer

Q15. States and its role in

Ans.

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

Add your answer

Q16. 2NF and 3NF difference

Ans.

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

Add your answer

Q17. Delete and Truncate Difference

Ans.

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.

Add your answer

Q18. Difference between Traits and Interface

Ans.

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

Add your answer

Q19. What is the Agile?

Ans.

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

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

Interview Process at GlobalLogic

based on 35 interviews
Interview experience
4.5
Good
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

4.0
 • 690 Interview Questions
3.8
 • 299 Interview Questions
4.1
 • 203 Interview Questions
3.8
 • 166 Interview Questions
4.1
 • 162 Interview Questions
3.3
 • 142 Interview Questions
View all
Top CodeClouds Interview Questions And Answers
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

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

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