Font size
WorksheetsSQL Server and OOP Concepts Quiz
Total questions: 60
Worksheet time: 30mins
Stored (a) are reusable SQL scripts that can perform operations such as querying, updating, or modifying data.
SSOX supports multiple database systems.
True
False
(a) are automated scripts that run in response to specific database events like INSERT, UPDATE, or DELETE.
Seamless Integration means that integration of (a) with Visual Studio enables you to manage both the application and its database from a single interface.
SQL Server Express typically runs in user mode and is designed for simplified setup.
True
False
SSOX is a lightweight version of the SQL Server Express Database Engine.
True
False
SSOX allows users to connect to both local and cloud-based databases.
True
False
SSOX provides a visual editor to design and modify table schemas.
True
False
SQL Server Object Explorer (SSOX) is integrated within Microsoft Visual Studio.
True
False
SSOX allows developers and database administrators to manage and interact with databases directly from the Visual Studio environment.
True
False
(a) are reusable SQL code that can return a single value (scalar functions) or a table (table-valued functions).
SSOX starts on demand by using a connection string.
True
False
In SSOX, users can browse through database objects.
True
False
Tables are used to store the core data in relational databases.
True
False
Clear (a) Structure: means objects are displayed in an organized, tree-structured layout, making it easy to find and interact with database components.
(a) are virtual tables based on SQL queries.
SSOX allows the user to manage server objects like databases, logins, jobs, and linked servers within SQL Server instances.
True
False
(a) are database structures that improve the speed of data retrieval operations.
Quick Access to (a) Operations means right-clicking on any object reveals a context menu with essential actions like View Data, Modify, Delete, and Script.
SSOX is installed by default with Visual Studio.
True
False
SSOX offers a graphical interface for interacting with database objects.
True
False
Developers and database administrators use SQL Server Object Explorer (SSOX) within Visual Studio to access and manage databases without leaving the development environment.
True
False
Query execution allows running SQL queries directly from Visual Studio using the SQL Query Editor.
True
False
(a) are used to store the core data in relational databases.
SSOX lets you view data stored in tables and allows inline editing of records directly within the Visual Studio interface.
True
False
Which of the following is NOT one of the four basic principles of Object-Oriented Programming?
Abstraction
Encapsulation
Compilation
Polymorphism
What file extension do User Controls in ASP.NET use?
.aspx
.ascx
.vb
.cs
Which data source control is used to bind to hierarchical data like XML files?
SqlDataSource
AccessDataSource
XmlDataSource
ObjectDataSource
Which of the following allows a class to inherit properties and methods from another class?
Encapsulation
Inheritance
Polymorphism
Abstraction
What is the purpose of a constructor in a class?
To destroy the object
To initialize the object
To hide data
To inherit properties
Which OOP principle focuses on hiding implementation details and protecting data within a class?
Abstraction
Inheritance
Encapsulation
Polymorphism
What principle of OOP is described as "focusing only on the most important information about an object"?
Encapsulation
Inheritance
Abstraction
Polymorphism
Which of the following is a tabular data source control?
SiteMapDataSource
XmlDataSource
SqlDataSource
None of the above
Static classes contain members that:
Can only be accessed by creating an instance
Can be accessed without creating an instance
Cannot be accessed at all
Are always private
What is the main purpose of an Interface in OOP?
To create objects
To define a contract that classes must implement
To store data
To hide implementation details
Which OOP principle allows different classes to share the same method name but implement it differently?
Encapsulation
Inheritance
Polymorphism
Abstraction
What does the term "Polymorphism" allow in programming?
Data hiding
Code reusability through inheritance
Different classes to share the same method name but implement it differently
Object creation
Custom controls in ASP.NET are deployed as:
.ascx files
.aspx files
Dynamic Link Library (DLL)
XML files
Which of the following is used to organize and group related classes into a hierarchy?
Interface
Namespace
Constructor
Destructor
The ObjectDataSource control enables binding to:
XML files
Custom .NET business objects
SQL Server only
Microsoft Access databases
What is the main purpose of Encapsulation?
To inherit properties
To hide implementation details and protect data
To allow multiple implementations
To focus on important details
Which OOP concept is described as "passing traits from one thing to another"?
Abstraction
Encapsulation
Inheritance
Polymorphism
What is the correct way to call a base class constructor in C#?
base()
super()
parent()
main()
Which design pattern is commonly used in ASP.NET Core to separate business logic, presentation, and user interaction?
Singleton
MVC (Model-View-Controller)
Factory
Observer
User Controls in ASP.NET are derived from which class?
System.Web.UI.Page
System.Web.UI.Control
System.Web.UI.UserControl
System.Web.UI.WebControl
Which data binding type involves attaching any collection that implements the IEnumerable interface?
Declarative data binding
Complex data binding
Simple data binding
Hierarchical data binding
What is a "destructor" used for in C#?
To initialize objects
To release resources when an object is destroyed
To inherit properties
To define interfaces
Which OOP component defines a template or blueprint from which objects are created?
Object
Method
Class
Property
The SqlDataSource control connects to data using which two important properties?
DataFile and SelectCommand
ConnectionString and ProviderName
DataSource and DataMember
CommandText and Parameters
What does OOP stand for?
Object-Oriented Programming
Object-Optimized Programming
Operational Object Programming
Organized Object Procedures
Which of the following is NOT a characteristic of User Controls?
They have an .ascx extension
They may contain
They have a Control directive instead of a Page directive
They behave like miniature ASP.NET pages
Which of the following is NOT a tabular data source control?
SqlDataSource
ObjectDataSource
AccessDataSource
SiteMapDataSource
What is the relationship between a class and an object?
An object is a blueprint for a class
A class is a specific instance of an object
An object is a specific instance of a class
They are the same thing
Which method do all ASP.NET web form controls inherit for data binding?
BindData()
DataBind()
LoadData()
AttachDataSource()
What is the main benefit of using Namespaces in C#?
To create objects
To avoid name conflicts and organize code
To improve performance
To enable inheritance
The AccessDataSource control is based on which other control?
XmlDataSource
ObjectDataSource
SqlDataSource
LinqDataSource
Which OOP principle helps in code reusability by allowing new classes to be based on existing ones?
Abstraction
Encapsulation
Polymorphism
Inheritance
In ASP.NET Core, methods and properties are used to:
Only display data
Connect to databases only
Define behavior and characteristics of classes
Create user interfaces
Which of the following best describes "Abstraction" in OOP?
Hiding implementation details
Protecting data within a class
Focusing on essential features while ignoring less relevant details
Allowing multiple forms of the same method
What is the primary purpose of the "using" directive in C#?
To create objects
To import namespaces
To define interfaces
To implement inheritance
