You are Here: Home

# Aqa comp1 2016 watch

1. (Original post by archiebaker)
How did everyone find setting the "H" and the "C" into the middle or outer of the board?
In Python3, this was my solution:

def SetUpGameBoard(Board, Boardsize):
for Row in range(1, BoardSize + 1):
for Column in range(1, BoardSize + 1):
if (Row == 1 and Column==1) or (Row==Boardsize and Column==Boardsize):
Board[Row][Column] = "H"
elif (Row==1 and Column==Boardsize) or (Row==Boardsize and Column==1):
Board[Row][Column] = "C" else: Board[Row][Column] = " "
2. (Original post by the_chosen_one97)
In Python3, this was my solution:

def SetUpGameBoard(Board, Boardsize):
for Row in range(1, BoardSize + 1):
for Column in range(1, BoardSize + 1):
if (Row == 1 and Column==1) or (Row==Boardsize and Column==Boardsize):
Board[Row][Column] = "H"
elif (Row==1 and Column==Boardsize) or (Row==Boardsize and Column==1):
Board[Row][Column] = "C" else: Board[Row][Column] = " "
I was using VB but my solution looked very similar
3. (Original post by JamesGlackin)
Everyone got 278 for the 8 bit twos complement denary to binary right?
I got that too!!
4. Think their both wrong
5. Guys Two's complement is a way of representing negative numbers - using 8 bits its range is from -128 to +127. The MSB is the sign bit which was a 1 - the place value was -128. It is not possible to obtain a positive value from this - the answer is -76
6. Decent exam, might only get a mid A though, made stupid silly mistakes.

Got the sample size wrong as I misread the audio frequency as 8000Hz, oops
Forgot what a gatherer was
Not sure about what I got for the two's complement but -78 doesn't ring a bell. Getting binary wrong would kill me
I spent at least 12-15 minutes figuring out what the algorithm does but to no avail

All the programming questions were relatively easy and I just managed to finish, just need to focus on COMP3 and COMP2 now
7. (Original post by ubiquitousking)
I can't remember the question but isn't the range of 8-bit two's complement
-128 to 127?

So how is a conversion resulting in a value above 127?
You're correct - I think some people may have forgot about the sign bit
8. does anyone remember what the binary was?
9. (Original post by xAlien_)
does anyone remember what the binary was?
Im pretty sure it was: 10110100
10. I can't remember whether I put -77 or -76. I have a sick feeling that I put -77

I'm not retaking COMP2 but need some more UMS; so let us pray and hope for some miracle grade boundaries similar to last year.

Or scream into the public static void.
11. (Original post by the_chosen_one97)
Im pretty sure it was: 10110100
Yikes definitely-76 then. Have a bad feeling I missed the 32 and put the answer as -108 -_-
12. much easier than last years paper, grade boundaries will be relatively higher i reckon
13. (Original post by KnightCode)
Done, Pretty good exam.
Couldn't be asked to work out what 1600 (i think) X 2 x 20 was xD
I managed to do the last question , however it didnt work.
For the last question i did a nested loop with rows and columns then a if condition inside the nested loop that check if flip is possible then print them out.
Possibly lost around 7-8 marks max.

Hope it was good for u guys too!!
For the last question all you had to do was make board(i, j) = "H" before checking it. Because it will always return false when the start square is blank. (if you did " for i = 1... and for j = ..... loops).

Someone told me after the exam, it was only 1 line of code so think I'll get 10/12 or around there for last q.
14. Does anyone have the code for the last question? I think I was close but I couldn't get it to work
15. (Original post by UsmanM)
The code had 3 calls to that function, you needed 4 for all 4 diagonals from the square. (I.e. Top right, top left, bottom right, bottom left) but they were only 3. And one of them was 0, 0 so was checking if it could move nowhere.

That's what I got.
you for got about that it didn't have the board parameter in the function. how would it detect what pieces to flip if it doesn't have the board as a parameter
16. That section B question was really weird. I put it square rooted an input and when inputting 4.1 I got like 2.0499999. Thought I'd mucked up but seems other people got the same :')
17. (Original post by uGo1001)
Does anyone have the code for the last question? I think I was close but I couldn't get it to work
This was my solution:

Then just called it in PlayGame()
18. Code for last question in VB:

(the if loop just repeats 4 times with either 1,0 -1,0 0,1 0,-1 at the end of each call)
19. Is there a COMP2 thread?
20. (Original post by Teee123)
just started one here:

http://www.thestudentroom.co.uk/show...1#post65518611

TSR Support Team

We have a brilliant team of more than 60 Support Team members looking after discussions on The Student Room, helping to make it a fun, safe and useful place to hang out.

This forum is supported by:
Updated: August 19, 2016
Today on TSR

### Tuition fees under review

Would you pay less for a humanities degree?

### Buying condoms for the first time - help!

Discussions on TSR

• Latest
Poll
Useful resources

Can you help? Study Help unanswered threadsStudy Help rules and posting guidelines

## Groups associated with this forum:

View associated groups
Discussions on TSR

• Latest

The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE