Jio Platforms
Sana International School Interview Questions and Answers
Q1. Maximum Sum After Removing K Corner Elements
Given an array arr
of 'N' integer elements, your goal is to remove 'K' elements from either the beginning or the end of the array. The task is to return the maximum ...read more
Given an array of integers, remove K elements from either end to maximize sum of remaining elements.
Iterate through all possible combinations of removing K elements from start and end
Calculate sum of remaining elements for each combination
Return the maximum sum obtained
Q2. Sum of Two Elements Equals the Third
Determine if a given array contains a valid triplet of integers where two elements sum up to the third. Specifically, find indices i, j, and k such that i != j
, j != k
, and ...read more
Check if a given array contains a valid triplet where two elements sum up to the third.
Iterate through all possible triplets in the array and check if any of the conditions are satisfied.
Use nested loops to compare each element with every other element in the array.
Handle cases where the elements are not distinct by ensuring i != j, j != k, and i != k.
Q3. Idempotent Matrix Verification
Determine if a given N * N matrix is an idempotent matrix. A matrix is considered idempotent if it satisfies the following condition:
M * M = M
Input:
The first line contains a si...read more
Check if a given matrix is idempotent by verifying if M * M equals M.
Calculate the product of the matrix with itself and compare it with the original matrix.
If the product equals the original matrix, then it is idempotent.
Iterate through the matrix elements to perform the necessary calculations.
Q4. Difference between spring and spring boot
Spring is a framework for building Java applications, while Spring Boot is a tool for quickly creating Spring-based applications.
Spring provides a comprehensive framework for building Java applications, including features like dependency injection, AOP, and MVC.
Spring Boot is a tool that simplifies the process of creating Spring-based applications by providing auto-configuration and embedded servers.
Spring Boot also includes features like health checks, metrics, and externali...read more
Q5. What is encapsulation
Encapsulation is the process of hiding implementation details and providing a public interface for accessing the functionality.
Encapsulation helps in achieving data abstraction and information hiding
It prevents direct access to the internal state of an object
It allows for better control over the data and prevents unintended modification
Example: A class with private variables and public methods to access them
Q6. What data types in python
Python has several built-in data types including integers, floats, strings, booleans, lists, tuples, and dictionaries.
Integers are whole numbers, positive or negative
Floats are decimal numbers
Strings are sequences of characters
Booleans are either True or False
Lists are ordered collections of items
Tuples are ordered, immutable collections of items
Dictionaries are unordered collections of key-value pairs
Q7. Difference between c and c++
C++ is an extension of C with object-oriented programming features.
C++ supports classes and objects while C does not.
C++ has better support for function overloading and templates.
C++ has a built-in exception handling mechanism.
C++ supports references while C does not.
C++ has a standard library that includes many useful functions.
C++ is more complex than C and requires more memory.
C++ is often used for developing large-scale applications.
C is often used for system programming ...read more
Q8. what are java 8 features
Java 8 features include lambda expressions, functional interfaces, streams, and default methods.
Lambda expressions allow functional programming in Java
Functional interfaces enable the use of lambda expressions
Streams provide a concise way to process collections
Default methods allow interfaces to have implementation
Date and Time API improvements
Nashorn JavaScript engine
Parallel array sorting
Type annotations
Q9. Past Projects Design
Designed a web application for tracking inventory and sales data
Utilized MVC architecture for clean code separation
Implemented responsive design for mobile compatibility
Integrated data visualization tools for easy analysis
Top HR Questions asked in Sana International School
Interview Process at Sana International School
Top Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month