Window Form With C# For Aptech Accp 2007

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Vietha
V
Vietha
Community Contributor
Quizzes Created: 11 | Total Attempts: 9,898
| Attempts: 1,206
SettingsSettings
Please wait...
  • 1/282 Questions

    The DataRelation objects are used to enforce referential integrity.

    • True
    • Fasle
Please wait...
Windows Quizzes & Trivia
About This Quiz

Forms are the base unit of Windows applications, so they are essential to know about. They are enhanced with controls to create user interfaces and to manipulate data. How much do you know about Windows form with regards to C#?


Quiz Preview

  • 2. 

    Property to determine for any mnenmonic characters associated with the control

    • Focused

    • IsMnemonic

    • Focus

    • SetNextControl

    • GotFocus

    Correct Answer
    A. IsMnemonic
    Explanation
    The property "isMnemonic" is used to determine if any mnemonic characters are associated with the control. Mnemonic characters are keyboard shortcuts that allow users to quickly navigate and interact with controls. This property is typically used to provide accessibility and improve the user experience by allowing users to easily access controls using keyboard shortcuts.

    Rate this question:

  • 3. 

    .Net Framwork data provider for SQL Server allows access to Microsoft SQL Server

    • True

    • False

    Correct Answer
    A. True
    Explanation
    The statement is true because the .Net Framework data provider for SQL Server is specifically designed to provide access to Microsoft SQL Server. It is a component of the .Net Framework that allows developers to interact with SQL Server databases and perform various operations such as querying, inserting, updating, and deleting data. This data provider includes classes and methods that enable seamless communication between the .Net application and SQL Server, making it easier to develop database-driven applications using Microsoft's database management system.

    Rate this question:

  • 4. 

    The DataAdapter is used to link the DataSet to the data source.

    • True

    • False

    Correct Answer
    A. True
    Explanation
    The DataAdapter is a class in ADO.NET that is used to establish a connection between a DataSet and a data source. It acts as a bridge between the two, allowing the DataSet to retrieve and update data from the data source. Therefore, the statement that the DataAdapter is used to link the DataSet to the data source is correct.

    Rate this question:

  • 5. 

    Contains the SQL Server .Net data provider types.

    • System.Data.OleDb

    • System.Data.SqlClient

    • System.Data.OracleClient

    • System.Data

    • System.Data.Odbc

    Correct Answer
    A. System.Data.SqlClient
    Explanation
    The correct answer is System.Data.SqlClient. This is because System.Data.SqlClient is the specific .Net data provider type for SQL Server. It is used to connect to and interact with SQL Server databases using the .Net framework. The other options listed are different data provider types for other databases such as Oracle, ODBC, and OleDb.

    Rate this question:

  • 6. 

    Property of the button control used to specify the image.

    • PromptChar

    • Image

    • Multiline

    • MaxDropDownItems

    • SelectedItem

    Correct Answer
    A. Image
    Explanation
    The correct answer is "Image" because the image property is used to specify the image that is displayed on the button control. This property allows the developer to set an image that visually represents the button's functionality or purpose. By setting the image property, the button control can display an icon or picture that enhances the user interface and provides visual cues to the user.

    Rate this question:

  • 7. 

    Represents the data source for the control

    • DataMember

    • CurrentRowIndex

    • DataSource

    • Item

    • CurrentCell

    Correct Answer
    A. DataSource
    Explanation
    The correct answer is "DataSource". This option represents the data source for the control. In other words, it is the location or collection of data that the control retrieves and displays. The control uses the data from the data source to populate its content or perform operations on it. This could be a database, a web service, a file, or any other source of data. The DataSource property allows the control to establish a connection or reference to the appropriate data source.

    Rate this question:

  • 8. 

    This property indicates whether columns can be generated automatically in DataGridView

    • AutoGenerateColumns.

    • CellClick

    • NotifyCurrentCellDirty.

    • CommitEdit

    • CellValueChanged.

    Correct Answer
    A. AutoGenerateColumns.
    Explanation
    The AutoGenerateColumns property in DataGridView indicates whether columns can be generated automatically. When this property is set to true, the DataGridView will automatically generate columns based on the data source provided. This is useful when the structure of the data source is not known beforehand and you want to display all the available columns dynamically.

    Rate this question:

  • 9. 

    The MoveNext() method  of the BindingSource clas is used to navigate to a record in the DataSet.

    • True

    • Fasle

    Correct Answer
    A. True
    Explanation
    The MoveNext() method of the BindingSource class allows the user to move to the next record in the DataSet. This method is commonly used in data binding scenarios where the user needs to navigate through a set of records. By calling MoveNext(), the user can easily move to the next record and display its data. Therefore, the given answer "True" is correct.

    Rate this question:

  • 10. 

    The Crystal Report Creation Wizard provides a step guide to generate report.

    • True

    • Fasle

    Correct Answer
    A. True
    Explanation
    The Crystal Report Creation Wizard is a tool that assists users in creating reports. It provides a step-by-step guide, helping users navigate through the process of generating a report. By following the wizard, users can easily define the data source, select the desired fields, apply filters, and customize the report layout. This feature simplifies the report creation process and ensures that users can effectively generate accurate and informative reports.

    Rate this question:

  • 11. 

    Selection formulas help to filter or group the data displayed in the report.

    • True

    • False

    Correct Answer
    A. True
    Explanation
    Selection formulas are used in reporting tools to specify the criteria for filtering or grouping data. By using selection formulas, users can define which data should be included or excluded from the report based on specific conditions. This allows for more targeted and customized reports, as only the relevant data is displayed. Therefore, the statement that selection formulas help to filter or group the data displayed in the report is true.

    Rate this question:

  • 12. 

    The SplitContainer control is used to separate the form into horizontal or vertical panels

    • True

    • False

    Correct Answer
    A. True
    Explanation
    The SplitContainer control is a useful tool in Windows Forms applications as it allows the user to divide the form into two resizable panels, either horizontally or vertically. This enables the user to adjust the size of each panel according to their preference. The SplitContainer control is commonly used in scenarios where the user needs to compare or view different sets of information simultaneously. Therefore, the statement "The SplitContainer control is used to separate the form into horizontal or vertical panels" is true.

    Rate this question:

  • 13. 

    The TreeView control display data in hierarchical manner.

    • True

    • False

    Correct Answer
    A. True
    Explanation
    The TreeView control is a graphical control element that displays data in a hierarchical manner, typically in the form of a tree structure. It allows users to navigate through the data by expanding or collapsing nodes. Therefore, the statement "The TreeView control displays data in a hierarchical manner" is true.

    Rate this question:

  • 14. 

    The DateTimePickerFormat is used to specify a date format for the dateTimePicker control.

    • True

    • False

    Correct Answer
    A. True
    Explanation
    The DateTimePickerFormat property is indeed used to specify a date format for the dateTimePicker control. By setting this property to a specific format, such as "Short", "Long", or "Custom", the control will display the date and time in the specified format. This allows developers to customize the appearance of the dateTimePicker control according to their needs.

    Rate this question:

  • 15. 

    Represents the current focused cells

    • DataMember

    • CurrentRowIndex

    • DataSource

    • Item

    • CurrentCell

    Correct Answer
    A. CurrentCell
    Explanation
    The CurrentCell property represents the current focused cell in a data grid or table. It is used to track and manipulate the currently selected cell in the grid. This property is commonly used in programming to perform actions or retrieve data specific to the selected cell, such as getting or setting cell values, applying formatting, or triggering events based on the selected cell.

    Rate this question:

  • 16. 

    The DataRow and DataColumn classes are you as a primary components of the DataTable class.

    • True

    • False

    Correct Answer
    A. True
    Explanation
    The DataRow and DataColumn classes are indeed primary components of the DataTable class. These classes are used to represent the rows and columns of data within a DataTable object. The DataRow class represents a single row of data, while the DataColumn class represents a single column of data. Together, these classes allow for the storage and manipulation of tabular data within the DataTable class. Therefore, the statement "The DataRow and DataColumn classes are you as primary components of the DataTable class" is true.

    Rate this question:

  • 17. 

    User-Defined dialog box can be defined as modal and modeless.

    • True

    • False

    Correct Answer
    A. True
    Explanation
    A user-defined dialog box can be defined as both modal and modeless. Modal dialog boxes require the user to interact with them before they can return to the parent application, while modeless dialog boxes allow the user to interact with both the dialog box and the parent application simultaneously. Therefore, the statement "User-Defined dialog box can be defined as modal and modeless" is true.

    Rate this question:

  • 18. 

    Navigates back to the previous table displayed in the control.

    • BeginEdit

    • NavigateBack

    • IsExpanded

    • NavigateTo

    • Collapse

    Correct Answer
    A. NavigateBack
    Explanation
    The correct answer is "NavigateBack" because it suggests that the action being performed is to navigate back to the previous table displayed in the control. This implies that the user wants to go back to a previous view or screen, indicating a navigation action.

    Rate this question:

  • 19. 

    Store the SQL query results in DataTable object.

    • SqlDataAdapter

    • OledbDataAdapter

    Correct Answer
    A. SqlDataAdapter
    Explanation
    The SqlDataAdapter class in .NET is used to store the results of an SQL query in a DataTable object. It provides a way to fill a DataTable or DataSet with the data retrieved from a database, and also allows for updating the database with any changes made to the DataTable. Therefore, using SqlDataAdapter is the correct way to store the SQL query results in a DataTable object.

    Rate this question:

  • 20. 

    //Custom ControlCustom controls allow you to create reusable controls.

    • True

    • False

    Correct Answer
    A. True
    Explanation
    Custom controls are designed to be reusable, meaning they can be used multiple times throughout an application or even in different applications. By creating custom controls, developers can encapsulate complex functionality into a single control, making it easier to maintain and reuse code. This can save time and effort in development as well as improve the overall quality and consistency of the application. Therefore, the statement "Custom controls allow you to create reusable controls" is true.

    Rate this question:

  • 21. 

    User-Defined validation allows you to define the type of validation the user can perform.

    • True

    • Fasle

    Correct Answer
    A. True
    Explanation
    User-Defined validation allows users to define the type of validation they can perform. This means that users have the flexibility to customize and specify the validation rules according to their specific requirements. They can define the validation criteria, such as data format, range, or any other conditions, that need to be met for the input to be considered valid. This feature empowers users to tailor the validation process to suit their needs, enhancing the overall flexibility and usability of the system.

    Rate this question:

  • 22. 

    Parameter fields help displaying the reports based on a criterion taken from the user

    • True

    • False

    Correct Answer
    A. True
    Explanation
    Parameter fields are a feature in reporting tools that allow users to input specific criteria or values to filter the data displayed in a report. This helps in customizing the report output based on the user's requirements. By enabling users to define their own criteria, parameter fields enhance the flexibility and interactivity of reports, making them more useful and relevant to individual users. Therefore, the statement that parameter fields help display reports based on a criterion taken from the user is true.

    Rate this question:

  • 23. 

    Property of TextBox control used to allow the user to enter text on multiple lines.

    • PromptChar

    • Image

    • Multiline

    • MaxDropDownItems

    • SelectedItem

    Correct Answer
    A. Multiline
    Explanation
    The correct answer is "Multiline". The Multiline property of the TextBox control allows the user to enter text on multiple lines. This means that the user can press the Enter key to create a new line and continue typing. The other options listed, such as PromptChar, Image, MaxDropDownItems, and SelectedItem, do not relate to allowing the user to enter text on multiple lines.

    Rate this question:

  • 24. 

    Event that occurs when the control is re-sized.

    • FlatStyle

    • Show

    • Resize

    • Enable

    • StyleChanged

    Correct Answer
    A. Resize
    Explanation
    The event that occurs when the control is resized is called "Resize". This event is triggered when the size of the control is changed, either by the user or programmatically. It allows the developer to perform certain actions or adjustments when the control's size is modified.

    Rate this question:

  • 25. 

    Property used to retrieve or specify the maximum value for the control.

    • Increment

    • Maximum

    • UpButton

    • Value

    • ValueChanged

    Correct Answer
    A. Maximum
    Explanation
    The correct answer is "Maximum" because it refers to the property used to retrieve or specify the maximum value for the control. This property allows the user to set a maximum limit for the control, ensuring that the value cannot exceed this limit. It is commonly used in various controls such as sliders, progress bars, and numeric input fields to define the upper bound of the range.

    Rate this question:

  • 26. 

    This method retrieves the form that contains this control.

    • Popup

    • GetForm

    • PerformClick

    • RightToLeft

    Correct Answer
    A. GetForm
    Explanation
    This answer suggests that the method mentioned is used to retrieve the form that contains a specific control. It implies that the method "GetForm" is likely a part of a larger program or code that deals with user interfaces or forms, and it allows the user to access or manipulate the form in some way. Without further context, it is difficult to determine the exact functionality or purpose of this method.

    Rate this question:

  • 27. 

    Property that identifies the layout style of the items.

    • Items

    • LayoutStyle

    • ImageList

    • ItemClicked

    • Show

    Correct Answer
    A. LayoutStyle
    Explanation
    The correct answer is LayoutStyle. The property that identifies the layout style of the items is called LayoutStyle. This property determines how the items in a list or container are arranged or displayed. It could be a flow layout, grid layout, or any other layout style that is supported by the programming framework or library being used.

    Rate this question:

  • 28. 

    Property of the ListBox control used to get or set the selected item.

    • PromptChar

    • Image

    • Multiline

    • MaxDropDownItems

    • SelectedItem

    Correct Answer
    A. SelectedItem
    Explanation
    The SelectedItem property is used to get or set the selected item in a ListBox control. This property allows the user to retrieve the currently selected item in the ListBox or set a specific item as the selected item.

    Rate this question:

  • 29. 

    The Start() method starts the Timer component.

    • True

    • False

    Correct Answer
    A. True
    Explanation
    The Start() method is used to start the Timer component. This means that when the Start() method is called, the Timer component will begin running and executing its tasks. Therefore, the correct answer is True, as the Start() method does indeed start the Timer component.

    Rate this question:

  • 30. 

    ADO.Net technology provides connection to various database systems.

    • True

    • False

    Correct Answer
    A. True
    Explanation
    ADO.Net technology is a data access technology provided by Microsoft that allows developers to connect and interact with various database systems. It provides a set of classes and libraries that enable efficient and secure access to databases, including SQL Server, Oracle, MySQL, and more. With ADO.Net, developers can easily establish connections, retrieve and manipulate data, and perform other database operations. Therefore, the given statement is true.

    Rate this question:

  • 31. 

    Contains the OLE DB .Net data provider types.

    • System.Data.OleDb

    • System.Data.SqlClient

    • System.Data.OracleClient

    • System.Data

    • System.Data.Odbc

    Correct Answer
    A. System.Data.OleDb
    Explanation
    The correct answer is System.Data.OleDb because it is the namespace that contains the OLE DB .Net data provider types. This namespace allows .NET applications to access data from a variety of data sources using the OLE DB technology.

    Rate this question:

  • 32. 

    In DataGridView, this event occurs when the user clicks the cell.

    • AutoGenerateColumns.

    • CellClick

    • NotifyCurrentCellDirty.

    • CommitEdit

    • CellValueChanged.

    Correct Answer
    A. CellClick
    Explanation
    The CellClick event in a DataGridView occurs when the user clicks on a cell. This event is triggered when the user selects a cell in the DataGridView control. It can be used to perform certain actions or operations when a cell is clicked, such as updating the cell value or displaying additional information related to the clicked cell.

    Rate this question:

  • 33. 

    Connect to multiple databases such as Sybase and Oracle.

    • OledbDataAdapter

    • SqlDataAdapter

    Correct Answer
    A. OledbDataAdapter
    Explanation
    The OledbDataAdapter is capable of connecting to multiple databases such as Sybase and Oracle. It is a data adapter that is specifically designed to work with OLE DB data sources, which allows it to connect to various types of databases including Sybase and Oracle. Therefore, it is the correct answer for the given question.

    Rate this question:

  • 34. 

    The untype dataset is used on data that does not have static or predicable structure.

    • True

    • False

    Correct Answer
    A. True
    Explanation
    The statement is true because untype datasets are used for data that does not have a static or predictable structure. In other words, untype datasets are flexible and can handle various types of data without predefined schemas or structures. This allows for more versatility in analyzing and processing data that may not conform to a specific format or pattern.

    Rate this question:

  • 35. 

    Composite controls are reused across multiple application.

    • True

    • False

    Correct Answer
    A. True
    Explanation
    Composite controls are reusable controls that can be used in multiple applications. This means that instead of creating the same control from scratch for each application, the composite control can be used as a template and easily integrated into different applications. This allows for consistency and efficiency in development, as well as easier maintenance and updates. Therefore, the statement that composite controls are reused across multiple applications is true.

    Rate this question:

  • 36. 

    The RefereshReport() method of the CrystalReportViewer class refereshes the report after it has been changed.

    • True

    • False

    Correct Answer
    A. True
    Explanation
    The RefreshReport() method of the CrystalReportViewer class is used to refresh the report after any changes have been made. This means that if any modifications or updates have been made to the report, calling the RefreshReport() method will display the updated version of the report. Therefore, the statement "True" is correct as the RefreshReport() method does indeed refresh the report after it has been changed.

    Rate this question:

  • 37. 

    Controls allows you to select values from a list using the up and down arrows.

    • Selection List controls

    • Grouping controls

    • Value Setting controls

    • Basic control

    • Menu controls

    Correct Answer
    A. Selection List controls
    Explanation
    Selection List controls allow users to choose values from a list by using the up and down arrows. This type of control is commonly used when there are multiple options to choose from and the user can only select one option at a time. The up and down arrows provide an intuitive way for users to navigate through the list and make their selection. Other types of controls mentioned, such as Grouping controls, Value Setting controls, Basic control, and Menu controls, do not specifically offer the functionality of selecting values from a list using arrows.

    Rate this question:

  • 38. 

    Controls allow you to organize controls in a group.

    • Selection List controls

    • Grouping controls

    • Value Setting controls

    • Basic control

    • Menu controls

    Correct Answer
    A. Grouping controls
    Explanation
    Grouping controls allow you to organize controls in a group. This means that you can gather related controls together and present them as a single entity. Grouping controls can improve the user experience by making it easier for users to locate and interact with the controls they need. It also helps in organizing and structuring the user interface, making it more visually appealing and intuitive.

    Rate this question:

  • 39. 

    Controls allow you to create menus.

    • Selection List controls

    • Grouping controls

    • Value Setting controls

    • Basic control

    • Menu controls

    Correct Answer
    A. Menu controls
    Explanation
    Menu controls allow you to create menus.

    Rate this question:

  • 40. 

    Method used to display the control to the user.

    • FlatStyle

    • Show

    • Resize

    • Enable

    • StyleChanged

    Correct Answer
    A. Show
    Explanation
    The "Show" method is used to display the control to the user. It is a method that is called on a control object to make it visible on the screen. This method can be used to show a hidden control or to bring a control that is already visible to the front. By calling the "Show" method, the control becomes visible and can be interacted with by the user.

    Rate this question:

  • 41. 

    Modeless dialog boxes allow you to work with the application on which the dialog box is placed.

    • True

    • False

    Correct Answer
    A. True
    Explanation
    Modeless dialog boxes are designed to allow users to interact with the application while the dialog box is open. Unlike modal dialog boxes, which require users to close the dialog box before interacting with the application, modeless dialog boxes do not block user input and allow for multitasking. This means that users can continue working with the application while the dialog box is open, making the statement "Modeless dialog boxes allow you to work with the application on which the dialog box is placed" true.

    Rate this question:

  • 42. 

    This event occurs after the value of the cell changes in DataGridView.

    • AutoGenerateColumns.

    • CellClick

    • NotifyCurrentCellDirty.

    • CommitEdit

    • CellValueChanged.

    Correct Answer
    A. CellValueChanged.
    Explanation
    The CellValueChanged event occurs after the value of a cell in a DataGridView changes. This event is triggered when the user edits the cell or when the cell value is changed programmatically. It allows you to perform specific actions or validations based on the new value of the cell. The other options mentioned (AutoGenerateColumns, CellClick, NotifyCurrentCellDirty, CommitEdit) do not specifically relate to the event that occurs after the value of the cell changes.

    Rate this question:

  • 43. 

    The ReportSource property helps in specifying which report the CrystalReportViewer control should be bound to

    • True

    • False

    Correct Answer
    A. True
    Explanation
    The ReportSource property is used to specify the report that the CrystalReportViewer control should display. By setting this property to a specific report, the control will bind to that report and render it in the viewer. This allows for dynamic switching between different reports without having to recreate the viewer control. Therefore, the statement that the ReportSource property helps in specifying which report the CrystalReportViewer control should be bound to is true.

    Rate this question:

  • 44. 

    Indicates whether the form is minimized or maximized.

    • Load

    • WindowState

    • Modal

    • Activated

    • Activate

    Correct Answer
    A. WindowState
    Explanation
    The WindowState property in a form indicates whether the form is minimized, maximized, or in normal state. It can have values such as Minimized, Maximized, or Normal. This property determines the initial state of the form when it is loaded or activated.

    Rate this question:

  • 45. 

    Property of MaskTextBox control used to denote missed input.

    • PromptChar

    • Image

    • Multiline

    • MaxDropDownItems

    • SelectedItem

    Correct Answer
    A. PromptChar
    Explanation
    The PromptChar property is used to denote missed input in a MaskTextBox control. This property allows you to specify a character that will be displayed in the input field as a placeholder for characters that are required but not yet entered. By setting the PromptChar property, you can visually indicate to the user which parts of the input are still missing.

    Rate this question:

  • 46. 

    Method used to specify or retrieve the value assigned to the control.

    • Increment

    • Maximum

    • UpButton

    • Value

    • ValueChanged

    Correct Answer
    A. Value
    Explanation
    The term "Value" is the correct answer because it refers to the method used to specify or retrieve the value assigned to the control. This suggests that the control in question has a value associated with it, and this value can be accessed or modified using the "Value" method.

    Rate this question:

  • 47. 

    Property used to set the background color of the title region.

    • UpdateBoldedDates

    • DateSelected

    • TittleBackColor

    • AddAnuallyBoldedDate

    • ShowTodayCircle

    Correct Answer
    A. TittleBackColor
    Explanation
    The correct answer is "TittleBackColor" because it is the property that is used to set the background color of the title region.

    Rate this question:

  • 48. 

    Property used to identity the date with a circle.

    • UpdateBoldedDates

    • DateSelected

    • TittleBackColor

    • AddAnuallyBoldedDate

    • ShowTodayCircle

    Correct Answer
    A. ShowTodayCircle
    Explanation
    The property "ShowTodayCircle" is used to identify the date with a circle. This property is likely used in a program or application that displays a calendar or date picker. When this property is set to true, it will visually indicate the current date by drawing a circle around it.

    Rate this question:

  • 49. 

    The MenuStrip control helps you to add menus, modify and reorder menus.

    • True

    • False

    Correct Answer
    A. True
    Explanation
    The MenuStrip control is a tool in programming that allows users to add menus, make changes to existing menus, and rearrange the order of menus. This control is commonly used in graphical user interfaces to provide a convenient and organized way for users to navigate through different options and commands. Therefore, the statement "The MenuStrip control helps you to add menus, modify and reorder menus" is true.

    Rate this question:

Quiz Review Timeline (Updated): Mar 21, 2023 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 21, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Jul 09, 2009
    Quiz Created by
    Vietha
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.