Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
3Activity
0 of .
Results for:
No results containing your search query
P. 1
Vb Questions

Vb Questions

Ratings:

4.0

(1)
|Views: 140|Likes:
Published by api-3817447

More info:

Published by: api-3817447 on Oct 18, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

03/18/2014

pdf

text

original

VB Questions (General)
1.

Dim x, y as integer. What is x and y data type?
X as variant and y as integer.
2.

What is the size of the variant data type?

The Variant data type has a numeric storage size of 16
bytes and can contain data up to the range of a
Decimal, or a character storage size of 22 bytes (plus
string length), and can store any character text.

3.
What is the return type of Instr and Strcmp?

Instr \u2013 integer (Numeric position)
Strcmp - integer ( if both the string are equal they
result = 0)
Strcmp (Str1, Str2, Comparetype)
Comparing mode = 0 \u2013 Binary Comparing
1 \u2013 Textual Comparing

4.
What is the max size allowed for Msgbox Prompt and

Input Box?
1024
5.

Max label caption length. \u2013
2,048
6.

Max Text box length \u2013
32,000
7.

Max Control Names length \u2013
255.
8.

Extension in Visual Basic
Frm, bas, cls, res, vbx, ocx, frx, vbp, exe
9.

What is frx?

When some controls like grid and third party control placed in our application then it will create frx in run time.

10.

Name some date function
Dateadd(), Datediff(), Datepart(), Cdate()
11.

what will be the result for
15/4 = 3.75 and 15\4 = 3
12.

What is keyword used to compare to objects?
ISOperator \u2013 Returns Boolean.
13.

How many procedures are in VB?
2. function and sub procedures (Ask what is the diff.
Between them?)
Function Will return value but a sub procedure
wont return values\u2026
14.
Where will we give the option explicit keyword and
for what?
In the general declarations section. To trap
undeclared variables.
15.
What is Friend Variable?
Scope sharable between projects.
16.
What is binding? What are types of binding?

Assigning variable with defined memory space.
Late Binding - Memory size is allotted in later stage.
Ex:- Dim x as object
Early Binding - Memory size is allotted while
declaring itself.
New Key word is important.
Ex:- Dim x as New Object

17.
What is the difference between Property Get, Set
and Let.

Set \u2013 Value is assigned to ActiveX Object from the
form.
Let \u2013 Value is retried to ActiveX Object from the
form.
Get- Assigns the value of an expression to a variable
or property.

18.
What is Mask Edit and why it is used?
Control. Restricted data input as well as formatted
data output.
19.
Drag and Drop state numbers and functions.

State 0 \u2013 Source control is being dragged with the
range of a target.
1 \u2013 Out of the range of a target.
2 \u2013 One positon in the target to another.

20.
What are the type of validation available in VB?
Field, Form
21.
With in the form we want to check all the text box
control are typed or not? How?
For each currentcontrol in controls
if typeof currentcontrol is TextBox then
end if
next
22.
What is the result of Null * Any value = 0 (Zero).
23.
What is control array and How many we can have it
with in the form?
Group of control share the same name. Max 32, 767.
24.
What is the default model of the form? And what is
it number?

VbModaless \u2013 0 (Zero) \u2013 We can able to place another
window above this form.
25.

Suppose from form1 to form2 object property
settings will arise to ?

Invalid procedure call or argument (Run time error \u2013
5)
26.

What is the diff between the Std and Class Module?

Std Global with in the project. Cls Global through out the all project only thing is we want to set the type lib. Class Modules can be Instantiated.

27.
Different type of Instantiation?

Private \u2013 Only for the Specific Module.
Public not creatable \u2013 Private & Public
Multi Use - Variable we have to declare.
Single Use \u2013 Not possible through dll.
Global Multiuse \u2013 Have variable not Required to
Declare.
Global Single Use - Only for exe.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->