Computer Architecture (CSCS2205)

Mathematics and Computer Science - MCS

Semester: Second Semester

Level: 200

Year: 2018

Page 1 of 2
THE UNIVERSITY OF BAMENDA FACULTY OF SCIENCE
DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE
END-OF-SECOND SEMESTER EXAMINATION 2018 ANSWER CSCS2205: COMPUTER ARCHITECTURE I
ALL QUESTIONS TIME ALLOWED: 3 H
NB: For the MCQs, choose from options a-d and note that only one of these options is the correct answer
EXAMINER: Dr S C Forbacha
Section A
1)
A variable declared within a procedure is known as: 1 mark
(a) Global variable
(b) Scope variable
(c) Local variable
(d) None of the above
2) A well-defined set of building blocks from which algorithm representations can be created are known as: 1 mark
(a) The Programming Language
(b) The Primitives
(c) The Pseudocodes
(e) The Assignment Statements
3) Constants within C programming environment are frequently referred to as: 1 mark
(a) Read-write variables
(b) Write-read variables
(c) Read-only memory
(d) Read-only variables
4) A software design approach that has been proven to be the most productive is known as: 1 mark
(a) Top-down design
(b) Bottom-up design
(c) Bottom-top up design
(d) Structured-wise design
5) The system transfer of a system to users in a series of versions under Extreme Programming is referred to as: 1 mark
(a) Versions
(b) Releases
(c) Iterations
(d) Mini Projects
6) The process of conveying control to a procedure is usually known as: 1 mark
(a) The refreshing procedure
(b) The invoking unit
(c) The calling procedure
(d) None of the above
7) The C programming language is a powerful: 1 mark
(a) Procedural language
(b) Object oriented language
(c) Scripting language
(d) Functional language
8) Words with predefined uses in a C programming language that cannot be used for any other purpose are called: 1 mark
(a) Keywords
(b) Keyoutwords
(c) Keenwords
(d) Keyinwords
9) Character data types are representations of integer value which are called: 1 mark
(a)
Character sets
(b)
Character coats
(c)
Character codes
(d) Character cods
www.schoolfaqs.net
Page 2 of 2
Section B
1)
Differentiate between a formal parameter and an actual parameter. 2 mark
2)
Discuss how primitives are deployed to remove ambiguities in algorithm representation. 5 marks
3)
How are recursive structures fundamentally different from loops? 4marks
4) Write a C program that can be used by a small-size shop owner to compute his net profit in CFA. Your program
should include comments explaining what your code intends to achieve plus limit your output/input to two
decimal places. 5 marks
5)
Identify the error(s) found within this simple program plus correct them. 2 marks
#include <stdi.h>
main ();
{
const intx = 20;
const float PI = 3.14;
printf("\nConstant values are % and %f\n", x, PI);
}
6)
Explain what a pointer is and demonstrate how a pointer can be declared in C programming language. 3 marks
7)
State a condition in which passing parameters by values becomes inefficient and explain plus provide a more
efficient technique that can be used to address this deficiency. 5 marks
www.schoolfaqs.net