InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
State your understanding of Pure Object Oriented Programming Languages. Is Java one? If not, then why? |
|
Answer» A programming LANGUAGE is referred to as a pure object-oriented language if everything within the program is treated as an object. The pure Object Oriented Programming language does not support primitive types. A pure object-oriented programming language must also satisfy the following properties:
Because predefined data types are not recognized as objects in Java, it is not a pure object-oriented programming language. |
|
| 2. |
State the pros and cons of using Object Oriented Programming Languages. |
|
Answer» The pros of using Object-Oriented Programming Languages are as follows:
The cons of using Object-Oriented Programming Languages are as follows:
|
|
| 3. |
State a few benefits of using C ++ as a language. |
|
Answer» A few benefits of using C ++ as a language are as follows:
|
|
| 4. |
Define Subqueries in SQL. Given a table of employees, write down a SQL query using subqueries to find all the employees with salaries greater than five thousand. |
|
Answer» A subquery in SQL is a query that is defined inside ANOTHER query to retrieve data or information from the database. The outer query of a subquery is referred to as the main query, while the inner query is referred to as the subquery. Subqueries are always PROCESSED first, and the subquery's RESULT is then passed on to the main query. It can be nested inside any query, including SELECT, UPDATE, and OTHER. Any comparison operators, such as >, or =, can be used in a subquery. The syntax of a subquery in SQL is given as follows: SELECT columnName [, columnName ]FROM tableOne [, tableTwo ]WHERE columnName OPERATOR (SELECT columnName [, columName ] FROM tableOne [, tableTwo ] [WHERE])A SQL query using subqueries to find all the employees with SALARIES GREATER than five thousand in the employee's table is given below: SQL> SELECT * FROM EMPLOYEES WHERE EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM EMPLOYEES WHERE SALARY > 4500) ; |
|
| 5. |
What do you understand about transactions in SQL? What are the properties of transactions in SQL? |
|
Answer» A transaction is a logical unit of work performed on a database. Transactions are logically ordered units or sequences of work that can be completed manually by a human or automatically by a database application. The propagation of ONE or more changes to the database is referred to as a transaction. For instance, whether you create, update, or delete a record from a table, you are completing a transaction on that table. To preserve data integrity and address database issues, it's critical to keep track of these transactions. In practice, you will group several SQL queries TOGETHER and run them all at the same time as part of a transaction. Transactions n SQL contain the four standard qualities listed below, which are frequently abbreviated as ACID.
|
|
| 6. |
Define Index Hunting. What is it used for in Database Management Systems? |
|
Answer» Index HUNTING is the process of enhancing a collection of indices. The purpose of doing Index Hunting is that INDEXES make the performance of the QUERIES better and ALSO reduce the TIME required to process a query. Given below are the various ways in which Index Hunting improves the performance of the queries:
|
|
| 7. |
What is meant by Intension and Extension in Database Management Systems? |
|
Answer» The meaning of Intension and Extension are as follows:
|
|
| 8. |
What is meant by Proactive Updates, Retroactive Updates and Simultaneous Update in Database Management Systems? |
|
Answer» The meaning of the GIVEN terms are as follows:
|
|
| 9. |
State the various levels of data abstraction in Database Management Systems. |
|
Answer» In Database Management Systems, there are three basic levels of data ABSTRACTION. They are as follows:
|
|
| 10. |
Define the terms: Aggregation and Atomicity in Database Management Systems. |
|
Answer» The DEFINITION of the given TERMS are as follows:
|
|
| 11. |
What do you understand about the ACID properties in Database Management Systems? |
|
Answer» ACID is an acronym for Atomicity, Consistency, Isolation, and Durability. A transaction is a logical unit of work that reads and updates the contents of a DATABASE in some instances. Transactions employ read and write operations to access data. To maintain database consistency, certain properties are followed before and after a transaction. They are referred to as ACID properties. LET us now take a closer look at each of these characteristics:
Think about the following scenario: T, which is made up of two separate transactions: T1 and T2. A $100 transfer was made from account X to account Y.
Each transaction is a series of actions that works as a single unit, provides consistent outcomes, is separated from other processes, and the modifications it makes are durably stored, according to the ACID properties. |
|
| 12. |
State your understanding of Entity Relationship (or the ER) model. Also, define the following terms: Entities, Entity Types, and Entity Sets in Database Management Systems. |
|
Answer» A diagrammatic APPROACH to database architecture in which real-world things are represented as entities and relationships between them are indicated is known as an Entity-Relationship model. Given below is an image of a sample ER diagram for a student studying in college. The definition of the given terms are as follows:
|
|
| 13. |
What do you understand about the concept of Data Warehousing? |
|
Answer» Data warehousing is the PROCESS of collecting, extracting, processing, and importing data from numerous sources and storing it in a single database. A data warehouse can be thought of as a central repository for data analytics that receives data from transactional systems and other relational databases. A data warehouse is a collection of historical data from an organization that AIDS in decision making. The data from a data warehouse is further USED for Data visualization, REPORTING, BUSINESS intelligence and many more activities. |
|
| 14. |
State some benefits of using views in a Database Management System. |
|
Answer» Some benefits of using views in a Database Management System are as FOLLOWS:
|
|
| 15. |
What are Database objects in Database Management Systems? |
|
Answer» A database object is any object defined in a database that is used to store or reference data. Everything we create from the create command is called a database object. It can be used to store and manipulate data. Some examples of database objects are as follows:
Its syntax is as follows: CREATE [PUBLIC] SYNONYM synonym FOR object; |
|
| 16. |
Explain the concept and two types of Data Independence. |
|
Answer» DATA independence is a concept ACCORDING to which, the change in data at one level of the DBMS three-tier architecture should not influence data at another level. Data independence is of two types of data independence:
|
|
| 17. |
State some benefits and drawbacks of Kernel Level Threads. |
|
Answer» Some of the benefits of kernel-LEVEL threads are as follows:
Some of the drawbacks of Kernel Level threads are as follows:
|
|
| 18. |
State some advantages and some disadvantages of User Level Threads. |
|
Answer» Some advantages of User Level Threads are as follows:
Some Disadvantages of User Level Threads are as follows: |
|
| 19. |
What do you understand about Multithreading in Operating Systems? |
|
Answer» Multithreading is the ability of a central processing unit (CPU) (or a single core in a multi-core processor) to run many threads of CODE at the same time, with the operating system supporting it. Multiprocessing is not the same as Multiprocessing. Threads in a multithreaded application share resources from a single or several cores, such as computational units, CPU caches, and the Translation Lookaside Buffer or TLB (A translation lookaside buffer or TLB is a memory cache that speeds up access to user memory. It is a component of the Memory MANAGEMENT Unit or MMU on the chip. The TLB, also known as an address translation cache, records recent virtual memory to physical memory TRANSLATIONS). Multithreading TRIES to increase the use of a single core by exploiting thread-level parallelism as well as instruction-level parallelism in multiprocessing systems with several full processing units in one or more cores. Because the two approaches are complementary, they are used together in practically all modern system architectures that INCLUDE multiple multithreading CPUs and multithreading cores. We can see that in the above image, one single process has two threads of execution that run on one processor. |
|
| 20. |
What are the advantages of thread over processes? |
|
Answer» The advantages of thread over processes are as follows:
|
|
| 21. |
What do you understand about Threads in Operating Systems? |
|
Answer» A thread is a single sequential flow of task execution in a process, and it is also known as a thread of execution or a thread of control. Thread execution is possible within any operating system's process. Aside from that, several threads can exist within a process. A distinct program counter and a stack of activation records and control blocks are used by each thread of the same process. Threading is frequently referred to as a light technique. A process can be broken down into numerous threads. MANY tabs in a BROWSER, for example, can be considered as threads. MS Word employs many threads to prepare the text in one thread, receive input in another thread, and so on. Within a process, a thread is a single sequence stream. Threads have the same qualities as the process, hence lightweight processes are referred to as threads. Threads are executed one after the other, giving the appearance that they are running in parallel. Each thread has a unique state. Each thread is unique and has the following in them:
Threads are not self-contained since they share code, data, and other Operating System resources. There are two types of threads:
|
|
| 22. |
What are the different types of Real Time Operating Systems? |
|
Answer» The term "Real-Time Operating System" REFERS to a system that is subjected to real-time constraints, i.e., the response must be guaranteed within a certain time restriction or the system must satisfy a specific deadline. For instance, a flight control system, real-time monitoring, and so on. Real-time systems with timing constraints include the FOLLOWING types:
|
|
| 23. |
List the few types of Operating Systems which you know about. Also list some examples of Operating Systems. |
|
Answer» A few types of Operating Systems which I know about are as follows:
Some examples of Operating Systems are as follows:
|
|