Dot Net Architecture And Program Set 1
On This Page
This set of Dot Net Architecture and Program Multiple Choice Questions & Answers (MCQs) focuses on Dot Net Architecture And Program Set 1
Q1 | The Visual Basic Code Editor will automatically detect certain types of errors as you are entering code.
- true
- false
Q2 | Keywords are also referred to as reserved words.
- true
- false
Q3 | The divide-and-conquer-method of problem solving breaks a problem into large, general pieces first, then refines each piece until the problem is manageable.
- true
- false
Q4 | Visual Basic responds to events using which of the following?
- a code procedure
- an event procedure
- a form procedure
- a property
Q5 | When the user clicks a button, _________ is triggered.
- an event
- a method
- a setting
- a property
Q6 | What property of controls tells the order they receive the focus when the tab key is pressed during run time?
- focus order
- focus number
- tab index
- control order
Q7 | Sizing Handles make it very easy to resize virtually any control when developing applications with Visual Basic. When working in the Form Designer, how are these sizing handles displayed?
- a rectangle with 4 arrows, one in each corner, around your control.
- a 3-d outline around your control.
- a rectangle with small squares around your control.
- none of the above.
Q8 | The Properties window plays an important role in the development of Visual Basic applications. It is mainly used
- to change how objects look and feel.
- when opening programs stored on a hard drive.
- to allow the developer to graphically design program components.
- to set program related options like program name, program location, etc.
Q9 | When creating a new application in Visual Basic, you are asked to supply a name for the program. If you do not specify a name, a default name is XXXXX XXXXX is this default name?
- wapplication followed by a number.
- application followed by a number.
- windowsapplication.
- windowsapplication followed by a number.
Q10 | Which of the properties in a control’s list of properties is used to give the control a meaningful name?
- text
- contextmenu
- controlname
- name
Q11 | An algorithm is defined as:
- a mathematical formula that solves a problem.
- a tempo for classical music played in a coda.
- a logical sequence of steps that solve a problem.
- a tool that designs computer programs and draws the user interface.
Q12 | A variable declared inside an event procedure is said to have local scope
- true
- false
Q13 | A variable declared outside of an event procedure is said to have class-level scope.
- true
- false
Q14 | Option Explicit requires you to declare every variable before its use.
- true
- false
Q15 | The value returned by InputBox is a string.
- true
- false
Q16 | What is the correct statement when declaring and assigning the value of 100 to an Integer variable called numPeople
- dim numpeople =
- dim numpeople = int(100)
- numpeople = 100
- dim numpeople as integer = 100
Q17 | Which of the following arithmetic operations has the highest level of precedence?
- + –
- * /
- ^ exponentiation
- ( )
Q18 | What value will be assigned to the numeric variable x when the following statement is executed? x = 2 + 3 * 4
- 20
- 14
- 92
- 234
Q19 | Which of the following is a valid name for a variable?
- two_one
- 2one
- two one
- two.one
Q20 | Keywords in Visual Basic are words that
- should be used when naming variables.
- are used to name controls, such as textbox1, command2, etc.
- have special meaning and should not be used when naming variables.
- are used as prefixes for control names (such as txt, btn, lbl, and lst).
Q21 | To continue a long statement on another line, use:
- an underscore character.
- an ampersand character.
- ctrl + enter.
- a space followed by an underscore character.
Q22 | What is the proper syntax when using a message dialog box?
- messagebox.show(“hi there”, “hi”)
- messagebox.show(hi there, hi)
- messagebox.show “hi there”, “hi”
- messagebox.show hi there, hi
Q23 | What will be the output of the following statement? txtBox.Text = FormatCurrency(1234.567)
- $1234.567
- 1,234.57
- $1234.57
- $1,234.57
Q24 | The following lines of code are correct. If age >= 13 And < 20 Then txtOutput.Text = “You are a teenager.” End If
- true
- false
Q25 | Given that x = 7, y = 2, and z = 4, the following If block will display “TRUE”. If (x > y) Or (y > z) Then txtBox.Text = “TRUE” End If
- true
- false