Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

WWW Indiabix Com

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

search...

Home Aptitude ▼ Reasoning ▼ Verbal Ability Puzzles ▼ Programming ▼ Online Test ▼ Interview ▼ General Knowledge

Exercise Java Programming :: Language Fundamentals


General Questions @ : Home > Java Programming > Language Fundamentals > General Questions
Finding the output
1. W hich four options describe the correct default values for array elements of the types
indicated?

1. int -> 0
"Life is like riding a bicycle. To keep
your balance you must keep 2. String -> "null"
moving." 3. Dog -> null
- Albert Einstein 4. char -> '\u0000'
5. float -> 0.0f
6. boolean -> true

A. 1, 2, 3, 4 B. 1, 3, 4, 5

C. 2, 4, 5, 6 D. 3, 4, 5, 6

View Answer Workspace Report Discuss in Forum

2. W hich one of these lists contains only Java programming language keyw ords?
A. class, if, void, long, Int, continue

B. goto, instanceof, native, finally, default, throw s

C. try, virtual, throw , final, volatile, transient

D. strictfp, constant, super, implements, do

E. byte, break, assert, sw itch, include

View Answer Workspace Report Discuss in Forum www.FullSail.edu


Ads by Google

3. W hich w ill legally declare, construct, and initialize an array?


A. int [] myList = {"1", "2", "3"};

B. int [] myList = (5, 8, 2);

C. int myList [] [] = {4,9,7,0};

D. int myList [] = {4, 3, 7};

View Answer Workspace Report Discuss in Forum

4. W hich is a reserved w ord in the Java programming language?


A. method B. native

C. subclasses D. reference

E. array

View Answer Workspace Report Discuss in Forum

5. W hich is a valid keyw ord in java?


A. interface B. string

C. Float D. unsigned

View Answer Workspace Report Discuss in Forum

1 2 3 Next >

converted by Web2PDFConvert.com
www.FullSail.edu Ads by Google

Read more:
Language Fundamentals - Finding the output

© 2008-2010 by IndiaBIX™ Technologies. All Rights Reserved | C opyright | Terms of Use & Privacy Policy

converted by Web2PDFConvert.com

You might also like