Free Web Hosting by Netfirms
Web Hosting by Netfirms | Free Domain Names by Netfirms


.

Home to new Visual Basic .NET programmers

Exam 70-306

 

Home ] What is this site? ] myExercises ] myTutorials ] myExam ] myMicrosoft ] myNotes ] Study Advice ] myLinks ]


Search (my)Visual Basic .NET

(Tip: Scroll past sponsored links to see your search results for this website)


Complain to Volkswagen South Africa (VWSA)


New to myExercises:

 

Lynnwood Consultants Program
Computer Calculator Program
Funny Time Program
Creative Minds Login Program
Hatfield Pizza & Pasta Program
  Shutterbug Program

New to myNotes:

 

>>

TOE chart


Order this book today from

kalahari.net: click-click, ding-dong

 

Title: Microsoft Visual Basic 2005:

         RELOADED, Second Edition

Author:  Diane Zak

 

Click the image below to order your copy.

 

These are potential exam questions for MicroSoft's exam 70-306 (Developing and Implementing Windows-based Applications with Microsoft Visual Basic.NET and Microsoft Visual Studio.NET 2003) 

Answers to questions are not published here, it is up to you to provide answers.  Currently 100 questions are available.  

Question 1 

Which of the following cannot be true concerning VB and the .NET framework?

A) The .NET Framework can be hosted by unmanaged components that load the common language runtime into their processes and initiate the execution of managed code.
B) The .NET Framework can be hosted by unmanaged components that load the common language runtime into their processes and initiate the execution of unmanaged code.
C) The .NET Framework can be hosted only by managed components that load the common language runtime into their processes and initiate the execution of managed code.
D) The .NET Framework can be hosted only by managed components that load the common language runtime into their processes and initiate the execution of unmanaged code.
E) B, C and D

Question 2 

Which of the following statements about VB.NET namespace is untrue?

A) by default every executable file you create with Visual Basic .NET contains a namespace with the same name as your project file extension
B) multiple assemblies can use the same namespace
C) assemblies can contain multiple namespaces
D) A, B and C
E) B and C

Question 3 

The method for drag and drop in VB.NET is implemented in which of the following classes?

A) System.Windows.Forms.Control
B) System.Windows.Forms.DragDrop
C) System.Windows.DragDrop
D) System.Windows.Forms.UI.Control
E) None of the above choices

Question 4 

Within the .NET framework, a site implements which of the following interfaces?

A) System.Windows.UI.Control 
B) System.Web.Forms.Control
C) System.ComponentModel.IContainer
D) System.ComponentModel.ISite
E) None of the choices

Question 5 

You are writing a class in VB.NET. If your class uses external resources but will not be used on a form, which of the following should you implement?

A) System.IDisposable
B) System.ComponentModel 
C) System.Component
D) System.Windows.Forms
E) System.Web.UI.Control

Question 6 

Which of the following are NOT the valid ways to lock VB.NET controls?

A) as a group 
B) individually
C) writing extra C# codes
D) use SSL within the codes
E) C and D

Question 7

When you write a class in VB, you want to create a class that is designable and is marshalled by reference. To do so, you should derive from: 

A) System.IDisposable
B) System.ComponentModels.IComponent 
C) System.ComponentModel.Components
D) System.Designable
E) A or C

Question 8

If you want to create a designable class in VB.NET that is marshalled by value, you should derive from which of the following?

A) System.IDisposable
B) System.ComponentModel.IComponent 
C) System.ComponentModel.Components
D) this is NEVER possible
E) None of the choices here

Question 9

If you want to create a designable class that provides a user interface in your VB.NET application, you should derive from which of the following? 

A) System.IDisposable
B) System.Windows.Forms.Control
C) System.Web.UI.Control
D) B and C
E) Designable class can never provide any user interface

Question 10

To run your VB.NET code unconditionally even when errors exist, you should add a Finally block after your _____ block.

