0% found this document useful (0 votes)
23 views11 pages

30.12.24 vb.net

Uploaded by

balakumar.mca07
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views11 pages

30.12.24 vb.net

Uploaded by

balakumar.mca07
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 11

Overview of VB.

NET and its Features

Q1: Which of the following statements is true about VB.NET in terms of its
object-oriented capabilities?

A) VB.NET supports multiple inheritance


B) VB.NET supports only single inheritance
C) VB.NET does not support inheritance
D) VB.NET supports inheritance through interfaces only

Answer: B) VB.NET supports only single inheritance

Q2: What is the primary difference between VB.NET and traditional Visual
Basic (VB6)?

A) VB.NET is a procedural programming language, while VB6 is object-


oriented
B) VB.NET runs only on Windows, while VB6 is cross-platform
C) VB.NET is built on the .NET framework and supports advanced features
like garbage collection
D) VB.NET does not support exception handling

Answer: C) VB.NET is built on the .NET framework and supports advanced


features like garbage collection

Q3: In VB.NET, which of the following features is used to manage memory


automatically?

A) Manual Garbage Collection


B) Garbage Collection
C) Dynamic Memory Allocation
D) Direct Memory Access

Answer: B) Garbage Collection

Q4: Which of the following is a fundamental characteristic of a relational


database management system (RDBMS)?

A) It allows data to be stored in a non-tabular format


B) It uses structured query language (SQL) for querying the data
C) It allows multiple tables to store data, but no relationships can be
defined between them
D) It supports hierarchical data models instead of tabular models

Answer: B) It uses structured query language (SQL) for querying the data

Q5: In a relational database, what does a "foreign key" represent?

A) A unique identifier for each record in a table


B) A column or set of columns that uniquely identifies a record in another
table
C) A primary key from the same table
D) A column that holds only NULL values

Answer: B) A column or set of columns that uniquely identifies a record in


another table

Q6: Which of the following normalization forms ensures that all non-key
attributes are fully dependent on the primary key?

A) First Normal Form (1NF)


B) Second Normal Form (2NF)
C) Third Normal Form (3NF)
D) Boyce-Codd Normal Form (BCNF)

Answer: B) Second Normal Form (2NF)

Q7: In MS Access, which of the following data types is most appropriate


for storing dates and times?

A) Text
B) Memo
C) Date/Time
D) Number

Answer: C) Date/Time

Q8: In MS Access, which of the following is true regarding the design of


relationships between tables?

A) Relationships can only be one-to-one


B) A foreign key in one table must always match a primary key in another
table
C) Only one table can have a primary key
D) Relationships cannot be created through queries in MS Access

Answer: B) A foreign key in one table must always match a primary key
in another table

Q9: Which of the following MS Access query types is used to update


existing data in a table?

A) Select Query
B) Update Query
C) Append Query
D) Delete Query

Answer: B) Update Query

Q10: In MS Access, what is the main function of a “form”?


A) To store data
B) To display data only
C) To provide an interface for entering, editing, or displaying data
D) To perform complex calculations

Answer: C) To provide an interface for entering, editing, or displaying


data

Q11: Which of the following is true about "Referential Integrity" in


relational databases like MS Access?

A) It ensures that data can be deleted without affecting related records


B) It enforces that all foreign key values must match a primary key value
in another table
C) It is used to create indexes for faster querying
D) It allows any type of relationship between tables, including non-
matching fields

Answer: B) It enforces that all foreign key values must match a primary
key value in another table

Q12: Which of the following best describes a “many-to-many” relationship


in a relational database?

A) One record in Table A is associated with one record in Table B


B) One record in Table A is associated with many records in Table B, and
vice versa
C) Many records in Table A are associated with one record in Table B
D) A record in Table A is related to records in multiple databases

Answer: B) One record in Table A is associated with many records in Table


B, and vice versa

Q13: Which of the following best describes the purpose of the Using
statement in VB.NET?

A) To define a block of code where exceptions are handled


B) To specify which namespaces are used in the program
C) To ensure that an object is disposed of correctly after use
D) To create an alias for an object

Answer: C) To ensure that an object is disposed of correctly after use

Q14: What is the function of the Nullable type in VB.NET?

A) It allows value types (such as Integer) to be set to Nothing (null)


B) It allows reference types (such as String) to be assigned a default value
C) It only applies to reference types and cannot be used with value types
D) It ensures that all objects are automatically disposed of when no longer
needed

Answer: A) It allows value types (such as Integer) to be set to Nothing


(null)

Q15: Which of the following data types in VB.NET is used to store large
floating-point numbers with more precision than Single?

A) Decimal
B) Double
C) Integer
D) Currency

Answer: B) Double

