Just wondered if anyone could type up any practise questions they have been given out....just for extra practise for the Prelims.

## Practice Questions A place to post practice questions. . .

### sparky

Posted 27 March 2004 - 04:47 PM

Q: If 16 bits are used to represent integers using

A: Am I correct in saying this is -32768 to 32767 ( as it needs 1 16bit value for 0?)

In the perfect papers book it says its -32768 to 32768, but then their would be no value for 0 surely?

This was in a past paper, only it was 8 bits, and the SQA said the answer was -128 to 127, so I take it the perfect papers answer is wrong.

If someone could post to back me up, to make sure I am not making a cod of this

Mark

**two's complement notation**what range of integers can be represented?A: Am I correct in saying this is -32768 to 32767 ( as it needs 1 16bit value for 0?)

In the perfect papers book it says its -32768 to 32768, but then their would be no value for 0 surely?

This was in a past paper, only it was 8 bits, and the SQA said the answer was -128 to 127, so I take it the perfect papers answer is wrong.

If someone could post to back me up, to make sure I am not making a cod of this

Mark

### Steve

Posted 31 March 2004 - 04:54 PM

Sorry for not replying sooner - I've been really busy (Computing Project)!

Yeah, you're right.

An easy way to calculate the range of possible values in two's complement is:

Range = 2^(n-1)-1 to 2^(n-1)

where n is the number of bits used to represent a number.

Hope this helps - it takes away the need to think about it (which is always nice)!

Yeah, you're right.

An easy way to calculate the range of possible values in two's complement is:

Range = 2^(n-1)-1 to 2^(n-1)

where n is the number of bits used to represent a number.

Hope this helps - it takes away the need to think about it (which is always nice)!

### Discogirl17

Posted 13 April 2004 - 09:39 PM

Yeh thats the rule we were given too Steve.

I have loads of practice questions I can type up but they are final exam prep practice questions. Still want them??If u do please tell me!

I have loads of practice questions I can type up but they are final exam prep practice questions. Still want them??If u do please tell me!

### Discogirl17

Posted 14 April 2004 - 08:33 PM

Yeh I know that! You do AI! Afraid I dont have any AI ones but I do have the other parts of the exam! Week we go back they'll be up.

### Discogirl17

Posted 25 April 2004 - 10:57 AM

Oops I forgot to type up these questions. During this week I'll do it.

### Discogirl17

Posted 28 April 2004 - 10:11 PM

O for goodness sake I really am letting you down. They will definately be to u by the week before the exam. I dont think I'll have enough time to do everything this weekend so next weekend then.

### Dave

Posted 21 May 2004 - 06:30 PM

Now then the exam is a week on Monday and this is a topic for practice questions to be posted so below i have 5 questions that are standard types and may be of some use to anyone panicing or without past papers

1) You are given a picture to scan into your computer. The picture is 3 inches by 2 inches and is to be scanned at 600dpi. The picture is in colour and will be scanned in true colour(32bit). That is the amount of storage needed?

2) Explain the stored program concept

3) You are asked to write a program to find the average of 6 numbers. What is the best way of storing the numbers and why.

3b) Assuming you use the concept of modularity what types of parameter passing will you use for the numbers

4) What is the difference between a fixed and a conditional loop

5) Explain the terms alpha testing and beta testing

1) You are given a picture to scan into your computer. The picture is 3 inches by 2 inches and is to be scanned at 600dpi. The picture is in colour and will be scanned in true colour(32bit). That is the amount of storage needed?

2) Explain the stored program concept

3) You are asked to write a program to find the average of 6 numbers. What is the best way of storing the numbers and why.

3b) Assuming you use the concept of modularity what types of parameter passing will you use for the numbers

4) What is the difference between a fixed and a conditional loop

5) Explain the terms alpha testing and beta testing