Point Seclusion
Saturday April 20, 2024, 10:59:38 am
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Post, Review, and Recruit
 
  Home Help Search Arcade Gallery Links Staff List Calendar Members Login Register  

Programming Quiz Time #5 !

Pages: [1]   Go Down
  Print  
Author Topic: Programming Quiz Time #5 !  (Read 332 times)
0 Members and 1 Guest are viewing this topic.
raider00321
Moderator
King
*****
Offline Offline

Newgrounds Alias: raider00321
Posts: 969


Mood:Not a happy chappy


View Profile
« on: Tuesday October 21, 2008, 07:56:02 am »

ok. So waht will this quiz be of.... hmm... another trace question?? nahh. hmm another find the errors?? nahh... How about... a 5 question a qustionaire!! ok i like... person whpo gets most or all of the questions right wins...
(worth 1 point each)
1. Where are the x and y co-ordinates 0,0 on the root Stage?
2. How do you define the height and width of an object using script?
3. What is a case statement and what is the code needed for one to work?
4. What is the difference between a for and while loop?
5. What code is used to check collisions between certain objects?

BONUS QUESTION
what is the difference between == and ===?(worth 3 points)

The last question is worth so much because its actually somthing many programmers dont know Wink
Report Spam   Report to moderator   Logged

V BEST FREE WEBHOST FOUND BY FAR V http://www.000webhost.com/89919.html

Share on Facebook Share on Twitter

SecondLaw
Newbie
*
Offline Offline

Posts: 12



View Profile
« Reply #1 on: Tuesday October 21, 2008, 08:24:04 am »

1. top left
2. this._height = #
this._width = #
3. no idea
4. a for loop runs a set number of iterations (usually) whereas a while loop continues until its conditions are met.
5. hitTest

Bonus: (this is a complete guess but...) == is used for checking if values are equal and === is for checking if arrays are equal
Report Spam   Report to moderator   Logged
SuperMario19
King
******
Offline Offline

Newgrounds Alias: SuperMario19
YouTube ID: MegaSonio
Posts: 734


I need something interresting


View Profile
« Reply #2 on: Tuesday October 21, 2008, 11:28:35 am »

only one answer \|/    __
                               |
                                   _
                                  |-
                                       ?
Report Spam   Report to moderator   Logged


Click the image
raider00321
Moderator
King
*****
Offline Offline

Newgrounds Alias: raider00321
Posts: 969


Mood:Not a happy chappy


View Profile
« Reply #3 on: Tuesday October 21, 2008, 11:30:19 am »

ur like wtf?? the funny thing is... i dont actually know of any technical terms rofl! The questions im asking are the basics XD
Report Spam   Report to moderator   Logged

V BEST FREE WEBHOST FOUND BY FAR V http://www.000webhost.com/89919.html
SuperMario19
King
******
Offline Offline

Newgrounds Alias: SuperMario19
YouTube ID: MegaSonio
Posts: 734


I need something interresting


View Profile
« Reply #4 on: Tuesday October 21, 2008, 11:31:43 am »

ur like wtf?? the funny thing is... i dont actually know of any technical terms rofl! The questions im asking are the basics XD
well i don't know even the programing basics XD
Report Spam   Report to moderator   Logged


Click the image
raider00321
Moderator
King
*****
Offline Offline

Newgrounds Alias: raider00321
Posts: 969


Mood:Not a happy chappy


View Profile
« Reply #5 on: Wednesday October 22, 2008, 02:17:01 am »

i guess secondLaw wins again lol
so for the answers too al the questions...

1. top left
2. this._height = #
this._width = #
3. a case statement is similar to a if and else statement except can only check for exact values. Another name for a case statement is a switch statement. Ill use an example out of flash help..
var thisMonth:Number = new Date().getMonth();
switch (thisMonth) {
 case 0 :
 trace("January");
 break;
 case 1 :
 trace("February");
 break;
 case 5 :
 case 6 :
 case 7 :
 trace("Some summer month");
 break;
 case 8 :
 trace("September");
 break;
 default :
 trace("some other month");
}


4. a for loop runs a set number of iterations (usually) whereas a while loop continues until its conditions are met.
5. hitTest

Bonus:  == is used for checking if values are equal and === is for checking that the variable, object, instance is exactly the same comparing even the type is is. e.g a sting or an int or a boolean. Usually best used when comparing strings in flash .
Report Spam   Report to moderator   Logged

V BEST FREE WEBHOST FOUND BY FAR V http://www.000webhost.com/89919.html
Turn-Coat
Newbie
*
Offline Offline

Posts: 3


View Profile
« Reply #6 on: Friday September 10, 2010, 04:24:11 am »


1. Top Left Corner
2. _width and _height found in the MovieClip Class
3. Used in a Switch, which is a simplified multiple if...then statement. Switch(expression or variable){
case "number or letter": put code here;break;
}
4. a for loop can perform hundreds of iterations for a variable in just seconds. A while loop evaluates whether or not a condition is true.
5. hittest, but you can also check using x and y coordinates.

BONUS QUESTION
This one is crazy, but logical. == stands for "is equal" so if I said a=2+3 and b=5, I could say a=b. === stands for "grammar nazi", a does not equal b, because flash is too stupid to realize that 2+3 is 5. But if I said a=6 and b=6, it
would totally be down for that.
Report Spam   Report to moderator   Logged


Pages: [1]   Go Up
  Print  
 
Jump to:  

Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy