0% found this document useful (0 votes)
30 views10 pages

Us05ccsc22 - QB

Ok

Uploaded by

dhruvpatel141204
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)
30 views10 pages

Us05ccsc22 - QB

Ok

Uploaded by

dhruvpatel141204
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/ 10

T.Y.B.S.C. (C.

S) (SEM-V)
(US05CCSC03) VB.NET
Unit-I - Question Bank
MULTIPLE CHOICE QUESTIONS
1 This system provides the type architecture of the framework and guarantees type safety.
a) CTS b) CST
c) Type d) Type safe
2 The specification that all .NET language adopters and compiler−makers employ so that their
languages integrate seamlessly into the .NET Framework.
a) Common Language b) CLS
c) Compiler Language d) None of Above
3 Full Form of CLS.
a) Common Language System b) Computer LAN System
c) Common Language Specification d) Computer LAN Software
4 MSIL Means
a) Microsoft Intermediate Language b) M Small Internet Language
c) Microsoft Individual Language d) Note of Above
5 The JIT is one type of .
a) Hardware b) Time
c) Measurement Unit d) Compiler
6 The Visual Basic projects you can create
a) Circuit b) Windows Application
c) None of Above d) Both (a) and (b)
7 The Toolbox contains the components and controls that can be added to Windows Forms
applications and Web Forms applications.
a) True b) False
8 statement is used to declare variable in vb.net.
a) Var b) INT
c) Dim d) All of Above
9 What is CLR?
a) Clean Run b) Common Language
Runtime
c) Common Object Language Runtime d) Class Language Runtime
10 What is Namespace?
a) Collection of Files b) Package
c) Framework d) Collection of Methods
11 What is MSIL?
a)Compiler b) Interpreter
c)Technology d) Assembly
12 Window in a windows forms application are called
a) Window b) Form
c) Splash Screen d) SDI and MDI
13 VB.Net is Called as Programming Language
a) Assembly b) Procedural
c) OOP d) Functional
14 VB.Net code resides in which file
a) .vb b) .js
c) .designer.vb d) .vsdisco
15 Toolbox in Visual Studio Consist of
a) Code b) List of Forms
c) List of Servers d) List of Controls

1
16 Which Window Provides the List of the various objects in VB
a) Solution Explorer b) Class View Window
c) Server Explorer d) Properties Window
17 Dim is a Abbreviation of
a) dimension b) dimer
c) dimerization d) dimeters
18 A Procedure that does not return a Value is called as
a) Sub Procedure b) Method
c) Constructor d) Function
19 Imports Statement use to Import
a) A Class b) A Namespace
c) A Method d) A Function
20 Dynamic Arrays can Redimensioned using _ Keyword
a) Dim b) Redim
c) ReDim d) Const

Ans : 1.A 2.B 3.C 4.A 5.D 6.B 7.A 8.C 9.B 10.B 11.B 12.B 13.C 14.A 15.D 16.D
17.A 18.A 19.B 20.C

Short Questions:
1 What is CLS?
2 Explain CLR?
3 Write a short note on MSIL?
4 Write a Short Note on JIT Complier
5 List the types of project
6 List the parts of IDE
7 List the Data type supported by VB.NET
8 List any five operators?
9 Define Boxing.
10 Define Unboxing.
11 Write a short note on array
12 What is JIT?
13 What is a variable?
14 What is a Constant?

Long Questions:
1 Explain .NET Architecture.
2 Write a note on Class Library
3 Write a short note on Tool box
4 Write a short note on Solution Explorer
5 Write a short note on IDE.
6 Write a short note on Boxing and Unboxing
7 Write a note on Class Library
8 Write a note on CLS?
09 Write a note on CTS?
10 Write a note on MSIL?
11 State the Datatype of VB.Net and Explain?
12 Compare and Contrast Variable and Constant?
13 What is VB.Net and Explain it’s Features?
14 Write a note on any five string functions.
15 What is variable? Explain how variables are declared in VB.NET

