Add office photos
Employer?
Claim Account for FREE

K L University

3.8
based on 295 Reviews
Filter interviews by

IBM Interview Questions and Answers

Updated 21 Mar 2024

Q1. Which one you prefer? Classless or classful addressing?

Ans.

I prefer classless addressing due to its flexibility and efficient use of IP addresses.

  • Classless addressing allows for more efficient use of IP addresses by allowing for variable-length subnet masks.

  • Classful addressing is limited to fixed-length subnet masks, which can result in wasted IP addresses.

  • Classless addressing also allows for more flexibility in network design and can accommodate networks of varying sizes.

  • Classful addressing is outdated and no longer used in modern n...read more

Add your answer

Q2. What are different page replacement techniques?

Ans.

Page replacement techniques are algorithms used in operating systems to manage memory efficiently.

  • FIFO (First In, First Out)

  • LRU (Least Recently Used)

  • LFU (Least Frequently Used)

  • Optimal Page Replacement

  • Clock Page Replacement

Add your answer

Q3. What are the acid properties of a transaction?

Ans.

The acid properties of a transaction refer to its key characteristics for ensuring reliability and consistency in database systems.

  • Atomicity: A transaction is considered atomic if it is treated as a single unit of work that either completes in its entirety or is fully rolled back.

  • Consistency: This property ensures that a transaction transforms the database from one consistent state to another consistent state.

  • Isolation: Transactions should be isolated from each other to preve...read more

Add your answer

Q4. What is the difference between 2nf and 3nf?

Ans.

2NF and 3NF are both normal forms in database normalization, with 3NF being a stricter form of normalization than 2NF.

  • 2NF eliminates partial dependencies, while 3NF eliminates transitive dependencies.

  • In 2NF, every non-prime attribute is fully functionally dependent on the primary key, while in 3NF, every non-prime attribute is non-transitively dependent on the primary key.

  • Example: If a table is in 2NF but not in 3NF, it means there are transitive dependencies present that nee...read more

Add your answer
Discover IBM interview dos and don'ts from real experiences

Q5. Compare Quick sort and Merge sort.

Ans.

Quick sort is faster for small arrays, while Merge sort is more efficient for larger arrays.

  • Quick sort has an average time complexity of O(nlogn), while Merge sort has a time complexity of O(nlogn) in all cases.

  • Quick sort is an in-place sorting algorithm, while Merge sort requires extra space.

  • Quick sort is not stable, while Merge sort is stable.

  • Quick sort is often used in practice due to its efficiency, while Merge sort is used in external sorting and when stability is requir...read more

Add your answer

Q6. Difference between primary key and foreign key?

Ans.

Primary key uniquely identifies a record in a table, while foreign key establishes a link between two tables.

  • Primary key ensures uniqueness of each record in a table

  • Foreign key establishes a relationship between two tables

  • Primary key can't have null values, while foreign key can have null values

  • Example: In a 'students' table, 'student_id' can be a primary key, while in a 'courses' table, 'student_id' can be a foreign key linking to 'students' table

Add your answer

Q7. What is a view in dbms?

Ans.

A view in DBMS is a virtual table created by a query that can be used like a regular table.

  • Views are used to simplify complex queries by storing them as a virtual table.

  • They can also be used to restrict access to certain columns or rows of a table.

  • Views do not store data themselves, but instead display data from the underlying tables.

  • Changes made to the data in a view will affect the underlying tables.

  • Example: CREATE VIEW view_name AS SELECT column1, column2 FROM table_name W...read more

Add your answer

Q8. Difference between ddl and dml commands?

Ans.

DDL commands are used to define the structure of database objects, while DML commands are used to manipulate data within those objects.

  • DDL commands include CREATE, ALTER, DROP, TRUNCATE, etc.

  • DML commands include INSERT, UPDATE, DELETE, SELECT, etc.

  • DDL commands are used to create or modify the structure of database objects like tables, indexes, etc.

  • DML commands are used to insert, update, delete, or retrieve data from tables.

Add your answer

Q9. What is page fault?

Ans.

A page fault is an exception that occurs when a program tries to access a page of memory that is not currently in physical memory.

  • Occurs when a program tries to access a page of memory that is not in physical memory

  • Causes the operating system to bring the required page into memory from disk

  • Can be classified as major or minor depending on whether the page is already in memory but marked as invalid

  • Example: When a program accesses a page of memory that has been swapped out to di...read more

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter