Alice Community  

Go Back   Alice Community > General Discussion > Questions and Comments

Reply
 
Thread Tools Display Modes
Alice Quiz, I NEED HELP!
Old
bbbritnayy
Guest
 
Status:
Posts: n/a
Default Alice Quiz, I NEED HELP! - 04-28-2010, 08:06 PM

What are the definitions for Mutable Variable, State of an Object, Data Structure, and List?
Also, what are the differences between class level, world level, and local variables?
What control structures are used to perform sequential searches?
Lastly, I need help with a pseudo-code.
All of my class notes are gone
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 04-28-2010, 08:58 PM

um, is that cheating? I cant help you and I never took the class, I make games by just experimenting.


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
Regarding your notes...
Old
LuisN
Member
 
Status: Offline
Posts: 17
Join Date: Apr 2010
Location: Arizona
Default Regarding your notes... - 04-29-2010, 11:00 PM

I just wanted to say that "class-notes" are for squares...
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 04-30-2010, 03:34 AM

Quote:
Originally Posted by bbbritnayy View Post
What are the definitions for Mutable Variable, State of an Object, Data Structure, and List?
Also, what are the differences between class level, world level, and local variables?
What control structures are used to perform sequential searches?
Lastly, I need help with a pseudo-code.
All of my class notes are gone
Sorry about your notes. I suggest googling the definitions of the words, and looking for an online reference on pseudo-code (or a better help would be your textbook, if you have one ready). As for the variables, I consider that a technical question, so I'll help you with that.

World level variables are attached to the world, so they can be referenced by any object from any place or method in the world. They're generally common variables that play a major role in the program, such as time, score, hitpoints, etc.

Class level variables are attached to objects. They function the same way world level variables do, and can be referenced by any method as well, but shouldn't be because it's considered bad programming to have a method that isn't attached to the object reference it. They're generally used for object-specific statistics or values, like the amount of bullets in a gun.

Local variables are attached to methods. They can only be referenced from inside the method unless they're passed as a parameter to other methods. They're generally used for specific, one-time use variables, like indexes for certain loops.

Quote:
Originally Posted by LuisN View Post
I just wanted to say that "class-notes" are for squares...
I don't take notes either. Go figure.


(')>
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2021, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.