Calsoft
30+ Plum Goodness Interview Questions and Answers
Q1. Find the largest no. to be created from the list of numbers in the string format. Example ['234', 56','100'] -> 56234100
Python program to find the largest number from a list of numbers in string format.
Convert the list of strings to a list of integers
Sort the list in descending order
Join the sorted list of integers into a single string
Q2. what is Sub-typing and order of solving multiple inheritance
Sub-typing is a concept in programming where a derived class inherits properties and behaviors from a base class.
Sub-typing allows for code reuse and promotes modularity.
In multiple inheritance, the order of solving is determined by the order of inheritance in the class definition.
For example, if a class inherits from two base classes A and B, and both have a method with the same name, the method from class A will be called first if it appears before class B in the inheritanc...read more
Q3. 1. What is Virtualization 2. What is Vmotion 3. What is Hypervisor and its type 4. Steps to create VM 5. Diff between Thin & Thik VM provision 6. VM Template and Cloning 7. What is VM Snapshot 8. What is Active...
read moreQ4. different types of channels in go and where we can use these channels
Types of channels in Go and their use cases
Buffered channels: Allow multiple senders to send data without blocking until the buffer is full
Unbuffered channels: Synchronize goroutines by blocking sender until receiver is ready
Bidirectional channels: Allow both sending and receiving data
Receive-only channels: Restrict channel to only receive data
Send-only channels: Restrict channel to only send data
Q5. how Django memory is managed and many more
Django memory is managed through garbage collection and reference counting.
Django uses a combination of garbage collection and reference counting to manage memory.
Garbage collection automatically frees up memory by identifying and removing objects that are no longer in use.
Reference counting keeps track of the number of references to an object and deallocates it when the count reaches zero.
Django's memory management helps optimize performance and prevent memory leaks.
Example:...read more
Q6. how you create own package,explain your project
To create a package, define a new directory and add a file with package name and functions. My project is a web scraper.
Create a new directory with package name
Add a file with package name and functions
Import the package in main program
Use the functions in the package
Example: package name - scraper, functions - scrapeWebsite(url string) string
Example usage: import 'scraper', scraper.scrapeWebsite('https://example.com')
Q7. how memory is managed in python
Python uses automatic memory management through a process called garbage collection.
Python uses reference counting to keep track of objects in memory.
When an object's reference count reaches zero, it is automatically deallocated.
Python also employs a garbage collector to handle cyclic references.
Memory management in Python is transparent to the programmer.
Q8. what is concurrency and how we can achieve using go.
Concurrency is the ability to run multiple tasks simultaneously, achieving parallelism.
Go uses goroutines to achieve concurrency
Goroutines are lightweight threads managed by the Go runtime
Concurrency in Go is achieved using channels for communication between goroutines
Q9. Find 2nd max no. from the list
Find the 2nd maximum number from a list.
Sort the list in descending order and return the second element.
Use a loop to iterate through the list and keep track of the two largest numbers.
Convert the list to a set to remove duplicates, then find the second largest number.
Q10. program on interface,methods,write an implemention interface
Implementing an interface with methods in Go
Define an interface with method signatures
Create a struct that implements the interface methods
Use the 'implements' keyword to associate the struct with the interface
Call the interface methods on the struct instance
Q11. What is the STLC flow and explain in detail all phases in you project
STLC is a process followed by QA team to ensure quality of software. It includes planning, design, execution and reporting.
STLC stands for Software Testing Life Cycle
It includes 6 phases - Requirement Analysis, Test Planning, Test Design, Test Execution, Test Reporting and Closure
Requirement Analysis involves understanding the project requirements and identifying test scenarios
Test Planning involves creating a test plan, test strategy and test cases
Test Design involves creati...read more
Q12. Explain oops concept in java? Multi threading life cycle? Collection key interfaces and their implemented class? internal working of hashmap? toString() and hashcode() method contract? comparable and compator?...
read moreObject-oriented programming concepts in Java, multi-threading, key interfaces and implemented classes in collections, internal working of HashMap, contract of toString() and hashCode() methods, Comparable and Comparator, Spring bean and IOC, Spring Boot annotations, microservices and design patterns.
OOPs concepts in Java include encapsulation, inheritance, polymorphism, and abstraction.
Multi-threading life cycle involves states like new, runnable, running, blocked, and termin...read more
Q13. concept of virtual box in python
VirtualBox is a virtualization software that allows running multiple operating systems on a single physical machine.
VirtualBox is an open-source virtualization software developed by Oracle.
It allows users to create and run virtual machines on their computer.
VirtualBox supports various operating systems including Windows, Linux, and macOS.
It provides features like snapshotting, which allows saving the state of a virtual machine and reverting back to it later.
VirtualBox also su...read more
Q14. difference between golang and other language
Go is a statically typed, compiled language with a focus on concurrency and simplicity.
Go has a simpler syntax compared to other languages like Java or C++
Go has built-in concurrency support with goroutines and channels
Go has a garbage collector that automatically manages memory
Go compiles to machine code, making it faster than interpreted languages like Python
Go has a standard library that includes many useful packages for networking, cryptography, and more
Q15. How to downgrade an application in Kubernetes/Openshift?
To downgrade an application in Kubernetes/Openshift, you can rollback to a previous version using deployment history or by updating the image tag.
Use kubectl rollout undo command to rollback to a previous deployment
Update the image tag in the deployment configuration to point to an older version
Use Helm to manage application versions and rollback if needed
Q16. how Django framework works
Django is a high-level Python web framework that follows the model-view-controller architectural pattern.
Django uses the MTV (Model-Template-View) architectural pattern.
It provides a robust set of tools and libraries for building web applications.
Django follows the DRY (Don't Repeat Yourself) principle, promoting code reusability.
It includes an ORM (Object-Relational Mapping) layer for database operations.
Django supports URL routing, form handling, authentication, and session...read more
Q17. Difference between Mutable and Immutable types
Mutable types can be changed after creation, while immutable types cannot be changed.
Mutable types include lists, dictionaries, and sets.
Immutable types include strings, tuples, and frozensets.
Changing a mutable type can have unintended consequences, while immutable types are safer to use.
Immutable types are often used for keys in dictionaries or as function arguments to prevent unintended changes.
Q18. definition on struct,interface,method,functon
Definition of struct, interface, method, and function.
Struct is a composite data type that groups together zero or more values with different types.
Interface is a collection of method signatures that a type can implement.
Method is a function that has a receiver argument.
Function is a block of code that performs a specific task and can be called from other parts of the program.
Q19. What is fail fast and fail safe operation
Fail fast and fail safe operation refers to systems that either quickly identify and address failures or continue to operate safely despite failures.
Fail fast operation involves quickly detecting and responding to failures to prevent further issues.
Fail safe operation ensures that even in the event of a failure, the system continues to operate safely.
Examples of fail fast include automated tests in software development that catch bugs early, while examples of fail safe includ...read more
Q20. implement stack if a structure is given
Implement a stack using the given structure.
Create a struct with an array to store the stack elements and an index to keep track of the top element
Implement functions like push, pop, and peek to manipulate the stack
Ensure to handle stack overflow and underflow cases
Q21. difference between slice and array
Arrays have fixed size while slices are dynamic. Slices are references to arrays.
Arrays are declared with a fixed size while slices are declared without a size.
Slices are references to arrays and can be resized dynamically.
Arrays are passed by value while slices are passed by reference.
Slices have built-in functions like append() and copy() for manipulation.
Example: var arr [3]int = [3]int{1, 2, 3} and var sli []int = []int{1, 2, 3}
Q22. Print the number of possible combinations of character like abc CBA BCA
Q23. What is Java. How does it work?
Java is a high-level programming language known for its portability, security, and object-oriented features.
Java is platform-independent, meaning it can run on any device with a Java Virtual Machine (JVM)
It is object-oriented, allowing for modular and reusable code
Java uses a syntax similar to C++, making it easy for developers to learn and use
Java applications are compiled into bytecode, which can be executed on any device with a JVM installed
Q24. what is arp , what is dhcp
ARP stands for Address Resolution Protocol, used to map IP addresses to MAC addresses. DHCP stands for Dynamic Host Configuration Protocol, used to assign IP addresses to devices on a network.
ARP is used to find the MAC address of a device based on its IP address
DHCP is used to automatically assign IP addresses to devices on a network
ARP is a layer 2 protocol, while DHCP is a layer 3 protocol
Example: When a device wants to communicate with another device on the same network, ...read more
Q25. Networking models, how packets are made
Networking models define how data is transmitted over a network. Packets are created by breaking down data into smaller chunks.
Networking models like OSI and TCP/IP define the rules for communication between devices
Packets are created by adding headers containing source and destination information
Data is broken down into smaller chunks for efficient transmission
Examples of networking models include OSI model with 7 layers and TCP/IP model with 4 layers
Q26. What is immutable class write one..
An immutable class is a class whose instances cannot be modified after creation.
Immutable classes have all fields marked as final and private.
Immutable classes do not have any setter methods.
Examples of immutable classes include String, Integer, and LocalDate.
Q27. Write a class in python and oop concepts.
A class in Python demonstrating OOP concepts.
Create a class using the 'class' keyword
Define attributes using 'self'
Implement methods within the class
Utilize inheritance and encapsulation
Q28. dictionary program
A dictionary program that stores and retrieves words and their definitions.
Use an array of strings to store the words and their definitions.
Implement functions to add new words, retrieve definitions, and update existing definitions.
Consider using a hash table or a trie data structure for efficient word lookup.
Handle cases where multiple definitions or synonyms exist for a word.
Q29. How to create CI/CD job
To create a CI/CD job, you need to define the steps for building, testing, and deploying code automatically.
Define the source code repository to pull code from
Set up build steps to compile code and run tests
Configure deployment steps to deploy code to target environments
Integrate with version control system for triggering builds on code changes
Use CI/CD tools like Jenkins, GitLab CI, or CircleCI
Q30. Explain Oops concepts
Oops concepts are the fundamental principles of object-oriented programming.
Encapsulation - binding data and functions together
Inheritance - creating new classes from existing ones
Polymorphism - using a single interface to represent multiple types
Abstraction - hiding implementation details from users
Q31. Python code for string reversal
Python code to reverse an array of strings
Use the built-in function 'reverse()' to reverse the array of strings
Alternatively, you can use slicing to reverse each individual string in the array
Q32. Automation framework explanation
An automation framework is a set of guidelines, rules, and tools that help in creating automated tests for software applications.
Automation frameworks provide structure and organization for automated testing
They help in reducing the effort required to maintain and update automated tests
Frameworks can include libraries, coding standards, and best practices for test automation
Examples of automation frameworks include Selenium, TestNG, and Robot Framework
Q33. How to handle bugs
Handle bugs by identifying, prioritizing, fixing, and testing them to ensure quality software.
Identify bugs by reproducing them and analyzing logs
Prioritize bugs based on impact and severity
Fix bugs by writing code changes and performing code reviews
Test fixes to ensure they resolve the issue without introducing new bugs
Q34. What is immutable
Immutable means unchangeable or unable to be modified.
Immutable objects cannot be altered after they are created
In programming, immutable data types include strings and numbers
Immutable data structures are often used in functional programming languages
Example: In Python, tuples are immutable while lists are mutable
Q35. Implement stack and queue
Implement stack and queue using arrays
For stack, use array and implement push and pop operations
For queue, use array and implement enqueue and dequeue operations
Ensure proper handling of empty stack/queue and full stack/queue
Consider using additional variables to keep track of top/front and rear of stack/queue
Q36. Inheritance in detail in Java
Inheritance in Java allows a class to inherit properties and behavior from another class.
Inheritance is achieved using the 'extends' keyword in Java.
Subclass inherits all non-private fields and methods from superclass.
Subclass can override superclass methods to provide specific implementation.
Superclass can be abstract, preventing instantiation of the class.
Example: class Dog extends Animal { ... }
Q37. Number of offers rolled out
I rolled out 15 offers in the last quarter.
I rolled out 5 offers for sales positions, 4 for marketing, 3 for IT, and 3 for finance.
All offers were accepted by the candidates.
I ensured that the offers were competitive and aligned with the market standards.
I followed up with the candidates regularly to ensure a smooth onboarding process.
Q38. Oops concepts in detail
Oops concepts refer to Object-Oriented Programming principles like Inheritance, Polymorphism, Encapsulation, and Abstraction.
Inheritance: Allows a class to inherit properties and behavior from another class.
Polymorphism: Ability of objects to take on multiple forms.
Encapsulation: Bundling of data with the methods that operate on that data.
Abstraction: Hiding the complex implementation details and showing only the necessary features.
Q39. Java Oops in detail
Java Oops is a programming concept that focuses on objects and classes to create reusable code.
Encapsulation: 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: ability of a method to do different things based on the object it is acting upon
More about working at Calsoft
Top HR Questions asked in Plum Goodness
Interview Process at Plum Goodness
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month