Add office photos
Employer?
Claim Account for FREE

Virtusa Consulting Services

3.8
based on 4.8k Reviews
Filter interviews by

Elmack Engg Services Interview Questions and Answers

Updated 5 Feb 2024
Popular Designations

Q1. Rat in a Maze Problem Statement

You need to determine all possible paths for a rat starting at position (0, 0) in a square maze to reach its destination at (N-1, N-1). The maze is represented as an N*N matrix w...read more

Ans.

Find all possible paths for a rat in a maze from source to destination.

  • Use backtracking to explore all possible paths in the maze.

  • Keep track of visited cells to avoid revisiting them.

  • Explore all possible directions (up, down, left, right) from each cell.

  • Add the current direction to the path and recursively explore further.

  • If the destination is reached, add the path to the list of valid paths.

Add your answer

Q2. Paths in a Matrix Problem Statement

Given an 'M x N' matrix, print all the possible paths from the top-left corner to the bottom-right corner. You can only move either right (from (i,j) to (i,j+1)) or down (fro...read more

Ans.

Print all possible paths from top-left to bottom-right in a matrix by moving only right or down.

  • Use backtracking to explore all possible paths from top-left to bottom-right in the matrix.

  • At each cell, recursively explore moving right and down until reaching the bottom-right corner.

  • Keep track of the current path and add it to the result when reaching the destination.

Add your answer
Q3. Can you create 2 tables in SQL and perform different operations on them?
Ans.

Yes, I can create 2 tables in SQL and perform operations like INSERT, SELECT, UPDATE, and DELETE.

  • Create Table 1: CREATE TABLE employees (id INT, name VARCHAR(50), salary DECIMAL(10,2));

  • Create Table 2: CREATE TABLE departments (dept_id INT, dept_name VARCHAR(50));

  • Insert Data: INSERT INTO employees VALUES (1, 'John Doe', 50000);

  • Select Data: SELECT * FROM employees WHERE salary > 40000;

  • Update Data: UPDATE employees SET salary = 55000 WHERE id = 1;

  • Delete Data: DELETE FROM employe...read more

Add your answer

Q4. sql command for inserting details in table,changing them and deleting specifics ones

Ans.

SQL commands for inserting, updating, and deleting data from a table.

  • INSERT INTO table_name (column1, column2, column3) VALUES (value1, value2, value3);

  • UPDATE table_name SET column1 = new_value1 WHERE condition;

  • DELETE FROM table_name WHERE condition;

Add your answer
Discover Elmack Engg Services interview dos and don'ts from real experiences

Q5. sql command for creating a table

Ans.

SQL command for creating a table

  • Use CREATE TABLE statement

  • Specify table name and column names with data types

  • Add any constraints or indexes as needed

View 1 answer

Q6. difference between truncate and drop

Ans.

Truncate and drop are SQL commands used to remove data from a table.

  • Truncate removes all data from a table but keeps the structure intact.

  • Drop removes the entire table and its structure.

  • Truncate is faster than drop as it only removes data.

  • Drop cannot be undone while truncate can be rolled back.

  • Truncate resets the identity of the table while drop does not.

  • Examples: TRUNCATE TABLE table_name; DROP TABLE table_name;

Add your answer

Q7. difference between c and c++

Ans.

C++ is an extension of C with object-oriented programming features.

  • C++ supports classes and objects while C does not.

  • C++ has better support for polymorphism and inheritance.

  • C++ has a standard template library (STL) while C does not.

  • C++ allows function overloading while C does not.

  • C++ has exception handling while C does not.

Add your answer

Q8. What is polymorphism,buzz words of java

Ans.

Polymorphism is the ability of an object to take on many forms.

  • Polymorphism allows objects of different classes to be treated as if they are of the same class.

  • It is achieved through method overloading and method overriding.

  • Example: A parent class Animal can have child classes like Dog, Cat, and Bird. Each child class can have its own implementation of the method 'makeSound', but they can all be called using the same method name from the parent class.

  • Java buzzwords related to ...read more

Add your answer

Q9. Difference between html and html5

Ans.

HTML is the standard markup language for creating web pages, while HTML5 is the latest version with new features and improvements.

  • HTML is older and has limited functionality compared to HTML5

  • HTML5 supports new elements like <video>, <audio>, and <canvas>

  • HTML5 has improved support for multimedia and mobile devices

  • HTML5 includes new APIs like Geolocation, Web Storage, and Web Workers

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Elmack Engg Services

based on 3 interviews
2 Interview rounds
Resume Shortlist Round
Aptitude Test Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Developer Interview Questions from Similar Companies

3.8
 • 107 Interview Questions
3.8
 • 71 Interview Questions
4.1
 • 31 Interview Questions
3.7
 • 15 Interview Questions
3.6
 • 12 Interview Questions
3.7
 • 11 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
75 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter