Laden....
|
Druk & Houd Vast om te Verslepen |
|||
|
Klik hier om te sluiten |
|||
Vraag 1 Verslag
Write a QBASIC program to grade any score entered from the keyboard as either "Poor" for a score that is below 50% or "Satisfactory" for a score that is equal to or above 50%. The program execution should stop as soon as a score that is less than zero is entered.
QBASIC program to grade a score as "Poor" or "Satisfactory"
The program keeps asking for a score. If the score entered is less than zero, it stops immediately. Otherwise it prints "Poor" for a score below 50 and "Satisfactory" for a score of 50 or above.
REM Program to grade scores
CLS
DO
INPUT "Enter a score (negative to stop): ", SCORE
IF SCORE < 0 THEN
EXIT DO
END IF
IF SCORE < 50 THEN
PRINT "Poor"
ELSE
PRINT "Satisfactory"
END IF
LOOP
ENDHow it works:
SCORE < 0, the EXIT DO statement ends the loop and the program stops.Alternative using GOTO (also acceptable):
CLS
Start:
INPUT "Enter a score: ", SCORE
IF SCORE < 0 THEN END
IF SCORE < 50 THEN PRINT "Poor" ELSE PRINT "Satisfactory"
GOTO Start
Antwoorddetails
QBASIC program to grade a score as "Poor" or "Satisfactory"
The program keeps asking for a score. If the score entered is less than zero, it stops immediately. Otherwise it prints "Poor" for a score below 50 and "Satisfactory" for a score of 50 or above.
REM Program to grade scores
CLS
DO
INPUT "Enter a score (negative to stop): ", SCORE
IF SCORE < 0 THEN
EXIT DO
END IF
IF SCORE < 50 THEN
PRINT "Poor"
ELSE
PRINT "Satisfactory"
END IF
LOOP
ENDHow it works:
SCORE < 0, the EXIT DO statement ends the loop and the program stops.Alternative using GOTO (also acceptable):
CLS
Start:
INPUT "Enter a score: ", SCORE
IF SCORE < 0 THEN END
IF SCORE < 50 THEN PRINT "Poor" ELSE PRINT "Satisfactory"
GOTO Start
Vraag 2 Verslag
(a) What are "Reports" in a database system?
(b) List four (4) ways in which Reports can be viewed in database management system.
(c) Outline the steps to prints a Report in MS Access.
(a) What are "Reports" in a database system?
A report is a database object used to organise, summarise and present data from one or more tables or queries in a formatted, printable layout. Reports are designed mainly for output: they allow the user to arrange records neatly, group and sort them, perform calculations such as totals and averages, and produce professional printed documents such as invoices, result sheets or mailing lists.
(b) Four ways in which reports can be viewed in a database management system (MS Access):
(c) Steps to print a report in MS Access:
Antwoorddetails
(a) What are "Reports" in a database system?
A report is a database object used to organise, summarise and present data from one or more tables or queries in a formatted, printable layout. Reports are designed mainly for output: they allow the user to arrange records neatly, group and sort them, perform calculations such as totals and averages, and produce professional printed documents such as invoices, result sheets or mailing lists.
(b) Four ways in which reports can be viewed in a database management system (MS Access):
(c) Steps to print a report in MS Access:
Vraag 3 Verslag
(a)(i) What is Universal Serial Bus (USB)?
(ii) State two benefits of using USB connection between a computer and another device.
(b) In Table 1, three storage devices are described, Use it to answer questions 3(b)(i) and 3(b)(ii).
(i) In column 2, name the storage device being described in column 1.
(ii) Show the category of storage device being described in column 1 by ticking in any of the column 3, 4 or 5
| SN | 1 | 2 | 3 | 4 | 5 |
| Description of Storage Device | Name of Storage Device | Category of Storage Device | |||
| Primary | Secondary | Offline | |||
| 1 | Magnetic storage medium which is composed of a thin flexible disk sealed in a square plastic carrier. | ||||
| 2 | Optical media - which uses one spiral track.Red lasers are used to read and write data on the media surface and it makes use of dual-layering technology to increase the storage capacity to over 1 GB. | ||||
| 3 | Non-volatile memory chip which contents cannot be altered. It is often used to store the start-up routines in a computer (e.g the BIOS). | ||||
(a)(i) Universal Serial Bus (USB):
| Column 1 | Column 2 | Column 3 |
|---|---|---|
| Data | Data | Data |
| Data | Data | Data |
| Data | Data | Data |
Universal Serial Bus (USB) is a standard plug-and-play interface used to connect a computer to peripheral devices such as keyboards, mice, printers, scanners, flash drives, cameras and mobile phones for communication, data transfer and power supply.
(a)(ii) Benefits of USB connection:
(b) Identification and category of storage devices:
| SN | Description of Storage Device | Name of Storage Device | Primary | Secondary | Offline | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Magnetic storage medium which is composed of a thin flexible disk sealed in a square plastic carrier. | Floppy disk | ✓ | ||||||||||||||||||||||||||||||
| 2 | Optical media which uses one spiral track. Red lasers are used to read and write data on the media surface, and it makes use of dual-layering technology to increase storage capacity to over 1 GB. | DVD (Digital Versatile Disc) |
| Column 1 | Column 2 | Column 3 |
|---|---|---|
| Data | Data | Data |
| Data | Data | Data |
| Data | Data | Data |
Universal Serial Bus (USB) is a standard plug-and-play interface used to connect a computer to peripheral devices such as keyboards, mice, printers, scanners, flash drives, cameras and mobile phones for communication, data transfer and power supply.
(a)(ii) Benefits of USB connection:
(b) Identification and category of storage devices:
| SN | Description of Storage Device | Name of Storage Device | Primary | Secondary | Offline |
|---|---|---|---|---|---|
| 1 | Magnetic storage medium which is composed of a thin flexible disk sealed in a square plastic carrier. | Floppy disk | ✓ | ||
| 2 | Optical media which uses one spiral track. Red lasers are used to read and write data on the media surface, and it makes use of dual-layering technology to increase storage capacity to over 1 GB. | DVD (Digital Versatile Disc) |