B.S.W.E. Bachelor of Software Engineering Trivia 5 ā Questions and Answers
Question 1: What does 'IDE' stand for in software development?
- Integrated Development Environment (Correct answer)
- Internal Debug Engine
- Interactive Data Editor
- Interface Design Extension
Correct answer: Integrated Development Environment
IDE stands for Integrated Development Environment, a software suite combining a code editor, debugger, and build tools.
Question 2: Which sorting algorithm has an average time complexity of O(n log n) and uses a pivot element?
- Bubble Sort
- Insertion Sort
- Quicksort (Correct answer)
- Selection Sort
Correct answer: Quicksort
Quicksort uses a pivot element to partition the array and recursively sorts sub-arrays, achieving O(n log n) average time complexity.
Question 3: In object-oriented programming, what is 'encapsulation'?
- Inheriting properties from a parent class
- Bundling data and methods that operate on the data within a single unit (Correct answer)
- Defining multiple methods with the same name but different parameters
- Creating objects from abstract blueprints
Correct answer: Bundling data and methods that operate on the data within a single unit
Encapsulation bundles data (attributes) and the methods that operate on them into a single unit (class), hiding internal state from outside.
Question 4: What does 'CI/CD' stand for in modern software development?
- Code Inspection / Code Deployment
- Continuous Integration / Continuous Delivery (Correct answer)
- Central Integration / Conditional Deployment
- Compiled Interface / Connected Database
Correct answer: Continuous Integration / Continuous Delivery
CI/CD stands for Continuous Integration / Continuous Delivery (or Deployment), a practice of automating code integration and release pipelines.
Question 5: Which of the following is NOT one of the four values stated in the Agile Manifesto?
- Individuals and interactions over processes and tools
- Comprehensive documentation over working software (Correct answer)
- Responding to change over following a plan
- Customer collaboration over contract negotiation
Correct answer: Comprehensive documentation over working software
The Agile Manifesto values working software over comprehensive documentation, not the other way around.
Question 6: What is a 'deadlock' in operating systems and concurrent programming?
- A memory leak that gradually exhausts available RAM
- A situation where two or more processes wait indefinitely for each other to release resources (Correct answer)
- A CPU scheduling algorithm that starves low-priority threads
- A network timeout caused by packet collision
Correct answer: A situation where two or more processes wait indefinitely for each other to release resources
A deadlock occurs when two or more processes are each waiting for the other to release a resource, causing all of them to block forever.
Question 7: What is the purpose of the 'null coalescing operator' (e.g., ?? in C# or JavaScript)?
- To compare two null references for equality
- To return the right-hand operand when the left-hand operand is null or undefined (Correct answer)
- To throw an exception if a value is null
- To convert a null value to an empty string automatically
Correct answer: To return the right-hand operand when the left-hand operand is null or undefined
The null coalescing operator returns its right-hand operand when the left-hand operand is null or undefined, providing a default value.
What does 'IDE' stand for in software development?