Dot Net Architecture and Program solved MCQs

1 of 3

1. The Visual Basic Code Editor will automatically detect certain types of errors as you are entering code.

a. true

B. false

2. Keywords are also referred to as reserved words.

a. true

B. false

3. 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.

a. true

B. false

4. Visual Basic responds to events using which of the following?

a. a code procedure

B. an event procedure

c. a form procedure

d. a property

5. When the user clicks a button, _________ is triggered.

a. an event

B. a method

c. a setting

d. a property

6. What property of controls tells the order they receive the focus when the tab key is pressed during run time?

a. focus order

B. focus number

c. tab index

d. control order

7. 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. a rectangle with 4 arrows, one in each corner, around your control.

B. a 3-d outline around your control.

c. a rectangle with small squares around your control.

d. none of the above.

8. The Properties window plays an important role in the development of Visual Basic applications. It is mainly used

a. to change how objects look and feel.

B. when opening programs stored on a hard drive.

c. to allow the developer to graphically design program components.

d. to set program related options like program name, program location, etc.

9. 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?

a. wapplication followed by a number.

B. application followed by a number.

c. windowsapplication.

d. windowsapplication followed by a number.

10. Which of the properties in a control’s list of properties is used to give the control a meaningful name?

a. text

B. contextmenu

c. controlname

d. name

11. An algorithm is defined as:

a. a mathematical formula that solves a problem.

B. a tempo for classical music played in a coda.

c. a logical sequence of steps that solve a problem.

d. a tool that designs computer programs and draws the user interface.

12. A variable declared inside an event procedure is said to have local scope

a. true

B. false

13. A variable declared outside of an event procedure is said to have class-level scope.

a. true

B. false

14. Option Explicit requires you to declare every variable before its use.

a. true

B. false

15. The value returned by InputBox is a string.

a. true

B. false

16. What is the correct statement when declaring and assigning the value of 100 to an Integer variable called numPeople

a. dim numpeople =

B. dim numpeople = int(100)

c. numpeople = 100

d. dim numpeople as integer = 100

17. Which of the following arithmetic operations has the highest level of precedence?

a. + –

B. * /

c. ^ exponentiation

d. ( )

18. What value will be assigned to the numeric variable x when the following statement is executed? x = 2 + 3 * 4

a. 20

B. 14

c. 92

d. 234

19. Which of the following is a valid name for a variable?

a. two_one

B. 2one

c. two one


20. Keywords in Visual Basic are words that

a. should be used when naming variables.

B. are used to name controls, such as textbox1, command2, etc.

c. have special meaning and should not be used when naming variables.

d. are used as prefixes for control names (such as txt, btn, lbl, and lst).

21. To continue a long statement on another line, use:

a. an underscore character.

B. an ampersand character.

c. ctrl + enter.

d. a space followed by an underscore character.

22. What is the proper syntax when using a message dialog box?

a.“hi there”, “hi”)

B. there, hi)

c. “hi there”, “hi”

d. hi there, hi

23. What will be the output of the following statement? txtBox.Text = FormatCurrency(1234.567)

a. $1234.567

B. 1,234.57

c. $1234.57

d. $1,234.57

24. The following lines of code are correct. If age >= 13 And < 20 Then txtOutput.Text = “You are a teenager.” End If

a. true

B. false

25. 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

a. true

B. false


Question and answers in Dot Net Architecture and Program,

Dot Net Architecture and Program Multiple choice questions and answers,

Important MCQ of Dot Net Architecture and Program,

Solved MCQs for Dot Net Architecture and Program,

Dot Net Architecture and Program MCQ with answers PDF download

Jump to set ->

Each set has max 25 mcqs

Check your understanding of
Dot Net Architecture and Program

Dot Net Architecture and Program [set-1] solved mcqs PDF download