Add office photos
LG Soft India logo
Engaged Employer

LG Soft India

Verified
3.1
based on 550 Reviews
Video summary
Filter interviews by
Fresher
Experienced
Clear (1)

LG Soft India Interview Questions and Answers for Freshers

Updated 26 Dec 2024

Q1. Difference between macro and functions

Ans.

Macros are preprocessor directives that are replaced before compilation, while functions are blocks of code that are executed at runtime.

  • Macros are defined using #define directive, while functions are defined using function keyword.

  • Macros are expanded by the preprocessor before compilation, while functions are executed at runtime.

  • Macros can be used for simple text replacement, while functions can perform complex operations.

  • Macros do not have type checking, while functions hav...read more

Add your answer
right arrow

Q2. Difference between exec and fork

Ans.

exec replaces the current process with a new one, while fork creates a new process.

  • exec replaces the current process with a new one, while fork creates a new process

  • exec system call loads a new program into the current process's memory space and starts its execution

  • fork system call creates a new process by duplicating the existing process

Add your answer
right arrow

Q3. Code to write list creation in dsa and so many

Ans.

Implement list creation in data structures and algorithms

  • Use an array to store the elements of the list

  • Implement functions to add, remove, and access elements in the list

  • Consider using a linked list for more efficient insertion and deletion operations

Add your answer
right arrow

Q4. Name the storage classes and explain the uses

Ans.

Storage classes in C are auto, register, static, and extern. They control the scope and lifetime of variables.

  • Auto - default storage class for local variables, stored in stack memory

  • Register - stored in CPU registers for faster access

  • Static - retains its value between function calls, stored in data segment

  • Extern - used to access global variables across multiple files

Add your answer
right arrow
Discover LG Soft India interview dos and don'ts from real experiences

Q5. What are storage classes in c

Ans.

Storage classes in C define the scope and lifetime of variables.

  • There are four storage classes in C: auto, register, static, and extern.

  • Auto variables are local to the block they are declared in and are automatically destroyed when the block exits.

  • Register variables are stored in CPU registers for faster access.

  • Static variables retain their value between function calls.

  • Extern variables are declared outside of any function and can be accessed by multiple files.

Add your answer
right arrow

Q6. overriding in oops concept

Add your answer
right arrow
Contribute & help others!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos

Interview Process at LG Soft India for Freshers

based on 7 interviews
Interview experience
4.4
Good
View more
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

IBM Logo
4.0
 • 1.2k Interview Questions
Microsoft Corporation Logo
4.0
 • 735 Interview Questions
Axis Bank Logo
3.8
 • 489 Interview Questions
Wells Fargo Logo
3.9
 • 272 Interview Questions
Hindustan Unilever  Logo
4.2
 • 177 Interview Questions
View all
Recently Viewed
SALARIES
LG Soft India
SALARIES
Emerson Electric Co.
INTERVIEWS
Lodestone Software Service
No Interviews
SALARIES
LG Soft India
LIST OF COMPANIES
Haier Appliances India
Locations
SALARIES
LG Soft India
LIST OF COMPANIES
Samsung Research
Locations
JOBS
Matrix Recruitment Consulting LLP
No Jobs
INTERVIEWS
Protechsoft Technologies
No Interviews
INTERVIEWS
LG Soft India
No Interviews
Top LG Soft India Interview Questions And Answers
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
75 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

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