MOD SPECIAL OPERATOR PAST PAPER 14-11-2019
MOD 5 years
Past Papers Click
here
فری تیاری کیلے Whatsapp جوائن کریں Click
here
Show Answers
چار آپشن میں سے کسی ایک پر کلک کرنے سے جواب سرخ ہو جائے گا۔
The minimal number of attributes necessary to support the data requirements of the enterprise.
Attributes with a close logical relationship (described as functional dependency) are found in the same relation.
Implementation of a method that depends on the type of the object it is applied to (overriding).
Minimal redundancy with each attribute represented only once with the important exception of attributes that forms all or part of foreign keys, which are essential for the joining of related relations.
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
Normalization organizes a database to reduce redundancy and dependency. A suitable set of relations has minimal attributes, logical grouping, and minimal redundancy. Object-oriented concepts like overriding are not related to normalization. Last verified on 24-03-2026
O(log n)
O²(log n)
O(log n²)
None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
Quick Sort is an in-place sorting algorithm. It does not require extra arrays, but uses recursion stack space . On average, recursion depth is log n, so space complexity is O(log n) . Additional information :
Average space → O(log n) Best case → O(log n) Worst case → O(n) (unbalanced recursion) Time (average) → O(n log n) Last verified on 24-03-2026
{S = F(S)}
{S < F(S)}
{S | F(S)}
None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
In Tuple Relational Calculus (TRC), queries are written using set-builder notation. The expression {S | F(S)} means “ all tuples S such that condition F(S) is true ”. It focuses on what to retrieve, not how to retrieve it. Additional information :
General form → {t | P(t)} t → Tuple variable P(t) → Predicate (condition) Last verified on 24-03-2026
O(n)
O(n²)
O²(n²)
None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
Best case occurs when the array is already sorted. With an optimized Bubble Sort (using a swap flag), no swaps are needed. The algorithm makes only one pass , resulting in O(n) time. Additional information :
Average case → O(n²) Worst case → O(n²) Comparisons in best case → (n − 1) Swaps → 0 Last verified on 24-03-2026
PAN (Personal Area Network)
SAN (Storage Area Network)
MAN (Metropolitan Area Networks)
None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
MAN (Metropolitan Area Network) covers a city or large town area. It is larger than LAN but smaller than WAN . It provides high-speed internet and connectivity across a city. Additional information :
PAN → Few meters (personal devices) LAN → Building / campus level MAN → City-wide (10–100 km range) WAN → Country / global level Last verified on 24-03-2026
Finite set of input symbols
Finite set of states
A transition function that maps Q × Σ --> Q
None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
In a Deterministic Finite Automaton (DFA), δ (delta) represents the transition function. It defines how the automaton moves from one state to another. Additional information :
Q → Finite set of states Σ → Finite set of input symbols δ → Transition function (Q × Σ → Q) q₀ → Initial (start) state F → Set of final (accepting) states Last verified on 24-03-2026
مرتب شدہ زبانوں کے کیا فوائد ہیں؟
It is easy to write the source code
It is faster to declare variables
Their execution speed is faster
Both A and B
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
Compiled languages convert source code into machine code before execution. This makes programs run much faster than interpreted languages. Examples include C, C++, and Go . Last verified on 24-03-2026
O(n log n²)
O²(n log n)
O(n log n)
None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
Best case occurs when the pivot divides the array into two equal halves each time. This leads to a balanced recursion tree . Hence, Quick Sort runs in O(n log n) time in the best case . Additional information :
Average case → O(n log n) Worst case → O(n²) Example size: n = 8 → log₂(8) = 3 levels Total comparisons ≈ n log n Last verified on 24-03-2026
List
ArrayList
Vector
None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
In C++ , vector is used as a dynamic array. It automatically resizes itself when elements are added or removed. It is part of the Standard Template Library (STL). Last verified on 24-03-2026
O(n)
O(n log n)
O(n²)
None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
Merge Sort requires extra memory to merge sorted subarrays. It is not an in-place algorithm. Therefore, its space complexity is O(n) for an array of size n. Additional information :
Time complexity (Best) → O(n log n) Time complexity (Average) → O(n log n) Time complexity (Worst) → O(n log n) Recursion stack → O(log n) Last verified on 24-03-2026