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).
Consider the following Java code:
class Parent {
int x = 10;
void show() { System.out.println("Parent: " + x); }
}
class Child extends Parent {
int x = 20;
void show() { System.out.println("Child: " + x); }
}
public class Test {
public static void main(String[] args) {
Parent obj = new Child();
System.out.println(obj.x);
obj.show();
}
}What will be the output of this program?
In a multimedia operating system, which of the following functionalities is most critical to ensure continuous playback of audio and video streams without jitter or frame drops?
When a browser sends a GET request and the server responds with the status code 304 (Not Modified), what does this imply?
A computer system has an 8-bit address bus. Addresses from 00000000 to 01111111 are used for memory, and addresses from 10000000 to 11111111 are used for I/O devices.
If each memory location stores one 8-bit word, which of the following statements is true?
The instruction STA 3000H performs which of the following operations?
Identify the option in which both statements perform the same operation for any numeric variable a.
Consider the array [5, 1, 4, 2, 8]. After the first pass of Bubble Sort to sort array elements in ascending order, what is the state of the array?
Which of the following statements about domain constraints in a relational database is most accurate?
Which of the following elements of graphic design primarily helps in creating depth, contrast and emphasis by controlling how light or dark an area appears?
Which of the following regular expressions defines an infinite language over the alphabet $\Sigma = \{a, b\}$?
In the ID3 (Iterative Dichotomiser 3) algorithm used for building Decision Trees, which of the following statements is correct?
Which of the following is a use of Compiler technology in embedded systems?
A computer system has a 16-bit address bus and uses byte-addressable memory. The main memory consists of two memory chips, each of size 32 KB. If the address space begins at 0000H, which of the following represents the correct address range for the second memory chip?
Consider the following Java program:
class Demo {
int x = 5;
static int y = 10;
void display() {
int x = 20;
System.out.println(x + " " + this.x + " " + y);
}
}
class Test {
static int y = 50;
public static void main(String[] args) {
Demo d = new Demo();
d.display();
System.out.println(d.y + " " + y);
}
}What will be the output of the program?
What will be the output of the following C program segment?
#include <stdio.h>
int main() {
int i = 1, sum = 0;
do {
if (i % 2 == 0)
sum += i;
i++;
} while (i <= 5);
printf("%d", sum);
return 0;
}Which of the following is the output of a compiler?
In an FCFS-scheduled system, five processes arrive at time 0 (zero):
P1 (CPU-bound, 20 ms) and P2-P5 (I/O-bound, 2-5 ms).
Which outcome is most likely under FCFS?
Which of the following algorithms correctly traverses all elements of a one-dimensional array A from index lower_bound to upper_bound?
Consider the following given grammar:
S → L = R | R L → * R | id R → L
Which of the following statements is true about this grammar with respect to LR parsing techniques?
In the context of multimedia compositing, which of the following best describes the primary function of chroma keying used in live-action and post-production integration?
In the process of converting a Moore machine to an equivalent Mealy machine, which of the following statements is true?
How is a multivalued attribute represented in an ER diagram?
In Kruchten's 4+1 view model of software architecture, which view shows the key abstractions in the system as objects or object classes?
In the Internet Multimedia Protocol Stack, which of the following correctly matches the protocol with its primary function in supporting multimedia communication?
| Protocol | Function | ||
|---|---|---|---|
| 1. | RTP | a. | Manages multimedia call setup, control and teardown |
| 2. | RTCP | b. | Provides feedback on quality of data delivery and synchronisation between streams |
| 3. | SIP | c. | Handles real-time delivery of audio/video streams |
| 4. | RSVP | d. | Reserves network resources and provides QoS guarantees |
Choose the correct answer from the options given below:
In a CPU with a 16-bit instruction word, the opcode field occupies 6 bits, and the instruction format supports two register operands and one immediate operand. If the system has 32 general-purpose registers, what is the maximum size (in bits) of the immediate operand that can be accommodated?