Which OOP concept allows a subclass to provide its own implementation of a method already defined in its superclass?
Software Design And Development
Question · Easy
Wedding seating, as a LEFT JOIN
Short
In Python, what is the role of the __init__ method in a class?
Question · Medium
Which data structure follows LIFO (Last In, First Out) ordering?
What is the average-case time complexity of binary search on a sorted array of n elements?
Which sorting algorithm has an average-case time complexity of O(n log n) and uses a divide-and-conquer recursive strategy with merging of sorted halves?
Question · Hard
Movie hacker vs real life
In a recursive function, what is the purpose of the base case?
Which Big O complexity grows fastest as n becomes very large?
Which UML class-diagram symbol represents inheritance (an 'is-a' relationship) between a subclass and its superclass?
Which OOP principle hides internal data and exposes access through public getter and setter methods?
Which SDLC approach delivers software in short iterative cycles with continuous user feedback and frequent releases?
A queue uses which two operations to add and remove elements?
What is the worst-case time complexity of inserting a key into a hash table that uses separate chaining when all keys hash to the same bucket?
In a binary search tree (BST), what property must hold for every node?
Which programming concept lets you write a single function call that behaves differently depending on the type or class of the object passed in?
What is tail recursion?
Linear search has time complexity O(n). What is the time complexity of binary search on the same unsorted array (without sorting first)?
Which design practice splits a program into independent, well-documented modules that can be developed, tested and reused independently?
In a parallel array design, what relationship holds between the elements at index i in each array?
Which testing data category checks how a program behaves at the boundaries of valid input (e.g. 0, 100 for percentages)?
What does the Python expression isinstance(obj, Animal) check?
A linked list node typically contains which two pieces of information?
Quicksort has average-case complexity O(n log n) but what is its worst-case complexity (e.g. when the array is already sorted and the first element is chosen as the pivot)?
Why is software documentation a required deliverable of the SDLC?
Which Python statement correctly creates an instance of class Car with one argument 'red' passed to __init__?
In a hash table, what is a 'collision'?
Bubble sort's worst-case time complexity is O(n^2). What is its best-case time complexity if the array is already sorted and the algorithm uses an early-exit flag?
Which Python data structure most closely models a 'record' with named fields (e.g. {'name': 'Alice', 'age': 17})?
When evaluating algorithm efficiency, why is Big O notation usually preferred over wall-clock timings?
Which SDLC phase comes immediately after Implementation in the classical waterfall model?
A recursive factorial function in Python is: def fact(n): return 1 if n == 0 else n * fact(n - 1). Why is this NOT tail recursive?
Which test type is performed by examining the source code without executing the program (e.g. walkthroughs and code review)?
In a stack implementation, attempting to pop from an empty stack typically causes which condition?
Which complexity describes the time to access an element at a known index in a 1D array?
Insertion sort is generally fastest in practice on which kind of input?
Which OOP term describes the act of writing 'class Dog(Animal):' so that Dog acquires Animal's attributes and methods?
Which CPU architecture is characterised by a small set of highly optimised, fixed-length instructions executed in a single clock cycle?
Computer Systems
What is CPU pipelining?
Which memory level is normally fastest and closest to the CPU cores?
In a Von Neumann architecture, what is shared between instructions and data?
What is the main role of a GPU in a modern PC?
Which memory technology is used as main system RAM in most modern PCs?
Virtual memory uses which technique to give programs a memory address space larger than physical RAM?
Which OS scheduling algorithm gives every ready process a fixed time slice in turn?
What is thrashing in operating systems?
Which tool translates an entire source file to machine code in one pass, producing a standalone executable?
What is the role of intermediate code (e.g. Java bytecode or .NET MSIL) in modern language toolchains?
Loading more…