ログイン

Programming Mock Test (Midterms) BSIT 107
52問 • 2年前
  • Xai Alexandrei Delos Reyes
  • 通報

    問題一覧

  • 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

  • The Contemporary World Mock test (Prelims)

    The Contemporary World Mock test (Prelims)

    Xai Alexandrei Delos Reyes · 58問 · 2年前

    The Contemporary World Mock test (Prelims)

    The Contemporary World Mock test (Prelims)

    58問 • 2年前
    Xai Alexandrei Delos Reyes

    Computing Mock test (Prelims)

    Computing Mock test (Prelims)

    Xai Alexandrei Delos Reyes · 67問 · 2年前

    Computing Mock test (Prelims)

    Computing Mock test (Prelims)

    67問 • 2年前
    Xai Alexandrei Delos Reyes

    Programming Mock Test (Prelims)

    Programming Mock Test (Prelims)

    Xai Alexandrei Delos Reyes · 64問 · 2年前

    Programming Mock Test (Prelims)

    Programming Mock Test (Prelims)

    64問 • 2年前
    Xai Alexandrei Delos Reyes

    Entrepreneurship Mock Test (Prelims)

    Entrepreneurship Mock Test (Prelims)

    Xai Alexandrei Delos Reyes · 23問 · 2年前

    Entrepreneurship Mock Test (Prelims)

    Entrepreneurship Mock Test (Prelims)

    23問 • 2年前
    Xai Alexandrei Delos Reyes

    Computing Mock Test (Midterms) BSIT 107

    Computing Mock Test (Midterms) BSIT 107

    Xai Alexandrei Delos Reyes · 76問 · 2年前

    Computing Mock Test (Midterms) BSIT 107

    Computing Mock Test (Midterms) BSIT 107

    76問 • 2年前
    Xai Alexandrei Delos Reyes

    Math Mock Test (Prelims)

    Math Mock Test (Prelims)

    Xai Alexandrei Delos Reyes · 48問 · 2年前

    Math Mock Test (Prelims)

    Math Mock Test (Prelims)

    48問 • 2年前
    Xai Alexandrei Delos Reyes

    UTS Mock Test (Midterms) BSIT107

    UTS Mock Test (Midterms) BSIT107

    Xai Alexandrei Delos Reyes · 40問 · 2年前

    UTS Mock Test (Midterms) BSIT107

    UTS Mock Test (Midterms) BSIT107

    40問 • 2年前
    Xai Alexandrei Delos Reyes

    Entrepreneurship Mock Test (Midterms) BSIT 107

    Entrepreneurship Mock Test (Midterms) BSIT 107

    Xai Alexandrei Delos Reyes · 38問 · 2年前

    Entrepreneurship Mock Test (Midterms) BSIT 107

    Entrepreneurship Mock Test (Midterms) BSIT 107

    38問 • 2年前
    Xai Alexandrei Delos Reyes

    Contemporary World Mock Test (Midterms) BSIT 107

    Contemporary World Mock Test (Midterms) BSIT 107

    Xai Alexandrei Delos Reyes · 28問 · 2年前

    Contemporary World Mock Test (Midterms) BSIT 107

    Contemporary World Mock Test (Midterms) BSIT 107

    28問 • 2年前
    Xai Alexandrei Delos Reyes

    Math Mocktest (Midterms) BSIT 107

    Math Mocktest (Midterms) BSIT 107

    Xai Alexandrei Delos Reyes · 24問 · 2年前

    Math Mocktest (Midterms) BSIT 107

    Math Mocktest (Midterms) BSIT 107

    24問 • 2年前
    Xai Alexandrei Delos Reyes

    Computer Programming Mocktest (Pre-finals)

    Computer Programming Mocktest (Pre-finals)

    Xai Alexandrei Delos Reyes · 26問 · 2年前

    Computer Programming Mocktest (Pre-finals)

    Computer Programming Mocktest (Pre-finals)

    26問 • 2年前
    Xai Alexandrei Delos Reyes

    Math Mocktest (Pre-Finals)

    Math Mocktest (Pre-Finals)

    Xai Alexandrei Delos Reyes · 19問 · 2年前

    Math Mocktest (Pre-Finals)

    Math Mocktest (Pre-Finals)

    19問 • 2年前
    Xai Alexandrei Delos Reyes

    Computing Mock Test (Pre-finals)

    Computing Mock Test (Pre-finals)

    Xai Alexandrei Delos Reyes · 36問 · 2年前

    Computing Mock Test (Pre-finals)

    Computing Mock Test (Pre-finals)

    36問 • 2年前
    Xai Alexandrei Delos Reyes

    Computing Mock Test Finals

    Computing Mock Test Finals

    Xai Alexandrei Delos Reyes · 26問 · 2年前

    Computing Mock Test Finals

    Computing Mock Test Finals

    26問 • 2年前
    Xai Alexandrei Delos Reyes

    Comprog 2nd sem (prelims) BSIT 205

    Comprog 2nd sem (prelims) BSIT 205

    Xai Alexandrei Delos Reyes · 63問 · 1年前

    Comprog 2nd sem (prelims) BSIT 205

    Comprog 2nd sem (prelims) BSIT 205

    63問 • 1年前
    Xai Alexandrei Delos Reyes

    Discrete Math 2nd sem (prelims) BSIT 205

    Discrete Math 2nd sem (prelims) BSIT 205

    Xai Alexandrei Delos Reyes · 36問 · 1年前

    Discrete Math 2nd sem (prelims) BSIT 205

    Discrete Math 2nd sem (prelims) BSIT 205

    36問 • 1年前
    Xai Alexandrei Delos Reyes

    Art Appreciation (Prelim) BSIT 205

    Art Appreciation (Prelim) BSIT 205

    Xai Alexandrei Delos Reyes · 56問 · 1年前

    Art Appreciation (Prelim) BSIT 205

    Art Appreciation (Prelim) BSIT 205

    56問 • 1年前
    Xai Alexandrei Delos Reyes

    Ethics 2nd sem (Prelims) BSIT 205

    Ethics 2nd sem (Prelims) BSIT 205

    Xai Alexandrei Delos Reyes · 45問 · 1年前

    Ethics 2nd sem (Prelims) BSIT 205

    Ethics 2nd sem (Prelims) BSIT 205

    45問 • 1年前
    Xai Alexandrei Delos Reyes

    STS 2nd Sem (Prelim) BSIT 205

    STS 2nd Sem (Prelim) BSIT 205

    Xai Alexandrei Delos Reyes · 40問 · 1年前

    STS 2nd Sem (Prelim) BSIT 205

    STS 2nd Sem (Prelim) BSIT 205

    40問 • 1年前
    Xai Alexandrei Delos Reyes

    問題一覧

  • 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