Incapsulate
SMC Global Securities Interview Questions and Answers
Q1. Write a program to append a string at the middle of another string
Program to append a string at the middle of another string
Find the middle index of the original string
Use string slicing to split the original string into two parts
Concatenate the first part, new string, and second part to form the final string
Q2. Write query to select the sum of salaries department wise.
Query to select sum of salaries department wise
Use GROUP BY clause to group salaries by department
Use SUM() function to calculate the sum of salaries
Join the employee and department tables on department ID
Q3. Write a query to select employee having second highest salary
Query to select employee with second highest salary
Use ORDER BY clause to sort salaries in descending order
Use LIMIT 1,1 to select the second highest salary
Join with employee table to get employee details
Q4. What are oops concepts
OOPs concepts are the fundamental principles of Object-Oriented Programming.
Abstraction
Encapsulation
Inheritance
Polymorphism
Q5. What are the access modifiers
Access modifiers are keywords in object-oriented programming languages that set the accessibility of classes, methods, and other members.
There are four access modifiers in Java: public, private, protected, and default
Public members are accessible from anywhere in the program
Private members are only accessible within the same class
Protected members are accessible within the same class and its subclasses
Default members are accessible within the same package
Access modifiers help...read more
Q6. Explain about abstraction
Abstraction is the process of hiding complex implementation details and showing only the necessary information to the user.
Abstraction is achieved through abstract classes and interfaces.
It helps in reducing complexity and improving maintainability.
Example: A car dashboard is an abstraction of the car's internal workings.
Abstraction is a key concept in object-oriented programming.
Q7. How to controll the text input without using use state in react native
You can control text input in React Native without using useState by utilizing refs.
Use refs to access and manipulate the text input directly
Set up a ref for the text input component and use ref.current.value to get the current value
You can also use ref.current.focus() to focus on the text input programmatically
Interview Process at SMC Global Securities
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month