2
16 What is an Array? Explain array declaration in VB.NET with example

Unit 2 : Question Bank


MCQ Ans
1 In VB .NET, msgbox returns type of data. B
a) Double c) String
b) Integer d) none of these

2 In VB .NET, inputbox returns type of data. C


a) Double c) String
b) Integer d) none of these
3 In For loop, the default value of step is B
a) 2 c) 3
b) 1 d) None of these
4 SDI stands for C
a) Standard Document Interface c) Single Document Interface
b) Standard Document Integrated d) None of these
5 MDI stands for A
a) Multiple Document Interface c) Multi Device Interface
b) Multiple Document Integrated d) None of these
6 In VB.Net is used to set multiple properties for any objects. B
a) For c) Until
b) With d) None of these
7 In VB.NET statement is used to execute statements using a particular object. D
a) For c) Until
b) If d) With
8 To come out from any loop statement is used. C
a) Break c) Exit
b) Goto d) None of these
9 In VB .NET to transfer control immediately to the next iteration of a loop A
statement is used.
a) Continue c) Exit
b) Goto d) None of these
10 loop execute at least once. C
a) while loop c) do...while
b) if d) for
11 When a condition in an If…Then statements tests true: C
a) the next Else statement is activated. b) the next If statement is activated.
c) the next Then statement is activated. d) a condition can never test true.
12 Which statements are optional in an If…Then statement? B
a) If c) Then
b) Else d) All of the above
13 How many times the test expression of a Select Case evaluated? C
a) 0 c) 1
b) Once for each Case. d) It depends on value of the test expression.
14 To create procedure keyword is used. A
a) Sub c) Procedure
b) Function d) None of these
15 By default the arguments are passes to procedure as C
a) ByRef c) ByVal
b) ByDefault d) None of these

3
16 In procedure when arguments are passed then procedure can’t replace C
or reassign the underlying variables in calling code.
a) ByRef c) ByVal
b) ByDefault d) None of these
17 In procedure when arguments are passed then procedure can modify A
the underlying variables in calling code.
a) ByRef c) ByVal
b) ByDefault d) None of these
18 User can also use statement to call procedure. B
a) Recall c) Procedure
b) Call d) None of these
19 is used for single condition checking 1
1) If..Else..End if 2) IF…Elseif…Else…End if
3) Select Case 4) Do..While
20 will repeat the loop untill condition is FALSE 3
1) Next 2) Until
3) While 4) Case
21 repeat until condition is TRUE 2
1) Next 2) Until
3) While 4) Case
22 Entry point checking loop is checks the condition after once the statements are executed 2
1) True 2) False
23 is basic placeholder for all the objects of your application / program 4
1) File 2) Project
3) Button 4) Form
24 The property that can be changed at design time but can’t change at runtime is 1
known as
1) Read-only Property 2) Roming Property
3) Unchange Property 4) Change Property
25 is used when all condition becomes false in select…Case statement 2
1) End Select 2) Case Else
3) Else Case 4) Select End
26 is at the highest position in namespaces hierarchy 1
1) System 2) System.Drawing
3) System.Collection 4) System.Data
27 is the location where we can put our common code for the application 3
1) Form 2) Button
3) Module 4) Model
28 is used to display some kind of data to user during execution 2
of program/appli.
1) InputBox 2) Messagebox.Show
3) DataBox.Show 4) Multibox.Show
29 is used for accepting some type of value/data from user at run time 1
1) Inputbox 2) Insertbox
3) Valuebox 4) ValidBox
30 When we sending/passing some value during function call that is known as 3
1) Argument 2) Parsing
3) Parameter Passing 4) Value Passing
31 specifies the interior spacing of the control 1
1) Padding 2) Shifting
3) Width 4) Height
32 By default size property in vb.net control is 4
1) Inches 2) Centimeters
3) Twips 4) Pixels
33 is default event for form 3
1) Click 2) DblClick

