ログイン

Computer Programming Mocktest (Pre-finals) BSIT 205
33問 • 1年前
  • Xai Alexandrei Delos Reyes
  • 通報

    問題一覧

  • 1

    It is a data type that contains a fixed set of constants. They can be declared on their own or within another class

    Enumeration

  • 2

    Enum: Returns the name of the calling constant object

    toString()

  • 3

    Enum: Returns an integer that represents the constant’s position in the list of constants; the first position is 0

    ordinal()

  • 4

    Enum: Returns true if its argument is equal to the calling object’s valu

    equals()

  • 5

    Enum: Returns a negative integer if the calling object’s ordinal value is less than that of the argument, 0 if they are the same, and a positive integer if the calling object’s ordinal value is greater than that of the argument

    compareTo()

  • 6

    Enum: Returns an array of the enumerated constants

    values()

  • 7

    you can create a class within another class and store them together; such classes are called

    Nested Classes

  • 8

    has access to all static methods of the top- level class

    static member class

  • 9

    requires an instance; it has access to all data and methods of the top-level class.

    non-static member class

  • 10

    defined within a method body

    local class

  • 11

    a special case of a local class that has not identifier

    Anonymous class

  • 12

    (or regex) is a character or a sequence of characters that represent a string or multiple strings.

    Regular Expression

  • 13

    package has classes to help form and use regular expressions.

    import java.util.regex;

  • 14

    It is the wildcard operator that represents any single character in regular expressions.

    .

  • 15

    0 or more occurrences

    *

  • 16

    0 or 1 occurrence

    ?

  • 17

    1 or more occurrences

    +

  • 18

    x occurrences

    {x}

  • 19

    Between x & y occurrences

    {x,y}

  • 20

    Between x & y occurrences

    {x,y}

  • 21

    x or more occurrences

    {x,}

  • 22

    It is any symbol in regular expressions that indicates the number of times a specified character appears in a matching string.

    Repetition Operator

  • 23

    This class in the java.util.regex package stores the format of a regular expression.

    Pattern

  • 24

    This method compiles the given regular expression into a pattern. A regex pattern can speed up your program when the pattern is used frequently.

    Compile

  • 25

    This class in the java.util.regex package stores a possible match between a pattern and a string.

    Matcher

  • 26

    A matcher is initialized as...?

    Matcher match = patternName.matcher(stringName);

  • 27

    This method in "match" scans the input sequence looking for the next subsequence that matches the pattern. I

    find()

  • 28

    method is used to replace all the occurrences of the defined regular expression found in the string with another string

    replaceAll()

  • 29

    method compares one (1) string to another by comparing a single argument.

    equals()

  • 30

    method allows you to determine what the string should match against and allows you to specify multiple values.

    matches()

  • 31

    Pattern p = Pattern.compile("[0-9]"); String str = "Password"; Matcher match = p.matcher(str); System.out.println(match.find());

    returns false

  • 32

    Pattern p = Pattern.compile("[A-F]{5,}.*"); String str = "AAAAAhhh"; Matcher match = p.matcher(str); System.out.println(match.matches());

    returns true

  • 33

    It is used to describe a data type for that allows only appropriate behaviors.

    Type-safe

  • 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

    Programming Mock Test (Midterms) BSIT 107

    Programming Mock Test (Midterms) BSIT 107

    Xai Alexandrei Delos Reyes · 52問 · 2年前

    Programming Mock Test (Midterms) BSIT 107

    Programming Mock Test (Midterms) BSIT 107

    52問 • 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

    It is a data type that contains a fixed set of constants. They can be declared on their own or within another class

    Enumeration

  • 2

    Enum: Returns the name of the calling constant object

    toString()

  • 3

    Enum: Returns an integer that represents the constant’s position in the list of constants; the first position is 0

    ordinal()

  • 4

    Enum: Returns true if its argument is equal to the calling object’s valu

    equals()

  • 5

    Enum: Returns a negative integer if the calling object’s ordinal value is less than that of the argument, 0 if they are the same, and a positive integer if the calling object’s ordinal value is greater than that of the argument

    compareTo()

  • 6

    Enum: Returns an array of the enumerated constants

    values()

  • 7

    you can create a class within another class and store them together; such classes are called

    Nested Classes

  • 8

    has access to all static methods of the top- level class

    static member class

  • 9

    requires an instance; it has access to all data and methods of the top-level class.

    non-static member class

  • 10

    defined within a method body

    local class

  • 11

    a special case of a local class that has not identifier

    Anonymous class

  • 12

    (or regex) is a character or a sequence of characters that represent a string or multiple strings.

    Regular Expression

  • 13

    package has classes to help form and use regular expressions.

    import java.util.regex;

  • 14

    It is the wildcard operator that represents any single character in regular expressions.

    .

  • 15

    0 or more occurrences

    *

  • 16

    0 or 1 occurrence

    ?

  • 17

    1 or more occurrences

    +

  • 18

    x occurrences

    {x}

  • 19

    Between x & y occurrences

    {x,y}

  • 20

    Between x & y occurrences

    {x,y}

  • 21

    x or more occurrences

    {x,}

  • 22

    It is any symbol in regular expressions that indicates the number of times a specified character appears in a matching string.

    Repetition Operator

  • 23

    This class in the java.util.regex package stores the format of a regular expression.

    Pattern

  • 24

    This method compiles the given regular expression into a pattern. A regex pattern can speed up your program when the pattern is used frequently.

    Compile

  • 25

    This class in the java.util.regex package stores a possible match between a pattern and a string.

    Matcher

  • 26

    A matcher is initialized as...?

    Matcher match = patternName.matcher(stringName);

  • 27

    This method in "match" scans the input sequence looking for the next subsequence that matches the pattern. I

    find()

  • 28

    method is used to replace all the occurrences of the defined regular expression found in the string with another string

    replaceAll()

  • 29

    method compares one (1) string to another by comparing a single argument.

    equals()

  • 30

    method allows you to determine what the string should match against and allows you to specify multiple values.

    matches()

  • 31

    Pattern p = Pattern.compile("[0-9]"); String str = "Password"; Matcher match = p.matcher(str); System.out.println(match.find());

    returns false

  • 32

    Pattern p = Pattern.compile("[A-F]{5,}.*"); String str = "AAAAAhhh"; Matcher match = p.matcher(str); System.out.println(match.matches());

    returns true

  • 33

    It is used to describe a data type for that allows only appropriate behaviors.

    Type-safe