What do you Understand by Event-Driven Programming in VB Write Down a few Events of a VB form. | SolveZone
whatssapp

Product Detail

What do you Understand by Event-Driven Programming in VB Write Down a few Events of a VB form.

University  Amity blog
Service Type Assignment
Course
Semester
Short Name or Subject Code Visual Basic
Product of Assignment (Amity blog)
Pattern Section A,B,C Wise
Price
Click to view price

Visual Basic


SECTION A
1. What do you understand by event-driven programming in VB? Write down a few events of a VB form.

2. What is the difference between public-private and static What is the difference between public-private?

3. What is the purpose of MsgBox? Discuss the difference between MsgBox and InputBox.

 
4. Explain the IDE (Integrated Development Environment) in Visual Basic and Describe its components       


 
5. What is the function of file, directory and drive list box? Explain the properties and methods of these boxes.


7. What are the control statements available in visual Basic? Explain to them using suitable examples.


8. What is List Box and Combo Box? When and how is information placed inside in List box and Combo box?

lstSubject.addItem txtSubject.text


SECTION B

Case Study
There is a project for “ABC Café” where the user enters the number of items, selects the coffee type from option buttons, and selects the checkbox for takeout   items                                                                     

Question

Q.No 1: Where the user will enter the number of items?


 
Q.No 2: How many options can be selected in the checkbox?

 
Q.No 3: Which control is used for calculations?


SECTION C
The location of the form on the desktop during execution is determined by the:
 (A): Form Designer window
 (B): Project Explorer window
 (C): Context Menu
 (D): Form Layout window

The Object Browser:
 (A): Displays the command buttons and textboxes, etc.
 (B): Shows frequently used shortcuts as objects
 (C): Is a Context Menu
 (D): Displays the object libraries and their combinations of data and code

The first procedure-oriented language was:
 (A): FORTRAN
 (B): BASIC
 (C): COBOL
 (D): ADA

Object Oriented languages:
 (A): Are procedural languages
 (B): Are task oriented
 (C): Are based on actions happening to objects
 (D): Are natural language techniques

Visual Basic projects are identified by a:
 (A): “.vbp” suffix
 (B): “.mak” suffix
 (C): “.vbg” suffix
 (D): All the above

To run an application in Visual Basic:
 (A): Click on the start button (blue arrow)
 (B): Use the File Menu
 (C): Use the Project Menu to select Run
 (D): None of the above

Which language is not a true object-oriented programming language?
 (A): VB.NET
 (B): VB 6
 (C): C++
 (D): C#

For which task does the IDE provide multiple ways to accomplish the task?
 (A): Putting a control on the form
 (B): Running the program
 (C): Activating the property window for a control
 (D): All of the above.

Which are the standard prefixes for the text and label controls respectively?
 (A): tex and lbl
 (B): tex and lab
 (C): txb and lbl
 (D): txb and lab

Which task is accomplished in the Code editor?
 (A): Adding forms to the project
 (B): Adding controls to the form
 (C): Adding event procedures to the form
 (D): Both a and b.

Which does the solution explorer not display?
 (A): Form Properties
 (B): Reference Folder
 (C): Form File
 (D): Assemble File

Which are the standard prefixes for the Button and Combo box controls respectively?
 (A): btn and chb
 (B): btn and cbo
 (C): bto and chb
 (D): bto and cbo

The Tick event is found only in which object?
 (A): Form
 (B): Button
 (C): TextBox
 (D): Timer

Which of the following objects is a container?
 (A): MaskedTextBox
 (B): GroupBox
 (C): RadioButton
 (D): RichTextBox

In NameTextBox.Text, _______.
 (A): The property is NameTextBox
 (B): The property is Text
 (C): The object is Name
 (D): The object is Text

If you want to display text that cannot be modified by the user, use the _______.
 (A): TextBox control
 (B): Label control
 (C): Caption control
 (D): MaskedTextBox control

