test2-answerscheme
DESCRIPTION
jawapan test 2 2012 sem 2TRANSCRIPT
Part A Objective
Part A (10 Marks)1.What is the prototype of a function pass that has a pass-by-value character parameter and a pass-by-reference integer parameter? The function DOES NOT return any value.
A. void pass(char, int);
B. void pass(char &, int);
C. void pass(char, int &);
D. void pass(char &, int &);
2.The ____________________ value specifies the position of an element of a component in an array.
A. index
B. function
C. variable
D. constant
3.Which of the following statements will set the value of the fifth component of the array beta to 88?
A. beta[4] = 88;
B. int beta[88];
C. cin