Deltax
20+ Greenlam Industries Interview Questions and Answers
Q1. Problem Statement - Ringa Ringa Roses There are bunch of kids (n) who are standing in a circle and reciƟng a rhyme (having m words). Each kid recites only a single word from the rhyme and then the next kid reci...
read moreThe problem is about a game where kids recite a rhyme and one kid leaves the circle after each round until only one kid remains.
Try input combinations like (n=5, m=10), (n=8, m=15), (n=3, m=5), (n=6, m=12)
Expected outcome will be the number of rounds played and the kid who leaves the circle in each round
For example, for (n=5, m=10), the expected outcome could be 2 rounds played and kid 3 leaving in the first round and kid 1 leaving in the second round
Q2. What are scripts in package.json file
Scripts in package.json file are commands that can be run using npm.
Scripts are defined under the 'scripts' key in package.json.
Common scripts include 'start', 'test', 'build', etc.
Scripts can be run using 'npm run
'.
Q3. Binary Search on rotated arrays
Binary search on rotated arrays involves finding a target value in a sorted array that has been rotated at an unknown pivot point.
Identify the pivot point by finding the minimum element in the array.
Determine which half of the array the target value falls into based on the pivot point.
Perform binary search on the appropriate half of the array to find the target value.
Q4. Use of package.json file
package.json file is used in Node.js projects to manage dependencies, scripts, and metadata.
Contains project metadata like name, version, description, etc.
Lists dependencies required for the project to run.
Defines scripts for tasks like building, testing, and running the project.
Can include configurations for tools like ESLint, Babel, etc.
Q5. Why do we use JS for Web development Why not Python?
JS is used for web development due to its compatibility with browsers, asynchronous capabilities, and large community support.
JavaScript is the only language that can be executed in the browser, making it essential for client-side scripting.
JS has asynchronous capabilities, allowing for non-blocking operations which are crucial for web development.
There is a large community of developers using JS for web development, providing extensive resources and support.
Python is not com...read more
Q6. What do you know about digital marketing?
Digital marketing involves promoting products or services through online channels to reach a target audience.
Digital marketing includes strategies such as social media marketing, email marketing, search engine optimization (SEO), and pay-per-click advertising.
It focuses on creating engaging content, building brand awareness, and driving traffic to websites or online platforms.
Digital marketing analytics help track and measure the success of campaigns, allowing for data-driven...read more
Q7. Case study based- design a marketing strategy for a xyz brand.
Develop a marketing strategy for xyz brand.
Conduct market research to identify target audience and competitors.
Create a unique selling proposition to differentiate the brand from competitors.
Utilize social media platforms for targeted advertising and engagement.
Collaborate with influencers or brand ambassadors to increase brand visibility.
Offer promotions or discounts to attract new customers and retain existing ones.
Q8. How many characters are different in two sentences?
The number of different characters in two sentences can be determined by comparing each character in both sentences.
Compare each character in the two sentences
Count the number of characters that are different
Spaces and punctuation should also be considered as characters
Q9. Give some real life examples of oops
Real life examples of OOPs include cars, animals, and banking systems.
Cars: Objects like make, model, and color with behaviors like driving and honking.
Animals: Objects like species, name, and age with behaviors like eating and sleeping.
Banking Systems: Objects like account, balance, and transaction with behaviors like deposit and withdraw.
Q10. Oops concepts and their execution
Oops concepts are fundamental principles of object-oriented programming that help in organizing and designing code efficiently.
Encapsulation: Bundling data and methods that operate on the data into a single unit (class).
Inheritance: Allowing a class to inherit properties and behavior from another class.
Polymorphism: Ability of objects to take on multiple forms or have multiple behaviors.
Abstraction: Hiding the complex implementation details and showing only the necessary feat...read more
Q11. Explain the virtual function in OOPS
Virtual functions in OOPS allow a derived class to provide its own implementation of a method defined in the base class.
Virtual functions are declared in the base class and can be overridden by derived classes.
They enable polymorphism, allowing objects of different classes to be treated as objects of the same base class.
The virtual keyword is used to declare a function as virtual in the base class.
The derived class can provide its own implementation of the virtual function us...read more
Q12. what is c programming
C programming is a high-level programming language used for system programming, embedded systems, and software development.
C programming is widely used for developing operating systems, compilers, and device drivers.
It allows direct access to memory and hardware, making it efficient for low-level programming.
C programs are portable and can be easily optimized for performance.
Example: Writing a simple 'Hello World' program in C.
Q13. How will you advertise a small bakery
I would advertise the small bakery through social media, local events, partnerships with other businesses, and offering promotions.
Utilize social media platforms such as Instagram, Facebook, and Twitter to showcase the bakery's products and engage with customers
Participate in local events and farmers markets to increase visibility and attract new customers
Collaborate with other businesses, such as coffee shops or event planners, to cross-promote each other's services
Offer pro...read more
Q14. explain diamond problem in OOPS
The diamond problem is an ambiguity that occurs when a class inherits from two classes that have a common base class.
Occurs in multiple inheritance
Results in ambiguity in method resolution
Can be resolved using virtual inheritance
Example: Class A -> Class B, Class C -> Class D, Class B and Class D inherit from Class A, Class C inherits from both Class B and Class D
Q15. What is code and pulses
Code is a set of instructions written in a programming language to perform a specific task. Pulses are short bursts of energy or signals.
Code is written in programming languages like Python, Java, C++, etc.
Code instructs computers to perform specific tasks or operations.
Pulses are short bursts of energy or signals used in electronics and communication systems.
Examples of pulses include digital signals in computers and electrical pulses in medical devices.
Q16. What is data structure
Data structure is a way of organizing and storing data in a computer so that it can be accessed and used efficiently.
Data structures define the way data is organized and stored in memory.
Examples include arrays, linked lists, stacks, queues, trees, and graphs.
Choosing the right data structure is important for efficient data manipulation and retrieval.
Q17. Instagram was developed by who?
Instagram was developed by Kevin Systrom and Mike Krieger.
Developed by Kevin Systrom and Mike Krieger
Launched in October 2010
Acquired by Facebook in 2012
Q18. what is array in c
An array in C is a collection of elements of the same data type stored in contiguous memory locations.
Arrays are declared by specifying the data type of the elements and the number of elements in square brackets, e.g. int arr[5];
Elements in an array can be accessed using their index, starting from 0, e.g. arr[0] refers to the first element.
Arrays in C are zero-indexed, meaning the first element is at index 0.
Arrays can be of any data type, including arrays of strings like cha...read more
Q19. get me the query parameter
The query parameter is a part of a URL that contains data to be passed to a web server.
Query parameters are added to the end of a URL after a '?'
They are key-value pairs separated by '&'
Example: www.example.com/search?q=product&category=electronics
Q20. arithma and the operator
Arithma is a fictional company and the operator is a key component in their product.
The operator is a crucial element in the functionality of Arithma's product.
It is likely a symbol or function used for calculations.
Examples of operators could include + (addition), - (subtraction), * (multiplication), / (division).
Q21. difference between marketing and advertising
Marketing is a broader concept that encompasses advertising as one of its components.
Marketing involves identifying customer needs, creating products or services to meet those needs, and promoting them to the target audience.
Advertising is a specific promotional activity within marketing that focuses on creating and delivering persuasive messages through various channels.
Marketing includes market research, product development, pricing, distribution, and customer relationship ...read more
Q22. Introduce ur self
I am a passionate Junior Java Developer with a strong foundation in Java programming and problem-solving skills.
Graduated with a degree in Computer Science
Completed internships where I developed Java applications
Familiar with object-oriented programming principles
Experience with Spring framework and Hibernate
Strong communication and teamwork skills
Q23. Write a program
Program to sort an array of strings in alphabetical order
Use a sorting algorithm like bubble sort or quicksort
Compare strings using strcmp() function in C or compareTo() method in Java
Handle uppercase and lowercase letters separately if needed
More about working at Deltax
Interview Process at Greenlam Industries
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month