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