In order to lern whih questions hve een nswered orretly: 1. Print these pges. 2. Answer the questions. 3. Send this ssessment with the nswers vi:. FAX to (212) 967-3498. Or. Mil the nswers to the following ddress: Client ontt: SYS-ED PO Box 1213 New York, NY 10156 Nme: Compny: Address: City, Stte, Zip: Phone Numer: Fx Numer: E-mil: COMPUTER EDUCATION TECHNIQUES, INC. (JAVA_APPS_DEV - 4.8) SA: Pge 1
1. Whih is not vlid omment in the Jv progrmming lnguge? d. // omment. /* A omment */. /** A omment */ d. <!-- A omment --> e. REM 2. Dt in the Jv progrmming lnguge is strongly typed.. TRUE. FALSE 3. Wht is the vlue of sesons.length for the following rry? String[] sesons = {"winter", "spring", "summer", "fll", ;. undefined. 3. 4 d. 5 e. 6 4. When the new keyword is used for reting n ojet, where is it reted?. Hep. Grge olletor. Queue d. Stk e. None of the ove. 5. Whih of the following loop onstruts must exeute their loop ody t lest one?. while (<oolen-expression>) <sttements>.... do <sttements>... while (<oolen-expression>);. for (<init-stmts>...; <oolen-expression>; <exprs>...) <sttements>... d. All of the ove. e. None of the ove. 6. An overridden method n e in the sme lss.. True. Flse COMPUTER EDUCATION TECHNIQUES, INC. (JAVA_APPS_DEV - 4.8) SA: Pge 2
7. Whih of the following dttypes onsumes the most its when representing its rnge of vlues?. oolen. flot. long d. hr e. They ll onsume the sme mount of its. 8. How is the grge olletor fored to run?. Cll System.g(). Cll Runtime.g(). Cll System.g() d. Either or e. There is nothing you n do. 9. When multiple methods exist within the sme lss with different method signtures, this is known s:. Method overloding. Overriding methods. Messge pssing d. Method Cloning e. A hedhe 10. Wht is printed when the progrm is exeuted; the ASCII vlue of A is 65: e e lss PrintMe { puli void do(int hrter) { System.out.println(hrter+hrter); puli stti void min (String rgs[]) { new PrintMe().do('A');. AA. 130. A d. 6565 e. Does not ompile 11. Instne vriles mintin:. One opy of the vrile for eh lss instne.. A seprte vlue for the stte informtion for eh lss instne.. A onstnt stte of the vrile for eh lss instne. e. All of the ove. COMPUTER EDUCATION TECHNIQUES, INC. (JAVA_APPS_DEV - 4.8) SA: Pge 3
12. The following ode inludes lss vrile nd n instne method: puli lss Counter { int ount; void inrementcount() { ount++; int getcount() { return ount;. TRUE. FALSE 13. In order to rete lss level onstnt, the following two keywords need to e used together:. Puli nd onstnt.. Finl nd onstnt.. Finl nd stti. d. Clss nd onstnt. e. Puli nd onstnt. 14. Stti methods re lled:. With the lss identifier.. With new instne of the lss.. nd. d. Stt methods n never e lled. 15. Wht results would print from the following ode snippet: System.out.println("12345 ".vlueof(54321));. The pplition won't ompile.. 12345 54321. 54321 d. 12345 e. 13542 16. Instne vriles mintin:. One opy of the vrile for eh lss instne.. A seprte vlue for the stte informtion for eh lss instne.. A onstnt stte of the vrile for eh lss instne. e. All of the ove 17. The following ode inludes lss vrile nd n instne method: puli lss Counter { int ount; void inrementcount() { ount++; int getcount() { return ount;. TRUE. FALSE COMPUTER EDUCATION TECHNIQUES, INC. (JAVA_APPS_DEV - 4.8) SA: Pge 4
18. In order to rete lss level onstnt, use the following two keywords together:. Puli nd onstnt.. Finl nd onstnt.. Finl nd stti. d. Clss nd onstnt. e. Puli nd onstnt. 19. Stti methods re lled:. With the lss identifier.. With new instne of the lss.. nd d. Stti methods n never e lled. 20. Wht results would print from the following ode snippet: System.out.println("12345 ".vlueof(54321));. The pplition won't ompile.. 12345 54321. 54321 d. 12345 e. 13542 COMPUTER EDUCATION TECHNIQUES, INC. (JAVA_APPS_DEV - 4.8) SA: Pge 5