Stryker
Sayali Facilities Interview Questions and Answers
Q1. C++ program for EMP ID, name, salary
C++ program to store EMP ID, name, and salary using array of strings.
Declare an array of strings to store EMP ID, name, and salary
Use cin to take input from user and store in the array
Use cout to display the stored data
Q2. without loop print 1 to 10
Print 1 to 10 without using loops.
Use recursion to print numbers.
Use a switch statement to print numbers.
Use an array and map function to print numbers.
Q3. reverse a string using recursion
Reverse a string using recursion
Create a function that takes a string as input
If the string is empty, return an empty string
Otherwise, call the function recursively with the substring starting from the second character
Concatenate the first character with the result of the recursive call
Q4. Reverse a integer
Reverse an integer
Convert integer to string and reverse the string
Use modulo operator to extract digits and reverse them
Use recursion to reverse the integer
Q5. Start condition for SPI
The start condition for SPI is a low-to-high transition on the SCK line while SS is high.
SPI communication begins when the master device sends a start condition to the slave device.
The start condition is a low-to-high transition on the SCK line while SS is high.
The SS line is used to select the slave device for communication.
The SPI protocol supports multiple slaves, but only one slave can be selected at a time.
After the start condition, the master device sends the clock sign...read more
Q6. Thread vs process
Thread is a lightweight unit of a process. Process is an instance of a program that runs independently.
Threads share the same memory space as the parent process while processes have their own memory space.
Threads are faster to create and switch between than processes.
Processes are more secure and stable than threads.
Example: A web server can have multiple threads to handle multiple requests simultaneously.
Example: A word processor can have multiple processes to handle differe...read more
Q7. SPI vs I2C
SPI and I2C are communication protocols used to transfer data between devices.
SPI is faster than I2C.
SPI uses separate lines for data and clock signals while I2C uses a shared line.
I2C supports multiple devices on the same bus while SPI requires a separate chip select line for each device.
SPI is commonly used for high-speed communication between microcontrollers and peripherals while I2C is used for low-speed communication between sensors and other devices.
Top Software Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month