Course2 lesson10 quizz

What is a function?
A block of reusable code to make the hero attacks the enemy
A code to make a game
A block of organized and reusable code that given a name
A block of reusable code to make the hero finds the enemy
Choose the right way to define the function test
Define test():
Def test():
Def test():
Def test()
What do we use functions for?
Organize a code
Reuse a code
Make the code easier to change
All of the above
Choose the right syntax to call this function
FindAndAttackEnemy()
FindandAttackEnemy()
FindAndAttackEnemy():
Def findAndAttackEnemy()
Choose the right syntax to define the function heroAttack with parameter “enemy”
Def hero.Attack enemy():
Def heroAttack(“enemy”):
Def heroAttack(enemy):
Def heroAttack(enemy)
Choose the right syntax to call this function
0%
0
 
0%
0
 
0%
0
 
0%
0
 
{"name":"Course2 lesson10 quizz", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"What is a function?, Choose the right way to define the function test, What do we use functions for?","img":"https://www.quiz-maker.com/3012/CDN/87-4206329/defds-4x-100.jpg?sz=1200-00000000001000003438"}
Powered by: Quiz Maker