Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
20 views2 pages

VB 2

vb2

Uploaded by

vinayak rockzz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views2 pages

VB 2

vb2

Uploaded by

vinayak rockzz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Part - ll Fill in the blanks

1. To save the current record to a database ……….. method is used.


2. ……….. function returns the string converted to lower-case.
3. By default, all VB graphic measurements are in ………..
4. ……….. function is used to display current date & time in VB.
5. While creating a menu using a menu editor, we can use a ………..... symbol to make hotkey character.
6. The storage size of Boolean is ……….. Bytes.
7. ……….. control raises an event at regular intervals.
8. Each if statement must be terminated by ………..statement.
9. ……….. loop always execute atleast once.
10. ……….. statements are used to declare variables.
11. ……….. window lists all the forms which make up the VB project
12. ……………… function will display a message box where the user can enter a value or a message in the form of text.
13. Each select case expression must be terminated by ……………… statement
14. ……………… function removes both leading and trailing blank spaces from a string.
15. …………..is a flag at a given point in code, where program execution will be suspended.
16. The ……..function returns the length of a string.
17. The ………… identifier in VB is similar to “this” identifier in C and JAVA
18. …………… function returns the string converted to lower-case.
19. ……………… is a set of sequentially indexed elements having the same type of data
20. Parameters are also called as ……………
21. To display text which cannot be modified by the user, use the ……………… control
22. To load graphics on a control at runtime, we have to use the function………..

Part - llI State whether true or false

1. In VB we can declare variables Explicitly only


2. Boolean is not a data type in VB .
3. Visual Basic is object oriented programming language
4. Each if block must be terminated by wend statement.
5. A procedure can never return a value.
6. To hide a control, visible property is set to false
7. Visual Basic comment starts with “.
8. Parameters, also called Arguments, are variables that can be passed into a subroutine
9. Trim() is used to remove the space from both side of string

Part - lV Give expansion for the following

1. ODBC
2. OLE
3. ADO
4. IDE
5. MSDN
Part - V Answer the following

1. Write the VB program to print the months when the number of month is entered through
textbox (eg: January=1) Using Select……….. Case
2. Explain any three mouse events in VB.
3. Write down the syntax of For….Next loop and explain with an example to print even numbers
less than 20.
4. Any five string functions in VB
5. Write the VB program to print ten natural numbers using While ……….Wend
6. Explain the difference between ByRef and ByVal.
7. Write a VB program to find the factorial of N number.
8. Write a note on Code window, Property window and Project explorer window
9. Explain three loop structures with examples.
10. Write VB program will show if the person is eligible to vote. A person who is eligible to vote
must be older than or equal to 18 years old.
11. Write VB program to allow the user to input two integer values and then the program print the
results of adding, subtracting, multiplying, and dividing among the two values.
12. Write VB program to allow the user to input two float values and then the program adds the
two values together.
13. Explain Operators in VB
14. Write VB program to generate a random number between 1 and 6

You might also like