BUET M.Sc. Admission — Department of CSE — April: 2024প্রশ্ন ও সমাধান
- Set by
- BUET M.Sc. Admission
- Exam date
- 2024
- Questions
- 12 (0 MCQ, 12 written)
- Exam guide
- M.Sc. admission (CSE and ICT) · এমএসসি ভর্তি (সিএসই ও আইসিটি)
- Algorithms · অ্যালগরিদম 3
- Programming · প্রোগ্রামিং 2
- Software Engineering · সফটওয়্যার ইঞ্জিনিয়ারিং 2
- Cloud & Emerging Tech · ক্লাউড ও উদীয়মান প্রযুক্তি 1
- Cyber Security · সাইবার নিরাপত্তা 1
- Data Structures · ডেটা স্ট্রাকচার 1
- Digital Logic · ডিজিটাল লজিক 1
- Mathematics · গণিত 1
What is over fitting? How to avoid it?
Model answer
Overfitting occurs when a machine learning model learns the training data too well — including its noise and random fluctuations — so it performs excellently on training data but poorly on new, unseen data.
Why it happens:
- The model is too complex (too many parameters/features) relative to the amount of training data.
- Training runs for too long, letting the model memorize specific examples instead of learning general patterns.
- The training data is too small or not representative of the real-world distribution.
flowchart LR
A[Model Complexity Increases] --> B[Training Error: keeps decreasing]
A --> C[Validation Error: decreases, then rises]
C --> D[Rising point = Overfitting begins]
How to avoid it:
| Technique | How it helps |
|---|---|
| Cross-validation (k-fold) | Detects overfitting early by testing on held-out folds |
| Regularization (L1/L2) | Penalizes large weights, discouraging overly complex fits |
| Dropout (neural networks) | Randomly disables neurons during training to prevent co-dependency |
| Early stopping | Stops training when validation error starts rising |
| Pruning (decision trees) | Removes overly specific branches that fit noise |
| More/augmented training data | Gives the model a broader, more general pattern to learn |
| Simpler model | Reduces capacity to memorize noise |
Exam takeaway: Overfitting means low training error but high validation/test error — the fix is always some form of reducing model complexity or increasing effective data, never simply training longer.
Why pumping lemma is only used for negative proofing?
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
How DHCP attack works?
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
What is functional Interface in java.example?
Model answer
A functional interface in Java is an interface that contains exactly one abstract method (it may have any number of default/static methods). It is the foundation that makes lambda expressions and method references possible in Java.
- Annotated (optionally, but recommended) with
@FunctionalInterface, which lets the compiler flag an error if a second abstract method is accidentally added. - Since it has only one abstract method, a lambda expression can be used directly as its implementation — the compiler infers which method the lambda implements.
- Java's
java.util.functionpackage ships many ready-made functional interfaces:Function<T,R>,Predicate<T>,Supplier<T>,Consumer<T>.
Example:
@FunctionalInterface
interface Calculator {
int operate(int a, int b);
}
public class Main {
public static void main(String[] args) {
Calculator add = (a, b) -> a + b; // lambda implements operate()
Calculator multiply = (a, b) -> a * b;
System.out.println(add.operate(3, 4)); // 7
System.out.println(multiply.operate(3, 4)); // 12
}
}
Exam takeaway: Functional interface = exactly one abstract method, which enables lambdas; Runnable, Comparator<T>, and Callable<V> are classic built-in examples besides the java.util.function package.
Predictive parsing cell entry in A ->∞ and A->∈. diom Describe it in terms of First and Follow.
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Algorithm for checking loop in singly linked list.
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Consider a sequence consisting of symbols 1 (occurs with probability P) and 0 (occurs with probability Q, where Q=1-P). A run is a consecutive sequence of the same symbol. The length of the first run refers to how many times the first symbol appears consecutively at the start of the sequence before switching. Similarly, the length of the second run refers to the number of times the next different symbol appears before switching again. Find the expected length of the first and second run.
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Define P and NP classes. Differentiate between approximation and heuristic algorithm.
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Build XOR with 2 to 4 decoder and NOR gate:
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Strategy pattern has 3 algorithm and they are: insertion sort, selection sort and quick sort. Describe something about the system.
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Why is A* optimal? Give condition when it is optimal.
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Write main reason of failure in Software project.
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Question text is from the public recruitment exam; answers and explanations are written by ARBS Academy. All past papers · M.Sc. admission (CSE and ICT) guide