4
3) Load 4) Move
34 property will resize the control as per the contents reference within 2
1) Resize 2) Autosize
3) Width 4) Height
35 specify the transperency of the form 4
1) Transperency 2) FormTransperency
3) FormOpacity 4) Opacity
36 is used to coordinates the upper left corner relative to the container 2
1) Y and Z 2) X and Y
3) A and B 4) X and Z
Short Questions (Each of 2 marks)
1 Write down the syntax of following structure:
1) If…End If 2) Select … End Select 3) Do…Loop
4) For…Next 5) While…Wend 6) With…End With
2 Differentiate between : Messagebox – Inputbox
3 Write a difference between Procedure and Function.
4 Write a difference between MDI and SDI.
5 What is procedure? How it is created in VB .NET?
6 How functions are declared in VB .NET?
7 What is the use of ‘By Val’ & ‘By Ref’ keyword?
8 Define Property, method and event.
9 List any five properties supported by Windows Form and explain any one of them.
10 Explain Show method of Windows Form.
11 List any five events supported by Windows Form and explain any one of them.
12 What is MDI form? Which property is used to make form as a MDI parent form?

Long Questions:
1 What is procedure? How the procedures are declared? Explain the ways of [6-8]
passing arguments with example. What is the use of ‘By Val’ & ‘By Ref’
keyword?
OR
Explain the ways of passing arguments with example. What is the use of ‘By Val’ [5]
& ‘By Ref’ keyword?
OR [7]
Explain subroutine in details with examples.
2 Explain declaration of function in detail with example. [5]
3 Explain the following structure with example.(Each of 3 - 4 Marks)
1) If…End If 2) Select … End Select 3) Do…Loop
4) For…Next 5) While…Wend 6) With…End With
4 Explain Message box with example. [4-5]
5 Explain Input box with example. [4-5]
6 Explain Form life cycle in detail. [5]
7 What is MDI? What is SDI? Write down the features of MDI. Also write down [4-6]
the difference between MDI & SDI.
OR
What is MDI form? Explain how it differs from normal form in details?
Which property has to be set to make a form of the MDI parent form? [4-5]
8 Explain Modules in detail. [4-5]

5
Question Bank : Unit 3 Ans
3 Which property determines whether a control is displayed to the user? c
a) Hide b) Show
c) Visible d) Enabled
4 The Tick event is found only in which object? d
a) Form b) Button
c) TextBox d) Timer
5 The Activated event is found only in which object? a
a) Form b) Button
c) TextBox d) Label
6 Setting the SelectedIndex property of a ListBox to -1 will: c
a) cause an error. b) cannot be done.
c) No selection of any item. d) Both a and b.
7 Which method of a ListBox will remove just one item at a time at a
specified index?
a) Items.RemoveAt b) Item.RemoveAt
c) Items.ClearAt d) Item.ClearAt
8 Which two controls combined to form the ComboBox control? a
a) ListBox and TextBox b) ListBox and InputBox
c) ListBox and MsgBox d) Label and TextBox
10 A CheckBox can also appear as a(n): a
a) button. b) RadioButton.
c) ScrollBar. d)All of the above.
11 How many RadioButtons in a Group Box can be selected at the same time? b
a) 0 b) 1
c) 2 d) 3
12 Which event is activated when a RadioButton is selected? b
a) Checked b) CheckedChanged
c) Selected d) SelectedChanged
13 Which menu object property places a check mark in the display of the b
menu text?
a) Check b) Checked
c) CheckMark d) CheckOn
14 Which symbol creates an access key in the text of a menu item? d
a) @ b) #
c) $ d) &
15 Which method is used to savefile in RichTextBox b
a) LoadFile b) SaveFile
c) SaveAll d) None
16 What is the method used to activate the color dialog box? d
a) ActivateDialog b) DisplayDialog
c) ExhibitDialog d) ShowDialog
17 The Items property of a ComboBox: d
a) is a collection of items. c) contains methods and properties.
b) is same as Items property of a ListBox d) All of the above.
18 returns the full path of a selected node in a treeview a
a) Fullpath b) Rootpath
c) Fulllocation d) None
19 What is the name of the control for putting menus on a form? d
a) FormMenu b) MenuForm
c) MenuControl d) Menustrip
20 Which is not a standard dialog box? d
a) ColorDialog b) FontDialog c) OpenDialog d) ZoomDialog
21 Which control display hierarchy of nodes . d

