Free Bachelor of Computer Science Degree MCQ Questions and Answers — Questions and Answers
Question 1: The bank will request your phone number when you visit to open a new account so they can link it to your account in the event of an incident. Which of the following best sums up the justification?
- It is done to protect the account from phishing attempts
- It is done to set up asymmetric authentication mechanisms
- It is done to set up multi-factor authentication (Correct answer)
- It is to alleviate privacy concerns
Correct answer: It is done to set up multi-factor authentication
Providing a phone number when opening a new bank account is primarily done to set up multi-factor authentication (MFA). MFA adds an essential layer of security by requiring more than one method of verification, such as a password combined with a one-time code sent to the registered phone. This significantly enhances account protection against unauthorized access, as an attacker would need both the password and access to the phone.
Question 2: In order to quickly complete all tasks by dividing the vast amount of data into smaller pieces and distributing them to different computer equipment for sequential processing, an organization has built up a parallel computing system. <br> The company, however, requests that its staff refrain from connecting any new devices to the system. If the company decides against further segmenting the tasks, what could be a potential justification for the restriction?
- Additional devices do not increase parallel data processing speed.
- Additional devices require more connection power and space
- There are limited connection configurations for additional devices
- Additional devices do not increase the speed of the sequential processing (Correct answer)
Correct answer: Additional devices do not increase the speed of the sequential processing
The problem states that the organization has built a parallel computing system to divide data for *sequential processing* on different equipment. If the company decides against further segmenting tasks, it implies that the remaining processing steps are inherently sequential and cannot be broken down further for parallel execution. In such a scenario, adding more devices to the parallel system will not improve the speed of these specific sequential parts of the task, as they must be completed one after another regardless of available hardware.
Question 3: Which of the following codes, when run, will result in a TRUE statement?
- ((NOT(true AND false)) AND (false OR true))
- ((NOT (true)) OR (false AND true))
- ((true AND false) AND (false OR true))
- ((true OR false) AND NOT (false OR NOT (true)) (Correct answer)
Correct answer: ((true OR false) AND NOT (false OR NOT (true))
Let's evaluate the expression step-by-step. First, `(true OR false)` simplifies to `true`. Next, `NOT (true)` is `false`, so `(false OR NOT (true))` becomes `(false OR false)`, which is `false`. Applying `NOT` again, `NOT (false OR NOT (true))` evaluates to `NOT (false)`, which is `true`. Finally, combining the simplified parts, `true AND true` results in a `TRUE` statement.
Question 4: You create a program that enables you to do several mathematical operations (such as addition, subtraction, multiplication, and division) on a collection of integers taken from a database. <br> The real test results, however, return a random value, which makes you believe that your code contains a randomizing variable.
- Using DISPLAY statements at different points of code
- Rerunning the code (Correct answer)
- Code Tracing
- Using a code visualizer
Correct answer: Rerunning the code
If the test results return a 'random value' and you suspect a 'randomizing variable,' the most direct way to confirm this behavior is to rerun the code multiple times. If the output consistently changes with each execution, it provides strong evidence that a random or non-deterministic element is influencing the results. While other debugging methods can help locate the variable, rerunning the code directly demonstrates the suspected random behavior.
Question 5: On a computer, musicians record their songs. They are disappointed by the lower-than-expected sound quality they hear when they play back a digital copy of their song. Which of the following might explain why this discrepancy might exist?
- The recording was done through the lossless compression technique
- The song file was saved with lower bits per second (Correct answer)
- The file was moved from the original location, causing some information to be lost
- The song file was saved with higher bits per second
Correct answer: The song file was saved with lower bits per second
Digital audio quality is directly correlated with the bitrate, which is the amount of data processed per unit of time, often measured in bits per second (bps). Saving a song file with a lower bitrate means less data is used to represent the sound, leading to a loss of detail and fidelity. This reduction in information results in a lower perceived sound quality during playback compared to the original recording.
Question 6: 90% of the students who took the most recent AP exam at one school passed it. The school intends to leverage this success to promote its offerings to potential students' families. <br> Which approach from the list below would be best for summarizing this information and giving it to the families?
- Create a report based on the student body's overall performance for a marketing pamphlet.
- Post an interactive pie chart about the topics and scores of the passing students on the schools' website. (Correct answer)
- Post the results of the passing students on social media sites.
- Email the prospective families that have middle-school-age children.
Correct answer: Post an interactive pie chart about the topics and scores of the passing students on the schools' website.
To effectively promote the school's success to potential students' families, the information needs to be engaging, easily accessible, and provide more detail than just a pass rate. An interactive pie chart on the school's website allows families to visualize the 90% pass rate and also explore specific topics and scores. This approach offers a comprehensive and appealing way to demonstrate the school's strengths and provide valuable insights into student performance.
Question 7: A code is created by a programmer to analyze the population's middle age. Only those who meet the 42-year-old threshold are classified as middle-aged people. <br> The two conditional statements that can be used to create the algorithm are illustrated below. Will the operations in the two statements be the same? <br> I. IF (older than 42) <br> II. IF NOT (younger than 42)
- Only if all ages are even numbers above 42
- Only if all ages are 42
- No (Correct answer)
- Yes
Correct answer: No
The two conditional statements are not equivalent due to how they handle the boundary age of 42. 'IF (older than 42)' includes individuals aged 43 and above, strictly excluding those who are 42. Conversely, 'IF NOT (younger than 42)' includes individuals who are 42 or older, as it only excludes those strictly less than 42. Therefore, a person who is exactly 42 years old would satisfy the second condition but not the first, making the operations different.
The bank will request your phone number when you visit to open a new account so they can link it to your account in the event of an incident.
Which of the following best sums up the justification?