Virtusa Consulting Services
50+ Ibase IT Interview Questions and Answers
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
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.
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
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.
Q3. What init used in python Sudo program on ascending order of list items as given
The init used in Python is __init__ which is a constructor method for initializing objects.
The __init__ method is called automatically when an object is created.
It takes self as the first parameter and can take additional parameters for initialization.
Example: class Car: def __init__(self, make, model): self.make = make self.model = model
In the above example, the __init__ method initializes the make and model attributes of the Car object.
Q4. what are oops concept what is encapsulation what is dbms
OOPs concepts are principles in object-oriented programming, encapsulation is the bundling of data and methods within a class, and DBMS stands for Database Management System.
OOPs concepts include inheritance, polymorphism, encapsulation, and abstraction
Encapsulation is the concept of bundling data and methods that operate on the data within a single unit, such as a class
DBMS is a software system that manages databases, allowing users to interact with the data stored in them
Ex...read more
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
Q6. Different between if loop and while loop Types of pointers
If loop is used for conditional execution while while loop is used for repetitive execution.
If loop executes the code block only if the condition is true, while loop executes the code block repeatedly until the condition becomes false.
If loop is used when the number of iterations is known, while loop is used when the number of iterations is unknown.
Example of if loop: if(x > 0) { //code block }
Example of while loop: while(x > 0) { //code block }
Q7. sql command for inserting details in table,changing them and deleting specifics ones
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;
Q8. sql command for creating a table
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
Q9. How to find a prime number?
A prime number is a number greater than 1 that is divisible only by 1 and itself.
Start by checking if the number is divisible by any number less than itself.
If it is divisible by any number other than 1 and itself, it is not prime.
Use a loop to iterate through numbers from 2 to the square root of the number being checked.
If the number is divisible by any of these numbers, it is not prime.
If the number is not divisible by any of these numbers, it is prime.
Q10. How to reverse a string?
To reverse a string, iterate through the characters of the string and swap the first character with the last, the second character with the second-to-last, and so on.
Iterate through the characters of the string using a loop
Swap the characters at the corresponding positions using a temporary variable
Continue swapping until the middle of the string is reached
Q11. Explain object oriented programming?
Object-oriented programming is a programming paradigm that organizes code into objects, which are instances of classes.
Encourages modular and reusable code
Focuses on data and behavior encapsulation
Supports inheritance and polymorphism
Promotes code organization and maintainability
Examples: Java, C++, Python
Q12. Difference between partial and render partial in MVC?
Partial is used to render a specific portion of a view, while render partial is used to render a partial view within another view in MVC.
Partial is used to render a specific portion of a view in MVC.
Render partial is used to render a partial view within another view in MVC.
Partial can be used to render a reusable piece of code in multiple views.
Render partial is useful for rendering common elements like headers or footers in multiple views.
Example: <%= render partial: 'header...read more
Q13. difference between truncate and drop
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;
Q14. difference between c and c++
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.
Q15. Anagram Pairs Verification Problem
Your task is to determine if two given strings are anagrams of each other. Two strings are considered anagrams if you can rearrange the letters of one string to form the other...read more
Determine if two strings are anagrams of each other by checking if they contain the same characters.
Create character frequency maps for both strings
Compare the frequency of characters in both maps to check if they are anagrams
Return True if the frequencies match, False otherwise
Q16. Queue Using Stacks Implementation
Design a queue data structure following the FIFO (First In First Out) principle using only stack instances.
Explanation:
Your task is to complete predefined functions to suppor...read more
Implement a queue using stacks following FIFO principle.
Use two stacks to simulate a queue - one for enqueue and one for dequeue operations.
For enQueue operation, push elements onto the enqueue stack.
For deQueue operation, if the dequeue stack is empty, pop all elements from enqueue stack to dequeue stack.
For peek operation, return the top element of the dequeue stack.
For isEmpty operation, check if both stacks are empty.
Example: enQueue(5), enQueue(10), peek() -> 5, deQueue(...read more
Q17. Minimum Number of Swaps to Sort an Array
Find the minimum number of swaps required to sort a given array of distinct elements in ascending order.
Input:
T (number of test cases)
For each test case:
N (size of the...read more
The minimum number of swaps required to sort a given array of distinct elements in ascending order.
Use a hashmap to store the original indices of the elements in the array.
Iterate through the array and swap elements to their correct positions.
Count the number of swaps needed to sort the array.
Q18. What is polymorphism,buzz words of java
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
Q19. What do you mean flexible?
Flexible means adaptable to change or able to be modified easily.
Being able to adjust to new requirements or situations
Having the ability to change or modify code without breaking it
Being open to feedback and willing to make changes
Allowing for customization or configuration options
Examples: using variables instead of hardcoding values, implementing a plugin system
Q20. Validation technique in MVC?
Validation in MVC ensures data entered by user meets specified criteria before processing.
Validation can be done using data annotations in model classes.
Validation can also be performed using ModelState.IsValid in controller actions.
Client-side validation can be implemented using JavaScript libraries like jQuery Validate.
Account Statements Transcription is a full stack application for converting Excel sheets to SQL tables, fetching data in UI, and allowing downloads in various formats.
Create a front-end interface for users to upload Excel sheets
Develop a back-end system to convert Excel data into SQL tables
Implement a query system to fetch data based on user needs in the UI
Provide options for users to download data in Excel or Word formats
Q22. Difference between html and html5
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
Prisoners must devise a strategy to guess the color of their own hat based on the hats of others.
Prisoners can agree on a strategy before the hats are assigned.
One strategy is for each prisoner to count the number of hats of a certain color and use that information to guess their own hat color.
Another strategy involves using parity to determine the color of their own hat.
Prisoners can also use a signaling system to convey information about their hat color to others.
Q24. coding question to remove duplicate , count frequencies of occurrence of characters
Remove duplicates and count frequencies of characters in an array of strings.
Iterate through each string in the array
Use a hashmap to store characters and their frequencies
Remove duplicates by checking if character already exists in hashmap
Q25. From JAVA:- what is interface? What is collection in java? What is jdk, jre, and jvm? The interviewer wrote some code snippets in chat window and asked me for the output.
Q26. what is access specifiers define access specifers
Access specifiers define the level of access to classes, methods, and variables in object-oriented programming.
Access specifiers include public, private, protected, and default.
Public access specifier allows access from any other class.
Private access specifier restricts access to only within the same class.
Protected access specifier allows access within the same package and subclasses.
Default access specifier (no keyword) restricts access to only within the same package.
Q27. What is Java OOP's concept
Java OOP's concept is a programming paradigm that uses objects to design applications and programs.
Java OOP's concept is based on four main principles: 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 to take on multiple forms or behaviors.
Abstraction is the pr...read more
Q28. What are decorators in Python What is the use of __name == __main__ Django related questions
Decorators in Python are functions that modify the behavior of other functions or methods. __name__ == __main__ is used to check if a Python script is being run directly or imported as a module.
Decorators are used to add functionality to existing functions without modifying their code.
They are defined using the @decorator syntax before the function definition.
Example: @staticmethod decorator in Python is used to define a method that doesn't access or modify class or instance ...read more
Q29. Data Structure:- What is linked list and queue? What is Stack and Heap?
Q30. OOPS:-define OOPS? What are the features of OOPS? What are the types of inheritance? What is method overloading and overriding?
Q31. Explain Marker Interface.
Marker interface is an empty interface used to mark classes for special treatment.
Marker interface has no methods or fields.
It is used to provide metadata to the JVM or other tools.
Examples include Serializable interface in Java.
Q32. Explain OOPs concepts.
OOPs concepts are the principles of Object-Oriented Programming, including encapsulation, inheritance, polymorphism, and abstraction.
Encapsulation: Bundling data and methods that operate on the data into a single unit (object).
Inheritance: Allowing a class to inherit properties and behavior from another class.
Polymorphism: The ability for objects of different classes to respond to the same method call.
Abstraction: Hiding the complex implementation details and showing only the...read more
Q33. Explain synchronization.
Synchronization is the coordination of multiple processes or threads to ensure they access shared resources in a controlled manner.
Synchronization is important in multi-threaded programming to prevent race conditions and ensure data consistency.
Common synchronization mechanisms include locks, semaphores, and monitors.
For example, using a mutex lock to protect a critical section of code from being accessed by multiple threads simultaneously.
Q34. Explain Normalization.
Normalization is the process of organizing data in a database to reduce redundancy and improve data integrity.
Normalization is used to eliminate data redundancy by breaking up tables into smaller, related tables.
It helps in reducing data anomalies such as update, insert, and delete anomalies.
Normalization is achieved through a series of stages called normal forms, such as 1NF, 2NF, 3NF, and BCNF.
For example, in a database of students and courses, instead of storing student de...read more
Q35. Explain Array and ArrayList
Array is a fixed-size collection of elements of the same data type, while ArrayList is a dynamic-size collection of objects.
Array is a static data structure with a fixed size, while ArrayList is a dynamic data structure that can grow or shrink in size.
Arrays can only store elements of the same data type, while ArrayList can store objects of different data types.
Arrays are accessed using index positions, while ArrayList provides methods for adding, removing, and accessing elem...read more
Q36. real time examples of object and class
Objects are instances of classes in object-oriented programming. Classes define the properties and behaviors of objects.
An example of a class is 'Car', which defines properties like color, make, and model, and behaviors like drive and stop.
An object of the class 'Car' could be 'myCar' with properties 'red', 'Toyota', 'Camry' and behaviors 'drive()' and 'stop()'.
Q37. Which in most efficient sorting algorithm amd why and what is it's time complexity.
The most efficient sorting algorithm is Quick Sort due to its average time complexity of O(n log n).
Quick Sort is efficient due to its divide and conquer approach.
It has an average time complexity of O(n log n) and a worst-case time complexity of O(n^2).
Example: Sorting an array of integers using Quick Sort.
Q38. From DBMS:- What is joins? What are the types of join? He wrote a table on the chat window and asked me to find the left outer join.
Q39. difference b/w java and c++
Java is platform-independent, object-oriented, and uses automatic memory management, while C++ is platform-dependent, supports multiple paradigms, and requires manual memory management.
Java is platform-independent, while C++ is platform-dependent.
Java is object-oriented, while C++ supports multiple paradigms.
Java uses automatic memory management (garbage collection), while C++ requires manual memory management.
Java has a simpler syntax compared to C++.
Java has a larger standa...read more
Q40. comfortable with night shights
Yes, I am comfortable with night shifts as I have previous experience working during those hours.
Have previous experience working night shifts
Understand the importance of maintaining focus and attention during non-traditional work hours
Able to adjust sleep schedule accordingly to ensure optimal performance during night shifts
Q41. What is OOPS and explain all with their examples
OOPS stands for Object-Oriented Programming. It 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
Key principles of OOPS include encapsulation, inheritance, polymorphism, and abstraction
Encapsulation: bundling data and methods that operate on the data into a single unit
Inheritance: allows a class to inherit properties and behavior from another class
Polymor...read more
Q42. What are object oriented programming language and all..?
Object-oriented programming languages are based on the concept of objects, which can contain data in the form of fields and code in the form of procedures.
Objects are instances of classes, which define the structure and behavior of the objects.
Encapsulation is a key feature, where data is hidden within objects and can only be accessed through methods.
Inheritance allows classes to inherit attributes and methods from other classes.
Polymorphism enables objects to be treated as i...read more
Q43. What factors to consider for Data Arachitecting
Q44. What are various Data modeling approaches
Q45. Explain encapsulation and abstraction
Encapsulation is the process of hiding implementation details while abstraction is the process of hiding unnecessary details.
Encapsulation is achieved through access modifiers like public, private, and protected.
Abstraction is achieved through abstract classes and interfaces.
Encapsulation protects the data from outside interference while abstraction focuses on the essential features of an object.
Example of encapsulation: A class with private variables and public methods to ac...read more
Q46. What factors to consider for Designing Data Model
Q47. Write code for reversing array
Code to reverse an array of strings
Use a loop to iterate through half of the array and swap elements at opposite ends
Create a temporary variable to hold one element during swapping
Ensure to handle odd length arrays by not swapping the middle element
Q48. Explained companies policies
Company policies outline rules and guidelines for employees to follow.
Company policies cover areas such as dress code, attendance, code of conduct, and benefits.
Examples of company policies include a policy on remote work, a policy on social media usage, and a policy on harassment.
Employees are expected to adhere to company policies to maintain a positive work environment and ensure compliance with legal regulations.
Q49. How to handle browser history
Browser history can be handled by clearing cache, cookies, and browsing data regularly.
Regularly clear cache, cookies, and browsing history to improve browser performance
Use incognito mode for private browsing to prevent history from being saved
Disable browser history tracking if needed for privacy reasons
Q50. Whatis an array
An array is a data structure that stores a collection of elements of the same type in a contiguous memory location.
Arrays have a fixed size determined at the time of declaration.
Elements in an array are accessed using an index starting from 0.
Example: string[] names = {"Alice", "Bob", "Charlie"};
Q51. Explain Code for sorting
Sorting code arranges elements in a specific order.
Choose a sorting algorithm based on the requirements
Iterate through the array and compare adjacent elements
Swap the elements if they are not in the desired order
Repeat until the array is sorted
Q52. Parallel test in cucumber
Parallel test execution in Cucumber allows running multiple test scenarios simultaneously for faster results.
Use tools like TestNG or JUnit to run Cucumber tests in parallel
Configure the test runner to specify the number of threads to use for parallel execution
Ensure that the tests are independent and do not interfere with each other
Consider using a parallel plugin like Cucumber-JVM-Parallel to manage parallel execution
Q53. Expected ctc as per cc
Expected CTC should be as per company policy and industry standards.
Expected CTC should be based on the candidate's experience, skills, and the job role.
Research industry standards and company policies to determine a reasonable expected CTC.
Consider factors such as location, company size, and benefits package when determining expected CTC.
More about working at Virtusa Consulting Services
Top HR Questions asked in Ibase IT
Interview Process at Ibase IT
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month