Prepare for the BEL Probationary Engineer (Computer Science) CBT recruitment examination with official previous years' solved questions across Data Structures & Algorithms, Operating Systems & Real-Time OS (RTOS), Computer Networks & Defense Network Protocols, DBMS & SQL, Computer Architecture & Pipelining (COA), Compiler Design, Object-Oriented Programming (C++/Java), Software Engineering, Network Security & Cryptography, and General Engineering Aptitude.
Marking pattern: +1.00 positive, -0.25 negative marking (Official BEL Computer Science CBT Scheme).
Which option most clearly highlights why the Software Engineering discipline is essential for large software projects development?
Which of the following is a default port number for FTP?
A data scientist is developing a predictive model for loan default detection using a dataset that contains labelled examples of previous loan applications marked as 'defaulted' or 'not defaulted'. However, during model training, the algorithm shows very high accuracy on training data but performs poorly on new unseen test data. Despite adding more labelled data, the issue persists.
Which of the following best explains the underlying problem in the supervised learning process?
Which of the following is NOT a limitation of DBSCAN?
What is the function of the control bus in a computer system?
The equivalent hexadecimal representation for the binary number $1011101.1101$ is:
If SetConsoleMode() is called with an input handle (STD_INPUT_HANDLE), which of the following mode flags CANNOT be used?
Analyse the following C program and predict its output.
#include <stdio.h>
int main() {
FILE *fp;
if ((fp = fopen("temp.txt", "r")) == NULL)
printf("Error");
else {
fclose(fp);
fclose(fp);
}
return 0;
}Which Unix System call is equivalent to Windows System call CreateFile()?
Which is a major design criticism of the OSI model?
Consider a DFS on a graph with vertices {A, B, C, D, E}. If the traversal starts at A and discovers vertices in order A → B → C → D → E, what is the DFS finishing order?
A system uses fixed partitioning with the following memory blocks and process allocations:
| Block Size (MB) | Process Size (MB) |
|---|---|
| 4 | 1 |
| 8 | 7 |
| 8 | 7 |
| 16 | 14 |
Which statement is true about internal and external fragmentation?
A system uses variable partition memory management with the following free memory blocks (in KB):
| Block | Size (KB) |
|---|---|
| 1 | 100 |
| 2 | 500 |
| 3 | 200 |
| 4 | 300 |
| 5 | 600 |
Four processes arrive in the following order with their memory requirements (in KB): P1: 212, P2: 417, P3: 112, P4: 426.
Using the Best Fit allocation strategy, determine which block each process is allocated to and how much total internal fragmentation remains at the end of all allocations.
If an NFA has 4 states, what is the maximum number of states possible in the equivalent DFA?
Which situation best demonstrates the importance of atomicity in transaction management?
Consider the following pseudo-code:
Algorithm TestComplexity (A[1..n]) 1. sum ← 0 2. for i ← 1 to n do 3. for j ← 1 to i do 4. for k ← 1 to j do 5. sum ← sum + 1 6. return sum
What is the asymptotic time complexity of the above algorithm?
A lexical analyzer uses the following regular expressions to recognise tokens in a programming language:
(letter)(letter | digit)*(digit)+(\.(digit)+)?< | <= | > | >= | == | !=(blank | tab | newline)+Consider the input string:
count<=total1
If the lexical analyzer applies maximal munch (longest match rule) and priority-based resolution (in the order: $\text{REL\_OP} > \text{NUM} > \text{ID} > \text{WHITESPACE}$), what will be the correct sequence of tokens recognised?
In an AND gate with two inputs A and B, the output Y is defined as $Y = AB$. Which of the following truth table entries correctly represents this logic?
What is the relation violates when two tuples have identical values for all attributes?
In a banking system, a transaction T1 transfers ₹300 from Account A to Account B. Balances are stored in a table Accounts (AccNo, Balance) with the constraint:
CHECK (Balance >= 0)
Suppose the following sequence occurs:
1. T1 deducts ₹300 from Account A.
2. System crashes before adding ₹300 to Account B.
3. The system restarts without recovery.
Which component of ACID has been compromised to the greatest extent in this case?
To write data to the end of a file using WriteFile() without truncating its contents, the file should be opened with which configuration?
Consider the following binary tree:
If an in-order traversal is performed on this tree, what will be the correct order of visiting nodes?
During lexical analysis, which component is primarily responsible for recognising tokens from the input stream of characters?
Convert the octal number $(7356.47)_8$ into its binary and decimal equivalent, and identify which of the following decimal values is correct.
Which of the following is represented as 'Software Crisis'?