Tech Vedika
10+ echoVME Interview Questions and Answers
You are given an infinite supply of coins of each of denominations D = {D0, D1, D2, D3, ...... Dn-1}. You need to figure out the total number of ways W, in which you can make a change fo...read more
You are given an array consisting of 'N' elements and you need to perform 'Q' queries on the given array. Each query consists of an integer which tells the number of elements by which...read more
Q3. What is an object in java ?
An object in Java is an instance of a class that encapsulates data and behavior.
Objects have state and behavior
They are created from classes
They can be used to represent real-world entities or concepts
Objects can interact with each other through method calls
Given a string (STR) of length N, you have to create a new string by performing the following operation:
Take the smallest character from the first 'K' characters of STR, remove it from STR...read more
Given an array/list of integer numbers 'CHOCOLATES' of size 'N', where each value of the array/list represents the number of chocolates in the packet. There are ‘M’ number of students and the t...read more
Q6. Creating multiple methods in a class with a same name and different arguments. The argument must be different type and length
Method overloading allows creating multiple methods with the same name but different arguments.
Method signature must differ in number, type, or order of parameters
Return type can be different but not the only difference
Example: public void print(int num), public void print(String str), public void print(int[] arr)
Overloading improves code readability and reusability
Q7. What is Type casting in java ?
Type casting in Java is the process of converting one data type into another.
Type casting can be done implicitly or explicitly.
Implicit type casting is done automatically by the compiler when there is no loss of data.
Explicit type casting is done manually by the programmer when there is a possibility of data loss.
Type casting is useful when we want to use a variable of one data type in an expression or assignment of another data type.
Example: int num = 10; double decimalNum =...read more
Q8. reverse the words in string. 1st word will be coming last and last to the first.with out using builtin functions
Reverse the words in a string without using built-in functions.
Split the string into an array of words using a space as the delimiter.
Create a new array and iterate over the words array in reverse order, adding each word to the new array.
Join the new array of words back into a single string with spaces between each word.
Q9. What is method overloading?
Method overloading is when multiple methods have the same name but different parameters.
Method overloading allows for more flexibility in method calls.
The methods must have different parameters, such as different data types or different numbers of parameters.
Example: public void print(int num) and public void print(String str)
Overloading constructors is also common in Java.
Q10. What is inheritance in java?
Inheritance in Java allows a class to inherit properties and methods from another class.
Inheritance is achieved using the 'extends' keyword.
The class that is being inherited from is called the superclass or parent class.
The class that inherits from the superclass is called the subclass or child class.
Subclasses can access the public and protected members of the superclass.
Inheritance promotes code reusability and allows for the creation of hierarchical relationships.
Q11. how do you write post querry in restassured
To write a post query in RestAssured, use the given() method to set request parameters and body, then use the post() method to send the request.
Use given() method to set request parameters and body
Use post() method to send the request
Example: given().param("key", "value").body("{\"name\": \"John\"}").post("/endpoint")
Q12. difference between path and querry params
Path params are part of the URL path, while query params are appended to the URL after a '?'
Path params are used to identify a specific resource in the URL path, while query params are used to filter or sort the results
Path params are defined in the URL path itself, like /users/{id}, while query params are added after a '?' like /users?role=admin
Path params are typically used for required parameters, while query params are used for optional parameters
Example: Path param - /us...read more
Basic questions on java script were asked
Q14. types of parameters in the api testing
Parameters in API testing include path parameters, query parameters, header parameters, and body parameters.
Path parameters are used to identify a specific resource in the URL path, e.g. /users/{id}
Query parameters are used for filtering or sorting data, e.g. /users?status=active
Header parameters contain additional information for the request, e.g. Content-Type: application/json
Body parameters are used to send data in the request body, e.g. {"name": "John", "age": 30}
Q15. Candidate with majority votes program
A program that determines the candidate with the highest number of votes.
The program should take in the number of candidates and their respective vote counts.
It should then compare the vote counts and determine the candidate with the highest number of votes.
The program should output the name of the candidate with the highest number of votes.
More about working at Tech Vedika
Interview Process at echoVME
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month