Uka Tarsadia University MCA ( 3rd Semester)/M.Sc.(CA) (1st Semester) Course : / Visual Programming Question Bank

Similar documents
2. A GUI A. uses buttons, menus, and icons B. should be easy for a user to manipulate C. both (a) and (b) D. stands for Graphic Use Interaction

Object-Oriented Programming

Course Hours

Objective of the Course: (Why the course?) Brief Course outline: (Main headings only) C# Question Bank Chapter1: Philosophy of.net

Object-Oriented Programming in C# (VS 2015)

Object-Oriented Programming in C# (VS 2012)

C# Programming in the.net Framework

Lecture 10 OOP and VB.Net

Learning to Program in Visual Basic 2005 Table of Contents

INTRODUCTION TO.NET. Domain of.net D.N.A. Architecture One Tier Two Tier Three Tier N-Tier THE COMMON LANGUAGE RUNTIME (C.L.R.)

VB.NET MOCK TEST VB.NET MOCK TEST I

Chapter 12. OOP: Creating Object- Oriented Programs. McGraw-Hill. Copyright 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved.

Hierarchical inheritance: Contains one base class and multiple derived classes of the same base class.

Department of Computer Applications

Introduction to Programming Using Java (98-388)

Microsoft Visual Basic 2005: Reloaded

UNIT 1. Introduction to Microsoft.NET framework and Basics of VB.Net

Darshan Institute of Engineering & Technology for Diploma Studies

Unit 4. Lesson 4.1. Managing Data. Data types. Introduction. Data type. Visual Basic 2008 Data types

C# Programming Syllabus

Module 4: Data Types and Variables

B. V. Patel Institute of Business Management, Computer & Information Technology, UTU

VB.NET MOCK TEST VB.NET MOCK TEST III

M4.1-R4: APPLICATION OF.NET TECHNOLOGY

DOT NET SYLLABUS FOR 6 MONTHS

Absolute C++ Walter Savitch

Microsoft. Microsoft Visual C# Step by Step. John Sharp

DOT NET Syllabus (6 Months)

Introduce C# as Object Oriented programming language. Explain, tokens,

Chapter 1 Getting Started

DC69 C# &.NET JUNE C# is a simple, modern, object oriented language derived from C++ and Java.

Advanced Object-Oriented Programming. 11 Features. C# Programming: From Problem Analysis to Program Design. 4th Edition

C# Programming: From Problem Analysis to Program Design. Fourth Edition

.NET-6Weeks Project Based Training

Arrays, Strings and Collections

Prerequisites: The student should have programming experience in a high-level language. ITCourseware, LLC Page 1. Object-Oriented Programming in C#

University of West Bohemia in Pilsen. Faculty of Applied Sciences. Department of Computer Science and Engineering DIPLOMA THESIS

PES INSTITUTE OF TECHNOLOGY

C#: framework overview and in-the-small features

CLASSES AND OBJECTS IN JAVA

Microsoft Visual Basic 2005: Reloaded

OVERVIEW ENVIRONMENT PROGRAM STRUCTURE BASIC SYNTAX DATA TYPES TYPE CONVERSION

INTERNAL ASSESSMENT TEST 1 ANSWER KEY

M. K. Institute Of Computer Studies, Bharuch SYBCA SEM IV VB.NET (Question Bank)

Introduction to Programming Microsoft.NET Applications with Visual Studio 2008 (C#)

.Net Technologies. Components of.net Framework

Weiss Chapter 1 terminology (parenthesized numbers are page numbers)

Oops known as object-oriented programming language system is the main feature of C# which further support the major features of oops including:

C++ Important Questions with Answers

Java Overview An introduction to the Java Programming Language

S.Sakthi Vinayagam Sr. AP/CSE, C.Arun AP/IT

Introduction... xxi. Chapter 1: Introducing Visual Basic In Depth... 2

CONTENTS. PART 1 Structured Programming 1. 1 Getting started 3. 2 Basic programming elements 17

PESIT- Bangalore South Campus Hosur Road (1km Before Electronic city) Bangalore

DOT NET COURSE BROCHURE

Question And Answer.

Dot Net Online Training

Glossary. For Introduction to Programming Using Python By Y. Daniel Liang

Contents. Figures. Tables. Examples. Foreword. Preface. 1 Basics of Java Programming 1. xix. xxi. xxiii. xxvii. xxix

OOPS Viva Questions. Object is termed as an instance of a class, and it has its own state, behavior and identity.

C#.Net. Course Contents. Course contents VT BizTalk. No exam, but laborations

Chapter 02 Building Multitier Programs with Classes

Learning C# 3.0. Jesse Liberty and Brian MacDonald O'REILLY. Beijing Cambridge Farnham Köln Sebastopol Taipei Tokyo

Chapter 12 Microsoft Assemblies. Software Architecture Microsoft Assemblies 1

MCSA Universal Windows Platform. A Success Guide to Prepare- Programming in C# edusum.com

Saikat Banerjee Page 1

C++\CLI. Jim Fawcett CSE687-OnLine Object Oriented Design Summer 2017

Appendix G: Writing Managed C++ Code for the.net Framework

Computer Science 4U Unit 1. Programming Concepts and Skills Modular Design

6: Arrays and Collections

RAJIV GANDHI COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF INFORMATION TECHNOLOGY OBJECT ORIENTED PROGRAMMING QUESTION BANK UNIT I 2 MARKS


DC69 C# &.NET DEC 2015

CHAPTER 1: INTRODUCTION TO THE IDE 3

Chapter 2. Building Multitier Programs with Classes The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill

M.C.A. (CRCS) (Sem.-IV) Examination May-2014 Paper: CCA Net Framework and C# Faculty Code: 003 Subject Code:

COPYRIGHTED MATERIAL. Contents. Part I: C# Fundamentals 1. Chapter 1: The.NET Framework 3. Chapter 2: Getting Started with Visual Studio

6: Arrays and Collections

MaanavaN.Com CS1203 OBJECT ORIENTED PROGRAMMING DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

Chapter 6 Introduction to Defining Classes

Computer Programming II C++ (830)

Fig 1.1.NET Framework Architecture Block Diagram

This tutorial has been prepared for the beginners to help them understand basics of c# Programming.

M Introduction to C# Programming with Microsoft.NET - 5 Day Course

Programming in Visual Basic with Microsoft Visual Studio 2010

UNIT 1 PART A PART B

Short Notes of CS201

Microsoft Visual C# Step by Step. John Sharp

VALLIAMMAI ENGINEERING COLLEGE

Object Oriented Programming with c++ Question Bank

Data Structures (list, dictionary, tuples, sets, strings)

CS201 - Introduction to Programming Glossary By

PROGRAMMING IN VISUAL BASIC WITH MICROSOFT VISUAL STUDIO Course: 10550A; Duration: 5 Days; Instructor-led

B.V Patel Institute of BMC & IT, UTU

Expert C++/CLI:.NET for Visual C++ Programmers

2609 : Introduction to C# Programming with Microsoft.NET

Very similar to Java C++ C-Based syntax (if, while, ) object base class no pointers, object parameters are references All code in classes

Chapter 5 Object-Oriented Programming

Object Oriented Programming. Solved MCQs - Part 2

02 Features of C#, Part 1. Jerry Nixon Microsoft Developer Evangelist Daren May President & Co-founder, Crank211

Transcription:

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