Test 1
Test 1
Test 1
Test
Information Age & Introduction to programming
3. Which data type is the most suitable for storing an address variable?
A. real B. Boolean C. char D. string
4. What is the difference between ‘1’+ ‘2’ and 1+2 in Pascal?
A. They are the same.
B. ‘1+2’ is a string with 3 characters ‘1’, ‘+’ and ‘2’ while 1+2 is an
expression with value 3.
C. ‘1’+’2’ is a character while 1+2 is an error.
D. ‘1+2’ is a string while 1+2 is a character.
E. Both ‘1+2’ and 1+2 is an expression with value 3.
5. How many characters are there in the string ‘Our Lady’s College!’?
A. 11 B. 13 C. 19 D.20
6. Which of the following involves both IT and entertainment?
A. An Internet game Web site
B. An online CD store Web site
C. A personal Internet banking services Web services
D. A search engine Web site3
1
Our Lady’s College
Answer for A.
1 2 3 4 5 6 7 8 9 10
D A D B D A B A C A
__Program________ AddTwoNumbers;
___VAR_______
Num1__:___integer;
Num2__:___integer;
Sum__:__real;
___Begin_______
Writeln(‘__Please enter two number__.’);
___Readln/Read_____(Num1, Num2);
___Sum_____:= Num1+Num2;
__Write/writeln_______(‘The sum is’, __Sum);
_End.________.
program ProgramErrors ;
var
Num1 ,Num2 : integer ;
const
Ans= 15;
begin
Read ( Num1, Num2);
Writeln ( Ans )
end.
2
Our Lady’s College
3) Which of the following are valid Pascal identifiers? If not, explain why.(3 marks)
A ‘Hi’ Invalid
No quotation marks are needed
B 3rMark Invalid
No number is allowed at the beginning
C End Invalid
Reserved word
5) (a) Mary works on one of the local offices of a big organization as a clerk. She
has to type a lot of documents everyday. Occasionally, she needs to work on the
company accounts by performing some calculations. Besides, she has to
communicate with colleagues in other offices. Suggest how she can use IT in
accomplishing these tasks.
(b) Mary’s company is planning to sell products to clients through the Internet.
(i) List TWO advantages of the above transaction method.
(ii) Suggest TWO practical ways so that the company can sell new products to the
customers through the Internet.
(iii) List TWO shortcomings that may discourage customers to use the above
transaction method.
(9 marks)
(a) She can use a word processor to prepare the documents;
and use a spreadsheet program for calculation
send electronic mails to colleagues for communication
(b) (i) Reduce transaction cost /Attract more customers/
Increase the competitive strength of the company
Enhance systematic office operations
(ii) Send e-mails to potential customers
Ask other popular web sites to add hyperlinks or advantages that may direct
people to the web sites of company
(iii) Customers could not touch the products when shopping
Need extra fee and time for the shipping of products.
~End of Paper~