What is the decimal value represented by the 8-bit binary string after performing the addition \(01011100_2 + 00111010_2\) in an 8-bit signed two's complement system?
- A.150
- B.-106
- C.-105
- D.-92
Consider the following algorithm in pseudocode:\n\n```\nA = 5\nB = 3\nC = 0\nWhile A > 0 do\n If A mod 2 == 1 then\n C = C + B\n B = B * 2\n A = A div 2\n```\n\nWhat is the value of `C` when the algorithm finishes?
- A.3
- B.9
- C.15
- D.24
Which of the following statements about cache memory in a computer system are correct?\n\n(1) Cache memory is faster than RAM but slower than CPU registers.\n(2) Cache memory is non-volatile.\n(3) Cache memory stores frequently used data and instructions to speed up CPU processing.
- A.(1) and (2) only
- B.(1) and (3) only
- C.(2) and (3) only
- D.(1), (2) and (3)
An IP address is `192.168.10.45` with a subnet mask of `255.255.255.240`. Which of the following IP addresses is in the same subnet as this IP address?
- A.192.168.10.28
- B.192.168.10.31
- C.192.168.10.42
- D.192.168.10.48
Consider the following database schema for a school enrollment system:\n\n`STUDENT(StudentID, StudentName, Class)`\n`COURSE(CourseID, CourseName, Teacher)`\n`ENROLLMENT(StudentID, CourseID, EnrollDate, Grade)`\n\nWhich of the following statements is/are correct?\n\n(1) The primary key of `ENROLLMENT` should be the composite key `(StudentID, CourseID)`.\n(2) `StudentID` in `ENROLLMENT` is a foreign key referencing `STUDENT`.\n(3) `StudentID` in `STUDENT` must be unique and cannot contain null values.
- A.(1) and (2) only
- B.(1) and (3) only
- C.(2) and (3) only
- D.(1), (2) and (3)
In a spreadsheet, cell `B2` contains the formula `=$A$1 + B1`. If this formula is copied and pasted into cell `D4`, what will the formula in `D4` be?
- A.=$A$1 + B1
- B.=$C$3 + D3
- C.=$A$1 + D3
- D.=$A$1 + C3
If Alice wants to send a confidential message to Bob using public key cryptography, which key should Alice use to encrypt the message, and which key should Bob use to decrypt it?
- A.Alice encrypts with Alice's public key; Bob decrypts with Bob's private key.
- B.Alice encrypts with Bob's public key; Bob decrypts with Bob's private key.
- C.Alice encrypts with Bob's private key; Bob decrypts with Alice's public key.
- D.Alice encrypts with Alice's private key; Bob decrypts with Alice's public key.
Which of the following are advantages of RFID technology over traditional optical barcodes?\n\n(1) RFID tags can be read without a direct line of sight.\n(2) Multiple RFID tags can be scanned and identified simultaneously.\n(3) RFID tags can store larger amounts of data and many can be read/written multiple times.
- A.(1) and (2) only
- B.(1) and (3) only
- C.(2) and (3) only
- D.(1), (2) and (3)
A student wrote a program to find the average of three positive integers. The program executed without any error messages, but it printed `7` instead of `5` when the inputs were `3`, `5`, and `7`. What type of error is this?
- A.Syntax error
- B.Runtime error
- C.Logical error
- D.Compilation error
An uncompressed stereo (2 channels) audio track is recorded with a sampling rate of \(44.1 \text{ kHz}\) and a bit depth of \(16 \text{ bits}\). What is the file size of a 2-minute recording in megabytes (MB)? (Assume \(1 \text{ MB} = 10^6 \text{ bytes}\))
- A.5.3 MB
- B.10.6 MB
- C.21.2 MB
- D.42.3 MB
An 8-bit register represents signed integers using two's complement representation. What is the decimal value represented by the binary string \(11001011_2\)?
- A.-53
- B.-52
- C.-75
- D.203
Which of the following statements about CPU cache memory is/are correct? (1) It is faster than DRAM but slower than CPU registers. (2) It uses SRAM. (3) It stores the most frequently used data and instructions to reduce the average cost of access from the main memory.
- A.(1) and (2) only
- B.(1) and (3) only
- C.(2) and (3) only
- D.(1), (2) and (3)
A computer has an IP address of \(192.168.10.45\) and a subnet mask of \(255.255.255.224\). Which of the following IP addresses is on the same local subnet as this computer?
- A.\(192.168.10.30\)
- B.\(192.168.10.50\)
- C.\(192.168.10.65\)
- D.\(192.168.10.128\)
Consider the following pseudocode segment: `X = 7`, `Y = 3`, `result = 0`. `while X > 0 do:` `if X % 2 != 0 then result = result + Y`, `X = X div 2`, `Y = Y * 2`. What is the value of `result` after execution? (Note: `div` represents integer division and `%` represents the modulo operator.)
- A.9
- B.15
- C.21
- D.24
In a spreadsheet, cell B2 contains the formula `=$A2 + B$1`. If cell B2 is copied and pasted into cell D4, what formula will be displayed in cell D4?
- A.`=$A4 + D$1`
- B.`=$C4 + D$1`
- C.`=$A4 + B$1`
- D.`=$A2 + D$3`
Consider two relational database tables: `STUDENT` (`StudentID`, `Name`, `ClassID`) where `StudentID` is the primary key and `ClassID` is a foreign key referencing the `CLASS` table, and `CLASS` (`ClassID`, `ClassName`, `Teacher`) where `ClassID` is the primary key. Which of the following operations violates referential integrity?
- A.Inserting a new record into `STUDENT` with a `ClassID` that does not exist in the `CLASS` table.
- B.Deleting a record from `STUDENT`.
- C.Inserting a new record into `CLASS` with a new `ClassID`.
- D.Updating the `Teacher` field of an existing record in the `CLASS` table.
Alice wants to send an encrypted message to Bob to ensure confidentiality, and she also wants to attach a digital signature to guarantee the authenticity of the message. To achieve both confidentiality and authenticity, Alice should encrypt the message and create the digital signature using which keys?
- A.Encrypt the message with Bob's public key, and sign with Alice's private key.
- B.Encrypt the message with Alice's public key, and sign with Bob's private key.
- C.Encrypt the message with Bob's private key, and sign with Alice's public key.
- D.Encrypt the message with Alice's private key, and sign with Bob's public key.
A program accepts an integer input \(N\) representing a student's mark (\(0 \le N \le 100\)). It outputs "Pass" if \(N \ge 50\) and "Fail" otherwise. A programmer wants to perform Boundary Value Analysis (BVA) to design test cases. Which of the following sets of values for \(N\) represents the best boundary test cases?
- A.\(-1, 0, 49, 50, 100, 101\)
- B.\(0, 50, 100\)
- C.\(-10, 50, 150\)
- D.\(0, 1, 49, 50, 51, 99, 100\)
Which of the following is an example of a data verification method rather than a data validation method?
- A.Double entry
- B.Range check
- C.Format check
- D.Check digit
Which of the following are advantages of Radio Frequency Identification (RFID) technology over Barcode technology? (1) RFID tags can be read without a direct line of sight. (2) Multiple RFID tags can be scanned simultaneously. (3) RFID tags can store read-write data, whereas traditional barcodes are read-only.
- A.(1) and (2) only
- B.(1) and (3) only
- C.(2) and (3) only
- D.(1), (2) and (3)
In an 8-bit two's complement binary system, what is the representation of the decimal value \(-43\)?
- A.11010101
- B.10101011
- C.11010100
- D.00101011
Which of the following statements about cache memory in a computer system is/are correct?
(1) Cache memory is faster than RAM because it is located closer to or inside the CPU.
(2) Cache memory has a larger capacity than RAM to store more executing program instructions.
(3) Cache memory is non-volatile, retaining data even when the computer is powered off.
- A.(1) only
- B.(2) only
- C.(1) and (3) only
- D.(2) and (3) only
Consider the following algorithm written in pseudocode:
```
X = 14
Y = 4
result = 0
while X >= Y do
X = X - Y
result = result + 1
endwhile
```
What are the values of `X` and `result` after the execution of the algorithm?
- A.X = 0, result = 3
- B.X = 2, result = 3
- C.X = 2, result = 4
- D.X = 14, result = 3
A company wants to assign IP addresses to its host computers. Which of the following IP addresses can be assigned to a host computer on a private local area network (LAN)?
- A.127.0.0.1
- B.192.168.1.0
- C.172.16.10.25
- D.224.0.0.1
A spreadsheet contains the following data:
- Cell A1: 10, Cell B1: 2
- Cell A2: 20, Cell B2: 4
- Cell A3: 30, Cell B3: 5
The formula `=$A1+B$1` is entered in cell C1 and then copied to cell D3. What is the value displayed in cell D3?
- A.32
- B.35
- C.42
- D.15
An audio file is recorded with a sampling rate of 44.1 kHz, 16-bit resolution, and in stereo (2 channels). What is the estimated file size, in megabytes (MB), of a 5-minute uncompressed recording?
- A.\(\frac{44100 \times 16 \times 2 \times 300}{8 \times 1024 \times 1024}\)
- B.\(\frac{44100 \times 16 \times 300}{8 \times 1024 \times 1024}\)
- C.\(\frac{44100 \times 16 \times 2 \times 5}{8 \times 1024 \times 1024}\)
- D.\(\frac{44100 \times 16 \times 2 \times 300}{1024 \times 1024}\)
During the fetch stage of the machine cycle, which register stores the address of the next instruction to be executed?
- A.Program Counter (PC)
- B.Instruction Register (IR)
- C.Memory Address Register (MAR)
- D.Accumulator (ACC)
An array of 1,000 elements is sorted in ascending order. If we use the binary search algorithm to search for a specific target value in this array, what is the maximum number of comparisons needed?
- A.10
- B.500
- C.1,000
- D.1,024
When a smartphone connects to a public Wi-Fi network, which protocol is responsible for automatically assigning a temporary IP address, subnet mask, and default gateway to the device?
- A.DNS
- B.DHCP
- C.HTTP
- D.ARP
To ensure the accuracy of data entry in a database, a developer implements two measures:
(1) Entering the password twice during registration to ensure they match.
(2) Checking if the entered age is a positive integer between 0 and 150.
Which types of data checks are (1) and (2) respectively?
- A.(1) Data validation; (2) Data validation
- B.(1) Data validation; (2) Data verification
- C.(1) Data verification; (2) Data validation
- D.(1) Data verification; (2) Data verification
An 8-bit register stores integers in 2's complement representation. What is the result in decimal when the bitwise XOR operation is performed between the representation of -18 and 35, and then interpreted as a signed 8-bit integer?
- A.-51
- B.-53
- C.51
- D.-17
Consider the following pseudo-code:
`X = 0`
`For I from 1 to 4:`
` For J from I to 4:`
` If (I + J) is even then:`
` X = X + I`
` Else:`
` X = X + J`
What is the value of `X` after executing the algorithm?
- A.20
- B.24
- C.26
- D.30
A computer system is upgraded by increasing its data bus width from 32-bit to 64-bit, while the clock frequency is reduced from \(3.2 \text{ GHz}\) to \(2.0 \text{ GHz}\). Assuming that the CPU can fetch one word per bus cycle and all other factors remain constant, what is the ratio of the theoretical maximum data transfer rate of the new system's data bus to that of the old system?
- A.0.625
- B.0.8
- C.1.25
- D.1.6
An organization is assigned the IP address range 192.168.10.0/24. If they need to divide this network into exactly 4 subnets of equal size, which of the following represents the valid subnet mask and the maximum number of usable host IP addresses in each subnet?
- A.Subnet Mask: 255.255.255.192, Usable Hosts: 62
- B.Subnet Mask: 255.255.255.192, Usable Hosts: 64
- C.Subnet Mask: 255.255.255.224, Usable Hosts: 30
- D.Subnet Mask: 255.255.255.224, Usable Hosts: 32
In a spreadsheet, cell A1 contains the formula `=$B1+C$2`. If we copy this formula and paste it into cell D3, what is the formula in D3?
- A.=$B3+F$2
- B.=$E3+F$2
- C.=$B3+C$2
- D.=$E1+C$2
Alice wants to send a confidential and digitally signed document to Bob using asymmetric key cryptography. Which keys should Alice use to sign the document and encrypt the document respectively?
- A.Alice's private key for signing, Bob's public key for encryption
- B.Alice's public key for signing, Bob's private key for encryption
- C.Bob's private key for signing, Alice's public key for encryption
- D.Bob's public key for signing, Alice's private key for encryption
Which of the following statements about disk defragmentation is/are correct?
(1) It reduces the physical distance the read/write head of a Solid State Drive (SSD) needs to move, thereby extending its lifespan.
(2) It reorganizes fragmented files into contiguous sectors to improve file access speed on Hard Disk Drives (HDDs).
(3) It increases the total unused storage capacity of the disk by compressing system files.
- A.(1) only
- B.(2) only
- C.(1) and (3) only
- D.(2) and (3) only
In a relational database, there are two tables: `STUDENT` and `CLASS`. The primary key of `CLASS` is `ClassID`. The `STUDENT` table has a foreign key `ClassID` that references the `CLASS` table. Which of the following operations would violate referential integrity?
(1) Inserting a new record into `STUDENT` with a `ClassID` that does not exist in `CLASS`.
(2) Deleting a record from `CLASS` when there are student records referencing that `ClassID`.
(3) Updating a student's `ClassID` to `NULL`, assuming nullable constraints allow it.
- A.(1) only
- B.(1) and (2) only
- C.(2) and (3) only
- D.(1), (2) and (3)
Which of the following tasks should be processed using server-side scripting rather than client-side scripting?
(1) Validating that an email input field contains an '@' symbol before submission.
(2) Verifying user credentials against a secure database for user authentication.
(3) Connecting to a payment gateway API securely to process a credit card transaction.
- A.(1) only
- B.(1) and (2) only
- C.(2) and (3) only
- D.(1), (2) and (3)
Which of the following are advantages of compiled programs over interpreted programs?
(1) They generally execute faster because the source code has been translated into machine code beforehand.
(2) They are easier to debug during runtime as errors are caught and shown line by line.
(3) The source code does not need to be distributed to end-users, protecting intellectual property.
- A.(1) and (2) only
- B.(1) and (3) only
- C.(2) and (3) only
- D.(1), (2) and (3)