LATEST QUESTIONS AND ANSWERS
In java, when you divide an int by another int, the result will be an - ANS-int
In java, functions are called - ANS-methods
The Java statement counter++ will - ANS-add 1 to the variable count
To help us collect information from the user through the keyboard in Java, we use a - ANS-Scanner
Every Java program consists of at least one - ANS-class definition
Which of the following are characteristics of the python programming language - ANS-compiled
interpreted
A name defined in an outer scope is also available in all blocks nested inside that scope - ANS-True
Operation are things an object - ANS-does
An object's attributes are implemented as - ANS-variables
, In Java class members are declared with the keyword - ANS-static
A default constructor takes _____ arguments - ANS-0
Java boolean literal values are expressed in all lowercase - ANS-True
The java expression like the one below will evaluate to ________.
new Bunny("Flopsy", 8) - ANS-an object reference
A reference type variable stores a _____________ - ANS-reference
If a reference type variable does not store a reference to an object, then it stores __________. - ANS-a
null reference
All of the Java primitive types are _______. - ANS-value types
The two kinds of types in the Java programming language are ___________. - ANS-value and reference
types
The differences between value types and reference types applies to parameters - ANS-True
Which of the following would declare an array of integers in Java? - ANS-int[] my_array;
We cannot delete individual elements from an array in Java - ANS-True
We can use a variable as an index expression to access an array element in Java - ANS-True
Which of the following would declare and instantiate an array of 5 integers in Java? - ANS-int[] my_array
= new int[5];