
Coditas Technologies

20+ Coditas Technologies Interview Questions and Answers for Freshers
Q1. 2. You have two gallons of capacity 12 liters and 5 liters. How can you pour exactly 9liters of water into 12 liters gallon.
To pour exactly 9 liters of water into a 12-liter gallon using 5 and 3-liter gallons.
Fill the 5-liter gallon and pour it into the 12-liter gallon.
Fill the 5-liter gallon again and pour it into the 12-liter gallon until it is full, leaving 1 liter in the 5-liter gallon.
Empty the 12-liter gallon and pour the remaining 1 liter from the 5-liter gallon into it.
Fill the 5-liter gallon again and pour it into the 12-liter gallon to get exactly 9 liters.
Q2. 1. In how many ways you can measure a 3 storeyed building.
There are multiple ways to measure a 3 storeyed building, including using a measuring tape, laser distance meter, or counting the number of steps.
Using a measuring tape to measure the height of each storey and adding them up.
Using a laser distance meter to calculate the total height of the building.
Counting the number of steps from the ground floor to the top floor and multiplying by the height of each step.
Estimating the height based on the standard height of a storey in the...read more
Q3. there was alphanumeric characters and we have to output only the number from that string Input - "wih562idjedk42ndej56" Output - 5624256
Extract numbers from a string of alphanumeric characters.
Iterate through each character in the string and check if it is a number.
Build a new string with only the numbers found in the original string.
Return the final string containing only the numbers.
Q4. Four pillars of OOPS with real world examples
Encapsulation, Inheritance, Polymorphism, Abstraction are the four pillars of OOPS
Encapsulation: Bundling data and methods that operate on the data into a single unit. Example: Class Car with properties like make, model, and methods like start(), stop().
Inheritance: Ability of a class to inherit properties and behavior from another class. Example: Class SUV inheriting from Class Car.
Polymorphism: Ability to present the same interface for different data types. Example: Method ...read more
Q5. How python differs from other languages
Python is a high-level, interpreted programming language known for its simplicity and readability.
Python uses indentation to define code blocks, making it easier to read and understand.
Python has a large standard library with built-in functions and modules for various tasks.
Python supports multiple programming paradigms, including procedural, object-oriented, and functional programming.
Python is dynamically typed, meaning variable types are determined at runtime.
Python is pop...read more
Q6. Write a code to get unique elements of an array
Code to get unique elements of an array of strings
Create a Set to store unique elements
Iterate through the array and add elements to the Set
Convert the Set back to an array to get unique elements
Q7. Suppose you want to add the link to your Linkedin account in a website, and you have to do it by clicking on the logo of linkedin in the website, then how can you do it? Which HTML tag is used to do it?
To add a link to your Linkedin account in a website by clicking on the logo, use the <a> tag with the href attribute set to your Linkedin profile URL.
Use the <a> tag with the href attribute set to your Linkedin profile URL
Insert the Linkedin logo image inside the <a> tag as the clickable element
Example: <a href='https://www.linkedin.com/in/yourprofile'><img src='linkedin_logo.png' alt='Linkedin'></a>
Q8. What is OOPS concept
OOPS (Object-Oriented Programming) is a programming paradigm based on the concept of objects, which can contain data and code.
OOPS focuses on creating objects that interact with each other to solve a problem
It involves concepts like classes, objects, inheritance, polymorphism, and encapsulation
Example: Inheritance allows a class to inherit properties and behavior from another class
Q9. if you are given a task and you have to decide which type of database will be best for this task, then how will you decide that?
The choice of database depends on factors like data structure, scalability, performance, and query requirements.
Consider the data structure and relationships between entities.
Evaluate the scalability requirements of the task.
Analyze the performance needs, including read and write operations.
Assess the query requirements, such as complex joins or aggregations.
Examples: relational databases for structured data, NoSQL for unstructured or rapidly changing data.
Q10. Given a string = "as145egs14ghs2ghe7896", add the numbers present in the string, the consecutive numbers should be taken as a complete one number. i.e. you have to print the result of 145+14+2+7896 = ?
The task is to add the consecutive numbers present in a given string.
Iterate through the string character by character
Check if the current character is a digit
If it is a digit, continue iterating until a non-digit character is encountered
Convert the consecutive digits into a number and add it to the sum
Repeat the process until all characters are processed
Return the sum
Q11. Data base management features
Database management features include data storage, retrieval, indexing, and security.
Data storage: ability to store large amounts of data efficiently
Data retrieval: ability to quickly access and retrieve specific data
Indexing: optimizing data retrieval by creating indexes on columns
Security: ensuring data is protected from unauthorized access
Q12. - What is JDBC in java? - What is JVM and the use of it? - We write "public static void main" in java.... will it work if we write "static public void main"? If yes, then why, what is the reason that it works?
JDBC is a Java API for connecting and executing queries on a database.
JDBC stands for Java Database Connectivity.
It provides a set of classes and interfaces to interact with databases.
JDBC allows developers to write database-independent code.
It supports various database operations like connecting, querying, updating, and deleting data.
JDBC drivers are used to establish a connection between Java application and database.
Example: Class.forName("com.mysql.jdbc.Driver");
Q13. Sorting An array
Sorting an array of strings
Use a sorting algorithm like quicksort or mergesort
Consider the length of the strings for comparison
Use a comparator function to define custom sorting criteria
Q14. One major difference between OOPs concept of C++ and OOPs concept of java
C++ supports multiple inheritance while Java supports single inheritance.
C++ allows a class to inherit from multiple classes, while Java only allows a class to inherit from a single class.
In C++, a class can have multiple parent classes, resulting in a complex class hierarchy.
Java enforces single inheritance to avoid the diamond problem and maintain simplicity.
For example, in C++, a class can inherit from both a 'Vehicle' class and a 'Animal' class, while in Java, it can only...read more
Q15. Difference between SQL based database and NoSQL based databases
SQL databases are structured and use a fixed schema, while NoSQL databases are unstructured and have a flexible schema.
SQL databases use structured query language for defining and manipulating the data.
NoSQL databases use various data models like key-value, document, columnar, or graph.
SQL databases are suitable for complex queries and transactions.
NoSQL databases are horizontally scalable and provide high performance for large datasets.
SQL databases ensure data integrity wit...read more
Q16. Examples of relational and non-relational databases
Relational databases store data in tables with predefined relationships. Non-relational databases store data in flexible, schema-less formats.
Relational databases: MySQL, Oracle, SQL Server
Non-relational databases: MongoDB, Cassandra, Redis
Relational databases use structured query language (SQL) for data manipulation
Non-relational databases provide high scalability and flexibility
Relational databases are suitable for complex, structured data
Non-relational databases are suitab...read more
Q17. What is OOP? Explain its five pillars.
OOP stands for Object-Oriented Programming. Its five pillars are encapsulation, inheritance, polymorphism, abstraction, and composition.
Encapsulation: Bundling data and methods that operate on the data into a single unit (object).
Inheritance: Creating new classes by inheriting attributes and methods from existing classes.
Polymorphism: Objects of different classes can be treated as objects of a common superclass.
Abstraction: Hiding complex implementation details and showing on...read more
Q18. Difference between div and span
div is a block-level element while span is an inline element in HTML.
div is used to group block-level elements and create sections on a webpage.
span is used to style inline elements or group text within a block-level element.
div elements create a line break before and after the element, while span does not.
Q19. SQL - Select query syntax and types of join
SQL select query syntax and types of join
SQL SELECT query syntax: SELECT column1, column2 FROM table_name WHERE condition
Types of joins: INNER JOIN, LEFT JOIN, RIGHT JOIN, FULL JOIN
Example: SELECT orders.order_id, customers.customer_name FROM orders INNER JOIN customers ON orders.customer_id = customers.customer_id
Q20. Types of databases
Types of databases include relational, NoSQL, object-oriented, and graph databases.
Relational databases store data in tables with predefined schemas, using SQL for querying (e.g. MySQL, Oracle)
NoSQL databases are schema-less and provide flexible data models (e.g. MongoDB, Cassandra)
Object-oriented databases store objects as they are, with support for inheritance and encapsulation (e.g. db4o)
Graph databases use nodes and edges to represent relationships between data (e.g. Neo4...read more
Q21. what is polymorphish
Polymorphish is a term used to describe the ability of a programming language to allow different data types to be used interchangeably.
Polymorphish allows for flexibility in coding by allowing variables to hold different types of data.
It is a key feature in object-oriented programming languages like Java and C++.
For example, a function can accept different types of parameters and return different types of values based on the input.
Q22. what is overriding
Overriding is a concept in object-oriented programming where a subclass provides a specific implementation of a method that is already provided by its superclass.
Overriding allows a subclass to provide a specific implementation of a method that is already defined in its superclass.
The method in the subclass must have the same name, return type, and parameters as the method in the superclass to override it.
Example: class Animal { void makeSound() { System.out.println('Animal s...read more
Q23. What is inherentance?
Inheritance is a concept in object-oriented programming where a class inherits attributes and methods from another class.
Allows a class to inherit properties and behaviors from another class
Promotes code reusability and reduces redundancy
Creates a parent-child relationship between classes
Derived class can access public and protected members of the base class
Example: Class 'Car' can inherit from class 'Vehicle' to reuse common attributes like 'color' and 'speed'
Q24. Duplicate in list
Find duplicates in a list of elements.
Iterate through the list and keep track of elements seen so far
If an element is already in the seen elements, it is a duplicate
Use a hash set to efficiently check for duplicates
Q25. Anagram in list
Check if any two strings in the list are anagrams of each other
Iterate through the list and for each string, sort the characters and check if it already exists in a hashmap
If it exists, then the current string is an anagram of the existing string
Return true if anagrams are found, false otherwise
Top HR Questions asked in Coditas Technologies for Freshers
Interview Process at Coditas Technologies for Freshers

Top Interview Questions from Similar Companies








Reviews
Interviews
Salaries
Users/Month

