Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

some questions in VB.NET

can you guys help me with these questions, I'm a high school student and I have to take a test which is 250 questions, 100 points extra credit, im almost done with everything but I only have these 21 questions that I don't know.. :(

True/Fale:

1. If, If/Else, and For are examples of selections structures

2. Pseudocode uses standardized symbols

3. VB.NET evaluates comparison operators from left to right in the procedure

4. Plus sign cannot be used to concatenate strings

5. True Xor True is false

6. And is more efficient than AndAlso
7. The repetition structure is also referred to as a loop

8. In a posttest loop, the evaluation occurs after the instructions within the loop are processed

9. The Pmt is a Visual Basic .NET funtion used to calculate a periodic payment on either a loan or an investment.

10. When you want the loop's instructions to be processed a specific number of times, you use the For...Next Statement

11. Nesting a For...Next statement within another For...ext statement is a syntax error

12. You use the Exit Loop to exit the Do...Loop statement prematurely

13. You can use the StartsWith method to access any number of characters in a string

14. To insert a value at the beginning of a string, you use the number 1 as athe startIndex of the Insert method.

15. You can tell if a variable is passed by value or by reference by looking at the call statement

16. The data type of the expression in the Return statement must agree with the data type specified in the As datatype clause in the procedure header

17. To write a specific number of spaces to a file, you can use the Space function

18. To close a file already opened to read from, you use the Close method of the StreamWrite object

19. you can access a description of the exceptioon that occured using the synatx variable.Message

20. Variables in an array are stored in consecutive memory locations in the computer's internal memory.

21. When declaring an array of Strings, each element is automatically initialized using the keyword Empty.
[2238 byte] By [memee4eva] at [2007-11-11 8:35:21]
# 1 Re: some questions in VB.NET
There are two different methods you can use to figure out the answers. First, search the MSDN documentation (http://msdn.microsoft.com). Second, try writing some code and testing it out.

For example, try writing a Call statement. Then look at the Call statement and see if there is anything in it that identifies whether the values are being passed ByRef or ByVal. Or, just look at the documentation for the Call (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vblr7/html/vastmcall.asp) statement.
pclement at 2007-11-11 21:47:11 >