Quiznetik

Visual Basic (VB) | Set 1

1. ____ icon is not available on a toolbox.

Correct : A. form

2. Remark statement starts with _____

Correct : C. `

3. Object name can be maximum of _____ characters.

Correct : C. 40

4. Prefix used for a Check box is _____

Correct : A. chk

5. Prefix used for a Command Button is _____

Correct : D. cmd

6. Prefix used for a Form is _____

Correct : B. frm

7. Prefix used for a Frame is _____

Correct : A. fra

8. Prefix used for a Text Box is _____

Correct : A. txt

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

Correct : C. text

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

Correct : C. text

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

Correct : B. caption

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

Correct : C. text

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

Correct : C. text

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

Correct : C. text

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

Correct : C. text

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

Correct : C. cancel

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

Correct : A. default

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

Correct : B. tabstop

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

Correct : D. tabindex

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

Correct : D. &

21. Which arithmetic operator is used for integer division.

Correct : B. \\

22. Which arithmetic operator is used for exponentiation.

Correct : D. ^

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

Correct : A. 1

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

Correct : D. 1234

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

Correct : B. 0

26. What is the result of VAL(“15/08/2020”)?

Correct : A. 15

27. Which of the following is an invalid Data Type in VB?

Correct : D. smallint

28. vbRed is ____ .

Correct : D. intrinsic constant

29. Which of the following is not a valid logical operator in VB.

Correct : C. xor

30. ______ control can be used to accept input from the user.

Correct : C. text box

31. Which of the following is a non-executable statement in VB?

Correct : B. dim

32. The constant which are readymade in VB are called as _______ constant.

Correct : D. intrinsic

33. The constant which are defined by user is known as _____ constant.

Correct : C. named

34. Which of the following function is invalid in VB?

Correct : B. lower( )

35. ____ function is used to convert a text value to a numeric value.

Correct : C. val( )

36. Option buttons are also called as _______ buttons.

Correct : B. radio

37. _____ can be used in an application to give user True/False or Yes/No Option

Correct : B. check box

38. _____ allows the user to select any number of options at a time from a group.

Correct : B. check box

39. _____ is used to display headings and messages.

Correct : D. label

40. _______ property of a Text Box is True then user cannot type anything in a Text Box.

Correct : B. locked

41. _______ statement cannot be used to create a loop.

Correct : D. if – else

42. For I = 10 To 20 …. Next I, will execute a loop _____ time/s.

Correct : B. 11

43. For I = 1 To 20 Step 2…. Next I, will execute a loop _____ time/s.

Correct : A. 10

44. For I = 10 To 1…. Next I, will execute a loop _____ time/s.

Correct : C. 0

45. For I = 10 To 1 Step -1…. Next I, will execute a loop _____ time/s.

Correct : A. 10