Visual Basic Flashcards

1
Q

Which keyword refers the parent of the current object

A. Me
B. Super
C. Mybase
D. This

A

C. Mybase

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
2)	
Private Sub Display_Click() 
Dim DA As String 
DA="RAMANUJA RAO  P#ASM-1#Asthana Mandapam#123" 
astrsplititems = Split(DA, "#")
For intX = 0 To UBound(astrsplititems)
List1.Items.Add "Item(" & intX & "): " & astrsplititems(intX)
Next
Close #1
End Sub
Click the Display Button Output is
 	A.	
item(0): RAMANUJA RAO P
item(1): ASM-1
item(2): Asthana Mandapam
item(3): 123
 	B.	
RAMANUJA RAO P
ASM-1
Asthana Mandapam
123
 	C.	
item(0): RAMANUJA RAO P#
item(1): ASM-1#
item(2): Asthana Mandapam#
item(3): 123
 	D.	
item(0): RAMANUJA RAO P
item(1): #ASM-1
item(2): #Asthana Mandapam
item(3): #123
A
A.	
item(0): RAMANUJA RAO P
item(1): ASM-1
item(2): Asthana Mandapam
item(3): 123
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

3)
How are the parameters referenced by default in VB.NET?

A. By Object
B. By Val
C. By Ref
D. None

A

B. By Val

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

4)
Consider the emp table having columns empno, ename Which of eth following SQL query fetches empno that occur more than twice in the emp table

 	A.	
select count(*) from emp group by empno having count(*) >2;

B.

select empno, count() from emp having count() >2;

C.

select empno, count() from emp where count() >2;

D.

select empno, count() from emp group by empno having count() >2;

A

D.

select empno, count() from emp group by empno having count() >2;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

5)
How to add the item to combo box if it names cmb

A. cmb.Items

name


B. cmb.Items.Add (

name

)
C. cmb.Add (

name

)
D. None

A

B. cmb.Items.Add (“name”)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
6)	
Which class is used to run the EXE application file in VB.NET

A. Process
B. Application
C. Exe
D. Execute

A

A. Process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

7)
System databases stores server specific configuration information, including authorized users, databases, system configuration settings and remote servers ?

A. model db
B. master db
C. resource db
D. msdb db

A

B. master db

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

8)
It is a comprehensive, object-oriented collection of reusable types that you can use to develop applications.

A. Class Library


B. Properties Window
C. Solution Explorer


D. Windows Form Designer

A

A. Class Library

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

9)
It is collection of services and classes designed to simplify the application development.

A. .NET Framework


B. Class Library
C. Solution Explorer


D. Visual Basic .NET

A

A. .NET Framework

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

10)
It is used for building Windows and Web applications.

A. .NET Framework
B. Object Oriented Programming


C. Visual Basic .NET


D. Windows Form Designer

A

C. Visual Basic .NET

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

11)
It translates high level language instructions into machine code, line by line, as the program is being run.

A. compiler
B. interpreter


C. language


D. translator

A

B. interpreter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

12)
It is the window to use in adding Windows Form.

A. Properties Window
B. Solution Explorer


C. Toolbox
D. Windows Form Designer

A

B. Solution Explorer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

13)
The process of writing, testing and maintaining computer programs.

A. computer programming


B. high level language programming


C. machine programming
D. object oriented programming

A

A. computer programming

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

14)
A window that lists the solution name, the project name and all the forms used in the project.

A. Project Window
B. Properties Window
C. Solution Explorer


D. Windows Form Designer

A

C. Solution Explorer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

15)
It is the starting point of your Visual Basic .NET applications.

A. Button
B. Form


C. Label
D. Toolbox

A

B. Form

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

16)
It displays the properties that are associated with an object.

A. Project Window
B. Properties Window


C. Solution Explorer
D. Windows Form Designer

A

B. Properties Window

17
Q

17)
The control that is used to display text in other parts of the application.

A. Button
B. CheckBox
C. Label


D. Text

A

C. Label

18
Q

18)
It is an artificial language that can be used to control the behavior of a computer machine.

A. assembly language
B. basic language
C. machine language


D. programming language

A

D. programming language

19
Q

19)
The Java and Visual Basic .NET belong to this type of programming language.

A. assembly language
B. machine language
C. high level programming language


D. object oriented programming language

A

D. object oriented programming language

20
Q

20)
It allows the user to design the user interface for an application.

A. Class Library
B. Solution Explorer


C. ToolBox
D. Windows Form Designer

A

D. Windows Form Designer

21
Q

21)
The control that is used to accept input from the user.

A. Button


B. Label
C. TextBox


D. ToolBox

A

C. TextBox

22
Q

22)
The control that is used to display text in other parts of the application.

A. Button
B. CheckBox
C. Label


D. TextBox

A

C. Label

23
Q

23)
Which event is activated when a RadioButton is selected?

A. Checked
B. CheckedChanged


C. Selected


D. SelectedChanged

A

B. CheckedChanged

24
Q
24)	
Which of the following statement declares the operator symbol, operands, and code that define an operator procedure on a class or structure?

A. Sub
B. Declare


C. Operator


D. Property

A

C. Operator

25
Q

25)
Which is an optional element of an event procedure?

A. End Sub


B. Handles
C. Statements


D. Sub

A

C. Statements

26
Q

26)
Which of the following block of VB.NET identifies a block of code for which particular exceptions will be activated?

A. Try


B. Catch


C. Finally
D. Throw

A

A. Try

27
Q

27)
What happens when a parameter in a procedure is declared ByVal?

A. Only arguments of numeric data types are allowed.
B. A reference to the argument is sent to the procedure.
C. A copy of the argument is sent to the procedure.
D. All of the above.

A

C. A copy of the argument is sent to the procedure.