Add office photos
Employer?
Claim Account for FREE

Global Edge Software

3.5
based on 232 Reviews
Video summary
Filter interviews by

10+ Swaraj Equipment Interview Questions and Answers

Updated 11 Sep 2024

Q1. 1) What is volatile? 2) What is constant? 3) Can we use volatile and const at a time?4) What is ISR how it works?

Ans.

Answers to questions related to software engineering concepts.

  • Volatile is a keyword used to indicate that a variable's value can be changed unexpectedly.

  • Constant is a keyword used to indicate that a variable's value cannot be changed once it is assigned.

  • Volatile and const can be used together to indicate that a variable's value cannot be changed and that it may change unexpectedly.

  • ISR stands for Interrupt Service Routine and is a function that is called when an interrupt occu...read more

Add your answer

Q2. What is pointer? Explain dangling pointer, null pointer, void pointer.

Ans.

A pointer is a variable that stores the memory address of another variable. Dangling, null, and void pointers are types of pointers.

  • Dangling pointer: a pointer that points to a memory location that has been deallocated or freed

  • Null pointer: a pointer that does not point to any memory location

  • Void pointer: a pointer that has no specific data type and can point to any data type

Add your answer

Q3. Storage classes explain all the storage classes in c.

Ans.

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

  • auto: default storage class for local variables

  • register: stores variables in CPU registers for faster access

  • static: retains value between function calls

  • extern: used to access global variables across multiple files

Add your answer

Q4. Explain CAN data frame.

Ans.

CAN data frame is a message format used in Controller Area Network (CAN) protocol.

  • CAN data frame consists of 7 fields: Start of Frame (SOF), Arbitration ID, Control Bits, Data Length Code (DLC), Data Field, Cyclic Redundancy Check (CRC), and End of Frame (EOF).

  • The Arbitration ID field is used to identify the message priority and the source of the message.

  • The Data Field can contain up to 8 bytes of data.

  • The CRC field is used to detect errors in the message.

  • CAN data frame can b...read more

Add your answer
Discover Swaraj Equipment interview dos and don'ts from real experiences

Q5. How to delete any Element in an Linked list

Ans.

To delete an element in a linked list, we need to find the node before the node to be deleted and update its next pointer.

  • Find the node before the node to be deleted

  • Update the next pointer of the previous node to point to the node after the node to be deleted

  • Free the memory occupied by the node to be deleted

Add your answer

Q6. Write a Program to find all the first letters in an Sentence

Ans.

Program to find first letters in a sentence

  • Split the sentence into words

  • Get the first letter of each word

  • Store the first letters in an array

Add your answer
Are these interview questions helpful?

Q7. Write a Program to find whether it is a palindrome or not

Ans.

Program to check if a given string is a palindrome or not

  • Convert the string to lowercase to ignore case sensitivity

  • Use two pointers, one at the start and one at the end of the string

  • Compare the characters at both pointers and move them towards each other

  • If all characters match, it is a palindrome

Add your answer

Q8. Abstract class vs interface Internal working of hashmap Java 8 fearures

Ans.

Questions on abstract class vs interface, internal working of hashmap, and Java 8 features.

  • Abstract class is a class that cannot be instantiated and can have both abstract and non-abstract methods.

  • Interface is a collection of abstract methods and constants that can be implemented by a class.

  • HashMap is a data structure that stores key-value pairs and uses hashing to retrieve values.

  • Java 8 introduced features like lambda expressions, functional interfaces, and streams for easie...read more

Add your answer
Share interview questions and help millions of jobseekers 🌟

Q9. Write some basic codes for Manipulation in array

Ans.

Basic codes for array manipulation including sorting, searching, and filtering.

  • Use built-in functions like sort() for sorting arrays.

  • Implement algorithms like binary search for searching in arrays.

  • Utilize filter() method for filtering arrays based on specific criteria.

Add your answer

Q10. Write a Prime number function using C

Ans.

A function in C to check if a number is prime or not

  • Create a function that takes an integer as input

  • Check if the input number is divisible by any number from 2 to its square root

  • If it is not divisible by any number, return true (prime), else return false (not prime)

Add your answer

Q11. Remove a loop from linked list

Add your answer

Q12. Remove duplicates from string

Add your answer

Q13. Reverse a string

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

Interview Process at Swaraj Equipment

based on 14 interviews
Interview experience
3.9
Good
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

3.7
 • 343 Interview Questions
3.6
 • 342 Interview Questions
3.9
 • 246 Interview Questions
4.4
 • 218 Interview Questions
3.8
 • 211 Interview Questions
4.3
 • 138 Interview Questions
View all
Top Global Edge Software Interview Questions And Answers
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
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