0% found this document useful (0 votes)
25 views

Assessment 1 Computer Programming Answers

Uploaded by

ronthefourth
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

Assessment 1 Computer Programming Answers

Uploaded by

ronthefourth
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Assessment 1 Computer Programming

1. What are the different steps in phase I of the software


development method and explain each step?
Analyse the problem, Develop a Solution, Code the
solution and Test and correct the program (4 points)
2. What are the components of a computer systems and its
definition?
Hardware, software and live ware (3 points)
3. What are the five main hardware components in a
computer system?
Input, Processing, Storage, Output and Communication
devices (5 points)
4. It consists of a number of computers connected, so they
may share resources, such as printers, and may share
information.
Network (1 point)
5. Give the two types of memory and describe each type
RAM and ROM(2 points)
6. Enumerate and define the three types of computer
programs and give an example of each type.
Application software, system software and utility
software (3 points)
7. What are the advantages of high level languages? (2
points)–
Easy to write and understand
Easy to isolate an error
Machine independent language
Easy to maintain
Better readability
Low Development cost
Easier to document
Portable

8-9 What are the disadvantages of machine level


languages and symbolic languages? (2 points)
Machine Dependent Language
Requires translator
Difficult to learn and write programs
Slow development time
Less efficient
10. What are the differences between machine, assembly
and high-level languages? (2 points)
Feature Machin Assembly High Level
e
Form 0‘s and Mnemonic Normal
1‘s codes English
Machin Depend Dependent Independent
e ent
Depend
ent
Translat Not Needed(Assem Needed(Com
or Needed bler) piler)
Executio Less Less High
n Time
Languag Only Different Different
es one Manufacturers Languages
Nature Difficult Difficult Easy
Memor Less Less More
y Space

11. What are the differences between a compiler and an


assembler? (2 points)
Compiler Assembler
Compiler converts the high- An assembler converts the
level language source code assembly level language
into machine level code into the machine level
language code. language code.
The input of a compiler is Whereas, its input is low
high-level language source level assembly code.
code.
Compiler converts the Assembler does not
whole source code to convert the code in one go.
machine code at once.
It has the following phases: An assembler completes
lexical analysis, syntax the task in two passes.
analysis, semantic analysis,
intermediate code
generation, code
optimization, code
generation and error
handling.
It produces a machine code It produces binary code in
in form of mnemonics. form of 0s and 1s.

Ex amples are Java, C, C++ Examples of assemblers


etc. compiler. are GAS, GNU etc.

12. It is a program that translates a high-level language like


C++ to a machine language. (1 point)
Compiler
13-15.What are the three phases in the software
development method. (3 points)
-Development and Design
- Documentation
- Maintenance

You might also like