Daffodil Software
20+ Interview Questions and Answers
Ninja is given a pattern. Now he is asked to print the same pattern for any given ‘N’ number of rows.
For example, Pattern for ‘N’ = 4 will be. 1 232 34545 4567654
Input Format:
The...read more
You have been given an array/list 'ARR' of integers. Your task is to find the second largest element present in the 'ARR'.
Note:
a) Duplicate elements may be present. b) If no...read more
Given a string ’S’ consisting of lower case English letters, you are supposed to return the longest palindromic substring of ‘S’.
Note that in case of more than one longest palindro...read more
A few days back, Ninja encountered a string containing characters from ‘A’ to ‘Z’ which indicated a secret message. For security purposes he encoded each character of the string to its numeric va...read more
Given two integers ‘Left’ and ‘Right’. Your task is to find the total count of ‘megaprime’ numbers from the range ‘Left’ to ‘Right’. A ‘megaprime’ number is a prime number and its individual di...read more
Given two strings ‘initial’ and ‘final’ , where ‘initial’ is the initial string and ‘final’ is the final string. Each state will contain ‘a’,’b’ and only one empty slot re...read more
Sanyam has ‘N’ candies, he wants to distribute that into ‘K’ of his friends. He made his ‘K’ friends stand in line, in increasing order of his likeness. Not being so smart he ...read more
Q8. 5. Find the largest prime number in array? (Use the Concept of Segmented Sieve)
Find the largest prime number in array using Segmented Sieve.
Implement Segmented Sieve algorithm to generate prime numbers up to the maximum value in the array.
Iterate through the array and check if each number is prime using the generated prime numbers.
Return the largest prime number found in the array.
Q9. 2. What is OOPs and their concepts ?
OOPs stands for Object-Oriented Programming and it is a programming paradigm based on the concept of objects.
OOPs is based on four main concepts: Encapsulation, Inheritance, Polymorphism, and Abstraction.
Encapsulation is the process of hiding the implementation details of an object from the outside world.
Inheritance allows a class to inherit properties and methods from another class.
Polymorphism allows objects of different classes to be treated as if they were of the same cla...read more
Q10. 4. Program to print the pattern? (It was easy)
Program to print a given pattern using an array of strings.
Create an array of strings to hold the pattern
Use nested loops to iterate through the array and print the pattern
Adjust the loops to print the desired pattern
Example: for a right triangle pattern, use i for rows and j for columns, and print '*' if j<=i
Q12. the process of assigning a code to something for classification or identification.
The process is called coding and it involves assigning a unique code to something for identification or classification.
Coding is used in various fields such as software development, medical coding, and data analysis.
The codes assigned can be alphanumeric or numeric depending on the system used.
Examples of coding systems include ASCII, Unicode, ICD-10, and CPT codes.
Coding helps in organizing and managing large amounts of data efficiently.
Q13. string reverse without use of pre defined functions
Reverse a string without using pre-defined functions.
Iterate through the string from the last character to the first.
Create a new string and append each character to it in reverse order.
Return the reversed string.
Q14. Your qolificetion
I have a Bachelor's degree in Computer Science and 5 years of experience as a Software Developer.
Bachelor's degree in Computer Science
5 years of experience as a Software Developer
Q15. What is Overloading and Overriding?
Overloading is having multiple methods in the same class with the same name but different parameters. Overriding is implementing a method in a subclass that is already defined in the parent class.
Overloading allows a class to have multiple methods with the same name but different parameters.
Overriding involves implementing a method in a subclass that is already defined in the parent class.
Overloading is resolved at compile time while overriding is resolved at runtime.
Example ...read more
Q16. Wat area your skills
I am skilled in various programming languages and technologies including Java, Python, SQL, and web development frameworks.
Proficient in Java and Python programming languages
Experience with SQL and database management
Familiarity with web development frameworks such as Spring and Django
Knowledge of software development methodologies such as Agile and Scrum
Q17. make a pattern or fibonnaci series
A Fibonacci series is a sequence of numbers where each number is the sum of the two preceding ones.
Start with two initial numbers, usually 0 and 1.
Add the two preceding numbers to get the next number in the series.
Repeat this process to generate the Fibonacci series.
Example: 0, 1, 1, 2, 3, 5, 8, 13, 21, ...
Q18. What is Abstraction?
Abstraction is the concept of hiding complex implementation details and showing only the necessary features of an object.
Abstraction allows us to focus on what an object does rather than how it does it
It helps in reducing complexity and improving efficiency
Examples of abstraction include interfaces in Java, where only method signatures are defined without implementation details
Q19. What is Inheritance?
Inheritance is a mechanism in object-oriented programming where a class inherits properties and behaviors from another class.
Allows a class to inherit attributes and methods from another class
Promotes code reusability and reduces redundancy
Creates a parent-child relationship between classes
Derived class can override methods from the base class
Example: Class Car can inherit from class Vehicle
Q20. What is your expected CTC
My expected CTC is negotiable based on the responsibilities and growth opportunities offered by the role.
My expected CTC is based on industry standards and my experience level.
I am open to discussing the compensation package in detail during the interview process.
I am looking for a competitive salary package with additional benefits such as bonuses or incentives.
I am confident that my skills and experience justify a competitive compensation package.
Q21. What is oops basics
Oops basics refer to the fundamental concepts of Object-Oriented Programming such as classes, objects, inheritance, polymorphism, and encapsulation.
Oops basics include concepts like classes, which are blueprints for creating objects
Objects are instances of classes that encapsulate data and behavior
Inheritance allows a class to inherit properties and methods from another class
Polymorphism enables objects to be treated as instances of their parent class
Encapsulation involves bu...read more
More about working at Daffodil Software
Top HR Questions asked in null
Interview Process at null
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month