PRN292 EXAM STUDY GUIDE
Câu 1 _____is any action directed at the application.
[A] Event
[B] Method
[C] Class
[D] Object - Answer [A] Event
Câu 2____property is used to get or set the object that contains data about the control.
[A] Value
[B] Tag
[C] Text
[D] Name - Answer [A] Value
Câu 3 Which of the following statement with respect to Data Grid control are True?
(Choose all correct answers)
[A] By default, the DataGrid display 1 page at a time.
[B] When the DataGrid control is set to a valid data source, the control is populated
automatically
[C] Each field in the DataGrid is bound to a single column based on the DataSource
[D] The DataGrid control display data in tabular format and optionally supports data
editing. - Answer cd
Câu 4 When an MDI parent form is closed, the Closing event of all MDI child forms are
raised before the MDI parent form's Closing event is raised
[A] False
[B] True - Answer [B] True
Câu 5 What of the followings is correct for creating a command object with the
connection con?
[A] SqlCommand Cmd = con.SetSqlCommand("Select * From Student");
[B] SqlCommand Cmd = con.GetSqlCommand("Select * From Student");
[C] SqlCommand Cmd = new SqlCommand(con,"Select * From Student");
,[D] SqlCommand Cmd = new SqlCommand("Select * From Student", con); - Answer [D]
SqlCommand Cmd = new SqlCommand("Select * From Student", con);
Câu 6 The method can be used to draw a rectangle or a square depending on the
coordinates passed as its argument.
[A] FillSquare
[B] FillRectangle
[C] DrawSquare
[D] DrawRetangle - Answer [D] DrawRetangle
Câu 9 _____it the normal ouput type for a WinForm project
[A] Windows Application
[B] Console Application
[C] Class Library
[D] Windows Forms - Answer [A] Windows Application
Câu 14 The ____control groups a set of controls within a non-labeled an scrollable frame
[A] PictureBox
[B] Tab
[C] Frame
[D] Panel - Answer [D] Panel
Câu 15 The ____feature of Windows Installer provider a standard method for distributing
components and ensures that the installed component is of the correct version.
[A] VersionUpdate
[B] CAB
[C] Msi
[D] Merge Modules - Answer [D] Merge Modules
Câu 16 To create an instance of the Font class using existing Font and FontStyle, the
constructor is:
[A] public void Font(string fontname, float size);
[B] public Font(FontStyle fs, Font f);
[C] public void Font(Font f, FontStyle fs);
,[D] public Font(Font f, FontStyle fs);
[E] public Font(string fontname, float size); - Answer [E] public Font(string fontname,
float size);
Câu 17 Which control is used to display a short, customized help message for individual
controls on a form?
[A] ToolTip
[B] HelpText
[C] HelpTool
[D] ToolClass - Answer [A] ToolTip
Câu 18 For using SQL.NET Data Provider what using statement of the following is
correct?
[A] using System.Data;
[B] using System.Data.SqlServer;
[C] using System.Data.OleDb;
[D] using System.Data.SqlClient; - Answer [D] using System.Data.SqlClient;
Câu 21 Which namespace is VS.NET contains classes that help in constructing and
sending emails?
[A] System.Web.Mail
[B] System.Mail
[C] System.Web.MailMessage
[D] System.Web.MailMessages - Answer [A] System.Web.Mail
Câu 24 To perform a change to a table using the Command object named Cmd, what
statement of the following correct?
[A] Cmd.ExecuteReader()
[B] Cmd.ExecuteScalar()
[C] Cmd.ExecuteQuery()
[D] Cmd.ExecuteNonQuery()
[E] Cmd.ExecuteUpdate() - Answer [D] Cmd.ExecuteNonQuery()
Câu 25 When a Data Form is created using the Data Form Wizard, which of the following
, classes are used by default?(Choose all correct answers)
[A] OleDbDataWriter
[B] OleDbDataAdapter
[C] OleDbStatement
[D] OleDbDataReader
[E] OleDbConnection
[F] OleDbCommand - Answer [D] OleDbDataReader
[E] OleDbConnection
[F] OleDbCommand
Câu 26 ____property of a connection object is used to get or set the string used to open
a database
[A] ConnectionParams
[B] ConnectionInfo
[C] StringConnection
[D] ConnectionString - Answer [D] ConnectionString
Câu 28 _____property is used to get or set the edges of the control are anchored to the
edges of its container.
[A] Hang
[B] Fixed
[C] Anchor
[D] Dock - Answer [C] Anchor
Câu 31 ____property is used to get or set the shortcut menu associated with the control.
[A] PopUpMenu
[B] SubMenu
[C] ContextMenu
[D] MainMenu - Answer [A] PopUpMenu
Câu 33 System.Windows.Forms is an important____of the class libraries in .NET
framework?
Câu 1 _____is any action directed at the application.
[A] Event
[B] Method
[C] Class
[D] Object - Answer [A] Event
Câu 2____property is used to get or set the object that contains data about the control.
[A] Value
[B] Tag
[C] Text
[D] Name - Answer [A] Value
Câu 3 Which of the following statement with respect to Data Grid control are True?
(Choose all correct answers)
[A] By default, the DataGrid display 1 page at a time.
[B] When the DataGrid control is set to a valid data source, the control is populated
automatically
[C] Each field in the DataGrid is bound to a single column based on the DataSource
[D] The DataGrid control display data in tabular format and optionally supports data
editing. - Answer cd
Câu 4 When an MDI parent form is closed, the Closing event of all MDI child forms are
raised before the MDI parent form's Closing event is raised
[A] False
[B] True - Answer [B] True
Câu 5 What of the followings is correct for creating a command object with the
connection con?
[A] SqlCommand Cmd = con.SetSqlCommand("Select * From Student");
[B] SqlCommand Cmd = con.GetSqlCommand("Select * From Student");
[C] SqlCommand Cmd = new SqlCommand(con,"Select * From Student");
,[D] SqlCommand Cmd = new SqlCommand("Select * From Student", con); - Answer [D]
SqlCommand Cmd = new SqlCommand("Select * From Student", con);
Câu 6 The method can be used to draw a rectangle or a square depending on the
coordinates passed as its argument.
[A] FillSquare
[B] FillRectangle
[C] DrawSquare
[D] DrawRetangle - Answer [D] DrawRetangle
Câu 9 _____it the normal ouput type for a WinForm project
[A] Windows Application
[B] Console Application
[C] Class Library
[D] Windows Forms - Answer [A] Windows Application
Câu 14 The ____control groups a set of controls within a non-labeled an scrollable frame
[A] PictureBox
[B] Tab
[C] Frame
[D] Panel - Answer [D] Panel
Câu 15 The ____feature of Windows Installer provider a standard method for distributing
components and ensures that the installed component is of the correct version.
[A] VersionUpdate
[B] CAB
[C] Msi
[D] Merge Modules - Answer [D] Merge Modules
Câu 16 To create an instance of the Font class using existing Font and FontStyle, the
constructor is:
[A] public void Font(string fontname, float size);
[B] public Font(FontStyle fs, Font f);
[C] public void Font(Font f, FontStyle fs);
,[D] public Font(Font f, FontStyle fs);
[E] public Font(string fontname, float size); - Answer [E] public Font(string fontname,
float size);
Câu 17 Which control is used to display a short, customized help message for individual
controls on a form?
[A] ToolTip
[B] HelpText
[C] HelpTool
[D] ToolClass - Answer [A] ToolTip
Câu 18 For using SQL.NET Data Provider what using statement of the following is
correct?
[A] using System.Data;
[B] using System.Data.SqlServer;
[C] using System.Data.OleDb;
[D] using System.Data.SqlClient; - Answer [D] using System.Data.SqlClient;
Câu 21 Which namespace is VS.NET contains classes that help in constructing and
sending emails?
[A] System.Web.Mail
[B] System.Mail
[C] System.Web.MailMessage
[D] System.Web.MailMessages - Answer [A] System.Web.Mail
Câu 24 To perform a change to a table using the Command object named Cmd, what
statement of the following correct?
[A] Cmd.ExecuteReader()
[B] Cmd.ExecuteScalar()
[C] Cmd.ExecuteQuery()
[D] Cmd.ExecuteNonQuery()
[E] Cmd.ExecuteUpdate() - Answer [D] Cmd.ExecuteNonQuery()
Câu 25 When a Data Form is created using the Data Form Wizard, which of the following
, classes are used by default?(Choose all correct answers)
[A] OleDbDataWriter
[B] OleDbDataAdapter
[C] OleDbStatement
[D] OleDbDataReader
[E] OleDbConnection
[F] OleDbCommand - Answer [D] OleDbDataReader
[E] OleDbConnection
[F] OleDbCommand
Câu 26 ____property of a connection object is used to get or set the string used to open
a database
[A] ConnectionParams
[B] ConnectionInfo
[C] StringConnection
[D] ConnectionString - Answer [D] ConnectionString
Câu 28 _____property is used to get or set the edges of the control are anchored to the
edges of its container.
[A] Hang
[B] Fixed
[C] Anchor
[D] Dock - Answer [C] Anchor
Câu 31 ____property is used to get or set the shortcut menu associated with the control.
[A] PopUpMenu
[B] SubMenu
[C] ContextMenu
[D] MainMenu - Answer [A] PopUpMenu
Câu 33 System.Windows.Forms is an important____of the class libraries in .NET
framework?