Q16: Which of the following is the correct syntax to declare a class in


VB.NET that implements an interface?

A) Class MyClass Implements IMyInterface


B) Class MyClass Extends IMyInterface
C) Interface MyClass Implements IMyInterface
D) Interface MyClass Extends IMyInterface

Answer: A) Class MyClass Implements IMyInterface

Q17: Which of the following SQL statements is used to modify data in an


existing table?

A) INSERT INTO
B) UPDATE
C) DELETE
D) SELECT

Answer: B) UPDATE

Q18: What is the purpose of the JOIN operation in SQL?

A) To combine two or more tables based on a related column between


them
B) To create a new table from the results of a query
C) To update the values of multiple tables simultaneously
D) To ensure data consistency across tables

Answer: A) To combine two or more tables based on a related column


between them

Q19: In a relational database, which of the following is the proper order of


operations in a SELECT statement?
A) WHERE, FROM, ORDER BY
B) SELECT, FROM, WHERE, ORDER BY
C) FROM, SELECT, WHERE, ORDER BY
D) SELECT, ORDER BY, WHERE, FROM

Answer: B) SELECT, FROM, WHERE, ORDER BY

Q20: What does the term "ACID" stand for in the context of relational
databases?

A) Atomicity, Consistency, Isolation, Durability


B) Authentication, Consistency, Integrity, Durability
C) Accuracy, Consistency, Isolation, Durability
D) Atomicity, Consistency, Integrity, Durability

Answer: A) Atomicity, Consistency, Isolation, Durability

Q21: Which of the following is an example of a referential integrity


constraint in SQL?

A) Ensuring that the value of a column is unique


B) Preventing a foreign key value from being NULL
C) Ensuring that a foreign key value in one table matches a primary key
value in another table
D) Enforcing a column to accept only positive values

Answer: C) Ensuring that a foreign key value in one table matches a


primary key value in another table

Q22: Which of the following is the purpose of an “Index” in MS Access?

A) To organize records in a table in a sequential order


B) To improve the performance of queries by allowing faster data retrieval
C) To store the relationships between tables
D) To manage the user permissions and roles

Answer: B) To improve the performance of queries by allowing faster data


retrieval

Q23: Which of the following is a feature of the "Lookup Wizard" in MS


Access?

A) It automatically generates a relationship between two tables


B) It is used to link two or more tables together
C) It allows users to search for and select values from another table or list
D) It performs an automatic data migration from external sources
Answer: C) It allows users to search for and select values from another
table or list

Q24: In MS Access, which of the following is used to prevent duplicate


records from being entered in a table?

A) Primary key
B) Foreign key
C) Unique constraint
D) Validation rule

Answer: C) Unique constraint

Q25: What is the maximum number of fields allowed in a single table in


MS Access?

A) 50
B) 255
C) 1000
D) 2550

Answer: B) 255

Q26: In MS Access, which type of query is used to create a new table by


selecting and inserting records from an existing table?

A) Append Query
B) Make-Table Query
C) Delete Query
D) Crosstab Query

Answer: B) Make-Table Query

Q27: Which of the following is NOT a valid way to enforce referential


integrity in MS Access?

A) Automatically update related fields when a primary key is changed


B) Prevent deletion of records that are referenced by foreign keys
C) Automatically add records to a related table when a new record is
added
D) Allow duplicate records to be inserted if they don't violate any field
constraints

Answer: D) Allow duplicate records to be inserted if they don't violate any


field constraints

Q28: Which of the following MS Access objects can be used to display


data in a formatted, printable manner?
A) Table
B) Query
C) Report
D) Form

Answer: C) Report

Q29: Which of the following VB.NET types is used for storing a collection
of data of the same type that can be accessed by an index?

A) List
B) Array
C) Dictionary
D) Stack

Answer: B) Array

Q30: What is the correct syntax to create a delegate in VB.NET?

A) Dim del As New MyDelegate(AddressOf MyFunction)


B) Dim del As MyDelegate = AddressOf MyFunction
C) Dim del As MyFunction
D) Dim del As MyDelegate(AddressOf MyFunction)

Answer: A) Dim del As New MyDelegate(AddressOf MyFunction)

Q31: In VB.NET, which keyword is used to handle exceptions?

A) Try
B) Catch
C) Finally
D) All of the above

Answer: D) All of the above

Q32: What is the default value of a Boolean variable in VB.NET?

A) True
B) False
C) Nothing
D) 0

Answer: B) False

Q33: Which of the following concepts allows VB.NET to support


polymorphism?

A) Interfaces
B) Abstract classes
C) Overloading and Overriding methods
D) All of the above
Answer: D) All of the above

Q34: In the context of SQL, which of the following operations is used to


