0% found this document useful (0 votes)
4 views14 pages

Visual Programming MCQ Study Guide

The document is a study guide for Visual Programming .NET, containing multiple-choice questions (MCQs) organized into four weeks covering topics such as .NET fundamentals, event-driven programming, properties and methods, and ADO.NET. Each question includes the correct answer and an explanation. It serves as a resource for learners to test their knowledge and understanding of Visual Programming concepts.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views14 pages

Visual Programming MCQ Study Guide

The document is a study guide for Visual Programming .NET, containing multiple-choice questions (MCQs) organized into four weeks covering topics such as .NET fundamentals, event-driven programming, properties and methods, and ADO.NET. Each question includes the correct answer and an explanation. It serves as a resource for learners to test their knowledge and understanding of Visual Programming concepts.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Visual Programming .

NET
MCQ Study Guide
Prepared from Uploaded Course Notes

Professional MCQ Compilation with Verified Answers & Explanations


Table of Contents
1. Week 1 – Visual Programming & .NET Fundamentals

2. Week 2 – Event-Driven Programming & WinForms

3. Week 3 – Properties, Methods, Events & Delegates

4. Week 4 – Windows Forms, Dialogs & Controls

5. [Link] & Database Connectivity


Week 1 – Visual Programming & .NET Fundamentals
Q1. What is visual programming primarily based on?

A. Binary computation

B. Text-only coding

C. Human visual processing

D. Manual memory allocation


Correct Answer: C

Explanation: Visual programming is based on the idea that humans process information better when it is presented visually.

Q2. Which company developed the .NET Framework?

A. Google

B. Apple

C. IBM

D. Microsoft
Correct Answer: D

Explanation: .NET Framework was developed by Microsoft.

Q3. Which of the following is cross-platform?

A. .NET Framework

B. .NET Core

C. CLR

D. FCL
Correct Answer: B

Explanation: .NET Core works across different platforms including Linux, Mac, Android, and Windows.

Q4. Which component of .NET Core launches .NET Core applications?

A. SDK Compiler

B. CLR

C. dotnet app host

D. DataAdapter
Correct Answer: C

Explanation: The dotnet app host is used to launch .NET Core applications.
Q5. What does FCL stand for?

A. Framework Class Library

B. Functional Code Loader

C. Form Component Layer

D. Framework Common Logic


Correct Answer: A

Explanation: FCL stands for Framework Class Library.

Q6. Which CLR component manages memory automatically?

A. Code Manager

B. Thread Support

C. Garbage Collector

D. Class Loader
Correct Answer: C

Explanation: The Garbage Collector manages memory and deallocates unused objects.

Q7. Which CLR component converts MSIL code into native code?

A. Code Manager

B. JIT Compiler

C. DataSet

D. Wrapper
Correct Answer: B

Explanation: The Just In Time (JIT) compiler converts MSIL into native code.

Q8. Which of the following is a function of CLR?

A. Database migration

B. Type safety

C. UI designing

D. HTML rendering
Correct Answer: B

Explanation: CLR provides type safety among its core functions.

Week 2 – Event-Driven Programming & WinForms


Q9. Event-driven programming responds primarily to:

A. Compiler warnings

B. Database schemas

C. User actions and messages

D. Operating system shutdowns


Correct Answer: C

Explanation: Event-driven programming executes code based on events like clicks or messages.

Q10. What does IDE stand for?

A. Internal Design Environment

B. Integrated Development Environment

C. Integrated Debug Engine

D. Interactive Development Editor


Correct Answer: B

Explanation: IDE stands for Integrated Development Environment.

Q11. Which Visual Studio edition was mentioned as free to download?

A. Enterprise

B. Professional

C. Community

D. Premium
Correct Answer: C

Explanation: Visual Studio Community edition is free to download.

Q12. Which window allows modification of UI element properties in Visual Studio?

A. Toolbox

B. Solution Explorer

C. Properties Window

D. Output Window
Correct Answer: C

Explanation: The Properties Window allows changing colors, text, and visibility.
Q13. Which file should not be manually edited in a WinForms application?

A. [Link]

B. [Link]

C. [Link]

D. [Link]
Correct Answer: C

Explanation: [Link] is auto-generated and manual changes may be lost.

Q14. What happens when a button is double-clicked in the WinForms designer?

A. The application closes

B. A Click event handler is generated

C. The form resizes

D. The toolbox opens


Correct Answer: B

Explanation: Double-clicking a button generates a Click event in [Link].

Q15. Which UI design type uses voice commands?

A. GUI

B. Form-Based Interface

C. VUI

D. Menu-Driven Interface
Correct Answer: C

Explanation: Voice User Interface (VUI) operates via voice commands.

Q16. Which component guides users through an interface?

A. Input Controls

B. Navigational Components

C. Informational Components

D. Data Controls
Correct Answer: B

Explanation: Navigational components include sliders, search bars, and icons.

Week 3 – Properties, Methods, Events & Delegates


Q17. Which of the following is a property of a UI control?

A. Focus()

B. Show()

C. Text

D. Refresh()
Correct Answer: C

Explanation: Text is a property that defines visible content.

Q18. What does the Hide() method do?

A. Deletes the control

B. Conceals the control

C. Disables the control

D. Resizes the control


Correct Answer: B

Explanation: Hide() conceals the control from the user.

Q19. Which method sets input focus to a control?

A. Dispose()

B. Focus()

C. Refresh()

D. SuspendLayout()
Correct Answer: B

Explanation: Focus() makes the control active for user interaction.

Q20. What is an event in C# UI programming?

A. A loop structure

B. A memory object

C. A signal indicating something occurred

D. A compiler error
Correct Answer: C

