Language Fundamentals - General Questions Online Exam Quiz

Language Fundamentals - General Questions GK Quiz. Question and Answers related to Language Fundamentals - General Questions. MCQ (Multiple Choice Questions with answers about Language Fundamentals - General Questions

Which four options describe the correct default values for array elements of the types indicated?

Options

A : 1, 2, 3, 4

B : 1, 3, 4, 5

C : 2, 4, 5, 6

D : 3, 4, 5, 6

View Answer

Which one of these lists contains only Java programming language keywords?

Options

A : class, if, void, long, Int, continue

B : goto, instanceof, native, finally, default, throws

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

D : strictfp, constant, super, implements, do

View Answer

Which will legally declare, construct, and initialize an array?

Options

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

Which is a reserved word in the Java programming language?

Options

A : method

B : native

C : subclasses

D : reference

View Answer

Which is a valid keyword in java?

Options

A : interface

B : string

C : Float

D : unsigned

View Answer

Which three are legal array declarations?

Options

A : 1, 2, 4

B : 2, 4, 5

C : 2, 3, 4

D : All are correct.

View Answer

Which one of the following will declare an array and initialize it with five numbers?

Options

A : Array a = new Array(5);

B : int [] a = {23,22,21,20,19};

C : int a [] = new int[5];

D : int [5] array;

View Answer

Which three are valid declarations of a char?

Options

A : 1, 2, 4

B : 1, 3, 6

C : 3, 5

D : 5 only

View Answer

Which is the valid declarations within an interface definition?

Options

A : public double methoda();

B : public final double methoda();

C : static void methoda(double d1);

D : protected void methoda(double d1);

View Answer

Which one is a valid declaration of a boolean?

Options

A : boolean b1 = 0;

B : boolean b2 = 'false';

C : boolean b3 = false;

D : boolean b4 = Boolean.false();

View Answer

Declarations and Access Control - General Questions more Online Exam Quiz

Declarations and Access Control - General Questions

Objects and Collections - General Questions

Threads - General Questions

Automobile Engineering - Part 1

Compressors, Gas Dynamics and Gas Turbines - Part 1

Engineering Materials - Part 1