Coditas Technologies
Sedemac Mechatronics Interview Questions and Answers
Q1. 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>
Q2. 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.
Q3. 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
Q4. - 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");
Q5. 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
Q6. 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
Q7. 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
Q8. 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.
Q9. 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
Top Software Developer Intern Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month