You are on page 1of 7

2008

j''

Host

The lnternational RobOf,,OlYmpiad Committee (IROC)

Organizer : Majlis Amanah Rakyat (MARA), Malayssia Co-Organizer

: The lnternational

lslamic University Malaysia (llUM)

Date

17

- 21 December 2008

Venue : The Cultural,Activity Center, llUM

$ffftum
feg

#ffrw# ffffff
ffi$#ffi ff$$$

Quffiffitfffi,n'$

1
4r^

. ) F{ow many nurnbers bet,w:egt


'
,:i:i::

I, 2 or 3. Examples: 2 , 33, " 1, 2, 3 and should be cou other digit,s as well and sho
a. )
1.^ \ v. )

53
4-JJ

?trtr

c. ) 525 d. ) 2556 e. ) None of the above f. ) More than one of

.j'

""' 2.) Given a small motor thd.fi:ij7ffi nne?:E to -a sniarll gear wit.h 9 :r Lj-,.rr teeth, which is connecLed $<ir,;;::fi,4i$arge gat. wi'th 63 teeth. The 2nd gear is connecteci to two iilh:e16,ry with a radius of '10cm. If your "t'i';tlf"
:'i' ---t.r,

,,t,.

motorturns2B0degreesper,."js.g:c;o,.ird,then.howfas.twi]1yOurro'bot
move.
. .
..'-,*::t

5 markd

a.) b.) c.) d.) e. ) f. )

3.49 cm/s 6.98 cm/s 9.3J cm/s 13.96 cm/s None of the above are correct More than one of the above are correct

3.

) Given the f,oILowing


.

p r Og

r ah.,.'.......,;,,:'"nlis'frr:' ., .t e n

n"",

,r:ji.,:.::,

'h.e

langu&,g

,,ma..g

.'$

int value int func ao


\-l

\Jl

E'

int int )r int result. :


-JI -1

'.1 |
I

for( i
t
(

0; i

for

(j *
{ )

o;

re sul
)

return result;
)

What value will be the main program? The function func


a" ) 205
a
(

returnedjlli.H,gji;i,.F,-h* ;lilri$iililliii itl rr

;j,:r..,, ,,:+

,.'

fun@{"'Q f,ufi,;.i{'f) if r:::l

l:.:;::1,:!,j

L-;'], r: ,' ,. ,'

'

::
;,,

c:)lled

by

) will return the value


tii:tjii
lF.:it:;, j.;r':

b. ) 31_0 c. ) 42I

::.

:,:

:2-i

;,:::i:iiil

d, ) 571 e . ) None of the ahorre are correct f. ) Morp than cne of the abcve a re cc rre

c'b

4.) Civen is the following


language
.

tn' the

int Atgl = { 1, 2, 3, 4, 5,,


,,;,,1

I
,,,:,,

int func h ( int m, int


i

....,,,:..l,l.:....l

B [9

:::::.1::::.:::::::

::\.': t:.
.

int i; int result int y; for( i


{

L; i if
t B
B
(

( ntil

*r: x

i
t

result * y;
)

l )

return result; int main( in't el:qc/ char * argvf]


{

int result;

liisii:

result - func_b (0r A, 2) ; printf (" func_b returns %C\rr", rsult );


)

Show the

value of the array and


.

L,he

resulL after

func b (0,A,2)

After calling func--il {0'A, a,) b. ) c.) d.) e. ) f. )


Ag* A_ A:
Lt,

2,3,4,5r'6,1,8, 12,L,4,3,6,5'8,-7, 12,L,4,3,6,5,3 r8,

12,L,413r516rB,1 , None of the above are More than one CIf the

cH*

i"tfi.iii!:tri

dlri

:.1

j:l

5.) A figure
shown
.

;',1;the

alsc
must

t rave

il

Fffiffi
tffi.ffi:,
Ji*s {I&ffi. i!#!. ffi' \*'f Ji+t t#

ffiru
friF

:::'

5ilT1,
'ffi1ryn

{lr

ffi

ffiIU
i:fr

t!*ffi 1b!|* I+*r

pl3,t+'ilr

irr#F;F-**"Jl't-

,m

MarJcs

The total length of the path i,s' dpproximately:


a. ) b. ) c. ) d, )
e. ?7m.
2Bm 29m 30m
:
:)

.:

''''
,

) None of t,he aborre are correct f. ) More than one of the above are correct.

'!!tkt

Ai/-':i*s-ta*u,i.

l?li:I '11e.i:

+Iiilti

:i.l,ti

:,riir.i

''

6.

) Given are two

tYPes

of

componen'Ls: buf

fers

anC

+5V

Buffer: A buffer pesses a voltage [hrough the the input to the br-rffer is 5V, [hen the outpllt tc thre buffer is Cltl "[hen the output is 0V.
+5V *> [Inverter]
.

Inverter: An inverLer changes t.he voltage' If the input to the inverter is 5V then the output of the,',,:t:nverLer is 0V; if the input to an inverLer is 0V, then the output is 5V.
You have three components (Ar tsr.C) , .! " You do not know the componenLs. ComponenLs can be connecLed in series.

the type of

your circuil will only work.if you install at least Lwo conpollenf,;q. To determine the type of each component, you run t.he followlng
experiments:

Exl: Ex2 :

+5V +5V

OV OV

Given this infcrmaLion, true:


5 marks
a. ) b. ) c. ) d. ) e. )
+0v
+5V

whrf:Ch

one cf the following statements is

+5v
+0V

*,}\

n\7 V
U

None o f

f . ) tttore

the ahrove are correct. than cne cf the above are correct
** * ** ***
-.k

*** ** * ** *** *

You might also like