FDE EST COMPUTER SCIENCE PAST PAPER 16-03-2025
Show Answers
چار آپشن میں سے کسی ایک پر کلک کرنے سے جواب سرخ ہو جائے گا۔
مندرجہ ذیل میں سے کون سی او او پی میں پولیمورفزم کی بہترین وضاحت کرتا ہے؟
The process of grouping related objects together
The ability of an object to take on many forms
The relationship between clauses and their objects
None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
Polymorphism allows objects to be treated as instances of their parent class. This enabling them to take on different forms (e.g., method overriding or overloading). It promotes flexibility and reusability in object-oriented programming.
ہیش ٹیبل میں تلاش کرنے کی وقت کی پیچیدگی کیا ہے؟
O(1)
O(N)
O(log N)
None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
On average, searching in a well-implemented hash table has a time complexity of O(1) (constant time) due to direct indexing using the hash function.
In the worst-case scenario , if many elements hash to the same index (collisions), the time complexity can degrade to O(n) (linear time).
A type of learning where the system is trained using labeled data.
A type of machine learning where the model learns by interacting with an environment and receiving feedback.
A learning process where the system learns from unsupervised data.
None of these.
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
Reinforcement Learning (RL) is a type of machine learning where an agent learns to make decisions by performing actions and receiving rewards or penalties from the environment.
The agent's goal is to maximize cumulative reward over time, based on trial and error .
کس قسم کے نیٹ ورک اٹیک میں صارف کی حساس معلومات کا انکشاف کرنا شامل ہے؟
Denial of Service (DoS)
Phishing
Man-in-the-middle attack
None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
Phishing is a network attack where attackers attempt to obtain sensitive information like usernames, passwords, or credit card details by pretending to be a trustworthy entity.
It often involves misleading emails or fake websites designed to trick users into revealing their personal information.
Adjective
Noun
Adverb
None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
" Happy " describes the state or condition of " she ," modifying the subject .
In this sentence, " looks " is a linking verb , and adjectives follow linking verbs to describe the subject.
جاوا میں کنسٹرکٹر کا کیا کام ہے؟
It is used to call other methods.
It initializes an object when it is created.
It is used to delete objects.
None of these.
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
A constructor is automatically called when an object is instantiated , setting initial values.
Unlike regular methods , it has the same name as the class and does not have a return type.
0(N²)
O(N)
O(log N)
None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
In a nested for-loop , the inner loop executes N times for each iteration of the outer loop.
This results in a total of N × N = N² iterations, making the time complexity O(N²).
سکندر اعظم کا استاد کون تھا؟
Plato
Aristotle
Socrates
None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
Alexander the Great was a king of the ancient Greek Kingdom of Macedonia . He was born in Pella in 356 BC .
He had created one of the largest empires in history , stretching from Greece to northwestern India.
He was undefeated in battle.
He is widely considered one of history's most successful military commanders .
27
28
29
None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
Half of 58 is calculated as 58 ÷ 2 = 29 .
1
2
3
None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
Modulo (mod) operation finds the remainder when 5 is divided by 3.
5 ÷ 3 = 1 remainder 2, so 5 mod 3 = 2 .