View Full Version : ok im gonna post my computing question....
StickyPeas
21-01-03, 02:46 PM
salaam...
i got a question in my computing mock exam and it was soo hard! i still dont get it...! inshallah il post it soon as iv writen it out! plz help! jazakallah
:)
Originally posted by StickyPeas
salaam...
i got a question in my computing mock exam and it was soo hard! i still dont get it...! inshallah il post it soon as iv writen it out! plz help! jazakallah
:)
thats really helpful :)
StickyPeas
21-01-03, 10:01 PM
ok heres the dumb question.... if u got the time, or like a challenge or ur just tooooo clever then try it out plz and tell me wat u got and how u did it!
:)
3) A Procedure to process an array of numbers is defined as follows
......Procedure P (number)
.............Repeat
......................X = StartOfArray
.......................Flag = False
.......................Repeat
..............................If Number(X) > Number(X+1)
......................................Then
..........................................Begin
...............................................Tem p = Number(X)
...............................................Num ber(X) = Number(X+1)
...............................................Num ber(X+1) = Temp
...............................................Fla g = True
..........................................End
.....................................X = X + 1
.......................Until EndOfArray
..............Until Flag = False
.......EndProc
The array number, containing 17, 11, 21, 9, 23, 15 is to be processed by this procedure.
a) List the array after the outer loop has been executed once [2 marks]
b) What algorithm does P describe? [1 mark]
c) What is the purpose of Flag in this procedure? [1 mark]
good luck! :p
StickyPeas
21-01-03, 10:10 PM
i got 0 marks for this one lol
4) A process can only begin if bits 0 (least significant bit) and 4 of register A are set to 1, and bits 2 and 3 are set to 0. The status of the four other bits has no effect on the process. see attatchment
Write the key assembly language instructions to check whether the process can take place. [5 marks]
a) 17, 21, 23
i think! :D
oops.. i was wrong
it's a sorting algorithm i think so Qa will be from the lowest to till the highest i.e. 9, 11, 15, 17, 21, 23
StickyPeas
21-01-03, 10:19 PM
il post the answer 2moro lol, but howd u figure it out! i cudnt get my head round it!! :mad:
This is cool! I wish there was a decent school/college near me that did Computing (there is a college near me that does it, but I don't wanna go there as the people are... ahem... well it's not a good study environment and I don't want to have to fight people every week!).
3c) I'm not sure of the correct terminology to use here, but basically the flag is to ensure that the procedure keeps going until ALL the numbers are sorted in order from lowest to highest.
StickyPeas
24-01-03, 10:29 PM
the teacher was readin out the answer too fast so i didnt get em! lol but b) is Bubble sort and c) is the flag shows wen the numbers have all been sorted
how about this..... can u figure is out without gettin out the text book? :rolleyes:
5b) Convert the binary data 1011011100111110 into hexadecimal
(this ones easy if u know ur digits) ;)
baba, if u were to ever do computing ud ace it no doubt! :) im having trouble keeping up! nothing stays in my head long enuf to remember! and iv just found out that my actual A-level exam papers will be synoptics..... which means i gotta know all my stuff from last year aswell!! :( maaaaaaaan!!!
Sallaam
im having trouble keeping up! nothing stays in my head long enuf to remember!
Sis there is no trick on how to remember things each person is different. Computing is absract so try and relate what you are trying to learn to an event.
Allah Hafiz
Usmanb ("I hate crappy keyboards" 25/01/03)
StickyPeas
26-01-03, 09:58 PM
Originally posted by Usmanb
("I hate crappy keyboards" 25/01/03)
("Me too" 26/01/03) :D
mine makes too much noice, my sister can hear me clicking away from the other room! and sometimes my its gets on my dads nerves so mucht hat he pulls out my internet lead!
:D
Sallaam
mine makes too much noice, my sister can hear me clicking away from the other room! and sometimes my its gets on my dads nerves so mucht hat he pulls out my internet lead!
Dah sis...eba heard of touch typing??? @) :D.
Allah Hafiz
Usmanb ("Pain in my legs ='s a pain in my leg???" 02/02/03)
StickyPeas
02-02-03, 11:49 PM
Dah sis...eba heard of touch typing???
obviously not! :p
For some people, the term "bang typing" would be more appropriate... :D
StickyPeas
03-02-03, 11:22 PM
for some ppl ''bang out of order'' wud be much more suitable! :p:D:D:D:D
vBulletin® v3.7.1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.