Unit 1 Introduction to.net Platform Q: 1 Answer in short. 1. Which three main components are available in.net framework? 2. List any two new features added in.net framework 4.0 which is not available in earlier version. 3. Which code is generated through different language compiler? 4. What is basic requirement of main() in console application? 5. What is default value for Boolean and Long data type in visual basic language? 6. List two benefits of CIL. 7. What is role of assembly manifest? 8. Which three building blocks are available in.net platform? 9. What is role of base class library? 10. Give any two differences between namespace and.net assembly? 11. Which component of.net framework does manage garbage collection? 12. What happen when Option Strict On sets in module and implementing narrowing conversion? 13. What happen when Option Strict On sets in module and implementing widening conversion? 14. In which situation module cannot be set as Startup object? Q: 2 Answer following questions in detail. 1. Explain.NET framework along with diagram. 2. Which file contains assembly metadata? Explain that file in details with all its information. 3. CLS can be viewed as a subset of the full functionality defined by the CTS. Give justification. 4. Write at least four benefit provided by runtime. 5. Discuss language runtime with diagram. 6. State the relationship between CLR, CTS, CLS and BCL. 7. How language run time is used to execute member? Draw diagram for compilation process. 8. Create a console application to demonstrate working with intrinsic data types available in visual basic language. 9. Create a console application to demonstrate narrowing and widening type conversion. 10. Which component of.net framework does provide language integrity? Explain that component with diagram. Q: 3 Select the most appropriate answers from the given options. 1. Which of the following information is contained in the assembly manifest? a. Files b. Identity c. Security Permissions d. All of the above 2. Any project that compiles to an.exe or.dll files produces an assembly in.net. a. True b. False 3. is the shortcut key to run application in Visual Studio. Mr. Hiren Patel, Mr. Vivek Fumakia & Ms. Jayshri Patil Page 1
a. F5 b. Alt +F5 c. F6 d. Ctrl + F5 4. operator is not valid for matching equal number. a. = b. <= c. == d. >= 5. What is range for Sbyte data type? a. -128 to 127 b. -127 to 128 c. 0 to 255 d. 0 to 256 6. Which of the following statements is correct about managed code? a. Managed code is the code that is compiled by the JIT compilers. b. Managed code is the code where resources are Garbage Collected. c. Managed code is the code that runs on top of Windows. d. Managed code is the code that is written to target the services of the CLR. 7. Which of the following is use to convert one data type in to another. a. CBool b. CType c. ConvertTo d. CInt 8. should be first line in VB program. a. Option statement b. Import Statement c. Module d. Class 9. What is range for Ushort data type? a. -32768 to 32767 b. 0 to 65535 c. -128 to 127 d. 0 to 256 Unit 2 - VB.NET Programming Construct Mr. Hiren Patel, Mr. Vivek Fumakia & Ms. Jayshri Patil Page 2
Q: 1 Answer in short. 1. Which parameter modifier contains named arguments that allow invoking a method by specifying parameter values in any order? 2. In which parameter modifier operator := is used? 3. Which member of module is exposed as shared member? 4. Which component of.net framework is not creatable? 5. Write variation available in main() method. 6. What is return value of GetCommandLineArgs() method? 7. Write a code to define and initialize multi-dimensional array. 8. Which character constant represents a tab character? 9. Using which class, insertion is done on the existing string object? 10. Which varieties of multidimensional arrays supports by VB 2010? 11. Give one difference of upper bound and lower bound of array. 12. What is purpose of System.Enum class? 13. Which iteration construct allowing iterates overall items with in array? 14. List four exceptions which are define by.net base class library. Q: 2 Answer following questions in detail. 1. Which class has MachineName property? Explain four other properties of that class. 2. Specify use of GetCommandLineArgs() with example. 3. Explain.NET numerical format character in tabular format with their usage. 4. Write all intrinsic data type with meaning, range and system type of VB 2012. 5. Explain out parameter along with example. 6. Relate optional parameter and named parameter. 7. Write a VB code to demonstrate basic manipulation of StringBuilder class. 8. Explain difference between simple array and System.Array using VB code. 9. Can we define custom constructor in structure? If yes, give example. If no, give justification. 10. Differentiate user errors, bugs and exception. 11. Which properties are used to configure state of an exception? Write a VB code to demonstrate any four properties. 12. Write a VB code to start notepad application. 13. Explain with example TargetSite and StackTrace property of System.Exception class. 14. Explain system level exception. Q: 3 Select the most appropriate answers from the given options. 1. Which of the following represents a carriage return/line feed character combination? a. CrLf(VbCrLf) b. Lf(VbLf) c. NewLine(VbNewLine) d. Cr(VbCr) 2. Which of the following represents a backspace character? a. Lf(VbLf) Mr. Hiren Patel, Mr. Vivek Fumakia & Ms. Jayshri Patil Page 3
b. CrLf(VbCrLf) c. Tab(vbTab) d. None of above 3. What is range of Sbyte data type? a. 128 to 127 b. -256 to 257 c. 0 to 127 d. 0 to 65535 4. Which of the following is decision construct? a. For Each/In Loop statement b. If/Then/Else statement c. While Loop d. AND Operator 5. operator is not valid for matching equal number. a. = b. <= c. == d. >= 6. method is used to insert a string in given string. a. Get () b. Insert () c. InsertAll () d. InsertInto () 7. Which of the following is/are reference type? a. Byte b. String c. Object d. Long 8. Which of the following is used to get length of array? a. Length b. Length () c. Size d. Size () 9. Which method is used to copy elements from the source array into the destination array? Mr. Hiren Patel, Mr. Vivek Fumakia & Ms. Jayshri Patil Page 4
a. Copy () b. CopyTo () c. Move d. All of the above 10. Where is reference type allocated? a. Stack b. Queue c. Heap d. Array Unit 3 Object Oriented Programming Q: 1 Answer in short. 15. Which keyword is used to define constant data? Write syntax to initialize constant. 16. How VB language does hides an object s internal implementation details and preserves data integrity? 17. Define Overridable member. 18. Which access modifiers can be applied to nested types? 19. Enlist all access modifiers. 20. How it can be said that public access modifier has no access restriction? 21. Which class cannot be extended by another class? 22. Define MustOverride method. 23. Give one difference between Private and Protected access modifier. 24. Write syntax to declare automatic properties. 25. Which part of property needs to modify for restricting user to change the value of property? 26. When object initialize syntax can be used? 27. Give example to inherit multiple base classes. 28. Which concept of VB can be used to access current class instance? 29. What can be done to prevent inheritance from occurring? 30. Which concept is used if we want to promote code reuse? Q: 2 Answer following questions in detail. 11. List and explain any two constraints to define Shared constructors. 12. Explain encapsulation using traditional Accessors and Mutators with example. 13. Automatic properties don t support ReadOnly and WriteOnly. Give justification. 14. Compare and contrast Overridable an Overrides keywords. 15. How encapsulation can implement using.net properties? Give example. 16. Relate Contentment and Delegation along with example. 17. Elaborate Abstract class with its advantage and disadvantage. 18. Explain System.Object.Finalize class along with example. 19. List out the methods of System.Object Class. Explain any two of them along with example. 20. Define Garbage Collector(GC). List at least four properties and four methods available in GC. Mr. Hiren Patel, Mr. Vivek Fumakia & Ms. Jayshri Patil Page 5
Q: 3 Select the most appropriate answers from the given options. 1. Containment/delegation model known as relationship or aggregation. A. Is - a B. Has - a C. None of Above 2. Overridable members are available in. A. Base class B. Child class C. Interface D. None of above 3. must be invoked directly from the class level, rather than from an object reference. A. Shared data member B. Shared member function C. Shared properties D. All of above 4. A given class may define only a single Shared constructor. A. True B. False 5. Which of the following is false regarding Shared constructor? A. A Shared constructor should not be declared as Public and cannot take any parameters. B. A Shared constructor executes exactly one time, regardless of how many objects of the type are created. C. The Shared constructor executes before any instance-level constructors. D. Shared constructor can be overloaded. 6. A type can be accessed from other external assemblies. A. Public B. Private C. Protected D. Friend 7. To define abstract, class can be declared as. A. NonInheritable B. MustInherit C. Partial D. None of above 8. is simply the act of adding public members to the containing class that makes use of the contained object s functionality. A. Containment B. Delegation C. Inheritance D. None of above Mr. Hiren Patel, Mr. Vivek Fumakia & Ms. Jayshri Patil Page 6
Unit 4 - Advanced VB Programming Constructs Q: 1 Answer in short. 1. Define Interface. 2. List any two limitations of traditional abstract class. 3. What is the use of MemberwiseClone() method? 4. Enlist key implemented interfaces for ArrayList and SortedList. 5. Write use of ICloneable interface. 6. List out issues with non-generic collections. 7. What is use of ICollection(Of T)? 8. Which interface is used to compare objects in System.Generic? 9. Which are key interfaces supported by following classes of System.Collections.Generic? Queue(Of T) IDictionary(Of TKey, TValue) SortedSet(Of T) Stack(Of T) LinkedList(Of T) 10. What is the use of Nothing keyword? 11. List out any four member of System.MulticastDelegate/System.Delegate. 12. What should be return by CompareTo() method? Q: 2 Answer following questions in detail. 15. Write a short note on designing interface hierarchy. 16. Write steps for defining own custom interface. 17. Explain interface as a parameter and return value. 18. Is it possible to create array of interface? If yes, explain along with example. 19. Write a note on sending object state notification using delegates. 20. List and explain used classes of System.Collection. 21. Enlist the role of generic type parameters. 22. List and describe key interfaces of System.Collections.Generic. 23. When IDictionary(Of TKey, TValue) class of System.Collections.Generic can be used? Give example 24. List at least four member of Queue (Of T) generic class with example. 25. Is it possible to create custom generic structure/class and custom generic methods? If yes, explain along with example. 26. Write down rules for derived types in Generic base class to ensure the nature of the generic abstraction. 27. List out at least four benefit of generic container over their non-generic container. Q: 3 Select the most appropriate answers from the given options. 1. Interfaces are polymorphic. D. Highly E. Low Mr. Hiren Patel, Mr. Vivek Fumakia & Ms. Jayshri Patil Page 7
F. None of Above 2. Which keyword is used to define custom interface? E. Implement F. Implements G. Interface H. Interfaces 3. represents a dynamically sized collection of objects listed in sequential order E. HashTable F. Queue G. Stack H. ArrayList 4. represents a collection of key/value pairs that are organized based on the hash code. C. HashTable D. ArrayList E. Queue F. Stack 5. From following which is not key implemented interface for Queue? E. ICollection F. IEnumerable G. ICloneable H. IDictionary 6. Which interface enables foreach style iteration of collection items? E. IEnumerator F. IDictionary G. IList H. IEnumerable 7. used to defines a way to compare to objects. E. ICollection(Of T) F. IComparer(Of T) G. ICompare(Of T) H. IComparable(Of T) 8. provides the base interface for the abstraction of sets. E. ISet(Of T) F. ISets(Of T) G. IEnumerator(Of T) H. IListSet(Of T) 9. From following which is not key implemented interface for SortedDictionary(Of TKey, TValue) generic class? A. ICollection(Of T) B. IDictionary(Of TKey, TValue) C. IEnumerable(Of T) Mr. Hiren Patel, Mr. Vivek Fumakia & Ms. Jayshri Patil Page 8
D. IList(Of T) 10. Which of the following class represents a doubly linked list? A. ILinkedList(Of T) B. DoubleLinkedList(Of T) C. LinkedList(Of T) D. List(Of T) 11. should returns the object at the beginning of the Queue(Of T) without removing it. A. Dequeue () B. Enqueue () C. Peek () D. Queue () 12. shared method adds a method to the list maintained by the delegate. A. Combine() B. Target C. Remove() e. RemoveAll() Mr. Hiren Patel, Mr. Vivek Fumakia & Ms. Jayshri Patil Page 9