Global Edge Software
10+ Swaraj Equipment Interview Questions and Answers
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?
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
Q2. What is pointer? Explain dangling pointer, null pointer, void pointer.
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
Q3. Storage classes explain all the storage classes in c.
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
Q4. Explain CAN data frame.
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
Q5. How to delete any Element in an Linked list
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
Q6. Write a Program to find all the first letters in an Sentence
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
Q7. Write a Program to find whether it is a palindrome or not
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
Q8. Abstract class vs interface Internal working of hashmap Java 8 fearures
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
Q9. Write some basic codes for Manipulation in array
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.
Q10. Write a Prime number function using C
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)
Q11. Remove a loop from linked list
Q12. Remove duplicates from string
Q13. Reverse a string
Top HR Questions asked in Swaraj Equipment
Interview Process at Swaraj Equipment
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month