BUET M.Sc. Admission Department of CSE Exam 2024 — Question Solution | বুয়েট এমএসসি ভর্তি নিয়োগ পরীক্ষা ২০২৪ — প্রশ্ন সমাধান
- BUET M.Sc. Admission
- 2024
- 13 questions · 0 MCQ, 13 written
Page updated
ARBS Academy · itjobs.arbsacademy.com
About this exam paper · প্রশ্নপত্র পরিচিতি
The BUET M.Sc. Admission Department of CSE exam was held in 2024. The paper had 13 written questions. The subjects asked most were Algorithms (4), Programming (2) and Software Engineering (2). This page lists every question, with 2 answered and explained; the rest of the answers open with a free ARBS Academy account, where the paper can also be practised as a timed test.
বুয়েট এমএসসি ভর্তি নিয়োগ পরীক্ষার (২০২৪) এই প্রশ্নপত্রে ১৩টি প্রশ্ন ছিল, বেশিরভাগ অ্যালগরিদম ও প্রোগ্রামিং থেকে। এখানে ২টি প্রশ্নের ব্যাখ্যাসহ উত্তর দেওয়া আছে; বাকিগুলো ফ্রি অ্যাকাউন্টে খোলে।
- Organisation
- BUET M.Sc. Admission
- Exam date
- 2024
- Questions
- 13 (0 MCQ, 13 written)
- Exam guide
- M.Sc. admission (CSE and ICT) · এমএসসি ভর্তি (সিএসই ও আইসিটি)
What is over fitting? How to avoid it?
Model answer
Overfitting happens when a model learns the training data too closely, including its noise and accidental quirks, so it scores very well on the training data but poorly on new, unseen data. It has memorised examples instead of learning the general pattern (low bias, high variance).
How to recognise it: training error keeps falling while validation (or test) error stops falling and starts to rise; a large gap between the two is the warning sign. Illustration: a loan-default classifier with 99 % training accuracy but 76 % validation accuracy is overfitting; one with about 70 % on both is underfitting (too simple); one with 88 % and 86 % fits well.
flowchart LR
A["Model too simple"] --> B["Underfitting: high training and validation error"]
C["Suitable complexity"] --> D["Good fit: both errors low and close"]
E["Model too complex or trained too long"] --> F["Overfitting: low training error, high validation error"]
Common causes
- Model too complex for the amount of data (too many parameters, features or tree depth).
- Too little or unrepresentative training data, or noisy labels.
- Training for too many epochs.
- Information leaking from the test data into training or tuning.
How to avoid it
| Method | How it helps |
|---|---|
| More training data, or data augmentation (rotated or cropped images, paraphrased text) | Harder to memorise; the model sees more variety |
| Simpler model / feature selection | Less capacity to fit noise |
| Regularisation: L1 (lasso), L2 (ridge / weight decay) | Penalises large weights, giving smoother models |
| Dropout (neural networks) | Randomly switches off units in training so the network cannot rely on a few of them |
| Early stopping | Stops training when validation loss stops improving |
| Pruning, maximum depth, minimum samples per leaf (trees) | Removes branches that fit only a few records |
| Ensembles such as bagging / random forest | Averaging many models reduces variance |
| Cross-validation (k-fold) | Gives a reliable estimate to choose complexity and hyperparameters; detects overfitting rather than curing it by itself |
| Clean train / validation / test split | Prevents leakage, so overfitting is not hidden |
Exam tip: overfitting = low training error + high validation/test error; cure it by reducing effective complexity (regularisation, pruning, dropout, early stopping) or by adding data, not by training longer or adding more features.
Why is the pumping lemma used only for negative proofs?
How DHCP attack works?
Find Output from below code:
int main(){
unsigned int i= 10; if(i>-1)
cout << "Yes";
else
cout << "No"; return 0;
}
Sign up free to see the model answers to written questions 2–4 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
What is a functional interface in Java? Give an example.
Model answer
A functional interface in Java (Java 8 and later) is an interface that has exactly one abstract method (a single abstract method, SAM). Because there is only one method to implement, a lambda expression or a method reference can be used wherever an object of that interface is expected: the lambda body becomes the body of that one method.
Rules
- Exactly one abstract method.
defaultandstaticmethods (Java 8) andprivatemethods (Java 9) have bodies, so they do not count. - An abstract method that matches a public method of
Object(such astoString(),equals(Object),hashCode()) does not count either. This is whyComparator<T>is functional although it also declaresequals(Object). @FunctionalInterfaceis optional; it only asks the compiler to check the rule. With a second abstract method, javac stops witherror: Unexpected @FunctionalInterface annotationand the reasonmultiple non-overriding abstract methods found in interface Charge.- A lambda can target only a functional interface. Assigning one to an interface with two abstract methods is a compile error (
... is not a functional interface).
Example
import java.util.function.Function;
import java.util.function.Predicate;
@FunctionalInterface
interface Charge {
int compute(int amount); // the only abstract method
default String show(int amount) { // default method: allowed
return amount + " -> charge " + compute(amount);
}
static Charge fixed(int taka) { // static method: allowed
return amount -> taka;
}
String toString(); // public method of Object: not counted
}
public class ChargeDemo {
static int onePercent(int amount) {
return amount / 100;
}
public static void main(String[] args) {
Charge oldStyle = new Charge() { // before Java 8: anonymous class
public int compute(int amount) { return amount / 50; }
};
Charge lambda = amount -> amount / 20; // Java 8: lambda
Charge ref = ChargeDemo::onePercent; // Java 8: method reference
System.out.println(oldStyle.show(3000));
System.out.println(lambda.show(3000));
System.out.println(ref.show(3000));
System.out.println(Charge.fixed(15).show(3000));
Predicate<Integer> passed = mark -> mark >= 40; // java.util.function
Function<String, Integer> size = String::length;
System.out.println(passed.test(38) + " " + size.apply("Khulna"));
}
}
Output
3000 -> charge 60
3000 -> charge 150
3000 -> charge 30
3000 -> charge 15
false 6
How each line is produced (integer division)
| Object | Implementation of compute |
compute(3000) |
|---|---|---|
oldStyle |
anonymous class (the pre-Java 8 way) | 3000 / 50 = 60 |
lambda |
amount -> amount / 20 |
150 |
ref |
method reference ChargeDemo::onePercent |
3000 / 100 = 30 |
Charge.fixed(15) |
static method returning amount -> taka |
15 |
show() is the default method; it calls whichever compute the object carries. passed.test(38) is false (38 < 40) and size.apply("Khulna") is 6.
Common built-in functional interfaces
| Interface | Package | Abstract method |
|---|---|---|
Runnable |
java.lang |
void run() |
Comparator<T> |
java.util |
int compare(T a, T b) |
Callable<V> |
java.util.concurrent |
V call() |
Predicate<T> |
java.util.function |
boolean test(T t) |
Function<T,R> |
java.util.function |
R apply(T t) |
Consumer<T> |
java.util.function |
void accept(T t) |
Supplier<T> |
java.util.function |
T get() |
Exam tip: functional interface = one abstract method (default, static, private and Object methods are not counted); it is the target type of every lambda and method reference, and @FunctionalInterface is optional but makes the compiler enforce the rule.
Predictive parsing table cell entries for A → α and A → ε: describe them in terms of FIRST and FOLLOW.
Algorithm for checking loop in singly linked list.
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.
Define P and NP classes. Differentiate between approximation and heuristic algorithm.
Build XOR with 2 to 4 decoder and NOR gate:
A system uses the Strategy pattern with 3 algorithms: insertion sort, selection sort and quick sort. Describe the system.
Why is A* optimal? Give condition when it is optimal.
Write the main reasons for failure of a software project.
Sign up free to see the model answers to written questions 6–13 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Explanations © ARBS Academy
Keep going with a free account · ফ্রি অ্যাকাউন্টে যা যা করতে পারবেন
11 more answers from this paper open with a free account.
এই প্রশ্নপত্রের আরও ১১টি উত্তর, ধাপে ধাপে ব্যাখ্যাসহ, ফ্রি অ্যাকাউন্টে খুলবে।
Free account · 1 day of Premium free
Paper analysis · প্রশ্নপত্র বিশ্লেষণ
Its questions come from 12 syllabus chapters; the biggest is Theory of Computation & Compilers, in Algorithms, with 2 questions. Theory of Computation & Compilers is asked in 20 other papers too (2017–2026).
Its biggest topics · প্রধান টপিক
Questions in this paper, and how many of our other papers ask the topic
- Theory of Computation & Compilers Algorithms · 20 other papers, 2017–20262
- Language Basics & Syntax Programming · 122 other papers, 2015–20261
- Attacks & Threats Cyber Security · 81 other papers, 2012–20261
- Functions & Recursion Programming · 60 other papers, 2016–20261
- Requirements & Design Software Engineering · 50 other papers, 2016–20261
- AI & Machine Learning Cloud & Emerging Tech · 49 other papers, 2017–20261
From our own past papers: each question filed under one syllabus chapter. Practice and held questions are not counted.
Questions about this paper · সাধারণ প্রশ্ন
- How many questions were in the BUET M.Sc. Admission Department of CSE exam (2024)?
- 13 written questions.
- Which subjects were asked most in the BUET M.Sc. Admission Department of CSE exam (2024)?
- Algorithms (4), Programming (2) and Software Engineering (2), out of 13 questions.
- When was the BUET M.Sc. Admission Department of CSE exam held?
- In 2024. The exact day isn't in our records.
- Where can I find the BUET M.Sc. Admission Department of CSE exam (2024) question solution?
- On this page: 2 of the 13 questions are shown with worked answers. The rest of the answers open with a free ARBS Academy account, where the paper can also be practised as a timed test.
Question text is from the public recruitment exam; answers and explanations are written by ARBS Academy. All past papers