A) End Catch
B) Final
C) End
D) Catch 
E) A or B

Question 11

Within the .NET framework, the IComponent interface extends the ___ interface, which has a method named Dispose in its contract. 

A) System.IDisposable
B) System.Disposable
C) System.IDispose
D) System.Dispose
E) None of the choices.

Question 12

Base design-time support for IComponent types are available ______ in VB.NET. 

A) by default 
B) as an option 
C) upon activation
D) together with strict type control
E) None of the choices

Question 13

You have a component sited. To ensure that resources are released when the container is torn down, what interface must be implemented?

A) the IDisposable interface 
B) the Disposable interface
C) the Dispose interface
D) the IDispose interface
E) None of the choices

Question 14

What are being used to transport messages to and from the VB.NET remote objects?

A) Channels
B) Tunnels
C) Registry
D) Assembly
E) Metabase

Question 15

When a VB.NET object is marshalled by reference, a ________ is created that makes remote calls to the object possible.

A) Agent
B) Proxy
C) Service
D) Virtual tunnel
E) None of the choices

Question 16

When should VB.NET remotable components be marshalled by reference rather than by value? 

A) When they do not need to encapsulate system resources
B) When they are small
C) When they exist as secured instances 
D) B and C
E) None of the above choices

Question 17

Within the .NET framework, the base class for components that are marshalled by reference is known as?

A) System.ComponentModel.iComponent
B) System.ComponentModel.Components
C) System.ComponentModels.Component
D) System.ComponentModel.Component
E) None of the above choices

Question 18

In the .NET framework, which of the following components do NOT derive from Component? 

A) System.Web.Services.WebService
B) System.Timers.Timer
C) System.Dispose
D) System.ByRef
E) C and D

Question 19

In VB.NET, what is the base class for Windows Forms controls?

A) System.Windows.Forms.Control 
B) System.WindowsForms.Control 
C) System.Windows.Form.Control 
D) System.Windows.Form.Controls 
E) None of the above choices

Question 20 

What is the base class for XML Web services created using ASP.NET and VB?

A) System.Webservices.WebService 
B) System.Web.Services 
C) System.Web.Services.WebService 
D) System.WebServices
E) None of the above choices

Question 21

Within the .NET framework, any remotable components that simply hold state should be marshalled by value.

A) Not true
B) True
C) True only if the components are written in C
D) True only if the components are written in VB as well
E) None of the choices

Question 22

Within the .NET framework which of the following derives from Component and itself provides UI capabilities?

A) System.Web.UI.Control 
B) System.Windows.UI.Control 
C) System.Web.Forms.Control
D) System.ComponentModel.IContainer
E) None of the choices

Question 23

Error handling in VB.NET is based on what class? 

A) Exception
B) Exceptions
C) iException
D) iExceptions
E) None of the above choices

Question 24

Which of the following is NOT true concerning managed code written in VB for running with the .NET framework?

A) managed code can consume other managed types 
B) managed code can consume other managed instances
C) managed code can strictly enforce type fidelity 
D) managed code can strictly enforce type safety
E) managed code can strictly enforce type fidelity only when type safety is not enforced

Question 25

Which of the following is NOT true concerning the get accessor within a property definition?

A) It could return a value without accessing a private data member. 
B) It could not return a value without accessing a private data member. 
C) It is no longer in use in VB.NET
D) B and C
E) A and C

Question 26

Is it true that the term property is a keyword in C# but not so in Visual Basic .NET?

A) Yes
B) No
C) Yes if you do not use the enterprise edition of VB.Net
D) Yes if you use the enterprise edition of VB.Net
E) None of the choices

Question 27

In VB.NET, raising an event from a component is different from raising an event from a class that is not a component. 

A) True
B) False 
C) It depends on the development tool you use
D) You cannot raise an event from a component
E) None of the choices

Question 28

In the .NET framework, a license provider is a class that derives from:

A) System.ComponentModel.LicenseProvider
B) System.ComponentModel.License
C) System.ComponentModel.Licensing
D) System.ComponentModel.Licensor
E) None of the above choices

Question 29

A Windows Forms application must consist of which of the following elements? 

A) One or more classes that derive from System.Windows.Forms.Form 
B) A Main method that invokes the static (shared) System.Windows.Forms.Application.Run method and passes a Form 
instance to it 
C) A licensing provider
D) A and B
E) B and C

Question 30

To author a composite control in VB.NET, you should derive from:

A) System.Windows.Forms.UserControl
B) System.Windows.Form.UIControl
C) System.Windows.UIForm.UserControls
D) A or B
E) B or C

Question 31

When you set a property that changes the visual display of a control in VB.NET, what method must you invoke to redraw the control?

A) Invalidate
B) Validate
C) Redraw
D) A or C
E) A or B

Question 32

In VB.NET, what does the Control class NOT do?

A) It implements very basic functionality required by classes that display information to the user
B) It handles user input through the keyboard
C) It handles message routing and security
D) It defines the bounds of a control
E) It implements painting

Question 33

Windows Forms controls use what kind of properties so child controls can appear like their surrounding environment?

A) Ambient
B) Parent
C) Environment
D) B or C 
E) A or B

Question 34

With the use of an ambient property, if a control does not have a Parent and the property is not set, the control will determine the value of the ambient property through:

A) the Site property
B) the Class property
C) the Child property
D) its own default value
E) None of the choices

Question 35

When you specify the size of a form control, you want to optimise performance. What property should you override?

A) constructor 
B) DefaultSize
C) ControlSize
D) no need to override anything 
E) None of the choices

Question 36

When changing the property the visual display of a control is affected. What method should you call from the get accessor?

A) Invalidate
B) get access
C) Validate
D) set
E) None of the choices

Question 37

You are creating a Windows Forms control. By default this control should NOT inherit which of the following properties from its base class? 

A) Font
B) ForeColor
C) BackColor
D) iBound
E) DisplayRectangle

Question 38 

You plan to use the ShouldSerialize and Reset methods in a property. Which of the following is NOT true about them?

A) ShouldSerialize is strictly optional while Reset is mandatory
B) ShouldSerialize is strictly required while Reset is not mandatory
C) Both of them are strictly optional
D) Both of them are strictly mandatory
E) All of the choices except choice C

Question 39

You can always customize any Windows Forms control. Which of the following is NOT one valid way of doing this?

A) rewriting the base control 
B) deriving from the control 
C) overriding or adding properties
D) overriding or adding methods
E) overriding or adding events

Question 40

In VB.NET, the DoDragDrop method takes at a minimum how many arguments?

A) one
B) two
C) three 
D) four
E) None of the above choices

Question 41

Which of the following is true about a serviced component?

A) It is a class that is authored in a CLS-compliant language
B) It derives directly or indirectly from the System.EnterpriseServices.ServicedComponent class
C) It allows classes to be hosted in a COM+ application 
D) A, B and C
E) A and C only

Question 42 

Every Windows Forms control inherits its events from which class?

A) System.Windows.Forms.Control 
B) System.Windows.Form.Control
C) System.Windows.Forms.Controls
D) System.WindowsForms.Control
E) None of the above choices.

Question 43

The _______ event causes a control to be drawn on screen.

A) Paint
B) Draw
C) Spray
D) A and B
E) A and C

Question 44

Every Windows Forms control must override the Paint event that it inherits from Control. 

A) True
B) False
C) True only if you have a menu
D) True only if you have a menu and several submenus
E) None of the above choices

Question 45

A Finally block without Catch blocks is acceptable.

A) True
B) True at compile time only
C) True at run time only
D) False
E) None of the above choices. 

Question 46

The common keyboard events that a control written in VB.NET can handle should NOT include which of the following? 

A) KeyDown
B) KeyPress
C) KeyUp
D) KeyAim 
E) KeyHold

