Search Header Logo

DotNet Chapter 7

Authored by Aiman Hanif

Computers

University

Used 1+ times

DotNet Chapter 7
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

46 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

ADO.NET is mainly used to ______ between a .NET application and a database. / ADO.NET digunakan untuk ______ antara aplikasi .NET dan pangkalan data.

decorate UI
act as a bridge (jambatan)
compile C# code
create HTML only

Answer explanation

ADO.NET acts as a bridge between your application and data sources like SQL Server.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which namespace is commonly used for SQL Server database access in ADO.NET? / Namespace biasa untuk akses SQL Server ialah…

System.Net
System.Data / Microsoft.Data.SqlClient
System.IO
System.Threading

Answer explanation

ADO.NET SQL Server access typically uses System.Data.SqlClient or Microsoft.Data.SqlClient.

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which ADO.NET component opens and manages the database connection? / Komponen yang buka & urus sambungan DB ialah…

Command
Connection
DataReader
DataSet

Answer explanation

Connection (e.g., SqlConnection) creates and manages the link to the database.

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which component executes SQL statements or stored procedures? / Komponen yang jalankan SQL ialah…

SqlCommand (Command)
SqlDataReader
DataView
DataColumn

Answer explanation

Command (SqlCommand) runs SQL queries or stored procedures.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

SqlDataReader is best described as… / SqlDataReader paling tepat ialah…

offline editable table
fast forward-only, read-only stream
tool to design UI
stores multiple tables + relations

Answer explanation

DataReader reads data quickly, forward-only, read-only, and needs an open connection.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which component is the “bridge” between a DataSet and the database (disconnected model)? / Komponen ‘jambatan’ DataSet↔DB ialah…

DataAdapter
DataTable
DataView
ValidationSummary

Answer explanation

DataAdapter fills a DataSet and can update changes back to the database.

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which object can hold multiple DataTables and relationships in memory? / Objek yang boleh simpan banyak jadual dalam memori ialah…

DataSet
SqlCommand
SqlTransaction
SqlParameter

Answer explanation

A DataSet is an in-memory cache that can store multiple DataTables and relations.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?