You are on page 1of 6

VB.

NET

 Knowledge & Expertise

1 IDE stands for____________.


a. Integral Development Environment
b. Integrated Development Environment
c. Integral Developer Environment
d. Integral Developed Environment

Ans. b. Integrated Development Environment

2. MSIL stands for____________

a. Mainframe Software Intermediate Language


b. Mini Software Intermediate Language
c. Microsoft Intermediate Language
d. Micro Software Intermediate Language

Ans. c. Microsoft Intermediate Language

3 To develop a form, you use the


a. Server Explorer
b. Toolbox
c. Form Designer Window
d. Code Editor Window
Ans. d. Code Editor Window

4. Minus(-) signs in the Solution Explorer Indicates the group of files and you can click on
these signs to
a. To expand the groups
b.To collapse the groups
c.To destroy the groups
d. None of the Above.
Ans. b.To collapse the groups

5. C# is ……………….
a. Case Sensitive Language
b. Not a Case Sensitive Language
c. Computer language
d. None of the above
Ans. a. Case Sensitive Language

Research Inquiry
6. The operator used to access member function of a class?
a) :
b) ::
c) .
d) #
Ans. C) .

7. Number of constructors a class can define is?


a) 1
b) 2
c) Any number
d) None of the mentioned
Ans. C) any number

8 Which of the following statement is correct about a string in C#.NET?


a) The System.Array class is used to represent a string
b) A string has a zero-based index
c) A number cannot be represented in the form of a string
d) A string is mutable because it can be modified once it has been created
Ans. B) A string has a zero-based index

9 The capability of an object in Csharp to take number of different forms and hence
display behaviour as according is known as ___________
a) Encapsulation
b) Polymorphism
c) Abstraction
d) None of the mentioned
Ans. B) Polymorphism

10. Which one is not a form Event


a. Click
b. Load
c. Activated
d. Closed
Ans. a. Click

Information and Digital Literacy

11. An___________ is a self-contained unit that combines code and data


a. Forms
b. Object
c. Class
d. None of the above
Ans. b. Object

12. …………. is the code that defines the characterstics of an object.


a. Object
b. Class
c. Forms
d. None of the above
Ans. Class

13 what are the common control events


(i) Click
(ii) DblClick
(iii) GotFocus
(iv) LostFocus

a. Only i) is true
b. Only ii) is true
c. Both are true
d. i, ii),iii),iv
Ans. d. i, ii),iii),iv

14.One Property that applies only to a combo box is the ___________

a. DropDownList
b.DownStyle
c. DropDownStyle
d. None of the above
Ans. c. DropDownStyle

15 . (i) _____________ is used in the parent class to indicate that a method can
overridden

(ii)______________ is used in the child class to indicate that you are


overriding a method
(a) ( i) Overrides, (ii) Overridable
(b) ( i)Overridable, ( ii) Overrides
(c ) (iii) Overloaded, (iii)Overloading
(d) None of the above
Ans. (a) ( i) Overrides, (ii) Overridable

Global Citizen
16. Which method is not associated with Connection

a. Open()
b. Close()
c. Start()
d. None Of these
Ans. Start()

17. Scope of variable is related to definition of variable as:


i. Region of code within which variable value is valid and hence can be accessed.
ii. No, relation with region where variable is declared its value is valid in entire scope.
a) i
b) ii
c) i, ii
d) None of the mentioned
Ans. A) i

18.ADO Stands for

a. Activebase Data Object


b. Active Data Object
c. Access Data Object
d. None of the above
Ans. b. Active Data Object

19.  Which of these is used as a default specifier for a member of the class if no
access specifier is used for it?
a) private
b) public
c) public, within its own class
d) protected
Ans. A) private

20. (i)___________ types are passed to methods by passing an exact copy


while
(ii)___________types are passed to methods by passing only their
reference
(a) ( i) value Type, (ii)Reference Type
(b) ( i)Reference Type, ( ii) Value Type
(c) Value type only
(d) Reference Only
Ans. B) ( i) value Type, (ii)Reference Type

Problem Solving
21. Polmorphism provides for multiple implementations of a
a. same method
b. same class
c. same object
d. None of the above
Ans. a. same method

22. In .NET,all exception inherit from


a.System.Exception
b. System.XML
c. System.Collections
d. None of the above
Ans. a.System.Exception

23. What is Recursion in CSharp defined as?


a) Recursion is another form of class
b) Recursion is another process of defining a method that calls other methods
repeatedly
c) Recursion is a process of defining a method that calls itself repeatedly
d) Recursion is a process of defining a method that calls other methods which in turn
calls this method
Ans. c) Recursion is a process of defining a method that calls itself repeatedly

24.  To implement delegates, the necessary condition is?


a) class declaration
b) inheritance
c) runtime polymorphism
d) exceptions
Ans. a) class declaration

25 Which of the following is not a namespace in the .NET Framework Class Library?
a) System.Process
b) System.Security
c) System.Threading
d) System.xml
Ans. A) System.Process

Ethics, Social & Professional Responsibility


26 Visual Studio .NET provides which feature:
A. debugging
B. application deployment
C. syntax checking
D. All of the above
Ans. D. All of the above

27 Which is not a main component of the Visual Studio IDE?


A. start menu B. Tool box
C. designer window D. Solution Explorer
Ans. A. start menu

28. Choose the wrong statement about the properties used in C#.NET?
a) Each property consists of accessor as get and set
b) A property cannot be either read or write only
c) Properties can be used to store and retrieve values to and from the data members
of a class
d) Properties are like actual methods which work like data members
Ans. a) Each property consists of accessor as get and set

29. Which of the following cannot be used to declare an interface correctly?


a) Properties
b) Methods
c) Structures
d) Events
Ans. c) Structures

30. Which is not a property of the Common control class?


A. Font B. show
C. ForeColor D. BackColor
Ans. B.show

Employ-ability, Enterprise and Entrepreneurship


31. Which property determines whether a control is displayed to the user?
A. Visible B. Enabled
C. Show D. Hide
Ans. A. Visible

32. The Button control can be activated:


A. by clicking the button with the mouse.
B. programmatically through the click event.
C. both (a) and (b)
D. with the form’s DefaultButton property.
Ans. A. by clicking the button with the mouse.

33. Which operator among the following signifies the destructor operator?
a) ::
b) :
c) ~
d) &
Ans. c) ~

34 Which of these methods of the class String is used to obtain length of String
object?
a) get()
b) Sizeof()
c) lengthof()
d) length()
Ans. Length()

35. Does C#.NET support partial implementation of interfaces?


a) True
b) False
c) Can’t Say
d) None of the mentioned
Ans. A) True

 Life Long Learning


36. A window that lists the solution name, the project name and all the forms used in the project.
A. Properties Window
B. Solution Explorer
C. Windows Form Designer
D. Project Window
Ans. B. Solution Explorer

37. What is a Jagged Arrays

a. is a collection of variables
b. is an array of arrays
c. is a single dimension array
d. None of the above
Ans. b. is an array of arrays

38 A type of class which does not have its own objects but acts as a base class for
its subclass is known as?
a) Static class
b) Sealed class
c) Abstract class
d) None of the mentioned.
Ans. c) Abstract class

39 JIT stands for


A. Just In Type B. Just In Time
C. Just In Thread D. Just In Text
Ans. B. Just In Time

40. What is the use of try & catch?


a) It is used to manually handle the exception
b) It helps to fix the errors
c) It prevents automatic terminating of the program in cases when an exception
occurs
d) All of the mentioned
Ans. d) All of the mentioned

You might also like