Question 47

Which of the following are the valid mouse events that a control written in VB.NET can handle? 

A) MouseDown
B) MouseEnter
C) MouseHover
D) MouseLeave
E) All of the choices 

Question 48

In the .NET framework the base class System.Windows.Forms.Control provides drawing functionality. This is made possible through which of the following events?

A) Paint
B) Draw
C) Render
D) B and C
E) A and C

Question 49

In VB.NET, what should you do to invoke OnPaint? 

A) invoke Invalidate 
B) overload OnDraw
C) invoke Paint 
D) B or C
E) None of the choices

Question 50

What property of a control specifies the rectangular region available to that control on the screen display? 

A) ClientRectangle
B) ClientRectangleRegion
C) ClientRectangleArea
D) ClientRectangleSize
E) None of the above choices

Question 51 

In VB.NET, to create a list box that shows all the available directories in a particular folder, what control should you use? 

A) DriveListBox
B) DirListBox 
C) FileListBox
D) OpenFileDialog
E) FolderDialog

Question 52

Structured exception handling in VB.NET does NOT involve which of the following keywords?

A) Try 
B) Catch
C) Finally
D) Throw 
E) None of the above choices

Question 53

In VB.NET, what property represents a size structure that gives the width, color, resolution, pattern and height of a control?

A) Size
B) AdvancedProp
C) Patterns
D) Construct
E) No such single structure for these purposes

Question 54

In Visual Studio.NET, with the Dock property a form control may:

A) grow and shrink with the form
B) grow but not shrink with the form
C) shrink but not grow with the form
D) dock to the sub menu
E) dock to the main menu

Question 55

Which of the following control properties allows you to anchor controls to edges of forms easily and quickly?

A) Anchor
B) Docking 
C) Resize
D) A AND B together
E) B OR C, use either one 

Question 56

Which of the following are NOT the valid methods of having one procedure handle the events for multiple controls? 

A) use the AddHandler procedure 
B) use the Handles clause on a procedure
C) use the InstallHandler procedure 
D) A and B
E) A and C 

Question 57

Which of the following cannot be used to create a completely separate menu from the MainMenu of a form?

A) the ContextMenu control
B) the AddMenu control
C) the SubMenu control
D) A and C
E) B and C

Question 58

You want to add Error, IconAlignment, and IconPadding properties to each control on your windows form. Which of the following controls are NOT the valid ones to use? 

A) ErrorProvider
B) ErrorProperties
C) ErrorStat
D) A and C
E) B and C

Question 59

Which of the following are the valid ways of using DDE for communication in VB.NET?

A) use the DDERef class
B) use the iDDERef class
C) use the DDEcall class
D) use the DDEinv class
E) None of the above choices

Question 60

In your source file, when does it make sense for you to change any of the code in this #Region area?

A) when you add a control
B) when you remove a control
C) when you want to recompile a control
D) when you perform code audit
E) None of the above choices

Question 61

Which of the following controls allows you to create a list box that shows all the available drives on the computer system? 

A) DriveListBox
B) DirListBox 
C) FileListBox
D) OpenFileDialog
E) C or D

Question 62

Which of the following does NOT correctly represent the primary function of the CTS within the .NET framework? 

A) to ensure that all managed code is self-describing
B) to ensure that all managed code is self-containing 
C) to ensure that all managed code is signed
D) B and C
E) A and C

Question 63 

In order for you to raise an event, what statement must you use?

A) RaiseEvent
B) Raise
C) EventRaise
D) A or C
E) Both A and B together

Question 64

Which of the following statements can help you prevent logic errors and data loss that can occur when you work between variables of different types?

A) Option Strict 
B) Option Restrict
C) Option Limit
D) Option 
E) None of the above choices 

Question 65

Which of the following statements are NOT designed for breaking the association between an event and an event handler at run time?

A) RemoveHandler
B) RemoveHandle
C) RemoveRef
D) B and C
E) A and B

