Add office photos
Employer?
Claim Account for FREE

Digital

3.9
based on 42 Reviews
Filter interviews by

Digital Interview Questions and Answers

Updated 5 Feb 2024

Q1. What is polymerphism, encapsulation and inheritance?

Ans.

Polymorphism is the ability of an object to take on many forms. Encapsulation is the practice of hiding data and methods within a class. Inheritance is the ability of a class to inherit properties and methods from a parent class.

  • Polymorphism allows objects to be treated as if they are of different types.

  • Encapsulation helps to protect data from outside interference and misuse.

  • Inheritance allows for code reuse and promotes a hierarchical structure of classes.

  • Example of polymorp...read more

Add your answer

Q2. Given an array of length N. Find all the possible combinations of 2 elements whose sum= 10

Ans.

Find all possible combinations of 2 elements in an array of length N whose sum is 10.

  • Iterate through the array and for each element, check if there exists another element in the array whose sum is 10.

  • Use a nested loop to compare each element with every other element in the array.

  • Store the pairs of elements whose sum is 10 in a new array.

  • Return the array of pairs.

Add your answer
Digital Interview Questions and Answers for Freshers
illustration image

Q3. What are stacks and give some examples of stacks

Ans.

Stacks are a data structure that follows the Last-In-First-Out (LIFO) principle. They are used to store and retrieve data in a specific order.

  • Stacks have two main operations: push (to add an element to the top) and pop (to remove the top element)

  • Examples of stacks include the call stack in programming languages, undo/redo functionality in text editors, and the back button in web browsers

View 1 answer

Q4. Explain the algorithm of binary search , merge sorting and bubble sorting

Ans.

Binary search finds the position of a target value within a sorted array. Merge sort and bubble sort are sorting algorithms.

  • Binary search: repeatedly divide the search interval in half until the target value is found or not found

  • Merge sort: divide the unsorted list into n sublists, repeatedly merge sublists to produce new sorted sublists until there is only 1 sublist remaining

  • Bubble sort: repeatedly swap adjacent elements if they are in the wrong order until the list is sorte...read more

Add your answer
Discover Digital interview dos and don'ts from real experiences

Q5. Why is linked list better than array?

Ans.

Linked list is better than array for dynamic memory allocation and insertion/deletion operations.

  • Linked list allows for dynamic memory allocation, while arrays have a fixed size.

  • Insertion and deletion operations are faster in linked list as compared to arrays.

  • Arrays have better cache locality and are faster for random access.

  • Linked list is used in applications like implementing stacks, queues, and hash tables.

  • Arrays are used in applications like matrix operations and binary s...read more

Add your answer

Q6. Why is c++ better than C?

Ans.

C++ is better than C due to its object-oriented programming features and better memory management.

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

  • C++ has better memory management with features like constructors and destructors.

  • C++ has more advanced features like templates and exceptions.

  • C++ is more versatile and can be used for both low-level system programming and high-level application development.

  • C++ has a larger standard library compared to C.

  • C++ allows for func...read more

Add your answer

Q7. Advantages of python over c++

Ans.

Python is easier to learn, has simpler syntax, and is more versatile than C++.

  • Python has a simpler syntax and is easier to read and write than C++.

  • Python is an interpreted language, which means it doesn't need to be compiled before running.

  • Python has a vast library of modules and packages that can be easily imported and used.

  • Python is more versatile than C++ and can be used for a wide range of applications, including web development, data analysis, and artificial intelligence...read more

Add your answer

Q8. What is the statergy for marketing?

Ans.

Marketing strategy involves identifying target audience, creating a unique value proposition, and selecting appropriate channels.

  • Identify target audience

  • Create unique value proposition

  • Select appropriate channels

  • Analyze competition

  • Set goals and objectives

  • Develop a budget

  • Measure and adjust strategy

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

4.0
 • 227 Interview Questions
3.6
 • 182 Interview Questions
3.6
 • 163 Interview Questions
4.1
 • 154 Interview Questions
4.1
 • 134 Interview Questions
View all
Top Digital Interview Questions And Answers
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

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

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter
Hello, Guest
Contribute to help millions!
Write a review
Share interview
Contribute salary
Add office photos
Add office benefits
Stay ahead in your career with AmbitionBox app