COMP 1210 Exam 1 005 - Spring 2011 Exam E —...

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Spring 2011 Exam E — fllu'lfflfll l — Page :3 el' 3 2|. Which ofthe tbllmvjng is true about The Java Frag-ramming language? a. Two xm'Lahles cannot rcferm the same object in Tnerncnry. h. Yuu can im-nlte meflmds on any prhnltlve type. IL}. In nrtluT 'lu execute: a pmgrum you must have a mum-utter iJl flh‘: class. Cab A chum duty. nul hut-e11: IstJrILtlitt [mp-art Stimulants. c. Public mL'IJ'ItJrLH vinEaLI: emufmulufiun. 22. What is the value of u11mRe5ult afier the fallm-ing and: is carried aul‘? 'in‘r. ntJmF-lesult = 2 + [Ii + 3 * -2 + Eu] * '3; It. =lr -—& H: h I3 firm: m —uL -- e. 41 I d. ltlhi e. -3I3 23. Which M the I’nlluwing reserved words must he used When defining a service methtrd? puh-Iit: stat-in: e. void :3. mail: 6. Hunt [HI-111:: abut-'3. Ed. U11 which flFthl: fnllnwa'ng I'ETIEH 12km inflanlialintt lulu: plane? a. 37.1-qu 5111:; h. dnubl e xflaard = '3; :2. Its: 115‘ mn r rem-SEE! .1; fl L‘ecauble fflrmat — new DnuhlE[E_'.I':I; e. heelean Statue — E i 3; 25. What is the name nf'thn: Ian-gram un ytmretnmpuler that reads Java bfl-Ewlde and mutant the pregame that you mutate? a. .‘puvaeexe h. jGRASP 1:. unmmanli pmmpl {3 jam-"amt. e. the enemjng system A 213. Suppmar: flmt myfieure i5 declared as an i_nt 1value. Which rthl'n: following express-lens 1.»de eaum: a mmpilb—lime mm? a. double next ={dnllhlu}my$mm:f 5; b. float 1.1m = hlyfimre ." 5; e_ lung next=m3r5reurel 5'. a GI} iuL next —{t]euhle}m1-fi¢m‘e f 5: Ir. All ed" the abuw: utul be camp-Eleni. ...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern