FEDT VB - NET Unit-2 Assignment
FEDT VB - NET Unit-2 Assignment
IT)
1.
Programme:
2. Date of BCA Semester:of classes:
commencement III 23rd Paper
July’ Code:
2007 205 Academic Year: 2014-
Practical Questions
Q2. Write a Program to find all the Armstrong Numbers within a given range.
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?
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?
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
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
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