Interview questions for CSE
1. What is a file?
A file is a named location which stores data or information permanently. A file is always stored inside a storage device using file name (e.g. STUDENT.MARKS). A file name normally has primary and secondary name separated by a “.”(DOT).
2. What is a class?
A class is a blueprint from which objects are created. A class contains methods and variables associated with an instance of a class.
3. What is the different OOPS principle?
The basic OOPS principle are as follows,
4. Difference between class and interface?
Below are the difference between Interface and class:-
• The interface cannot be instantiated.
• An interface doesn’t have any constructors.
• Interface only have abstract methods.
• A class implements an interface and extends a class.
• An interface can extend multiple interfaces.
5. What is an abstract class?
A class that contains the abstract keyword in a declaration is called abstract class. The properties of the abstract class are as follows:-
• Abstract classes may or may not contain abstract methods but, if a class has at least one abstract method, then it must be declared abstract.
• The abstract class cannot be instantiated.
• To use an abstract class, we have to inherit it from another class.
• If we inherit an abstract class, then we have to provide implementations to all the abstract methods in it.
6. The difference between a router, modem and switch?
• Modems are devices that make connections to the internet.
• Routers are “traffic directors” of a network. It takes information provided by the modem to various connected devices and creates a private IP address internal Network Address Translated (NAT).
• Switch is only a device that connects many devices on the same network. Unlike routers, Switches are only designed to facilitate communication for devices on the same network.
7. What is the computer system?
A computer system is a combination of memory, CPU, peripheral devices that are connected to it and OS (Operating System).
8. List out components of a computer system?
The components of a computer system are:
• CPU (Central Processing Unit) including control unit and arithmetic logical unit
• Memory like primary and secondary
• Input and output devices like keyboard mouse, printer scanner, etc.
9. What is an object?
An object is an instance of a class. For example
class Abc—– This is a class
int a; —— This is a variable
public Abc(); —- This is contractor
public static void main (String args) This is a method
Abc a= new Abc(); —— This is object creation where ‘a’ is the reference variable or object name.
10. What is the difference between 32-bit and 64-bit processors?
The 32-bit system can access 2 32 memory addresses, which is 4 GB RAM. The 64-bit system can access 2 64 memory addresses, 18-billion RAM. The amount of memory larger than 4 GB can be easily handled by a 64-bit processor.
11. What is machine learning?
Machine Learning is a system that can learn from an excellent example through self-improvement and without being explicitly coded by a programmer.
12. What is deep learning?
Deep learning is computer software that mimics the network of neurons in a brain. It is a subset of machine learning and is called deep learning because it makes use of deep neural networks.
13. List out different OOPS principles?
The basic OOPS principle are: 1) encapsulation, 2) abstraction, 3) inheritance and 4) polymorphism.
14. What is the different type of access modifiers?
There are four type of access modifiers as given below:-
• Visible to the overall package. No modifier needed.
• Private – Visible to class only.
• Public – Visible to the world.
• Protected – Visible to package and subclass.
15. List out some computer processors?
Computer processors are: 1) Intel Core i9, 2) Intel Core i5, 3) Intel Core i7, 4) AMD Ryzen 7 and 5) AMD Ryzen 5.
16. What Is A Super-class?
A super class is the basis of all the classes. The object of the rest of the class has all the characteristics related to the superclass.
17. Explain class variable?
Variables represent a memory of class, which it shares with each and every instance.
18. What is SDLC?
SDLC stands for Software Development Life Cycle is a process that produces quality software products in less time. The stages involve by SDLC are: 1) planning, 2) design, 4) construction, 5) testing, and 6) deployment.
19. Difference between overloading and overriding?
Overloading is when two or more methods in the same class have the same method name but different parameters(i.e different method signatures).
Overriding is when two methods having the same method name and parameters (i.e., method signature) but one of the methods is in the parent class and the other is in the child class.
20. What are multiple inheritances in Java?
Java supports multiple inheritances i.e the ability of a class to implement more than one interface. A class can implement multiple Interfaces but cannot extends multiple classes.
21. What is the operating system? Mention some popular OSes?
An operating system is software that allows computer hardware to communicate and operate with computer software. This basically provides an interface between the user and the computer system. Microsoft Windows, Linux and OSX are some of the popular operating systems.
22. What is primary memory and secondary memory?
Primary memory (RAM) is the main memory of a computer that can be directly accessed by the CPU. Primary memory stores temporary information until the process is complete. Secondary memory (File Storage Device) refers to external storage devices that can be used to store data or information permanently.
23. What is Integrated Development Environment?
An IDE is a GUI-based software program. It is designed to help programmers build applications with all the needed programs and libraries.
24. Explain the framework?
The framework is a platform for making software applications. It provides the basis on which developers can build programs for a specific platform. For example, a framework may include predetermined classes as well as functions. It can be used to process inputs, manage hardware, and interact with system software.
25. What is a constructor?
A constructor is methods which are used to create an Object of class. There are two types of constructor Default & Parameterized constructor.