Full Creative
20+ Sriram Associates Interview Questions and Answers
Q1. What is a linkedlist and its pros ?
A linked list is a linear data structure where each element is a separate object with a pointer to the next element.
Linkedlist allows for efficient insertion and deletion of elements
It can be used to implement stacks, queues, and graphs
Traversal is slower compared to arrays
Examples include singly linked list, doubly linked list, and circular linked list
Q2. What is Hoisting? What is closure?
Hoisting is a JavaScript mechanism where variables and function declarations are moved to the top of their scope.
Hoisting applies to variable declarations and function declarations
Variables are initialized with undefined and functions are fully defined
Hoisting only moves the declarations, not the assignments
Example: console.log(x); var x = 5; // Output: undefined
Closure is a function that has access to its outer function's variables, even after the outer function has returned...read more
Q3. What is this in javascript ?
This could refer to anything in javascript, please provide more context.
Please provide more context for a specific answer.
It could be a variable, function, object, or any other javascript construct.
Without more information, it is impossible to provide a specific answer.
Q4. What is box model? Center the input tag?
Box model is a way of representing HTML elements as rectangular boxes with content, padding, border, and margin.
The box model consists of content, padding, border, and margin.
Content is the actual content of the element.
Padding is the space between the content and the border.
Border is the line that surrounds the padding and content.
Margin is the space between the border and other elements.
To center an input tag, set margin-left and margin-right to auto and display to block.
Q5. What is useState in react?
useState is a hook in React that allows functional components to have state variables.
useState is a built-in hook in React.
It allows functional components to have state variables.
It takes an initial state value and returns an array with the current state value and a function to update it.
The state can be updated using the function returned by useState.
Example: const [count, setCount] = useState(0);
Q6. What is temporal deadzone ?
Temporal dead zone is a behavior in JavaScript where a variable cannot be accessed before it is declared.
Variables declared with let and const are hoisted but cannot be accessed before their declaration
Trying to access a variable in its temporal dead zone results in a ReferenceError
Temporal dead zone is a feature introduced in ES6 to improve JavaScript's scoping mechanism
Q7. Data Types In Javascript
Data types in JavaScript include primitive and object types.
Primitive types include string, number, boolean, null, undefined, and symbol.
Object types include arrays, functions, and objects.
Typeof operator can be used to determine the type of a variable.
Type coercion can occur when different types are used together.
Q8. 4. How can u select a box using selenium?
To select a box using Selenium, we can use the findElement() method with appropriate locator strategies.
Identify the element using a unique locator such as ID, name, class name, etc.
Use the findElement() method to locate the element on the web page.
Perform actions on the element using various methods such as click(), sendKeys(), etc.
Example: WebElement checkbox = driver.findElement(By.id("checkbox_id")); checkbox.click();
Q9. Difference between Javascript and Java
Javascript is a scripting language used for web development, while Java is a general-purpose programming language.
Javascript is interpreted, while Java is compiled
Javascript is used for client-side scripting, while Java is used for server-side programming
Javascript is loosely typed, while Java is strongly typed
Javascript has a prototype-based object model, while Java has a class-based object model
Q10. What is React Vdom ?
React Vdom is a virtual representation of the actual DOM used by React to optimize rendering performance.
Vdom is a lightweight copy of the actual DOM tree.
React compares the previous and current Vdom trees to determine the minimum number of changes required to update the actual DOM.
This approach reduces the number of DOM manipulations and improves performance.
Vdom can be created using React.createElement() or JSX syntax.
Q11. 2. Write test cases for login functionality except 4 correct and incorrect password and username
Test cases for login functionality excluding correct and incorrect username and password.
Test for login with blank username and password fields
Test for login with valid username and blank password field
Test for login with blank username and valid password field
Test for login with invalid username and valid password field
Test for login with valid username and invalid password field
Test for login with special characters in username and password fields
Test for login with long us...read more
Q12. Difference between client service and customer service?
Client service is for businesses while customer service is for individuals.
Client service is focused on building and maintaining relationships with businesses that use the company's products or services.
Customer service is focused on providing support and assistance to individual customers who have purchased the company's products or services.
Client service often involves more personalized attention and may include things like account management and strategic planning.
Custome...read more
Q13. 1. What are the locators in selenium?
Locators in Selenium are used to identify web elements on a web page.
Locators are used to find web elements based on their attributes like ID, class, name, etc.
Some commonly used locators in Selenium are ID, Name, Class Name, Tag Name, Link Text, and Partial Link Text.
For example, driver.findElement(By.id("username")) will find the element with ID attribute as "username".
Q14. what is the difference between frontend and backend?
Frontend is the client-side of an application that users interact with, while backend is the server-side that manages data and logic.
Frontend is responsible for the user interface and user experience.
Backend is responsible for server-side logic, database operations, and authentication.
Frontend technologies include HTML, CSS, and JavaScript, while backend technologies include Node.js, Python, and Java.
Examples of frontend frameworks are React, Angular, and Vue, while examples ...read more
Q15. 3. What is assertion in selenium?
Assertion in Selenium is a command that verifies if the expected result matches the actual result of a test step.
Assertions are used to validate the behavior of a web application under test.
They help in identifying defects early in the development cycle.
Selenium provides various assertion methods like assertEquals, assertTrue, assertFalse, etc.
If the assertion fails, the test case is marked as failed and the execution stops.
Assertions can be used in combination with condition...read more
Q16. what is software development life cycle?
Software development life cycle is a process used by software developers to design, develop, test, and deploy software applications.
It consists of several phases such as planning, analysis, design, implementation, testing, and maintenance.
Each phase has its own set of activities and deliverables.
Examples of software development life cycle models include Waterfall, Agile, and DevOps.
Q17. What are the data types available in java
Java supports various data types including primitive and reference types.
Primitive data types: int, double, char, boolean, etc.
Reference data types: String, Arrays, Classes, Interfaces, etc.
Examples: int num = 10; String name = "John"; char grade = 'A';
Q18. Remove duplicates without using inbuilt methods
Removing duplicates without using inbuilt methods in JavaScript
Create an empty array to store unique values
Loop through the original array
Check if the current element exists in the unique array
If not, push it to the unique array
Return the unique array
Q19. Tell me about oops concepts
OOPs concepts are the fundamental principles of object-oriented programming.
Encapsulation - binding data and functions together
Inheritance - acquiring properties and behavior of parent class
Polymorphism - ability to take multiple forms
Abstraction - hiding implementation details
Example: A car is an object that encapsulates data like speed and functions like accelerate and brake
Example: A child class inherits properties and behavior from a parent class
Example: A function can ta...read more
Q20. Program to sort numbers
A program to sort numbers in an array
Use a sorting algorithm like bubble sort, selection sort, or quicksort
Iterate through the array and compare each element to sort them
Ensure the program handles edge cases like empty arrays or arrays with only one element
Q21. Program on inheritance
Inheritance in programming allows a class to inherit properties and behaviors from another class.
Inheritance promotes code reusability by allowing a new class to use the properties and methods of an existing class.
The class that is being inherited from is called the superclass or parent class, while the class that inherits is called the subclass or child class.
Subclasses can add their own unique properties and methods, as well as override inherited methods.
Example: class Dog ...read more
More about working at Full Creative
Top HR Questions asked in Sriram Associates
Interview Process at Sriram Associates
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month