Associate Technology Trainee

Associate Technology Trainee Interview Questions and Answers

Updated 8 Sep 2015

Q1. What is the difference between Function definition and declaration

Ans.

Function definition specifies the implementation of a function, while declaration provides the function signature.

  • Function definition includes the function body, while declaration only includes the function signature.

  • Function definition is used to define the behavior of a function, while declaration is used to announce the existence of a function.

  • Function definition can only appear once in a program, while declaration can appear multiple times.

  • Example of function definition: ...read more

Q2. How to swap numbers without using temporary variable

Ans.

Swapping numbers without using a temporary variable

  • Use addition and subtraction to swap the numbers

  • Example: a = 5, b = 10. a = a + b (15), b = a - b (5), a = a - b (10)

  • Alternatively, use bitwise XOR operation to swap the numbers

  • Example: a = 5, b = 10. a = a ^ b (15), b = a ^ b (5), a = a ^ b (10)

Q3. Write a programme for Fibonacci series, length of string

Ans.

This program generates a Fibonacci series up to a given length.

  • Use an array to store the Fibonacci series

  • Initialize the first two elements of the array as 0 and 1

  • Use a loop to generate the subsequent elements of the series

  • Stop the loop when the desired length is reached

Q4. What are data types and pointers

Ans.

Data types are classifications of data that determine the type of values that can be stored and manipulated. Pointers are variables that store memory addresses.

  • Data types include integers, floating-point numbers, characters, and booleans.

  • Pointers are used to store memory addresses of variables or objects.

  • Example: int num = 10; int *ptr = # // ptr stores the memory address of num

Are these interview questions helpful?

Q5. What is an array

Ans.

An array is a data structure that stores a collection of elements of the same type in a contiguous block of memory.

  • Arrays can be of any data type, including strings.

  • Elements in an array are accessed using an index starting from 0.

  • Arrays have a fixed size, which is determined at the time of declaration.

  • Arrays can be multidimensional, allowing for the storage of data in multiple dimensions.

  • Example: ['apple', 'banana', 'orange']

Frequently asked in, ,

Associate Technology Trainee Jobs

PL/SQL 8-10 years
Fusion Plus Solutions Inc
3.5
Hyderabad / Secunderabad
PL / SQL 4-6 years
Innoitus Systems
4.2
Mumbai
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Interview experiences of popular companies

3.7
 • 10k Interviews
4.1
 • 77 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 Technology 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
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