FRESHERSHOME
Freshers Forum

Visual Basic Questions?

This is a discussion on Visual Basic Questions? within the Visual Basic forums, part of the Languages category; Could you please help me with the practice questions before the final exam. Thanks. 1.When defining a variable, the keyword ...


Go Back   Jobs in India Forum > Programming > Languages > Visual Basic

Notices

Visual Basic Visual Basic Discussion Forum, Visual Basic related configuration, help, tips, source code

 
Reply
 
Thread Tools Display Modes
  #1  
Old 01-13-2008, 07:53 PM
YahooHoo
 
Join Date: Jan 2008
Posts: 2
Default Visual Basic Questions?

Could you please help me with the practice questions before the final exam. Thanks.
1.When defining a variable, the keyword ____ appears at the beginning of the statement.
a.Assignc.Define
b.Declared.Dim



2.When defining a variable to be used to hold textual information containing multiple characters, the declaration statement should have ____ at the end of the statement.
a.As Charc.As String
b.As Char Typed.As String Type



3.A variable that will be used to hold only True or False values should be declared as a(n) ____ data type.
a.Booleanc.Integer
b.Decimald.Single


4.A program whose interface will be a window on the screen of a computer running the Windows operating system, and which will allow the user to interact with the program by using this window, is created by selecting a ____ project in Visual Studio.
a.Web applicationc.Windows application
b.Console applicationd.Custom control




5.Properties can be displayed in the Properties window ____.
a.grouped by category or by the order they appear on the screen
b.grouped by category or sorted numerically
c.sorted alphabetically by name or grouped by size
d.sorted alphabetically by name or grouped by category




6.The ____ sign is used in an assignment statement.
a.plus (+)c.ampersand (&)
b.equal (=)d.percent (%)



7.Which of the following is the correct general format for assigning a value to a property?
a.propertyvalue = propertyname.objectname
b.propertyvalue = objectname.property
c.propertyname.objectname = propertyvalue
d.objectname.property = propertyvalue



8.The ____ feature displays all allowable entries you can make in a Visual Basic statement each time a dot, equal sign, or other special character required for the statement is typed.
a.AutoCompletec.IntelliComplete
b.AutoSensed.IntelliSense



9.When you type the word ____ followed by a period in the code editor, IntelliSense displays a list of all the entries, including all the objects that can be specified in the statement.
a.Mec.MyForm
b.Myd.VB



10.A(n) ____ is used for denoting a comment statement.
a.semi-colon (c.apostrophe (‘)
b.period (.)d.comma (,)



11.Comments are displayed (by default) with ____.
a.a green squiggly linec.blue text
b.green textd.a blue squiggly line


12.The ____ prefix is used for a Menu object.
a.menuc.mst
b.mnsd.mnu



13.The ____ character is used to indicate that a letter is a hot key on a menu item.
a.ampersand (&)c.back slash (\)
b.forward slash (/)d.underscore (_)



14.The hot key for a menu item can be activated with the keyboard by pressing the ____ key and the hot key at the same time.
a.ALTc.CTRL
b.SHIFTd.TAB



15.The ____ object provides a text box that asks the user for input and provides an input area.
a.labelc.textbox
b.menud.Radio button



16.Which line of code will add the value “East” to a ListBox object named lstDirections?
a.lstDirections.Add(“East”)c.lstDirections.Add Value(“East”)
b.lstDirections.Items.Add(“East”)d.lstDirectio ns.Items.AddValue(“East”)



17.To remove all objects from a ListBox object, the ____ method is used.
a.Clearc.Empty
b.Items.Cleard.Items.Empty



18.The ____ property of a ListBox object identifies which item in the ListBox was selected.
a.Itemc.Selected
b.ItemSelectedd.SelectedItem



19.The compound operator ____ adds the value of the right operand to the value of the left operand and stores the result in the left operand’s variable.
a.++c.=+
b.+=d.==



20.The compound operator ____ is used to add a string to an existing string.
a.&=c.&&
b.=&d.==


21.The ____ follows the keyword For in a For...Next loop.
a.keyword Nextc.keyword To
b.keyword Stepd.a control variable name



22.A For...Next loop with a beginning value of 1, an ending value of 25, and a step value of 3 will execute ____ times.
a.3c.9
b.8d.25



23.How many times will the following loop execute?
For intCount = 10 To 16 Step 2
‘Body of Loop
Next
a.3c.6
b.4d.7



24.How many times will the following loop execute?
For intCount = 10 To 1 Step -2
‘Body of loop
Next
a.4c.9
b.5d.10






25.What will be the value of the variable intTotalCount when the following code is executed?
For intOuterCount = 1 to 5
For intInnerCount = 1 to 4
intTotalCount +=1
Next
Next
a.4c.9
b.5d.20
__________________
Powered by Yahoo!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 01-13-2008, 08:22 PM
YahooHoo
 
Join Date: Jan 2008
Posts: 2
Default

While I certainly could answer all of these questions, your best bet would be to work it out for yourself and then to simply try each of them out in VB itself. You'll have better retention for the exam, if you've worked through each guess you got wrong.

It would not take very long to do that either, .5 - 1 hours total for the 25 questions.
__________________
Powered by Yahoo!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
visual basic questions

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Sitemap
Jobs by Location: Advertising and Marketing Jobs - IT Software Jobs - Walk-in Jobs - BPO Jobs - Government Jobs - Sales / BD Jobs - Tele Communication Jobs App Programming - Network Admin

Jobs By Location: Jobs in Bangalore - Jobs In India - Jobs in Delhi - Jobs in Hyderabad - Jobs in Kochi - Jobs in Mumbai - Jobs in Trivandrum - Jobs in pune - Jobs in Jonida - Jobs in Chennai - Jobs in Coimbator

Jobs Type: Full Time Jobs - Part Time Jobs
Latest Jobs - Accounting Jobs - Engineering Jobs - IT Jobs - Walkins - How to Face Interview - HR Round Tips - Career Info - Guide For Freshers - Apply for Jobs - Future Studies - Jobs Forums - Freshers IT Software Salary Details


All times are GMT +6.5. The time now is 05:13 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
FreshersHome.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62