I recently have to take a college vb.net test and i cannot figure a few problems out...if you could in anyway shape or form help me u would be saving my grade...so please anyone with knowledge on my subject post what you can
Thanks~
1. In vb.net of the 3 forms of IF statement, which one doesnt require an END IF
2. Write a statement that will generate random #'s from the set 2,3,4,5,6,7
3. What is the Value of NumVar when following code is executed?
Dim Numvar as integer
NumVar=inStr("Now is time for all good men","time for")
4. Which is true?
"Cat" = "cat"
"Cat" < "cat"
"Cat" > "cat"
Relational operators are only valid with # values
5. Write the code: Write a statement that will print desired text in a ListBox lstDisplay depandant on the user's input for intChoice. The choices are 1 or 2,"Buckle my shoe." 3 or 4,"Shut the Door." 5 or 6,"Pick up sticks." 7 or 8,"Close the gate."
Catch is you must use differnet methods in each case tested. IntChoice has a valid value.
6. Write the code: Write the code for Input Box that will represent and accept a value for IntChoice above and then test it for a valid value...If invalid, worn the user then force them to repeat input
Hint: need MsgboxStyle.OkOnly
~ thanks for any help that you may wish to post ~
Thanks~
1. In vb.net of the 3 forms of IF statement, which one doesnt require an END IF
2. Write a statement that will generate random #'s from the set 2,3,4,5,6,7
3. What is the Value of NumVar when following code is executed?
Dim Numvar as integer
NumVar=inStr("Now is time for all good men","time for")
4. Which is true?
"Cat" = "cat"
"Cat" < "cat"
"Cat" > "cat"
Relational operators are only valid with # values
5. Write the code: Write a statement that will print desired text in a ListBox lstDisplay depandant on the user's input for intChoice. The choices are 1 or 2,"Buckle my shoe." 3 or 4,"Shut the Door." 5 or 6,"Pick up sticks." 7 or 8,"Close the gate."
Catch is you must use differnet methods in each case tested. IntChoice has a valid value.
6. Write the code: Write the code for Input Box that will represent and accept a value for IntChoice above and then test it for a valid value...If invalid, worn the user then force them to repeat input
Hint: need MsgboxStyle.OkOnly
~ thanks for any help that you may wish to post ~