Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 High school exam in computer science, naming an array
Index -> General Discussion
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
poirier4




PostPosted: Fri Jun 20, 2008 11:45 pm   Post subject: High school exam in computer science, naming an array

so i recently wrote my highschool exam in ics 3m1 (comp sciences) and we had to learn java. During this course we were introduced to arrays so on the extremely simple exam one of the questions was as fallows:

Create an array of type int and length 10.
we were able to name it whatever we wanted. so of course being a highschool student i seized the opertunity and wrote out the fallowing code:
code:
int[]penis=new int[10];


I created penis of length 10 Smile
Sponsor
Sponsor
Sponsor
sponsor
wtd




PostPosted: Sat Jun 21, 2008 1:17 am   Post subject: RE:High school exam in computer science, naming an array

Incorrect answer!

The question did not ask you to assign the array to a variable.
michaelp




PostPosted: Sat Jun 21, 2008 6:25 pm   Post subject: RE:High school exam in computer science, naming an array

You must have got a kick out of that, didn't you? Very Happy
Display posts from previous:   
   Index -> General Discussion
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: