Master Computer Science & IT concepts: DBMS & SQL, Data Structures, Computer Networks, Operating Systems, Software Engineering, OOPs, and Network Security with detailed technical explanations.
Select your option below. Marking scheme: +1.00 positive, -0.25 negative.
Convert the hexadecimal number $1\text{B}0_{16}$ into its binary equivalent.
Which of the following operators has the highest precedence in C++?
What will be the output of the following C++ code snippet?
#include <iostream>
using namespace std;
int main() {
int a = 25, b = 14;
cout << a << " + " << b << " = " << a + b;
return 0;
}Assuming each arithmetic and output operation takes constant time, what is the overall time complexity of the following code?
#include <iostream>
#include <vector>
using namespace std;
int main() {
int n;
cout << "Enter the size of the 3D matrix (n x n x n): ";
cin >> n;
vector<vector<vector<int>>> matrix(
n,
vector<vector<int>> (n, vector<int>(n))
);
for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
for (int k = 0; k < n; k++) {
matrix[i][j][k] = i + j + k;
cout << matrix[i][j][k] << endl;
}
}
}
return 0;
}Which TCP port is traditionally assigned as the standard default port for unencrypted SMTP communication between mail servers?
Which data structure is most commonly used to support Last-In-First-Out (LIFO) behavior required for UNDO and REDO operations in text editors?
What is the process of converting a grayscale or color image into a binary image containing only two possible pixel intensity values called?
Which of the following statements is TRUE regarding the COCOMO (Constructive Cost Model)?
Which command in Linux is used to estimate and display the disk space usage of files and directories?
Which of the following statements is true regarding a Foreign Key in a relational database?
What is the maximum file size supported by the original Macintosh Hierarchical File System (HFS)?
Which of the following is primarily classified as a high-level scripting language rather than a low-level or system programming language?
A software company is developing a banking application where all requirements are finalized before development begins, and client involvement after the requirement phase is minimal. The development process follows a strictly linear sequence in which each phase must be completed before the next phase starts.
Which software development model is most suitable for this project?
What will be the output of the following C++ program?
#include <iostream>
#include <stack>
using namespace std;
void insertBottom(stack<int>& s, int x) {
if (s.empty()) {
s.push(x);
return;
}
int t = s.top();
s.pop();
insertBottom(s, x);
s.push(t);
}
void reverseStack(stack<int>& s) {
if (s.empty())
return;
int t = s.top();
s.pop();
reverseStack(s);
insertBottom(s, t);
}
void printStack(stack<int> s) {
while (!s.empty()) {
cout << s.top() << " ";
s.pop();
}
}
int main() {
stack<int> s;
s.push(34);
s.push(25);
s.push(58);
s.push(96);
s.push(12);
reverseStack(s);
cout << "Reversed Stack: ";
printStack(s);
return 0;
}Consider the following processes, all arriving at time $0$, with their respective burst times:
| Process | Burst Time (ms) |
|---|---|
| $P_1$ | $6$ |
| $P_2$ | $8$ |
| $P_3$ | $7$ |
| $P_4$ | $3$ |
Using Non-Preemptive Shortest Job First (SJF) scheduling, calculate the average waiting time.
If two attributes, $P$ and $Q$, satisfy the functional dependencies $P \rightarrow Q$ and $Q \rightarrow P$, then they exhibit:
Which primary function of a hypervisor (Virtual Machine Manager) involves ensuring efficient distribution and management of CPU, memory, and storage resources among virtual machines?
In an operating system, where are newly submitted processes typically stored before they are admitted into main memory for execution?
Which SQL operator is used to filter rows by checking whether a value matches any value in a specified list?
Which of the following statements regarding mutual exclusion in operating systems is false?
According to Fitts's Law, what factor significantly affects the time required to move a cursor to a target on the screen?
Which of the following is the most fundamental benefit provided by inheritance in object-oriented programming?
Which of the following best describes the function of the z-index property in CSS?
Which of the following is an aggregate function in SQL?
Which of the following statements regarding Super Key and Primary Key is incorrect?