WorksheetsITP 302L Quiz No. 1
Total questions: 20
Worksheet time: 25mins
What best describes event-driven programming?
Code runs line by line from top to bottom
Code runs only when an event occurs
Code runs continuously in a loop
Code runs only when compiled
Which of the following is an example of an event in a Windows Forms application?
Declaring a variable
Clicking a button
Writing a method
Naming a project
In Visual Studio, which component allows you to drag and drop controls onto a Form?
Toolbox
Properties Window
Designer Area
Menu Bar
What is the main purpose of a Form in a Windows Forms application?
To store data
To execute code
To serve as the main window of the application
To display errors
Which control is primarily used to accept user input?
Label
Button
TextBox
Form
Which property changes the displayed text of a Button or Label?
Name
Size
Text
Enabled
What happens when you run a Windows Forms app without writing any event code?
The program will not open
The controls will not appear
Events will still trigger actions
Clicking controls will do nothing
Which of the following best defines a programming paradigm?
A programming language
A way of organizing and writing programs
A software tool
A type of application
Which window in Visual Studio is used to change control properties such as color, size, and text?
Toolbox
Designer
Properties Window
Solution Explorer
Why are naming conventions important in programming?
They make programs run faster
They reduce syntax errors
They improve readability and maintenance
They replace comments
An application that waits for user actions before running code is called an (a) program.
Visual Studio is an (a) (IDE) used to write, design, and run programs.
The (a) window contains controls like Button, Label, and TextBox.
Properties describe the (a) and behavior of controls.
The (a) event is commonly used to respond when a button is pressed.
A UI element that displays text but cannot be edited by the user.
A platform that provides tools and libraries for building C# applications.
Actions that a control can perform, such as Clear() or Focus().
A window that allows you to visually design your application without writing code.
A rule or pattern used when naming controls like btnLogin or txtUsername.