Question 66

You want to add a ToolTip property to each control on your form. Which of the following controls should NOT be used?

A) ToolTip
B) TipWin 
C) ToolWinTip
D) ToolsTips
E) B, C and D 

Question 67

In VB.NET, what property represents a point structure that gives the X and Y coordinates of where this control is located on screen?

A) location 
B) XyLoc
C) XyLocation 
D) OnScreen
E) OnScreenXY

Question 68

Within the .NET framework a regular container should implement which of the following interfaces?

A) System.ComponentModel.IContainer
B) System.Windows.Form.Controls 
C) System.Web.UI.Controls 
D) System.Window.UI.Control 
E) A and D

Question 69

Which of the following about try/catch nesting is NOT true?

A) You can nest Try/Catch blocks within the Try, Catch, or Finally blocks. 
B) You can nest Try/Catch blocks within Try, Catch but not the Finally blocks.
C) You can nest Try/Catch blocks within Catch but not the Try/Finally blocks. 
D) Nesting is no longer supported
E) B, C and D

Question 70

When your user runs your VB.NET program, an error dialog with a paragraph of exception text is shown. What likely goes wrong?

A) exception handling has not been defined 
B) the program has not been compiled with the proper directive 
C) incompatible hardware
D) hardware processor error
E) user misuse of the program

Question 71

In the .NET Framework, a component is a class that does not have to implement:

A) System.IDisposable
B) System.ComponentModel.IComponent 
C) System.Windows.Form.Controls
D) A and C
E) B and C

Question 72 

Your Try/End Try block must contain either one or more Catch blocks

A) True
B) False

Question 73 

Whenever a form control needs to change its visual display, method(s) will be invoked. Which of the following are NOT examples of such method(s)? 

A) OnPaint
B) OnDraw
C) OnCall
D) B and C
E) A and C

Question 74 

When you create a new application, module(s) is/are automatically added to your project to contain settings for assembly attributes. What is it /are they?

A) AssemblyInfo.vb 
B) AssemblyInfo.vsc
C) Assembly.vb
D) A and C
E) A, B and C

Question 75 

In your project there is a file named AssemblyInfo.vb. What information does it contain? 

A) title
B) company name
C) version number 
D) A, B and C 
E) A and C only 

Question 76 

By default, Visual Basic .NET delegates can reference:

A) shared methods 
B) instance methods
C) A and B
D) by default delegate support is absent
E) None of the above choices

Question 77 

What method of the Windows Forms control should you call in order to begin a drag-and-drop operation?

A) DoDragDrop 
B) StartDragDrop
C) InitDragDrop
D) CallDragDrop
E) None of the above choices

Question 78 

You are writing your form control. What property of PaintEventArgs specifies the area that a control is actually painted on the screen?

A) ClientRectangle
B) ClipRectangle
C) PaintRectangle
D) Both B and C together
E) B or C is fine

Question 79 

Which of the following is a valid way to develop a composite Windows Forms control in VB.NET?

A) By combining other Windows Forms controls. 
B) By rewriting the base control
C) By overriding or adding properties to the base control.
D) composite Windows Forms control is no longer supported in VB.NET
E) None of the choices.

Question 80 

Which of the following events provides visual feedback to your user that a drop is allowed on a particular form control?

A) DragEnter
B) DragShow
C) DragRelease
D) Either A or B
E) Both A and B together

Question 81 

When you declare an event signature in VB.NET, what keyword must you use?

A) Event
B) Signature
C) ESig
D) ERef
E) Declare

Question 82 

If you want to add HelpString, HelpTopic, and ShowHelp properties to each control on your form, certain control(s) should be used. Which of the following is/are the correct choice(s)?

A) HelpProvider
B) Helplist
C) HelpBox
D) B and C
E) You cannot add those properties anyway

Question 83 

You want to associate an event handler with an event. You want to do this at compile time. What statement should you use? 