combine rows from two tables based on a related column, but returns only
matching rows?

A) INNER JOIN
B) LEFT JOIN
C) RIGHT JOIN
D) FULL JOIN

Answer: A) INNER JOIN

Q35: In a normalized relational database, which normal form requires that


there is no partial dependency of attributes on the primary key?

A) First Normal Form (1NF)


B) Second Normal Form (2NF)
C) Third Normal Form (3NF)
D) Boyce-Codd Normal Form (BCNF)

Answer: B) Second Normal Form (2NF)

Q36: Which of the following is a potential disadvantage of normalization


in relational databases?

A) It can lead to redundancy in data


B) It can cause an increase in the number of JOINs required for querying
C) It reduces the database’s overall performance
D) It eliminates the need for indexing

Answer: B) It can cause an increase in the number of JOINs required for


querying

Q37: In SQL, which clause is used to restrict the number of records


returned by a query?

A) LIMIT
B) COUNT
C) DISTINCT
D) GROUP BY

Answer: A) LIMIT

Q38: Which of the following is the purpose of the GROUP BY clause in


SQL?

A) To group data into different tables


B) To sort records in ascending or descending order
C) To group records that have the same values in specified columns
D) To limit the number of records returned

Answer: C) To group records that have the same values in specified


columns

Q39: Which of the following best describes a "composite key" in a


relational database?

A) A primary key formed from multiple columns


B) A key that references multiple foreign keys
C) A unique key for each row in a table
D) A foreign key that references a primary key

Answer: A) A primary key formed from multiple columns

Q40: In MS Access, what is the purpose of a "validation rule"?

A) To ensure the consistency of data in the table


B) To define the structure of a query
C) To automatically generate a primary key
D) To restrict the range of values that can be entered into a field

Answer: D) To restrict the range of values that can be entered into a field

Q41: Which of the following query types in MS Access is used to


summarize data from multiple records, often for reporting purposes?

A) Select Query
B) Update Query
C) Delete Query
D) Crosstab Query

Answer: D) Crosstab Query

Q42: In MS Access, which type of relationship enforces a rule that each


record in the primary table can have only one matching record in the
related table?

A) One-to-Many
B) One-to-One
C) Many-to-Many
D) Many-to-One

Answer: B) One-to-One

Q43: What is the purpose of using an “Append Query” in MS Access?

A) To modify the structure of a table


B) To insert new records into a table
C) To combine multiple tables
D) To delete records from a table

Answer: B) To insert new records into a table

Q44: Which of the following MS Access objects can be used to control the
input of data into a table by creating a custom interface?

A) Report
B) Form
C) Table
D) Query

Answer: B) Form

Q45: Which of the following is true regarding primary keys in MS Access?

A) A table can have multiple primary keys


B) Primary keys can only contain numeric values
C) A primary key must uniquely identify each record in a table
D) Primary keys are optional for every table

Answer: C) A primary key must uniquely identify each record in a table

Q46: In MS Access, which data type should be used for a field that stores
long text data, like descriptions or comments?

A) Short Text
B) Long Text
C) Memo
D) Attachment

Answer: B) Long Text

Q47: In MS Access, when creating a relationship between two tables,


which of the following options ensures that related records in other tables
are not deleted when a record in the primary table is deleted?

A) Cascade Update Related Fields


B) Enforce Referential Integrity
C) Restrict Deletion
D) Cascade Delete Related Records

Answer: C) Restrict Deletion

Q48: What is the purpose of the Query Design view in MS Access?

A) To display the data stored in a table


B) To design the structure of a form or report
C) To construct and modify SQL queries visually
D) To design the relationships between multiple tables
Answer: C) To construct and modify SQL queries visually

Q49: Which of the following statements is true about the Async and Await
keywords in VB.NET?

A) The Async keyword is used to define a method as asynchronous, while


Await is used to pause the execution of that method until a task is
completed.
B) The Async keyword is used to define a method that runs synchronously,
and Await allows for parallel execution of code.
C) The Async keyword allows for multi-threading, while Await is used to
interrupt the code flow.
D) The Async keyword is used to start a new thread, and Await is used to
stop that thread immediately.

Answer: A) The Async keyword is used to define a method as


asynchronous, while Await is used to pause the execution of that method
until a task is completed.

Q50: Which of the following is true regarding the use of "relationships" in


MS Access?

A) A relationship must always be created using primary keys only.


B) A table in MS Access can only participate in one relationship.
C) In a one-to-many relationship, the primary key is in the "one" table, and
the foreign key is in the "many" table.
D) Relationships in MS Access can only be established between tables that
contain the same number of fields.

Answer: C) In a one-to-many relationship, the primary key is in the "one"


table, and the foreign key is in the "many" table.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy