ログイン

(Finals) Event-Driven Programming Mocktest BSIT 505
65問 • 2ヶ月前
  • Xai Alexandrei Delos Reyes
  • 通報

    問題一覧

  • 1

    its library is a rich framework that retrieves and updates information in various relational databases, which include Microsoft SQL Server, Microsoft Access, Oracle, and XML.

    ADO.NET

  • 2

    It is used for connecting in the database, recovering results, updating data, and executing commands.

    Data Provider

  • 3

    Which statement is NOT TRUE about Data Provider?

    It characterizes a local copy of related data tables.

  • 4

    It characterizes a local copy of related data tables.

    DataSet

  • 5

    Which statement is NOT TRUE about DataSet

    It manages the data for any entity. It contains zero or more rows of data, and each value shown in the data table is identified by the DataColumn.

  • 6

    It manages the data for any entity.

    DataTable

  • 7

    Which statement is NOT TRUE about a DataTable?

    It includes a data type declaration based on the kind of data saved.

  • 8

    It includes a data type declaration based on the kind of data saved.

    DataColumn

  • 9

    It is used to link two (2) DataTable classes inside the DataSet class.

    DataRelation

  • 10

    It is used to map a table name from the database to a DataTable within a DataSet.

    DataColumnMapping

  • 11

    It is used to customize the view of the table or desired view of the rows in a DataTable.

    DataView

  • 12

    It can run SQL commands and perform a stored procedure—accessing and manipulating data. Data management statements and SQL queries are wrapped in the Command object.

    Command

  • 13

    From the data source, it allows users to connect and disconnect. Communications with the external data sources happen through the Connection object.

    Connection

  • 14

    It transfers DataSets between the data source and the caller. It also acts as a connection between the data source and DataSet, where DataAdapters contain a connection and set of Command objects that help in fetching and updating data.

    DataAdapters

  • 15

    ADO.NET contains classes for connecting or using an SQL command. It requires to add what namespace?

    System.Data.SqlClient

  • 16

    Used as wrappers for SQL statements or stored procedure calls

    SqlCommand, OleDbCommand, and ODBCCommand

  • 17

    Generate SQL commands for updating database tables Automatically generate SQL commands from a SELECT statement

    SqlCommandBuilder, OleDbCommandBuilder, and ODBCCommandBuilder

  • 18

    Used to connect to the database

    SqlConnection, OleDbConnection, and ODBCConnection

  • 19

    Handle interaction between DataSet and data source Help in executing different SQL commands to populate a DataSet and update the data source

    SqlDataAdapter, OleDbDataAdapter, and ODBCDataAdapter

  • 20

    Used as a forward-only, read-only access to data using a cursor

    SqlDataReader, OleDbDataReader, and ODBCDataReader

  • 21

    Define a parameter to a stored procedure

    SqlParameter, OleDbParameter, and ODBCParameter

  • 22

    Represent transactions to be made in data source

    SqlTransaction, OleDbTransaction, and ODBCTransaction

  • 23

    It includes all generic data access classes.

    System.Data

  • 24

    It includes classes that are shared or overridden by individual data providers.

    System.Data.Common

  • 25

    It includes Entity Framework classes.

    System.Data.EntityClient

  • 26

    It includes LINQ to SQL provider classes.

    System.Data.Linq.SqlClient

  • 27

    It includes ODVC provider classes.

    System.Data.Odbc

  • 28

    It includes OLE DB provider classes.

    System.Data.OleDb

  • 29

    It includes new base classes and connection factory classes.

    System.Data.ProviderBase

  • 30

    It includes new generic interfaces and classes for SQL Server data access.

    System.Data.Sql

  • 31

    It includes SQL Server provider classes.

    System.Data.SqlClient

  • 32

    It includes SQL Server data types.

    System.Data.SqlTypes

  • 33

    It is a server management console that is used for logging in to servers, opening data connections, and accessing databases

    Server Explorer

  • 34

    It contains all the connections to the server and local databases. this node displays the list of tables, view, stored procedures, and functions. It can also be used to connect to a SQL Server Database.

    Data Connections

  • 35

    It is used to design, connect to the available database, browse the schema, and create a query on its object

    SQL Server Object Explorer

  • 36

    what is correct syntax for creating a database?

    CREATE DATABASE db_name;

  • 37

    what is correct syntax for removing a database?

    DROP DATABASE db_name;

  • 38

    what is correct syntax for creating a database table?

    CREATE TABLE table_name ( column1 datatype, column2 datatype, column3 datatype,…);

  • 39

    What is the correct syntax for dropping a database table?

    DROP TABLE table_name;

  • 40

    This class is used to open a connection using the Open() method. The connection can be closed by calling the Close() method.

    SqlConnection

  • 41

    a property that is used to read or assign the connection string to be used by the SqlConnection class

    ConnectionString

  • 42

    a read-only property that returns the name of the SQL Server instance

    DataSource

  • 43

    a read-only property that returns the name of the database

    Database

  • 44

    a read-only property that returns the current state of the connection.

    State

  • 45

    Which is the correct syntax to establish a connection, specify the computer name to which you want to connect?

    SqlConnection conn = new SqlConnection("Server=computer_name;")

  • 46

    This class is used to perform desired processing on the database. It allows executing any direct T-SQL or stored procedure on the server.

    SqlCommand

  • 47

    In SqlCommand, This method executes the command but does not return output.

    ExecuteNonQuery

  • 48

    In SqlCommand, This method executes the command and returns a DataReader object based on the SQL statement.

    ExecuteReader

  • 49

    In SqlCommand, This object is forward-only and read-only cursor that can be iterated through to fetch the rows in it.

    SqlDataReader

  • 50

    In SqlCommand, It executes the command and returns the SqlRecord object that contains a single returned row.

    ExecuteRow

  • 51

    In SqlCommand, It executes the command and returns the first column of the first row in the result set

    ExecuteScalar

  • 52

    in SqlCommand Properties, It gets or sets the SqlConnection class that can be used by the Command object.

    Connection

  • 53

    in SqlCommand Properties, It gets or sets the stored procedure or the T-SQL statement.

    CommandText

  • 54

    in SqlCommand Properties, It indicates the way the CommandText property should be interpreted.

    CommandType

  • 55

    Which is the correct syntax for query for selecting all the data of the table?

    SELECT * FROM table_name;

  • 56

    Which is the correct query for selecting specific columns of the table?

    SELECT column1, column2, column3,… FROM table_name;

  • 57

    It refers to a collection of parameters that is connected with SqlCommand.

    SqlParameterCollection

  • 58

    In SqlParameterCollection, Which method adds the specified SqlParameter object to the SqlParameterCollection and contains two (2) arguments: string paramaterName and SqlDbType.

    Add()

  • 59

    In SqlParameterCollection, Which method adds a value to the end of the SqlParameterCollection and contains two (2) arguments, a string parameterName and an object, that includes the value of that parameter.

    AddWithValue()

  • 60

    Which is the correct syntax for SqlParameterCollection.Add()?

    public SqlParameter Add(string paramterName, SqlDbtype sqlDbType);

  • 61

    Which is the correct syntax for SqlParameterCollection.AddWithValue()?

    public SqlParameter AddWithValue(string parameterName, object value);

  • 62

    Which is the correct syntax for query for inserting data for all the columns of the table?

    INSERT INTO table_name VALUES(value1, value2, value3,… );

  • 63

    Which is the correct syntax for query for inserting data for specified column names?

    INSERT INTO table_name (column1, column2, column3, … ) VALUES(value1, value2, value3, … );

  • 64

    It is used to modify or update an existing record. - It uses the WHERE clause to determine the number of records that will be updated.

    SQL UPDATE

  • 65

    What is the correct syntax for Query for updating data?

    UPDATE table_name SET column1 = value1, column2 = value2, column3 = value3 WHERE condition;

  • 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

    its library is a rich framework that retrieves and updates information in various relational databases, which include Microsoft SQL Server, Microsoft Access, Oracle, and XML.

    ADO.NET

  • 2

    It is used for connecting in the database, recovering results, updating data, and executing commands.

    Data Provider

  • 3

    Which statement is NOT TRUE about Data Provider?

    It characterizes a local copy of related data tables.

  • 4

    It characterizes a local copy of related data tables.

    DataSet

  • 5

    Which statement is NOT TRUE about DataSet

    It manages the data for any entity. It contains zero or more rows of data, and each value shown in the data table is identified by the DataColumn.

  • 6

    It manages the data for any entity.

    DataTable

  • 7

    Which statement is NOT TRUE about a DataTable?

    It includes a data type declaration based on the kind of data saved.

  • 8

    It includes a data type declaration based on the kind of data saved.

    DataColumn

  • 9

    It is used to link two (2) DataTable classes inside the DataSet class.

    DataRelation

  • 10

    It is used to map a table name from the database to a DataTable within a DataSet.

    DataColumnMapping

  • 11

    It is used to customize the view of the table or desired view of the rows in a DataTable.

    DataView

  • 12

    It can run SQL commands and perform a stored procedure—accessing and manipulating data. Data management statements and SQL queries are wrapped in the Command object.

    Command

  • 13

    From the data source, it allows users to connect and disconnect. Communications with the external data sources happen through the Connection object.

    Connection

  • 14

    It transfers DataSets between the data source and the caller. It also acts as a connection between the data source and DataSet, where DataAdapters contain a connection and set of Command objects that help in fetching and updating data.

    DataAdapters

  • 15

    ADO.NET contains classes for connecting or using an SQL command. It requires to add what namespace?

    System.Data.SqlClient

  • 16

    Used as wrappers for SQL statements or stored procedure calls

    SqlCommand, OleDbCommand, and ODBCCommand

  • 17

    Generate SQL commands for updating database tables Automatically generate SQL commands from a SELECT statement

    SqlCommandBuilder, OleDbCommandBuilder, and ODBCCommandBuilder

  • 18

    Used to connect to the database

    SqlConnection, OleDbConnection, and ODBCConnection

  • 19

    Handle interaction between DataSet and data source Help in executing different SQL commands to populate a DataSet and update the data source

    SqlDataAdapter, OleDbDataAdapter, and ODBCDataAdapter

  • 20

    Used as a forward-only, read-only access to data using a cursor

    SqlDataReader, OleDbDataReader, and ODBCDataReader

  • 21

    Define a parameter to a stored procedure

    SqlParameter, OleDbParameter, and ODBCParameter

  • 22

    Represent transactions to be made in data source

    SqlTransaction, OleDbTransaction, and ODBCTransaction

  • 23

    It includes all generic data access classes.

    System.Data

  • 24

    It includes classes that are shared or overridden by individual data providers.

    System.Data.Common

  • 25

    It includes Entity Framework classes.

    System.Data.EntityClient

  • 26

    It includes LINQ to SQL provider classes.

    System.Data.Linq.SqlClient

  • 27

    It includes ODVC provider classes.

    System.Data.Odbc

  • 28

    It includes OLE DB provider classes.

    System.Data.OleDb

  • 29

    It includes new base classes and connection factory classes.

    System.Data.ProviderBase

  • 30

    It includes new generic interfaces and classes for SQL Server data access.

    System.Data.Sql

  • 31

    It includes SQL Server provider classes.

    System.Data.SqlClient

  • 32

    It includes SQL Server data types.

    System.Data.SqlTypes

  • 33

    It is a server management console that is used for logging in to servers, opening data connections, and accessing databases

    Server Explorer

  • 34

    It contains all the connections to the server and local databases. this node displays the list of tables, view, stored procedures, and functions. It can also be used to connect to a SQL Server Database.

    Data Connections

  • 35

    It is used to design, connect to the available database, browse the schema, and create a query on its object

    SQL Server Object Explorer

  • 36

    what is correct syntax for creating a database?

    CREATE DATABASE db_name;

  • 37

    what is correct syntax for removing a database?

    DROP DATABASE db_name;

  • 38

    what is correct syntax for creating a database table?

    CREATE TABLE table_name ( column1 datatype, column2 datatype, column3 datatype,…);

  • 39

    What is the correct syntax for dropping a database table?

    DROP TABLE table_name;

  • 40

    This class is used to open a connection using the Open() method. The connection can be closed by calling the Close() method.

    SqlConnection

  • 41

    a property that is used to read or assign the connection string to be used by the SqlConnection class

    ConnectionString

  • 42

    a read-only property that returns the name of the SQL Server instance

    DataSource

  • 43

    a read-only property that returns the name of the database

    Database

  • 44

    a read-only property that returns the current state of the connection.

    State

  • 45

    Which is the correct syntax to establish a connection, specify the computer name to which you want to connect?

    SqlConnection conn = new SqlConnection("Server=computer_name;")

  • 46

    This class is used to perform desired processing on the database. It allows executing any direct T-SQL or stored procedure on the server.

    SqlCommand

  • 47

    In SqlCommand, This method executes the command but does not return output.

    ExecuteNonQuery

  • 48

    In SqlCommand, This method executes the command and returns a DataReader object based on the SQL statement.

    ExecuteReader

  • 49

    In SqlCommand, This object is forward-only and read-only cursor that can be iterated through to fetch the rows in it.

    SqlDataReader

  • 50

    In SqlCommand, It executes the command and returns the SqlRecord object that contains a single returned row.

    ExecuteRow

  • 51

    In SqlCommand, It executes the command and returns the first column of the first row in the result set

    ExecuteScalar

  • 52

    in SqlCommand Properties, It gets or sets the SqlConnection class that can be used by the Command object.

    Connection

  • 53

    in SqlCommand Properties, It gets or sets the stored procedure or the T-SQL statement.

    CommandText

  • 54

    in SqlCommand Properties, It indicates the way the CommandText property should be interpreted.

    CommandType

  • 55

    Which is the correct syntax for query for selecting all the data of the table?

    SELECT * FROM table_name;

  • 56

    Which is the correct query for selecting specific columns of the table?

    SELECT column1, column2, column3,… FROM table_name;

  • 57

    It refers to a collection of parameters that is connected with SqlCommand.

    SqlParameterCollection

  • 58

    In SqlParameterCollection, Which method adds the specified SqlParameter object to the SqlParameterCollection and contains two (2) arguments: string paramaterName and SqlDbType.

    Add()

  • 59

    In SqlParameterCollection, Which method adds a value to the end of the SqlParameterCollection and contains two (2) arguments, a string parameterName and an object, that includes the value of that parameter.

    AddWithValue()

  • 60

    Which is the correct syntax for SqlParameterCollection.Add()?

    public SqlParameter Add(string paramterName, SqlDbtype sqlDbType);

  • 61

    Which is the correct syntax for SqlParameterCollection.AddWithValue()?

    public SqlParameter AddWithValue(string parameterName, object value);

  • 62

    Which is the correct syntax for query for inserting data for all the columns of the table?

    INSERT INTO table_name VALUES(value1, value2, value3,… );

  • 63

    Which is the correct syntax for query for inserting data for specified column names?

    INSERT INTO table_name (column1, column2, column3, … ) VALUES(value1, value2, value3, … );

  • 64

    It is used to modify or update an existing record. - It uses the WHERE clause to determine the number of records that will be updated.

    SQL UPDATE

  • 65

    What is the correct syntax for Query for updating data?

    UPDATE table_name SET column1 = value1, column2 = value2, column3 = value3 WHERE condition;