A) the WithEvents statement and the Handles clause 
B) the AddHandler statement 
C) the WithEvents statement and the Associates clause 
D) either A or C
E) both B and C must be used

Question 84 

You want to associate an event handler with an event. You want to do this at run time. What statement should you avoid?

A) use the WithEvents statement and the Handles clause 
B) use the AddHandler statement 
C) use the WithEvents statement and the Associates clause 
D) A and C
E) B and C

Question 85

Which of the following statements allows you to break the association between an event and an event handler at run time?

A) RemoveHandler
B) RemoveHandlers
C) RemoveHandle
D) RemoveHandles
E) None of the above choices.

Question 86 

If your class will be used on a Windows Form, which of the following should you consider to implement?

A) System.IDisposable
B) System.ComponentModel.IComponent 
C) System.ComponentModel.Component
D) System.Windows.Forms.Control
E) B and D

Question 87 

In the .NET framework, those objects that service multiple clients and hence share data by storing state information between client invocations are NOT known as:

A) Singleton objects
B) Client-activated objects
C) Multion objects
D) Client-sided objects
E) All choices except choice A

Question 88 

In the .NET framework, Client-activated objects (CAO) are NOT: 

A) server-side 
B) activated by the client 
C) client-side 
D) activated by the server
E) C and D

Question 89

Within the .NET framework, remotable components cannot be marshalled by:

A) Reference
B) Value
C) Number 
D) A and B
E) A and C

Question 90 

Concerning the channels for communication between remote objects, they all derive from:

A) IChannel
B) Channels
C) Disposable
D) B and C
E) A and C

Question 91 

By default, managed applications created with Visual Studio .NET 2003 or later requires which version of the common language runtime in order to run?

A) Version 1.1 or above
B) Version 1.0 or above 
C) Version 1.01 or above
D) Version 2.0 or above
E) None of the above choices

Question 92 

Visual Studio .NET 2003 projects rely on what property to specify the required versions of the common language runtime?

A) Supported Runtimes
B) Release Version
C) Release Number
D) either A or C
E) either B or C

Question 93 

In VB.NET, objects you can use to call the methods of other objects are known as:

A) Delegates
B) Components
C) Controls
D) Pointers
E) Reference Pointers

Question 94

Visual Basic .NET delegates are a reference type based on which of the following classes?

A) System.Delegate
B) System.iDelegate
C) System.Delegate.Reference
D) System.Delegate.Ref
E) None of the above choices

Question 95 

Version numbers in .NET have at a minimum of how many parts?

A) two
B) three
C) four
D) five
E) None of the above choices

Question 96 

In VB.NET, certain statement(s) can ensure that all variables are declared and spelled correctly. Which of the following is/are NOT such statement(s)?

A) Option Explicit 
B) Option Implicit
C) Option Declared
D) Option Explicit Declared 
E) All choices except choice A

Question 97

You want to set an icon to be displayed in the System Tray on your task bar when your application is being run. Which of the following controls should you use? 

A) NotifyIcon 
B) StatusBar
C) IconStat
D) IconRef
E) Both A and B together

Question 98 

In every VB program, what procedure is mandatory and serves as the starting point and overall control for your application?

A) main
B) main and submain
C) main and declare
D) main and var
E) main and function

Question 99 

In VB.NET, which of the following restrictions does not exist?

A) length of variable names
B) number of variables allowed in modules
C) module size
D) naming
E) all of the above choices 

Question 100 

The Supported Runtimes property is NOT available for:

A) Windows Application
B) Windows Service
C) Console Application
D) ASP.NET Web Application projects
E) None of the above choices


All content on this site is free for private use only  |  Contributions are encouraged  |  Thank you to Netfirms for the free hosting  |  If copyright content is published here or links to certain content violates some right/law, contact the Webmaster to have it removed immediately.

 

Site launched: October 2005  |  Updated: July 20, 2006  |  Link exchange  |  Site map  |  Contact us