6
a) label b) Timer c) Scrollbars d) Treeview

22 Which control support hyperlinks d


a) label b) Timer c) Scrollbars d) Linklabel
23 Which property can not be used with multiline property of textbox b
a) Name b) Passwordchar c) Font d) Margin
24 Which property of treeview provides hyperlink effect when the mouse is c
moved over the nodes.
a) ShowPlusMinus b) ShowRootlines
c) HotTracking d) Fullpath
25 statement enables exception handling . c
a) Option explicit b) Option strict c) On Error Goto d) None
Short Questions
1 Differentiate between radio button and checkbox.
2 Differentiate between label and linklabel.
3 Differentiate between listbox and combobox.
4 Differentiate between listbox and chekedlistbox.
5 Explain use of picturebox.
6 Explain use of Timer.
8 Write a syntax of Try…..catch statement.
9 What do you mean by debugging?
10 Explain the function of Step into and Step Over.
12 How to add and delete a node in a treeview?
13 Explain any four properties of RithTextBox.
14 Explain any four properties of DateTimePicker.
15 Differentiate between Add Watch and Quick watch
16 What is the use of Groupbox?
17 Explain the use of Menu.
Long Questions
1 Explain Listbox,combobox and Checkedlistbox.
2 Write a note on HScorllBar and VScrollBar.
3 Write down the steps to add menu on the form and explain at least five
properties of it.
4 Explain different types of error handling .Explain any one in detail.
5 Explain try…. Catch … final in detail with example.
6 Explain following controls with its properties, methods and events
a) Treeview
b) RichTextBox
c) ColorDialogBox
d) FontDialogbox
e) Button
f) Label
g) Textbox
h) Radio Button
i) Checkbox
j) Combobox
k) Listbox
l) Timer
m) PictureBox & Groupbox
n) HSCrollbar & VScrollbar
o) CheckedListBox
p) DateTimePicker
q) LinkLabel

7
Unit 4 : Question Bank Ans
Multiple Choice Questions.
1. is disconnected, in-memory representation of data. B
a) DataReader b) DataSet
c) DataAdapter d) DataCommand
2. What is the major component of connected data architecture? A
a) DataReader b) DataSet
c) DataAdapter d) DataCommand
3. method is used to populate DataSet. B
a) Populate b) Fill
c) Open d) Store
4. method returns result set by way of DataReader object. D
a) ExecuteDataReader b) ExecuteScalar
c) ExecuteNonQuery d) ExecuteReader
5. For insert, update, and delete SQL commands, method is used. C
a) ExecuteDataReader b) ExecuteScalar
c) ExecuteNonQuery d) ExecuteReader
6. To check whether connection is open or not, property is used. B
a) ConnectionStatus b) State
c) ConnectionState d) Status
7. To use DataSet namespace needs to be included. D
a) System.Data.SqlClient b) System.Sql
c) System.Oledb d) System.Data
8. object provide connection to the database. B
a) Command b) Connection
c) DataReader d) DataAdapter
9. In a connection string, represents name of the database. C
a) DataSource b) Initial Database
c) Initial Catalog d) Catalog Database
10. If we are not returning any records from the database which method is used D
a) ExecuteReader () b) ExecuteScalar ()
c) ExecuteXmlReader() d) ExecuteNonQuery()
11. Which namespace defines the interfaces implemented by a .NET Data Provider? A
a) System.Data. b) System.Data.OleDb and System.Data.SqlClient.
c) System.Data.SqlTypes. d) System.Data.Provider.
12. What are the two Data Providers provided with the .NET Framework? C
a. OLEDB Data Provider and XML Data Provider.
b. SQL Server Data Provider and XML Data Provider.
c. OLEDB Data Provider and SQL Server Data Provider.
d. SQL Server Data Provider and Oracle Data Provider.
13. DataSet changes are saved to the database using the: B
a) Save method. b) Update method.
c) Fill method. d) None of the above.
14. DataSets are loaded from the database using the: C
a) Load method. b) Read method.
c) Fill method. d) None of the above.
15. Sorting supports: A
a) Ascending order. b) Descending order.
c) Ascending and descending order. d) None of the above.
16. SQL SELECT statements are sent to a database using: C
a) SqlConnection and its ExecuteReader method.
b) SqlCommand object and its ExecuteNonQuery method.
c) SqlCommand object and its ExecuteReader method.
d) SqlParameter object and its Execute method.
17. SQL INSERT statements are sent to a database using:

