Photo AI

The Internet café must keep records of the users and be able to charge users for the time that they were logged onto the Internet - NSC Information Technology - Question 4 - 2016 - Paper 2

Question icon

Question 4

The-Internet-café-must-keep-records-of-the-users-and-be-able-to-charge-users-for-the-time-that-they-were-logged-onto-the-Internet-NSC Information Technology-Question 4-2016-Paper 2.png

The Internet café must keep records of the users and be able to charge users for the time that they were logged onto the Internet. A database for this purpose has be... show full transcript

Worked Solution & Example Answer:The Internet café must keep records of the users and be able to charge users for the time that they were logged onto the Internet - NSC Information Technology - Question 4 - 2016 - Paper 2

Step 1

Motivate the choice of radio buttons for the Gender option.

96%

114 rated

Answer

The choice of radio buttons for the Gender option is motivated by the need for users to select only one valid option at a time. This ensures that the input is restricted to a predetermined set of responses, thereby reducing errors associated with free-text entry. Furthermore, radio buttons provide a clear visual layout, making the interface user-friendly.

Step 2

Without changing the label, suggest ONE way in which the GUI could be changed to indicate the format in which the user should enter the time.

99%

104 rated

Answer

One way to indicate the format for entering time is to use two combo boxes, one for hours and another for minutes. This change can assist users in selecting appropriate values without the need for them to remember or adhere to specific input formats.

Step 3

Explain the difference between valid data and correct data by using the information in the GUI above.

96%

101 rated

Answer

Valid data refers to data that adheres to the defined rules and constraints, such as format and acceptable values. For instance, in the GUI, an acceptable hour for 'Time' must be within the 0 to 24 range. On the other hand, correct data means that the data accurately represents the real-world entity or situation it is supposed to describe. For example, entering '25:00' is valid (in terms of format), but it is not correct since there is no 25th hour in a day.

Step 4

Indicate how the tables above could be linked so that a one-to-many relationship can be formed.

98%

120 rated

Answer

The tables tblComputers and tblUsers can be linked by using the ComputerNumber field from tblComputers as the primary key and placing it as a foreign key in tblUsers. This setup will enable each computer to be associated with multiple users, establishing the one-to-many relationship.

Step 5

Display the logout time of the users who paid with debit cards in sequential order.

97%

117 rated

Answer

SELECT LogoutTime
FROM tblUsers
WHERE PaymentMethod = 'Debit Card'
ORDER BY LogoutTime;

Step 6

Change the payment method for 73110117564076 to 'Credit Card'.

97%

121 rated

Answer

UPDATE tblUsers
SET PaymentMethod = 'Credit Card'
WHERE UserIDNo = '73110117564076';

Step 7

Display the number of users who paid with cash. The number of users must be displayed in a field called CountCashIds.

96%

114 rated

Answer

SELECT COUNT(UserIDNo) AS CountCashIds
FROM tblUsers
WHERE PaymentMethod = 'Cash';

Step 8

Display a list of users who logged in after 12:00 on 2016/02/25.

99%

104 rated

Answer

SELECT *
FROM tblUsers
WHERE (LoginTime > '12:00')
AND (LoginDate = '2016/02/25');

Step 9

State the basic information that is captured during an audit trail.

96%

101 rated

Answer

The basic information captured during an audit trail includes records of changes made to the database, the time when changes were made, the specific user who made those changes, and details of the data that was altered.

Step 10

Indicate TWO ways in which data is captured invisibly.

98%

120 rated

Answer

  1. Using credit cards or loyalty cards when purchases are made.
  2. Tracking user behavior when browsing the Internet or selecting webpages.

Step 11

What is this process called?

97%

117 rated

Answer

This process is known as data mining.

Join the NSC students using SimpleStudy...

97% of Students

Report Improved Results

98% of Students

Recommend to friends

100,000+

Students Supported

1 Million+

Questions answered

;