VB.Net MCQ Quiz Hub

VB.Net Mcq Question Set 10

Choose a topic to test your knowledge and improve your VB.Net skills

1. If the elements in two arrays are related by their subscripts, the arrays are called as ______arrays.




2. The strStates and strCapitals arrays are parallel arrays. If Illinois is stored in the second element in the strStates array, where is its capital (Springfield) stored?




3. A __________ resembles a table.




4. We can determine number of elements in two-dimensional array by ______




5. The _____________ in a two-dimensional array specifies the elements row and column position.




6. Each element in a two-dimensional array is identified by a unique combination of _______




7. The subscripts are _________ than the row and column in which the element is located.




8. To traverse two dimensional array you require ________________ loops.




9. Which of the following declares a two-dimensional array that has three rows and four columns?




10. The intSales array is declared as follows: Dim intSales(,) As Integer = {{1000, 1200, 900, 500, 2000}, {350, 600, 700, 800, 100}}. The intSales(1, 3) = intSales(1, 3) + 10 statement will ______




11. Variables declared using a structure is known as __________




12. You refer to the structure variable by its ______




13. You refer to the member variable by preceding its name with the name of the _______ in which it is defined.




14. Programmers use _____ when they need to pass a group of related variables.




15. Programmers use ________ when they need to store related items in an array, even though the members have different data type.




16. Which statement is used to create a user-defined data type?




17. A structure variable named address contains a member variable named strStreet. Which of the following statements assigns the string “Maple” to the member variable?




18. An array is declared using the statement Dim inventory(4) As Product. Which of the following statements assigns the number 100 to the intQuantity member variable contained in the last array element?




19. An application uses a structure named Employee. Which of the following statements declares a five-element array of Employee structure variables?




20. In most applications, the code to define a user-defined data type is entered in the form’s.




21. Reading data from a file is referred to as _______




22. Writing data to a file is referred to as ________




23. The file to which data is write is referred to as _______




24. Files that are read by computer are called as ______




25. Files that read and write in consecutive order are known as _____




26. Files that contain lines of text are known as _______




27. Programmers refer to the sequence of character as _________




28. In Visual Basic, you use _________ to write a stream of characters.




29. __________ is used to open a sequential access file for output.




30. ________ is used to open the sequential file access for append.




31. ______ is a programming language that allows the programmer to use objects to accomplish his goals.




32. Each object used in a object oriented programming is created from ______




33. An object is the ________ of the class.




34. A _________ variable is the instance of the String class.




35. _____ are the characteristics that describe the object.




36. _____ are operations that the object is capable of performing.




37. ______ are the actions to which an object can respond.




38. An object’s _______________ include methods and events.




39. A class ______________ all the behavior and attributes of an object.




40. Objects are ____________ from a class.




41. Class is defined using _______




42. The convention is to use _____ case for classname.




43. Objects are represented by _____________ variables and ______________ properties.




44. The behavior are represented by _______




45. After defining a class you can instantiate one or more _____




46. The computer creates the object when it processes the statement containing ____________ keyword.




47. The class statement groups _______________ item in one unit.




48. The name of the class file ends with ______




49. A constructor is a ______




50. Which of the following statements is false?