Associate Software Engineer Trainee

Associate Software Engineer Trainee Interview Questions and Answers for Freshers

Updated 3 Sep 2023

Q1. 3) What are call by reference and call by value?

Ans.

Call by reference and call by value are two ways of passing arguments to a function.

  • Call by value passes a copy of the argument to the function, while call by reference passes a reference to the original argument.

  • In call by value, changes made to the argument inside the function do not affect the original value, while in call by reference, changes made to the argument inside the function affect the original value.

  • Call by value is used for simple data types like integers and f...read more

Q2. leetcode problem last-stone-weight, changed stones to monsters and weights to powers

Ans.

Simulate smashing monsters with powers until only one remains.

  • Create a max heap to store the powers of monsters.

  • Repeatedly smash the two monsters with the highest powers until only one remains.

  • Return the power of the last remaining monster.

Q3. 4) How do you delete file in python?

Ans.

To delete a file in Python, use the os.remove() method.

  • Import the os module

  • Use os.remove() method to delete the file

  • Specify the file path as the argument to os.remove() method

Q4. 2) What are Pointers?

Ans.

Pointers are variables that store memory addresses of other variables.

  • Pointers allow direct access to memory locations.

  • They can be used to pass values between functions.

  • Pointers can be used to create dynamic data structures.

  • Example: int *ptr; ptr = # *ptr = 10;

  • Example: void swap(int *a, int *b) { int temp = *a; *a = *b; *b = temp; }

Are these interview questions helpful?

Q5. 1) What are Arrays?

Ans.

Arrays are a collection of similar data types stored in contiguous memory locations.

  • Arrays can be of any data type, including integers, floats, characters, and objects.

  • Arrays are accessed using an index starting from 0.

  • Arrays can be one-dimensional, two-dimensional, or multi-dimensional.

  • Example: int arr[5] = {1, 2, 3, 4, 5};

  • Example: char str[6] = {'H', 'e', 'l', 'l', 'o', '\0'};

Q6. Process vs Thread

Ans.

Processes are independent instances of a program, while threads are smaller units within a process that can run concurrently.

  • Processes have their own memory space, while threads share memory within a process.

  • Processes are heavyweight, while threads are lightweight.

  • Processes communicate with each other through inter-process communication mechanisms, while threads can communicate directly.

  • Example: A web browser running multiple tabs is a process, and each tab running JavaScript...read more

Share interview questions and help millions of jobseekers 🌟

man-with-laptop

Associate Software Engineer Trainee Jobs

Associate Software Engineer Trainee 0-1 years
JungleWorks
3.3
Nagaur
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Interview experiences of popular companies

3.7
 • 10.4k Interviews
3.6
 • 7.5k Interviews
3.8
 • 79 Interviews
3.3
 • 25 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 Software Engineer Trainee 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

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