記憶度
7問
18問
0問
0問
0問
アカウント登録して、解答結果を保存しよう
問題一覧
1
Used to specify the set of values and their operations.
Data type
2
The fundamental data types in Java. These are predefined data types by the language and named by a keyword.
Primitive data types
3
A data type can be useful for saving memory space in large arrays.
Byte
4
It is also a useful for saving memory space in large arrays.
Short
5
This data type is generally used as the default data type for integral values unless there is a concern about memory space.
Int
6
This data type is used when a wider range than int is needed.
Long
7
This data type is also used to save memory in large arrays of floating-point numbers. Example variable declaration
Float
8
For decimal values, this data type is generally the default data type.
Double
9
This data type has only two (2) possible values: true or false.
Boolean
10
This data type is used to store a single character. In Java, the character is enclosed in single quotes.
Char
11
it is a name for a memory location that stores a specific value, such as numbers and letters.
Variable
12
Which statement is NOT TRUE about a variable
it is a memory location whose value cannot be changed during program execution
13
It is a memory location whose value cannot be changed during program execution.
Constant
14
It is a Java reserved word and is used to specify that the value stored in the variable_name is fixed and cannot be changed.
Final
15
This refers to converting a value from a specific type to a variable of another type
Type casting
16
What type of type of Cast typing is this?
Widening conversion (implicit casting)
17
What type of Type casting is this?
Narrowing conversion (explicit casting)
18
The conversion of the lower precision data type to a value of a higher precision data type.
Widening conversion (implicit casting)
19
The conversion of a higher precision data type into a value of a lower precision data type. This will typically involve loss of information.
Narrowing conversion (explicit casting)
20
Using a Widening conversion (implicit casting), convert int x = 4; into double with a variable named "a"
double a = x;
21
Using a Narrowing conversion (explicit casting)), convert float x = 6.82f; into int with a variable named "a"
int a = (int) x;
22
What type of Type casting is this: From char to int, long, float, or double
Widening conversion (implicit casting)
23
A construct made up of variables and operators that evaluates to a single value.
Expression
24
These expressions consist of arithmetic operators, operands, and assignment operators.
Arithmetic expression
25
If all operands in an expression are integers and the expression returns an integer type value, the expression is an _________?
Integral expression
26
What type of expression is x = 11 + 3 * 24 – 5 / 4
Integral expression
27
y = 2.8 * 17.5 – 1.40 is what type of expression?
Floating-point expression
28
These contain both integers and floating-point numbers and returns a floating-point number.
Mixed expression
29
What type of expression is 11.5 + 3 * 2.25 ?
Mixed expression
30
6 / 4 + 3.9 is what type of expression?
Mixed expression
31
An expression that returns a Boolean value when evaluated.
Logical expression
32
What is the return value of the expression, (30 / 3)?`
10
33
Which is a logical operator?
&&
34
Which is NOT an expression?
int varB
35
Which is not a valid assignment statement?
int charA = 'a';
36
Which operator is evaluated first in the expression, d + g * x / y – c?
*
37
Which of the following is NOT a reserved word in Java?
and
38
Which of the following is NOT a valid Java identifier?
1footEquals2Inches
39
These symbols tell the compiler or interpreter of the program to perform a specific mathematical, relational, or logical operation and produce the final result.
Operators
40
Are used to perform basic mathematical operations on numerical values. A value used on either side of an operator is an operand.
Arithmetic operators
41
Are used to evaluate the relation between the operands and generate a decision on that base.
Relational operators
42
Return a Boolean value based on the Boolean result of the given expressions, and are always evaluated from left to right.
Logical operators
43
These are used to assign values to a variable, where the left operand gets the value of the expression on the right.
Assignment operators
44
For a given expression containing more than two (2) operators, it determines which operations should be calculated first.
Order of Precedence
45
Which is a "Relational Operator"
>
46
Which is NOT an "Assignment operator"
<=
47
This logical operator evaluates an expression as true if both operands are true.
AND (&&)
48
This logical operator evaluates an expression as true if at least one (1) operand is true.
OR (II)
49
This logical operator evaluates an expression as true if only one (1) operand is true.
XOR (^)
50
This logical operator evaluates an expression as true if it is false and vice versa
NOT (!)
51
What operator is this ++
Increment
52
What type of operator is --
Decrement