Visual Basic Programming Fundamentals

Questions covering Visual Basic programming concepts including functions, procedures, controls, forms, properties, events, and IDE features

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Sqr() returns

  1. a string
  2. a variable
  3. square root of a number
  4. square of a number
Question 2 Multiple Choice (Single Answer)

Which procedure does not return a value?

  1. Private procedure
  2. Form procedure
  3. Sub procedure
  4. Property procedure
Question 3 Multiple Choice (Single Answer)

Event is related to

  1. intelligence
  2. request
  3. response
  4. none of these
Question 4 Multiple Choice (Single Answer)

AddItem is the method of

  1. command button
  2. list
  3. image box
  4. label
Question 5 Multiple Choice (Single Answer)

The statements executed before the condition are tested in

  1. Do While……..loop
  2. Do loop While…………
  3. For……….Next loop
  4. For Each …………Next Loop
Question 6 Multiple Choice (Single Answer)

In CmdSave_Click()

  1. CmdSave() is the procedure
  2. CmdSave_Click() is the procedure
  3. Press is an event
  4. None of these
Question 7 Multiple Choice (Single Answer)

The flow of a code can be controlled by

  1. conditional statements
  2. loop structures
  3. methods
  4. procedures
Question 8 Multiple Choice (Single Answer)

A set of instructions that work as a unit is known as

  1. procedure
  2. event
  3. statement
  4. none of these
Question 9 Multiple Choice (Single Answer)

Which of the following procedures returns a value?

  1. Sub procedure
  2. General procedure
  3. Function procedure
  4. Event procedure
Question 10 Multiple Choice (Single Answer)

Function key F5 is used for

  1. debugging
  2. running
  3. exiting
  4. none of the above
Question 11 Multiple Choice (Single Answer)

' indicates the

  1. code line
  2. comment line
  3. loop statement
  4. none of these
Question 12 Multiple Choice (Single Answer)

Which of the following is not a forms method?

  1. Point
  2. Refresh
  3. Pset
  4. Open
Question 13 Multiple Choice (Single Answer)

Which of the following is not a type of a border?

  1. Fixed single
  2. Sizable
  3. Fixed Tool window
  4. Double border
Question 14 Multiple Choice (Single Answer)

For displaying 'code window', use keys

  1. Alt+C
  2. Alt+C+D
  3. Alt+V+C
  4. Ctrl+C+S
Question 15 Multiple Choice (Single Answer)

What event is triggered when a form is resized?

  1. Size
  2. Resize
  3. Sizechange
  4. Resizewindows
Question 16 Multiple Choice (Single Answer)

Which of the following is not a property of Text Box?

  1. Alignment
  2. Appearance
  3. Container
  4. Background colour
Question 17 Multiple Choice (Single Answer)

Which one of the following is not a working mode of Visual Basic?

  1. Help mode
  2. Design mode
  3. Break mode
  4. Run mode
Question 18 Multiple Choice (Single Answer)

Which of the following is the default form which Visual Basic includes initially with any project?

  1. Form10
  2. Forms
  3. Form1
  4. Form0
Question 19 Multiple Choice (Single Answer)

Which of the following properties is used to fill the back ground colour of the form?

  1. Background Color
  2. Back Color
  3. BehindColor
  4. None of these
Question 20 Multiple Choice (Single Answer)

An EXE is created with

  1. project name
  2. form name
  3. control name
  4. event name