Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Visual Basic Expert

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.

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.


27. 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)

28. 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.

29. 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.

30. 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

31. 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

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


34. Which of these is used to open an database ?
(v) (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

Visual Basic, Programming

  • Category:- Visual Basic
  • Reference No.:- M91175385

Have any Question?


Related Questions in Visual Basic

Pitch amp game design documentthe assignment is about

Pitch & Game Design Document The assignment is about educational driver for teenagers Assignment Brief: In groups you will: - present a pitch and produce a one sheet - provide a demonstration of your game - produce a hig ...

Please show how to do the belowvisual basic net application

Please show how to do the below: Visual Basic .NET Application - Coding Exercise 1 (Exercise 13, Zak, 2016, p. 347) For this coding exercise, write the Visual Basic code for a pretest loop that uses an Integer variable n ...

Assignment frans virtual fruit standfrans virtual fruit

Assignment: Fran's Virtual Fruit Stand Fran's Virtual Fruit Stand is an online store that sells several types of dried fruit. Based on the needs of Fran's Virtual Fruit stand, you must design a flowchart using Visual Log ...

Assignment virtual storeuse the concepts and scenario from

Assignment: Virtual Store Use the concepts and scenario from Assignment 1 to help "Your" Virtual Business to increase the functionality of its online shopping cart. When a customer checks out, the shopping cart must stor ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As