Assignment Bca Visual Basic
Assignment Bca Visual Basic
PreviousNext
Course: B.Sc-(IT)
Semester: Semester-II
Blog Titlle: Amity Solved Assignment BSC IT 2nd Sem for Visual Basic
Question:
Basic
Assignment A
1 What do you understand by event driven programming? List and explain a
. supported by Visual Basic Objects.
2 What are the different data types supported by Visual Basic ? How they ca
. their uses.
3 Give examples of passing arguments by value and passing arguments by re
. procedures.
4 Give difference between arrays and dynamic arrays. How they can be creat
. Syntax.
5 .What are the advantage of ADO Data Control ? Explain about different ob
6 Write a small hand calculator. Use command buttons for the number keys,
. etc. Use a label to display the results.
Assignment B
CASE STUDY
Write a program using dynamic arrays to record the high temperatures of l
all of them with the average of high temperatures. Use
1.
three buttons on the screen, one to enter the temperature, second to display
from program.
2.Develop a WordPad application using MDI forms, having basic features of
Write an event procedure to automate the billing system of a supermarket.
3.tables, forms, controls and menu design (if any). Make
assumptions, wherever necessary.
Assignment C
1. VB is considered to be a
(A) First-generation language.
(B) Package.
(C) Higher-level language.
(D) Machine language
5. Press F4 to
(A) Run a program.
(B) Display the Properties window.
(C) Display the Solution Explorer window.
(D) Terminate a program.
7. When a VB program is running, the user can move from one control to
by pressing the
(A) Tab key.
(B) Space bar.
(C) Enter key.
(D) Backspace key.
10. The Font dialog box allows you to select different Fonts, their style
special effects. How do you bring up this Font dialog box?
(A) In the Properties window, click the ellipsis (…) on the right side of the setti
(B) Double-click the textbox, and select Font Property.
(C) Right-click the textbox, and select Font Property.
(D) None of the above.
11. What keyboard shortcut allows you to run the current program?
(A) F4
(B) F5
(C) F6
(D) F7
12. Which property is available for most controls that allows you to hide/
by setting the property or by setting it during runtime via code?
(A) Clear
(B) Refresh
(C) Visible
(D) View-Control
13. When the user clicks a button, _________ is triggered.
(A) An event
(B) A method
(C) A setting
(D) A property
14. Select the code statement that will set the current text color to Red.
(A) txtBox.ForeColor = "Red"
(B) txtBox.ForeColor = Red
(C) txtBox.ForeColor = Color.Red
(D) txtBox.ForeColor = "Color.Red"
16. Which of the following statements sets the words on a button to "Sub
(A) btnButton.Name = "Submit Button"
(B) btnButton.Text = Submit Button
(C) btnButton.Text = " Submit Button"
(D) btnButton = " Submit Button "
18. What is the correct statement when declaring and assigning the value
called commission?
(A) Dim commission = 100
(B) Dim commission = Int(100)
(C) Commission = 100
(D) Dim commission As Integer = 100
19. Which of the following statements removes all text from lstBox?
(A) lstBox.Clear()
(B) lstBox.Items.Clear()
(C) lstBox.Text.Clear()
(D) lstBox.Items.Add("")
20. Which statement will assign the words •gHello World•h to a text bo
(A) txtBox.Text = Hello & World
(B) txtBox.Text = "Hello " & World
(C) txtBox.Text = Hello & " World"
(D) txtBox.Text = "Hello" & " World"
22. What will be displayed when the following lines are executed?
Dim x As Double = 2
´x = 3
txtBox.Text = CStr(x)
(A) 3
(B) 0
(C) 2
(D) None of the above
24. Which one of the following is true about arguments and parameters?
(A) Arguments appear in call statements; parameters appear in Sub statemen
(B) Parameters appear in call statements; arguments appear in Sub statemen
(C) They are synonymous terms.
(D) They are completely unrelated in a program.
25. Items appearing in the parentheses of a call statement are known as_
(A) Call variables
(B) Call strings
(C) Parameters
(D) Arguments
27. Assume that A, B, and C are conditions, with A being true, B being
the truth value of each of the following conditions.
(a) A And (Not B) = False
(b) A And Not (B Or C) = False
(c) Not (A And B) = False
31. Suppose a variable is to tell whether or not the user wants further in
for such a variable is
(A) Boolean
(B) Integer
(C) Double
(D) String
37. The ________ Forms are forms from where user can switch to any ot
without closing it.
a. Modeless
b. Modal
c. Unique
d. None of the above