Quiz
1
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this quiz (22)
1A Java byte code file can be viewed and edited in any text editor.
- ATrue
- BFalse
2There is only one Java compiler, but there are many different run-time engines.
- ATrue
- BFalse
3The Java Runtime Engine is the same regardless of which platform or which browser it is running on.
- ATrue
- BFalse
4A runtime error can only result from incorrect Java syntax.
- ATrue
- BFalse
5A Java source code file has a *.class extension.
- ATrue
- BFalse
6final attribute values can be changed as long as the attributes are also declared as static and changes are made within the same class in which they are declared.
- ATrue
- BFalse
7In Java, dividing an integer by an integer always yields an integer.
- ATrue
- BFalse
8An array of primitive types is an Object in Java.
- ATrue
- BFalse
9A single line of code within the true part of a conditional statement must be contained within a set of curly braces, { }.
- ATrue
- BFalse
10Casting a double using the operator, (int), truncates the number instead of rounding it.
- ATrue
- BFalse
11Execution of a method stops once a return statement has been executed, even if there is code after the return statement.
- ATrue
- BFalse
12Java variable names must begin with a letter.
- ATrue
- BFalse
13You may omit round brackets in the declaration header of a method if that method does not declare any parameters.
- ATrue
- BFalse
14In Java, Strings can be concatenated with the & operator.
- ATrue
- BFalse
15Java's two floating point types are float and double.
- ATrue
- BFalse
16A "chained if" structure uses the elif keyword.
- ATrue
- BFalse
17A literal value of type float can be stored in a variable of type int without explicit casting.
- ATrue
- BFalse
18++ is the increment operator.
- ATrue
- BFalse
19A looping structure does not require curly brackets, { }, to contain a single statement inside the loop.
- ATrue
- BFalse
20A constant in Java is declared using the const keyword.
- ATrue
- BFalse
21In an expression with a series of equal precedence arithmetic operators evaluation goes in order from left to right.
- ATrue
- BFalse
22A Java method can return multiple values, provided they are supplied to the return keyword as a comma separated list of values and they are all of the same type.
- ATrue
- BFalse
Information
- Description
- Quiz on 1, created by Ricky Zhang on 18/04/2018.
- Author
- Ricky Zhang
- Language
- English
- Views
- 23
- Rating
- No ratings yet Rate this quiz