0% found this document useful (0 votes)
8 views

FEDT VB - NET Unit-2 Assignment

Uploaded by

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

FEDT VB - NET Unit-2 Assignment

Uploaded by

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

ANKIT VERMA (Asst. Prof.

IT)

Institute of Innovation In Technology and Management, New Delhi

Assignment for (Front End Design Tool VB.Net) Unit II

1.
Programme:
2. Date of BCA Semester:of classes:
commencement III 23rd Paper
July’ Code:
2007 205 Academic Year: 2014-

Practical Questions

Q1. Write a Program to calculate XN/N!

Q2. Write a Program to find all the Armstrong Numbers within a given range.

Q3. Implement Stack using Array and Functions.

Q4. Implement Queue using Array and Functions.

Q5. Implement SelectionSort using Array and Procedure.

Multiple Choice Questions

Q.1) An array is a set of variables. Each individual variable is called _______.


A. a subscript
B. an element
C. a subscripted variable
D. an index
Q.2) The individual variables in an array are accessed by their _______, which is their position
in the array.
A. index
B. ListCount property
C. subscript
D. ItemCount property
Q.3) How many elements are contained in the array created with the following code?

Dim strEmployee (25) As String


A. 0 (the code is incorrect to create an array)
B. 24
C. 25
D. 26

Q.4) The _______ method is used to send a line of text to the graphics page.
A. DrawString
B. WriteLine
C. String
NAME_____________ ROLL NO________________
ANKIT VERMA (Asst. Prof. IT)

D. Print

Q.5) What method is used to make all of the text in a text box appear selected?
A. SelectText
B. SelectedIndex
C. SelectedItem
D. SelectAll
Q.6) Skip to the next iteration of a Do loop with the _______ statement.
A. Exit For
B. Exit Do
C. Continue For
D. Continue Do
Q.7) Terminate a For/Next loop with the _______ statement.
A. Exit
B. ExitFor
C. ExitLoop
D. Continue
Q.8) What will be the value of indexInteger after execution of these statements?

For indexInteger = 1 to 10 Step 2

valueInteger = += indexInteger

Next indexInteger
A. 10
B. 11
C. 13
D. 14
Q.9) What will be the value of valueInteger after execution of these statements?

For indexInteger = 1 to 10 Step 2

valueInteger += indexInteger

Next indexInteger
A. 20
B. 25
C. 36
D. None of the above.
Q.10) What is the value of indexInteger after the loop below is executed?

For indexInteger = 4 to 1

'Statements in loop

Next indexInteger

NAME_____________ ROLL NO________________


ANKIT VERMA (Asst. Prof. IT)

A. 0
B. 1
C. 4
D. 5
Q.11) How many times will the statements inside this For/Next loop be executed?

For indexInteger = 4 to 1

'Statements in loop

Next indexInteger
A. 0
B. 3
C. 4
D. 5
Q.12) What is the value of indexInteger after the code in the loop below is completed?

For indexInteger = 1 to 10

'Statements in loop

Next indexInteger

A. 0
B. 1
C. 10
D. 11
Q.13) When does a For/Next statement terminate iteration?

A. When executing the For statement, the counter must be greater than the final value
B. When executing the For statement, the counter must be the same as the final value
C. When executing the Next statement, the counter must be greater than the final value

D. When executing the Next statement, the counter must be the same as the final value

Q.14) How many times will the statements inside this For/Next loop be executed?

For indexInteger = 1 to 10

'Statements in loop

Next indexInteger

A. 2
B. 4

NAME_____________ ROLL NO________________


ANKIT VERMA (Asst. Prof. IT)

C. 5
D. 10
Q.15) The statements inside of a Do/Loop may never be executed if _______.
A. the terminating condition is at the top of the loop and it is True the first time it is tested
the terminating condition is at the bottom of the loop and it is True the first time it is
B.
tested
C. Both answers A and B would cause the statements in the loop not to be executed
D. The statements in the loop will always be executed
Q.16) When is the counter incremented in a FOR/NEXT statement?
A. In the NEXT statement
B. In the FOR statement
C. In the Exit For statement
D. When the statements in the loop are executed
Q.17) The process of repeating a series of instructions is called ______________.
A. repetition
B. reiteration
C. looping
D. initializing
Q.18) Which text box event occurs each time the user types a character into a text box?
A. Click event
B. GotFocus event
C. Enter event
D. TextChanged event
Q.19) Which text box event occurs when a text box gets the focus?
A. Click event
B. Enter event
C. Leave event
D. TextChanged event

Q.20) If an exception is thrown and the message, “Index was outside the bounds of the array.”
displays, this indicates _______.
A. the array is completely full of data
the subscript is a value greater than the number of elements declared in the array's Dim
B.
statement
the subscript has reached a value lower than the number of elements declared in the
C.
array's Dim statement

D. The answer could be B or C

NAME_____________ ROLL NO________________

You might also like