8
a. SqlConnection and its ExecuteReader method.
b. SqlCommand object and its ExecuteNonQuery method.
c. SqlCommand object and its ExecuteReader method. B
d. SqlParameter object and its Execute method.
18. SQL UPDATE statements are sent to a database using:
a. SqlConnection and its ExecuteReader method.
b. SqlCommand object and its ExecuteNonQuery method.
c. SqlCommand object and its ExecuteReader method. B
d. SqlParameter object and its Execute method.
19. SQL DELETE statements are sent to a database using:
a. SqlConnection and its ExecuteReader method.
b. SqlCommand object and its ExecuteNonQuery method.
c. SqlCommand object and its ExecuteReader method. B
d. SqlParameter object and its Execute method.
20. Stored procedures are invoked using:
a. SqlConnection and its ExecuteReader method.
b. SqlCommand object and its ExecuteNonQuery method.
c. SqlCommand object and its ExecuteReader method. C
d. SqlParameter object and its Execute method.
21. Retrieving a single value from a returned row involves using:
a. SqlConnection and its ExecuteReader method.
b. SqlCommand object and its ExecuteNonQuery method.
c. SqlCommand object and its ExecuteScalar method. C
d. SqlParameter object and its Execute method.

Short Questions
1. What are the features of ADO.Net?
2. What are the applications of ADO .net?
3. Explain the use of server explorer in data access in .net.
4. Mention the namespace that is used to include .NET Data Provider for
SQL server in .NET code.
5. Mention different types of data providers available in ADO .NET Framework.
6. Which namespaces are required to enable the use of databases in ADO .net?
7. What is the use of the Connection object?
8. What are the usages of the Command object in ADO.NET?
9. What is difference between DataSet and DataReader?
10. What is Dataset object?
11. What is connection string? Explain in brief.
12. Which properties are used to bind a DataGridView control?
13. Explain DataGrid control.
14. Explain any one of the following namespaces :
1. System.Data 2. System.Data.SqlClient
3. System.Data.OleDB 4. System.Data.SqlTypes
15. Explain any one of following .NET Data Provider Main Classes
1. Connection 2. Command 3. DataReader 4.DataAdapter

9
Long Questions.
1. Explain the connected architecture of ADO.NET in brief.
2. Describe the disconnected architecture of ADO.NET's data access model.
3. Explain major ADO .net objects.
4. Explain the steps to bind the application with the Database in ADO .net.
5. Explain the step, how can we retrieve data in DataSet?
6. Explain public methods of SqlCommand objects.
7. What are the four common SQL commands used to retrieve and modify data in
a SQL Database? Also explain each of them.
8. Explain use of “ExecuteScaler” , “ExecuteNonQuery” and
“ExecuteReader” method in detail.
9. Explain possible values in the DataRowState.

10

You might also like