Associate IT Consultant 2

Associate IT Consultant 2 Interview Questions and Answers

Updated 21 Oct 2024

Q1. How memory is allocated in javascript

Ans.

Memory in JavaScript is allocated dynamically using the heap and stack. Variables are stored in the stack, while objects are stored in the heap.

  • Memory is allocated dynamically in JavaScript using the heap and stack.

  • Primitive data types like numbers and strings are stored in the stack.

  • Objects and arrays are stored in the heap.

  • Memory is automatically managed by the JavaScript engine through garbage collection.

Q2. difference between horizontal and vertical Scaling

Ans.

Horizontal scaling involves adding more machines to your network, while vertical scaling involves adding more power to an existing machine.

  • Horizontal scaling increases the number of machines in the network to distribute the load, while vertical scaling increases the power of a single machine.

  • Horizontal scaling is more cost-effective and easier to implement than vertical scaling.

  • Examples of horizontal scaling include adding more servers to a web application to handle increased...read more

Associate IT Consultant 2 Interview Questions and Answers for Freshers

illustration image

Q3. Logic to find reverse of a number

Ans.

To find the reverse of a number, we can use a loop to extract the digits and build the reversed number.

  • Initialize a variable to store the reversed number

  • Extract the last digit of the input number using modulo operator

  • Add the extracted digit to the reversed number after multiplying it by 10

  • Remove the last digit from the input number by dividing it by 10

  • Repeat the process until the input number becomes 0

  • The final reversed number will be the result

Associate IT Consultant 2 Jobs

0
Are these interview questions helpful?
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Interview experiences of popular companies

3.8
 • 325 Interviews
View all

Calculate your in-hand salary

Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary

Associate IT Consultant 2 Interview Questions
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
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

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