Resilience InfoTech
Star Hospitals Interview Questions and Answers
Q1. What is the advantage of inner html on javascript
Inner HTML allows dynamic manipulation of HTML content using JavaScript.
Inner HTML can be used to add, remove or modify HTML elements on a webpage.
It provides a simple and efficient way to update the content of a webpage without reloading the entire page.
Inner HTML can also be used to create dynamic user interfaces and interactive web applications.
However, it is important to sanitize user input to prevent security vulnerabilities such as cross-site scripting (XSS) attacks.
Q2. What are the datatypes in JavaScript
JavaScript has 7 primitive datatypes and 1 complex datatype
Primitive datatypes: string, number, boolean, null, undefined, symbol, bigint
Complex datatype: object
Example: var name = 'John'; var age = 25; var isStudent = true; var person = {name: 'John', age: 25};
Q3. What is the use of object in JavaScript
Objects in JavaScript are used to store and manipulate data as key-value pairs.
Objects can be created using object literals or the Object constructor.
Properties and methods can be added to objects using dot notation or bracket notation.
Objects can be used to represent real-world entities or abstract concepts.
Objects can be passed as arguments to functions or returned as values from functions.
Q4. Difference between asp and asp.net
ASP is a scripting language while ASP.NET is a web application framework.
ASP is interpreted while ASP.NET is compiled
ASP uses VBScript or JScript while ASP.NET uses C# or VB.NET
ASP is outdated while ASP.NET is the current technology
ASP.NET has better performance and security features than ASP
Q5. What is boxing and unboxing
Boxing is the process of converting a value type to a reference type, while unboxing is the opposite.
Boxing is used to store value types in the heap memory
Unboxing is used to retrieve the value type from the heap memory
Boxing and unboxing can impact performance and should be used carefully
Example: int i = 10; object obj = i; //boxing, int j = (int)obj; //unboxing
Q6. Difference between delete and truncate
Delete removes specific rows while truncate removes all rows from a table.
Delete is a DML command while truncate is a DDL command.
Delete is slower than truncate as it logs each row deletion while truncate only logs the deallocation of data pages.
Delete can be rolled back while truncate cannot be rolled back.
Delete can have a WHERE clause to specify which rows to delete while truncate removes all rows.
Delete does not reset the identity of the table while truncate resets the id...read more
Q7. What is cache
Cache is a temporary storage area that stores frequently accessed data for quick access.
Cache is used to improve the performance of a system by reducing the time it takes to access data.
It can be implemented in hardware or software.
Examples of cache include browser cache, CPU cache, and disk cache.
Cache can be volatile or non-volatile, depending on whether the data is lost when the system is powered off.
Cache can also be divided into levels, with each level having a different...read more
Top Associate Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month