ログイン

Comprog 2nd sem (prelims) BSIT 205
63問 • 1年前
  • Xai Alexandrei Delos Reyes
  • 通報

    問題一覧

  • 1

    It is a programming methodology that defines objects whose behaviors and interactions accomplish a given task.

    Object-oriented Programming

  • 2

    An import statement must only contain small letters

    True

  • 3

    A class from a different package has to be in the same folder with the class that we will use it

    True

  • 4

    This allows objects of a class to acquire the properties of objects from another class

    Inheritance

  • 5

    Which of the Following import statement is correct?

    import java.util;

  • 6

    Which of the following keywords indicates that an interface will be used?

    implements

  • 7

    The data type of an object is the name of its class.

    True

  • 8

    This contains the heading for a number of public methods

    Interface

  • 9

    Class that are grouped together form an interface

    False

  • 10

    It serves a blueprint for defining Objects

    Class

  • 11

    You can use a class from a package without. specifying the class name in the import statement.

    True

  • 12

    This is the process of combining data and actions into a single item.

    Encapsulation

  • 13

    Local Variables are only visible to the methods in which they declared

    True

  • 14

    The accessor changes the data stored in a private instance variable

    True

  • 15

    If a method definition is private, the method can be invoked to within the definitions of methods in its class

    False

  • 16

    These are variables declared within a method definition.

    Local

  • 17

    The data type of the return value should match the declared return type

    True

  • 18

    A private method can be invoked anywhere without restriction

    False

  • 19

    These are variables declared outside any method

    Instance

  • 20

    Which of the following keywords indicates that the method is NOT used in returning a value

    void

  • 21

    Which of the following keywords represents the object's name recieving the method call

    this

  • 22

    Static variables are always private

    False

  • 23

    What is the constructor of the class name NewClass

    NewClass()

  • 24

    Methods can have the same name within the same class

    True

  • 25

    The name of the constructor is the same with the name of the class

    True

  • 26

    What is the variable ans upon executing the statement, double ans = Math.floor(7.9)?

    7.0

  • 27

    What is the variable ans upon executing the statement, double ans = Math.abs(7.7)?

    7.7

  • 28

    Which of the following is a valid statement

    MyClass m = new MyClass();

  • 29

    What is the variable ans upon executing the statement, double ans = Math.ceil(7.4)?

    8.0

  • 30

    A constructor has a return type

    False

  • 31

    A static variable can reference an instance variable of the class

    False

  • 32

    A derived class inherits the constructor of the base class

    False

  • 33

    An abstract class should always have an abstract method

    False

  • 34

    An abstract class can be instantiated

    False

  • 35

    In the class declaration, public class ABC Extends Xyz, the subclass is ABC while the superclass is Xyz

    True

  • 36

    It is a public method that returns data from a private instance variable

    Accessor

  • 37

    It is a public method that changes the data stored in one (1) or more private instance variable

    Modifier

  • 38

    It describes the structure of a class by displaying the class name (first row), variables (second row), and methods (third row).

    Unified Modelling Language

  • 39

    The existing class that the derived class is built upon is called the...

    Base Class

  • 40

    This class is defined by adding instance variables and methods to an existing class.

    Derived Class

  • 41

    It is the ability of an object to take on many forms.

    Polymorphism

  • 42

    It allows many meanings to be associated to one method name.

    Dynamic Binding

  • 43

    It is declared as abstract and does not have an implementation. This is written without braces, followed by a semicolon.

    Abstract Method

  • 44

    If a derived class defines a method with the same name, the same number and types of parameters, and the same return type as a method in the base class, the definition in the derived class is said to...

    Override

  • 45

    The actions that an object can take are called

    Behaviours

  • 46

    An object has characteristics or attributes.

    True

  • 47

    To apply inheritance between classes, the ____ keyword is used.

    extends

  • 48

    it is a collection of related classes and interfaces that have been grouped together into a folder.

    Package

  • 49

    You can use all the classes that are in a package within any program or class definition by placing an ____ statement.

    import

  • 50

    It is the list of variables in a method declaration

    Parameters

  • 51

    It is the actual value that is passed when the method is invoked.

    Arguments

  • 52

    It is a collection of statements that are grouped together to perform an operation.

    Method

  • 53

    It is the mechanism for restricting access to some of the object’s components.

    Information Hiding

  • 54

    If an instance variable is public, there are NO RESTRICTIONS on where you can use its name.

    True

  • 55

    If an instance variable is private, its name CAN be used to access it outside of the class definition.

    False

  • 56

    If a method definition is private, the method CANNOT be invoked within the definitions of methods in its class.

    True

  • 57

    If the method is public, you CANNOT invoke it anywhere without restriction.

    False

  • 58

    The address of the object’s memory location is called a...

    Reference

  • 59

    It occurs when multiple methods have the same name within the same class.

    Overloading

  • 60

    A method’s name and the number and types of its parameters are called the method’s...

    Signature

  • 61

    A variable that is accessible to any class

    Public Class

  • 62

    A variable that is only accessible only within the class where it is declared

    Private Class

  • 63

    A modifier used to prevent a class from being inherited

    Final

  • 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

    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 programming methodology that defines objects whose behaviors and interactions accomplish a given task.

    Object-oriented Programming

  • 2

    An import statement must only contain small letters

    True

  • 3

    A class from a different package has to be in the same folder with the class that we will use it

    True

  • 4

    This allows objects of a class to acquire the properties of objects from another class

    Inheritance

  • 5

    Which of the Following import statement is correct?

    import java.util;

  • 6

    Which of the following keywords indicates that an interface will be used?

    implements

  • 7

    The data type of an object is the name of its class.

    True

  • 8

    This contains the heading for a number of public methods

    Interface

  • 9

    Class that are grouped together form an interface

    False

  • 10

    It serves a blueprint for defining Objects

    Class

  • 11

    You can use a class from a package without. specifying the class name in the import statement.

    True

  • 12

    This is the process of combining data and actions into a single item.

    Encapsulation

  • 13

    Local Variables are only visible to the methods in which they declared

    True

  • 14

    The accessor changes the data stored in a private instance variable

    True

  • 15

    If a method definition is private, the method can be invoked to within the definitions of methods in its class

    False

  • 16

    These are variables declared within a method definition.

    Local

  • 17

    The data type of the return value should match the declared return type

    True

  • 18

    A private method can be invoked anywhere without restriction

    False

  • 19

    These are variables declared outside any method

    Instance

  • 20

    Which of the following keywords indicates that the method is NOT used in returning a value

    void

  • 21

    Which of the following keywords represents the object's name recieving the method call

    this

  • 22

    Static variables are always private

    False

  • 23

    What is the constructor of the class name NewClass

    NewClass()

  • 24

    Methods can have the same name within the same class

    True

  • 25

    The name of the constructor is the same with the name of the class

    True

  • 26

    What is the variable ans upon executing the statement, double ans = Math.floor(7.9)?

    7.0

  • 27

    What is the variable ans upon executing the statement, double ans = Math.abs(7.7)?

    7.7

  • 28

    Which of the following is a valid statement

    MyClass m = new MyClass();

  • 29

    What is the variable ans upon executing the statement, double ans = Math.ceil(7.4)?

    8.0

  • 30

    A constructor has a return type

    False

  • 31

    A static variable can reference an instance variable of the class

    False

  • 32

    A derived class inherits the constructor of the base class

    False

  • 33

    An abstract class should always have an abstract method

    False

  • 34

    An abstract class can be instantiated

    False

  • 35

    In the class declaration, public class ABC Extends Xyz, the subclass is ABC while the superclass is Xyz

    True

  • 36

    It is a public method that returns data from a private instance variable

    Accessor

  • 37

    It is a public method that changes the data stored in one (1) or more private instance variable

    Modifier

  • 38

    It describes the structure of a class by displaying the class name (first row), variables (second row), and methods (third row).

    Unified Modelling Language

  • 39

    The existing class that the derived class is built upon is called the...

    Base Class

  • 40

    This class is defined by adding instance variables and methods to an existing class.

    Derived Class

  • 41

    It is the ability of an object to take on many forms.

    Polymorphism

  • 42

    It allows many meanings to be associated to one method name.

    Dynamic Binding

  • 43

    It is declared as abstract and does not have an implementation. This is written without braces, followed by a semicolon.

    Abstract Method

  • 44

    If a derived class defines a method with the same name, the same number and types of parameters, and the same return type as a method in the base class, the definition in the derived class is said to...

    Override

  • 45

    The actions that an object can take are called

    Behaviours

  • 46

    An object has characteristics or attributes.

    True

  • 47

    To apply inheritance between classes, the ____ keyword is used.

    extends

  • 48

    it is a collection of related classes and interfaces that have been grouped together into a folder.

    Package

  • 49

    You can use all the classes that are in a package within any program or class definition by placing an ____ statement.

    import

  • 50

    It is the list of variables in a method declaration

    Parameters

  • 51

    It is the actual value that is passed when the method is invoked.

    Arguments

  • 52

    It is a collection of statements that are grouped together to perform an operation.

    Method

  • 53

    It is the mechanism for restricting access to some of the object’s components.

    Information Hiding

  • 54

    If an instance variable is public, there are NO RESTRICTIONS on where you can use its name.

    True

  • 55

    If an instance variable is private, its name CAN be used to access it outside of the class definition.

    False

  • 56

    If a method definition is private, the method CANNOT be invoked within the definitions of methods in its class.

    True

  • 57

    If the method is public, you CANNOT invoke it anywhere without restriction.

    False

  • 58

    The address of the object’s memory location is called a...

    Reference

  • 59

    It occurs when multiple methods have the same name within the same class.

    Overloading

  • 60

    A method’s name and the number and types of its parameters are called the method’s...

    Signature

  • 61

    A variable that is accessible to any class

    Public Class

  • 62

    A variable that is only accessible only within the class where it is declared

    Private Class

  • 63

    A modifier used to prevent a class from being inherited

    Final