Quest Global
10+ Shraddha Unipath Specialty Laboratory Interview Questions and Answers
Q1. If 10 people had a meeting and they shake hands only once with each of the others, then how many handshakes will be there in total ?
The question is about finding the total number of handshakes in a meeting of 10 people.
Each person shakes hands with 9 others.
Total handshakes = 10 x 9 / 2 = 45.
Q2. Write a program to swap value of two variables without using a third variable.
Program to swap value of two variables without using a third variable.
Use arithmetic operations to swap values
Add both variables and store the sum in one variable
Subtract the value of one variable from the sum and store it in the other variable
Subtract the value of the other variable from the sum and store it in the first variable
Q3. Write a program to print prime numbers.
Program to print prime numbers
Start with a loop from 2 to n (number to check)
For each number, check if it is divisible by any number from 2 to its square root
If not divisible, it is a prime number and print it
Q4. do-while loop example.
A do-while loop is a control flow statement that executes a block of code at least once before checking the condition.
The do-while loop is similar to the while loop, but the condition is checked at the end of the loop.
The loop will always execute at least once, even if the condition is false.
Syntax: do { // code block } while (condition);
Example: do { x++; } while (x < 10);
Q5. Write a program to check the given number is odd or not. Write a program to find the given digit is present in the given number
Program to check if a number is odd and to find a digit in the number.
Use modulo operator to check if a number is odd (number % 2 == 1)
Convert the number to a string and check if the digit is present using string methods
Handle edge cases like negative numbers and non-integer inputs
Q6. Write a program to find factorial of a number
Program to find factorial of a number
Use a loop to multiply the number with all the numbers less than it
Handle the case when the number is 0 or 1 separately
Use recursion to find factorial of a number
Q7. 3.Basic tool names in creo or Autocad
Basic tool names in Creo or AutoCAD
Creo: Sketch, Extrude, Revolve, Sweep, Loft, AutoCAD: Line, Circle, Rectangle, Arc, Polyline
Q8. 2.Draw a stress-strain diagram
A stress-strain diagram shows the relationship between stress and strain in a material.
The diagram plots stress on the y-axis and strain on the x-axis.
The slope of the curve represents the material's stiffness or Young's modulus.
The yield point is where the material begins to deform plastically.
The ultimate strength is the maximum stress the material can withstand before failure.
The area under the curve represents the material's toughness.
Examples of stress-strain diagrams in...read more
Q9. Storage classes in C
Storage classes in C are used to define the scope and lifetime of variables.
There are four storage classes in C: auto, register, static, and extern.
Auto variables are local to a block and have automatic storage duration.
Register variables are stored in CPU registers for faster access.
Static variables have a lifetime throughout the program and are initialized only once.
Extern variables are declared outside of any function and can be accessed by other files.
Q10. program to print odd numbers
Program to print odd numbers
Use a loop to iterate through numbers
Check if the number is odd using modulus operator
Print the odd numbers
Q11. Multi threaded in Java
Multithreading in Java allows multiple threads to run concurrently, improving performance and responsiveness.
Multithreading is achieved in Java by extending the Thread class or implementing the Runnable interface.
Threads share the same memory space, so synchronization is important to prevent data corruption.
Java provides synchronized keyword, locks, and atomic variables for thread synchronization.
Example: Creating a new thread using Thread class - Thread myThread = new Thread...read more
Q12. Polymorphism in Java
Polymorphism in Java allows objects of different classes to be treated as objects of a common superclass.
Polymorphism is achieved through method overriding and method overloading.
Method overriding allows a subclass to provide a specific implementation of a method that is already provided by its superclass.
Method overloading allows multiple methods with the same name but different parameters to coexist in the same class.
Polymorphism helps in achieving flexibility and extensibi...read more
Top HR Questions asked in Shraddha Unipath Specialty Laboratory
Interview Process at Shraddha Unipath Specialty Laboratory
Top Engineer Trainee Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month