On This Page

This set of Dot Net Architecture and Program Multiple Choice Questions & Answers (MCQs) focuses on Dot Net Architecture And Program Set 2

Q1 | Asc(“A”) is 65. What is Asc(“C”)?
Q2 | Asc(“A”) is 65. What is displayed by txtBox.Text = Chr(65) & “BC”?
Q3 | Which of the following expressions has as its value the words “Hello World? surrounded by quotation marks?
Q4 | Which of the following is true?
Q5 | Which of the following is a valid Visual Basic conditional statement?
Q6 | The three main logical operators are ________, _________, and ________.
Q7 | Which value for x would make the following condition true: x >= 5
Q8 | Which value for x would make the following condition true: Not (x >= 5)
Q9 | Which value for x would make the following condition true: (x >= 5) And (x <= 6)
Q10 | Constructs in which an If block is contained inside another If block are called:
Q11 | One may use an If block within a Select Case block.
Q12 | One may use a Select Case block within an If block.
Q13 | Select Case choices are determined by the value of an expression called a selector.
Q14 | Items in the value list must evaluate to a literal of the same type as the selector
Q15 | A single Case statement can contain multiple values.
Q16 | You can specify a range of values in a Case clause by using the To keyword.
Q17 | A variable declared inside a Select Case block cannot be referred to by code outside of the block.
Q18 | Suppose that the selector in a Select Case block is the string variable myVar. Which of the following is NOT a valid Case clause?
Q19 | Different items appearing in the same value list of a Select Case block must be separated by a ____________.
Q20 | Which Case clause will be true whenever the value of the selector in a Select Case block is between 1 and 5 or is 8?
Q21 | Which Case clause will be true whenever the value of the selector in a Select Case block is greater than or equal to 7?
Q22 | What type of items are valid for use in the value list of a Case clause?
Q23 | What happens to a variable declared locally inside a Sub procedure after the procedure terminates?
Q24 | Suppose a variable is passed by reference to a parameter of a Sub procedure, and the parameter has its value changed inside the Sub procedure. What will the value of the variable be after the Sub procedure has executed?
Q25 | Suppose a variable is passed by value to a parameter of a Sub procedure, and the parameter has its value changed inside the Sub procedure. What will the value of the variable be after the Sub procedure has executed?