Explanation: Events notify the application when something significant occurs.


Q21. Which event occurs when the user clicks a control?

A. Load

B. MouseHover

C. Click

D. Resize
Correct Answer: C

Explanation: The Click event occurs when the user clicks a control.

Q22. Which keyword is used to declare a delegate in C#?

A. method

B. event

C. pointer

D. delegate
Correct Answer: D

Explanation: The delegate keyword is used for delegate declarations.

Q23. Delegates in C# are commonly used for:

A. Image editing

B. Event handling

C. SQL optimization

D. Memory compression
Correct Answer: B

Explanation: Delegates form the basis of the C# event model.

Q24. Which event occurs when the mouse pointer rests on a control?

A. MouseMove

B. MouseHover

C. MouseUp

D. Enter
Correct Answer: B

Explanation: MouseHover occurs when the mouse rests on the control.


Q25. Which keyboard event occurs when a key is released?

A. KeyPress

B. KeyDown

C. KeyUp

D. KeyRelease
Correct Answer: C

Explanation: KeyUp occurs when a key is released.

Week 4 – Windows Forms, Dialogs & Controls


Q26. Which property controls the title bar text of a Windows Form?

A. Caption

B. Text

C. Label

D. Name
Correct Answer: B

Explanation: The Text property defines the title bar text.

Q27. Which method displays a form as a modal dialog?

A. Show()

B. Open()

C. ShowDialog()

D. BringToFront()
Correct Answer: C

Explanation: ShowDialog() opens a modal dialog.

Q28. What is the purpose of the partial keyword in WinForms?

A. To create incomplete programs

B. To split a class across multiple files

C. To improve database speed

D. To encrypt forms
Correct Answer: B

Explanation: Partial classes allow splitting a class definition into multiple files.
Q29. An assembly in .NET is typically compiled as:

A. HTML

B. CSS

C. EXE or DLL

D. XML
Correct Answer: C

Explanation: Assemblies are usually compiled into .exe or .dll files.

Q30. Which MessageBox method overload returns a DialogResult?

A. [Link]()

B. [Link]()

C. [Link]()

D. [Link]()
Correct Answer: B

Explanation: [Link]() can return a DialogResult.

Q31. Which property defines how autocomplete suggestions appear in a TextBox?

A. AutoCompleteMode

B. AutoCompleteSource

C. Tag

D. Dock
Correct Answer: A

Explanation: AutoCompleteMode controls suggestion behavior.

Q32. Why are RadioButtons placed inside different GroupBoxes?

A. To improve graphics

B. To create separate selectable groups

C. To increase memory

D. To disable events
Correct Answer: B

Explanation: Different GroupBoxes create separate RadioButton groups.


Q33. Which CheckBox property allows three states?

A. Checked

B. ThreeState

C. Enabled

D. Visible
Correct Answer: B

Explanation: ThreeState allows Checked, Unchecked, and Indeterminate states.

Q34. Which PictureBox SizeMode maintains aspect ratio?

A. Normal

B. StretchImage

C. Zoom

D. AutoSize
Correct Answer: C

Explanation: Zoom maintains aspect ratio while resizing.

Q35. Which Timer event is triggered repeatedly at intervals?

A. Click

B. Tick

C. Hover

D. Paint
Correct Answer: B

Explanation: The Tick event executes repeatedly according to the Interval.

[Link] & Database Connectivity


Q36. What does [Link] stand for?

A. Advanced Database Objects

B. ActiveX Data Objects for .NET

C. Application Data Object Network

D. Automated Data Operations


Correct Answer: B

Explanation: [Link] stands for ActiveX Data Objects for .NET.


Q37. Which [Link] component establishes a database link?

A. DataReader

B. Connection

C. DataSet

D. DataTable
Correct Answer: B

Explanation: The Connection component establishes the database connection.

Q38. Which [Link] object provides fast forward-only access to data?

A. DataSet

B. DataAdapter

C. DataReader

D. DataRow
Correct Answer: C

Explanation: DataReader provides connected forward-only access.

Q39. Which object acts as a mediator between DataSet and database?

A. DataReader

B. DbConnection

C. DataAdapter

D. DataColumn
Correct Answer: C

Explanation: DataAdapter mediates between the DataSet and the database.

Q40. Which method commits all DataSet changes?

A. RejectChanges()

B. AcceptChanges()

C. Merge()

D. Reset()
Correct Answer: B

Explanation: AcceptChanges() commits all modifications.


Q41. Which DataTable method creates a new DataRow?

A. ImportRows()

B. Select()

C. NewRow()

D. Copy()
Correct Answer: C

Explanation: NewRow() creates a new DataRow object.

Q42. What is the purpose of the using statement with SqlConnection?

A. To compile SQL

B. To close connections automatically

C. To increase memory

D. To create delegates
Correct Answer: B

Explanation: Using ensures automatic disposal and closure of connections.

Q43. Which SQL command execution method is commonly used for INSERT, UPDATE, and
DELETE?

A. ExecuteScalar()

B. ExecuteReader()

C. ExecuteNonQuery()

D. ExecuteTable()
Correct Answer: C

Explanation: ExecuteNonQuery() is used for non-query SQL operations.

Q44. Why should SQL parameters be used in commands?

A. To reduce UI size

B. To prevent SQL Injection

C. To compile delegates

D. To increase form opacity


Correct Answer: B

Explanation: Parameters prevent SQL Injection attacks.


Q45. Where is it recommended to store connection strings?

A. Inside loops

B. Hardcoded in buttons

C. [Link] or [Link]

D. MessageBox
Correct Answer: C

Explanation: Connection strings should be stored in configuration files.

You might also like