Assume that you are designing a form and it will be necessary for the user to type in his name. You should use a _____________ for inputting the user's name
 (A): Textbox
 (B): Label
 (C): Button
 (D): CheckBox

The application name always appears in the: Solve by www.solvezone.in contact for more details at 8882309876.
 (A): Properties window
 (B): Intermediate window
 (C): Code window
 (D): Title bar

The color of a button is
 (A): One of its properties
 (B): Not updateable
 (C): Defined in the project
 (D): Defined in the Intermediate window
Code is
 (A): Updateable in the form editor
 (B): Instructions
 (C): Seldom used
 (D): An object

Controls are
 (A): Code
 (B): Part of the menus
 (C): Rules
 (D): Objects

Visual Basic forms are identified by a
 (A): “.frm” suffix
 (B): “.mak” suffix
 (C): “.for” suffix
 (D): A special icon

The Tick event is found only in which object?
 (A): Button
 (B): TextBox
 (C): Label
 (D): Timer

The Rnd statement will generate a(n):
 (A): integer value between 0.01 and 1.00.
 (B): decimal value between 0.0 and 1.0.
 (C): integer value between 0.0 and 1.0.
 (D): decimal value between 0.0 and up to 1.0, but not including 1.0.

Which is a valid statement for declaring a variable?
 (A): Const Form As Integer
 (B): Const myForm As Integer
 (C): Dim Form As Integer
 (D): Dim myForm As Integer

The left side of an assignment statement will hold:
 (A): a variable.
 (B): an object property.
 (C): an expression.
 (D): Both a and b.

The Activated event is found only in which object?
 (A): Form
 (B): Button
 (C): TextBox
 (D): Label

Which action will raise an exception?
 (A): Dividing by zero
 (B): Assigning the string “Hi” to an integer variable
 (C): Accessing an empty CD drive.
 (D): All of the above

Which value for the ComboBox DropDownStyle property allows a user to type in data?
 (A): DropDown
 (B): DropDownSimple
 (C): DropDownList
 (D): Both a and b.

When a condition in an If…Then statements tests true:
 (A): the next Else statement is activated.
 (B): the next If statement is activated.
 (C): the next Then statement is activated.
 (D): the End If statement is activated.

How many times is the test expression of a Select Case evaluated?
 (A): 0
 (B): 1
 (C): 2
 (D): Once for each case

Do...Loop is an iterative statement because it:
 (A): selects a block of statements to run.
 (B): runs the same block of statements repeatedly.
 (C): selects a block of statements and runs it repeatedly.
 (D): selects a block of statements and runs it a specified number of times.

What is the standard prefix for the name of a CheckBox?
 (A): compile error.
 (B): logic error.
 (C): runtime error.
 (D): superficial error.

The Date data type does not hold which type of information
 (A): Seconds
 (B): Hours
 (C): Days
 (D): Quarters

The scope of a variable refers to:
 (A): the length of the variable.
 (B): the name of the variable.
 (C): the accessibility of the variable.
 (D): the datatype of the variable.

The name of a constant
 (A): must both begin with a letter and be all upper case
 (B): does not have to begin with a letter but must be all upper case
 (C): must begin with a letter but can be upper or lower case
 (D): does not have to begin with a letter and be either upper or lower case
The left side of an assignment statement will hold
 (A): a variable
 (B): an object property
 (C): an expression
 (D): Both a and b

Which function will return the monthly payments of a loan?
 (A): Pay (Rate, PV, Nper)
 (B): Pmt (Rate, Nper, PV)
 (C): FV (Rate, Nper, Pmt)
 (D): FV (Rate, Nper, PV)

Which function returns the numbers represented in the string “$56.7”?
 (A): Abs
 (B): CDbl
 (C): Int
 (D): Rnd

Which function displays a pop-up window?
 (A): MsgBox
 (B): label
 (C): TextBox
 (D): combo box