0% found this document useful (0 votes)
3 views3 pages

ds1 Revision

The document consists of a series of questions and statements related to computer software systems, programming concepts, and pseudocode instructions. It covers topics such as components of software systems, advantages of digital computers, definitions of algorithms, programming languages, and variable declarations. Additionally, it includes a section requiring validation of variable names with explanations for invalid cases.

Uploaded by

manyanovuso04
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views3 pages

ds1 Revision

The document consists of a series of questions and statements related to computer software systems, programming concepts, and pseudocode instructions. It covers topics such as components of software systems, advantages of digital computers, definitions of algorithms, programming languages, and variable declarations. Additionally, it includes a section requiring validation of variable names with explanations for invalid cases.

Uploaded by

manyanovuso04
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

1.

The main components of a computer software system are

a. Hardware and software


b. Peripherals and external storage
c. System Software and Application Software
d. All of these

2. Some of the advantages of using electronic digital computers are

a. Processing speed
b. Storage capacity
c. Accuracy
d. All of these

3. An algorithm can be defined as

a. A set of finite instructions


b. A heuristic solution based on experience
c. A collection of diagrams representing a solution
d. None of these

4. A program written in a high-level language is called

a. Object code
b. Assembled Program
c. Machine code
d. Source code

5. The programming language R is an example of a

a. Second Generation Language


b. Fourth Generation Language
c. Fifth Generation Language
d. Third Generation Language

6. The second stage of the Program Development Cycle is

a. Maintenance
b. Design
c. Analysis
d. Testing

7. A software compiler is a person who writes all of the program documentation


a. TRUE
b. FALSE

8. In the UNICODE coding system, only letters of the English alphabet are allowed
a. TRUE
b. FALSE

9. A variable can only hold one value at any time

a. TRUE
b. FALSE
10. The following pseudocode instruction is the correct way to assign a literal value to a string
variable called
STUD_NO

Stud_no = “240030032”
STUD_NO = 240030032
STUDENTNO =
“240030032”
None of these

11. The following pseudocode instruction is the correct way to display the message VAT_AMT on
the screen

DISPLAY VAT_AMT
DISPLAY“VAT IS”
DISPLAY “VAT_AMT”
None of these

12. When a variable is declared as STRING, it has the following value

a. 0
b. null
c. spaces
d. None of these

13. The name of a variable

a. May start with a number


b. May include spaces
c. May include upper- case and lower-case characters
d. All of these

14. The following pseudocode instruction is the correct way to assign a literal value to a numeric
variable called
TOTALPRICE

a. TOTALPRICE = “250”
b. TOTALPRICE = 250,00
c. TOTALPRICE = R250.00
d. None of these

15. The following instruction contains illegal syntax

a. ACCEPT “NAME”
b. ACCEPT NAME, “TAKALANE”
c. TAKALANE = ACCEPT NAME
d. All of these

16. Which instruction should be used to assign the value input by the user to the variable
GENDER?
a. ACCEPT GENDER
b. ACCEPT
GENDER
c. ACCEPT GENDER =
“MALE”
d. None of these

17. The correct instruction to display the value in the string variable CITY is

a. DISPLAY CITY

b. DISPLAY “CITY “
c. ACCEPT CITY
d. None of these

18. The X symbol is used to multiply a value to a variable

a. TRUE
b. FALSE

19. AVERAGE = AVERAGE Let me know if there is anything else I can help you with.
20. 2 is a valid calculation
a. TRUE
b. FALSE

21. DISCOUNT = DISCOUNT * 10% is a valid calculation

a. TRUE
b. FALSE

SECTION B [10
MARKS]

State whether the following variables are VALID OR INVALID, if it is INVALID explain your answer.

STATEMENT VALID /INVALID EXPLAINATION


1. cust-name

2. 2nd_person

3. vatAmount%

4. averageMarksForStudent

5. test Mark

You might also like