Study the pseudocode below and determine its output.
1. (a) T = O
(b) M = O (c) K = I 2. (a) M M±T (b) T = T+5 (c) K = K+1 3. Repeat step 2 while K < 3 4. Write M,T 5. Exit
0 Comments
Describe third generation languages and name two examples
Differentiate between source program and object program
Study the flowchart below and answer the questions that follow
i) Name the control structures used in the flowchart
ii) Determine the values of M, N, P and Q. M………………………….. N……………………….. P ………………………….. Q ……………………… iii) Write the pseudo code for the flowchart b) List four functions of an assembler
ANSWERS
i) Name the control structures used in the flowchart.
- Selection -Sequencing ii) Determine the values of M, N, P and Q. M………17………………..N……………….17………………….. P………..17………………..Q……………….17…………………. iii) Write the pseudo code for the flowchart Q=N
a) Translate assembly language to machine code. b) Execute assembly language statements. c) Create executable files (.exe) from the assembly language statements. d) Allocate memory for machine code. e) Debug for errors Write an algorithm to compute the area of a triangle.
High level programming languagesGive two differences between high-level and low-level languages
|
Categories
All
Archives
December 2024
|