What do you understand by event driven programming

Assignment Help Visual Basic Programming
Reference no: EM13723174

Part A

Q1. What do you understand by event driven programming? List and explain about some of the events supported by Visual Basic Objects.

Q2. What are the different data types supported by Visual Basic ? How they can be declared? Also mention their uses.

Q3. Give examples of passing arguments by value and passing arguments by reference in Visual Basic procedures.

Q4. Give difference between arrays and dynamic arrays. How they can be created in Visual Basic? Give Syntax.

Q5. What are the advantage of ADO Data Control ? Explain about different objects of ADO model.

Part B

Q1. Write a program using dynamic arrays to record the high temperatures of last seven days and to display all of them with the average of high temperatures. Use three buttons on the screen, one to enter the temperature, second to display the result and third to exit from program.

Q2. Write a small hand calculator. Use command buttons for the number keys, the Enter key and the + key etc. Use a label to display the results.

Q3. Develop a WordPad application using MDI forms, having basic features of File and Edit.

Q4. Write an event procedure to automate the billing system of a supermarket. Give the details of database tables, forms, controls and menu design (if any). Make assumptions, wherever necessary.

Part C

1. Assume that A, B, and C are conditions, with A being true, B being true, and C being false. Give the truth value of each of the following conditions.

(a) A And (Not B)
(b) A And Not (B Or C)
(c) Not (A And B)

2. Consider the following two sets of code.

(a) If (a = 1) And (b = 1) Then (b) If a = 1 Then txtBox.Text = "Hi" If b = 1 Then
End If txtBox.Text = "Hi"
End If
End If
Which one of the following statements is true?

(A) (a) and (b) will produce different outputs.
(B) (b) is not a valid set of VB instructions.
(C) The two sets of code are equivalent, but (a) is preferred to (b) because (a) is clearer.
(D) The condition statement in (a) is not valid.

3. What will be displayed by the following program when the button is clicked?

Private Sub btnDisplay_Click(...) Handles btnDisplay.Click
Dim a, b, c, x As Double
a = 5
b = 3
c = 6
If a > c Then
x = 1
Else
If b > c Then
x = 2
Else
x = 3
txtBox.Text = CStr(x)
End If
End If
End Sub
(A) 1
(B) 2
(C) 3
(D) None of the above.

4. If the loop is to be executed at least once, the condition should be checked at the
__________.
(A) top of the loop
(B) middle of the loop
(C) bottom of the loop
(D) Nothing should be checked

5. Suppose a variable is to tell whether or not the user wants further information. A good data type for such a variable is
(A) Boolean
(B) Integer
(C) Double
(D) String

6. VB uses an object called ____________ to hold a table.
(A) Record
(B) Recordset
(C) file
(D) table

7. Which of these is used to open an database ?
(√) (A) Set dbMyDB = OpenDatabase("MyDatabase.mdb")
(B) dbMyDB = OpenDatabase("MyDatabase.mdb")
(C) Set dbMyDB = OpenDatabase None of these
(D) None of these
d. None of the above

Reference no: EM13723174

Questions Cloud

Describe the role of the vendor : Describe the role of the vendor for each of the three phases of the purchasing life cycle, Why is an accurate and complete requirements definition especially critical when using the SDLC "waterfall" approach
Strategic approach to human resource management : Question 1: Assess Southwest Airlines' strategic approach to human resource (HR) management. Determine how its strategy increases organizational effectiveness.
Measure and reward compliance : Evaluate ways that an organization can measure and reward compliance. Determine if organizations that measure and reward compliance are more or less likely to experience lawsuits.
Compare the role of women in society : Compare the role of women in society from the beginning to the end of the course. Pick major civilizations in each period to compare, from early civilization to post-classical & early modern.
What do you understand by event driven programming : What do you understand by event driven programming? List and explain about some of the events supported by Visual Basic Objects - what are the different data types supported by Visual Basic ? How they can be declared? Also mention their uses.
Multinational internet retailer : Prepare a draft document that defines the new organization and addresses the following considerations: What type of structure will be best suited to a multinational Internet retailer? Why?
Memo on their financial annual statement is the world bank : Write a memo on their financial annual statement is the world bank or any other good organization.
Prepare sound promotional and distribution strategy : Creating A Sound Promotional and Distribution Strategy, In this Assignment, you will be using the PowerPoint narration tool to create your own audiovisual presentation. Once you have done this, you can put this skill on your resume
Multimillion-dollar service organization : As the new human resource manager of a multimillion-dollar service organization, you have been provided with a job description for new responsibilities.

Reviews

Write a Review

Visual Basic Programming Questions & Answers

  Vv boards system

VV Boards System - To demonstrate completing and delivering a prototype RAD system using OOPs capabilities of VB.NET. CIS 3145 Business Application Development with Visual Basic

  Write a program using dynamic arrays

Write a program using dynamic arrays to record the high temperatures of last seven days and to display all of them with the average of high temperatures.

  Write visual logic program to accept number til negative

Write a Visual Logic program which accepts a series of numbers, until the first negative value is entered. The maximum number of non-negative input values is 250.

  Help an elementary school student learn multiplication

Write a program that will help an elementary school student learn multiplication. Use a Random object to produce two positive one-digit integers. The program should prompt the user with a question, such as "How much is 6 times 7?"

  Arithmetic calculator application

Arithmetic Calculator Application - Write an application that allows the user to enter a series of numbers and manipulate them.

  Create a sub procedure that calculates and displays the next

A national Digital service provider would like you to create a Windows application that will display the global growth of smartphones. As of 2013, there 913 million smartphones worldwide.

  Program in basic which prompts user to input two integers

Write down the program by using Small Basic which prompts the user to input two integers: firstNum and secondNum (firstNum must be less than secondNum).

  To develop a visual basic console application

The aim of the assessment is to develop a Visual Basic console application that performs a number of mathematical functions. The mathematics package will be menu driven, i.e. a number of options will be displayed, and the user will be able to input w..

  Need help building a vwd website

Need help building a VWD website. This website may not go live. I have little progress as a family tragedy has impeded my time for school.

  Create a computer program that calculates the zero

Using Microsoft Visual Basic for Applications in Excel, create a computer program that calculates the zero(s) of the equation f(x)=e^(x)-10x=0 by using the inverse linear interpolation (regula falsi) method.

  Design for the gui application

Decide on an appropriate design for the GUI application which will be SELF Contained and allow the user to select and run the various calculations

  Visual basics program to calculate and display charges

Assume that no car parks for longer than 24 hours at a time. Write a visual basics program that calculates and displays the parking charges for each customer who parked a car in this garage.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd