Visual Basic (VB) solved MCQs

1 of 2

1. ____ icon is not available on a toolbox.

a. form

B. label

c. text box

d. check box

2. Remark statement starts with _____

a. *

B. /

c. `

d. /*

3. Object name can be maximum of _____ characters.

a. 255

B. 30

c. 40

d. 256

4. Prefix used for a Check box is _____

a. chk

B. che

c. chc

d. chb

5. Prefix used for a Command Button is _____

a. com

B. cob

c. cmm

d. cmd

6. Prefix used for a Form is _____

a. for

B. frm

c. fra

d. fom

7. Prefix used for a Frame is _____

a. fra

B. frm

c. fre

d. fam

8. Prefix used for a Text Box is _____

a. txt

B. tex

c. teb

d. tbo

9. Which of the following is not a valid property of a Form?

a. name

B. caption

c. text

d. forecolor

10. Which of the following is not a valid property of a Label?

a. name

B. caption

c. text

d. forecolor

11. Which of the following is not a valid property of a Text Box?

a. name

B. caption

c. text

d. forecolor

12. of the following is not a valid property of a Command Button?

a. name

B. caption

c. text

d. forecolor

13. Which of the following is not a valid property of a Check Box?

a. name

B. caption

c. text

d. enabled

14. Which of the following is not a valid property of an Option Button?

a. name

B. caption

c. text

d. enabled

15. Which of the following is not a valid property of a Command Button?

a. default

B. caption

c. text

d. cancel

16. If ______ property of a Command button is set to True then by pressing ‘Esc’ key fromthe keyboard the Command get selected automatically

a. default

B. caption

c. cancel

d. tabindex

17. If ______ property of a Command button is set to True then by pressing ‘Enter’ key fromthe keyboard the Command get selected automatically

a. default

B. caption

c. cancel

d. tabindex

18. ______ property determines whether the focus stops on a control when a Tab key ispressed.

a. default

B. tabstop

c. cancel

d. tabindex

19. ______ property determines the order of the focus to move as the Tab key is pressed.

a. default

B. tabstop

c. cancel

d. tabindex

20. To define access key, ___ symbol is used before the character you want as access keywhile setting caption property of a Command Button.

a. $

B. %

c. ^

d. &

21. Which arithmetic operator is used for integer division.

a. /

B. \\

c. %

d.

22. Which arithmetic operator is used for exponentiation.

a. /

B. \\

c. %

d. ^

23. What is the result of VAL(“1,234”)?

a. 1

B. 0

c. 1234

d. 123

24. What is the result of VAL(“1234”)?

a. 1

B. 0

c. 123

d. 1234

25. What is the result of VAL(“A123”)?

a. 1

B. 0

c. 1234

d. 123

Tags

Question and answers in Visual Basic (VB),

Visual Basic (VB) Multiple choice questions and answers,

Important MCQ of Visual Basic (VB),

Solved MCQs for Visual Basic (VB),

Visual Basic (VB) MCQ with answers PDF download

Topic wise solved MCQ's
Jump to set ->

Each set has max 25 mcqs

Check your understanding of
Visual Basic (VB)

Visual Basic (VB) [set-1] solved mcqs PDF download

Share