Plintron Global Technology Solutions
10+ Singhania Education Services Interview Questions and Answers
Q1. Can you declare constructor privately? If so, what are the ways to access it from outside its class?
Yes, a constructor can be declared privately.
Private constructors are used to prevent the creation of objects of a class from outside the class itself.
To access a private constructor from outside its class, we can use a public static method or a factory method.
The public static method or factory method can create an instance of the class by calling the private constructor.
Q2. What is a class? And how can a class access another class?
A class is a blueprint for creating objects that have properties and methods. One class can access another class using inheritance or composition.
A class is a user-defined data type that encapsulates data and functions.
Classes can have access modifiers like public, private, and protected.
Inheritance allows a class to inherit properties and methods from another class.
Composition allows a class to use objects of another class as its members.
Example: A Car class can access an En...read more
Q3. What is a variable/ static variable?
A variable is a named storage location in memory that holds a value. A static variable is a variable that retains its value between function calls.
Variables are used to store data in a program
They can be of different data types such as int, float, char, etc.
Static variables are declared with the static keyword and retain their value between function calls
They are useful for maintaining state across function calls
Q4. Write reverse string manipulation without using the predefined methods.
Reverse a string without using predefined methods.
Create an empty string to store the reversed string.
Loop through the original string from the end to the beginning.
Add each character to the empty string.
Return the reversed string.
Q5. What is a constructor?
A constructor is a special method that is used to initialize objects of a class.
Constructors have the same name as the class they belong to.
They are called automatically when an object is created.
They can take parameters to set initial values for object properties.
If a class does not have a constructor, a default constructor is created automatically.
Q6. What are Logic gates and what are universal gate
Logic gates are basic building blocks of digital circuits that perform logical operations. Universal gates can be used to implement any other gate.
Logic gates are electronic devices that perform logical operations on one or more binary inputs to produce a single binary output.
There are different types of logic gates such as AND, OR, NOT, NAND, NOR, XOR, and XNOR.
Universal gates, like NAND and NOR gates, can be used to implement any other gate, making them versatile in circuit...read more
Q7. Why radio cells are hexagonal in shape
Radio cells are hexagonal in shape because it allows for efficient coverage with minimal overlap and interference.
Hexagonal shape provides equal distance between each cell edge, ensuring uniform coverage.
Minimizes interference by reducing overlapping areas between cells.
Easier to plan and optimize network layout compared to other shapes like squares or circles.
Q8. What are variables, classes...etc
Variables are containers for storing data values. Classes are blueprints for creating objects in object-oriented programming.
Variables are declared with a data type and can hold different values.
Classes define the properties and methods of objects.
Inheritance allows classes to inherit properties and methods from other classes.
Polymorphism allows objects to take on different forms depending on the context.
Encapsulation is the practice of hiding the internal workings of a class...read more
Q9. Write Fibonacci program
Fibonacci program generates a series of numbers where each number is the sum of the two preceding ones.
Declare variables for first and second numbers in the series
Use a loop to generate subsequent numbers by adding the previous two
Print or store the numbers in an array
Q10. SQL query for creating a table
Creating a table using SQL query
Use CREATE TABLE statement
Specify table name and column names along with data types
Add any constraints like primary key or foreign key if needed
Q11. OSI model and it's uses
The OSI model is a conceptual framework that standardizes the functions of a telecommunication or computing system into seven layers.
The OSI model helps in understanding how data is transmitted over a network.
Each layer in the OSI model performs specific functions and communicates with the adjacent layers.
Examples of OSI model layers include physical layer, data link layer, network layer, transport layer, session layer, presentation layer, and application layer.
Q12. What is split and where we used?
Split is a method used to divide a string into an array of substrings based on a specified delimiter.
Split is commonly used in programming languages like Java, Python, and JavaScript.
It is used to separate a string into multiple parts based on a specific character or sequence of characters.
For example, in Java, you can use the split() method to split a sentence into words based on spaces.
Q13. Application and session statement difference?
Application and session statements are used in programming to manage user data and interactions, but have different scopes and lifetimes.
Application statements are used to store data that is shared across all users and sessions.
Session statements are used to store data that is specific to a particular user's session.
Application statements are typically stored in a database or global variables, while session statements are stored in session variables or cookies.
Application sta...read more
Q14. What linx booting process
The Linux booting process involves several stages including BIOS, bootloader, kernel initialization, and user space initialization.
BIOS (Basic Input/Output System) performs Power-On Self Test (POST) and locates the bootloader
Bootloader (such as GRUB) loads the Linux kernel into memory
Kernel initializes hardware, mounts the root filesystem, and starts the init process
User space initialization involves starting system services and launching the login prompt
Interview Process at Singhania Education Services
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month