0% found this document useful (0 votes)
31 views6 pages

MCQ2 C#

None of these 30. Which of the following is true about the ToolStrip control? A. It is used to add menus and toolbars to a form or container control. B. It is used to add only menus to a form or container control. C. It is used to add only toolbars to a form or container control. D. It cannot be added to forms directly, it must be inside a container control.

Uploaded by

tmahakaviyarasi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views6 pages

MCQ2 C#

None of these 30. Which of the following is true about the ToolStrip control? A. It is used to add menus and toolbars to a form or container control. B. It is used to add only menus to a form or container control. C. It is used to add only toolbars to a form or container control. D. It cannot be added to forms directly, it must be inside a container control.

Uploaded by

tmahakaviyarasi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

ETP22MCTC303 MCQ – II PORTION -2&3

C# AND .NET

NAME: ……………………………………………………………..

DEPT/YEAR/SEM: MCA/II/III.

ROLL NO : ..…………………………………………………......

MARK: ……… /25 , ……… /5

1.Which of the following property is common for many tools…

a) name

b) window status

c) place

d) location

2 .Which of the following is true about disabled menu item does not appear in the …

a) title bar

b) status bar

c) standard bar

d) menu bar

3. Which of the following arrays can be declared when the user may not know the exact size of the
array at design time…

a) dynamic array

b) dimensional array

c) two-dimensional array

d) none of these

4. Which of the following appears at the top of the screen…

a) menu

b) title

c) debug

d) tool

5. Which option is true when the user clicks a button …….. is opened…

a) a method
b) an event

c) a property

d) a setting

6. Which of the following example is true about visual programming…

a) controls object

b) ADO.NET

c) ASP.NET

d) all of these

7 .CLR is the .NET equivalent of _________.

A. Java Virtual Machine

B. Common Language Runtime

C. Common Type System

D. Common Language Specification

8. In C#, a subroutine is called a ________.

A. Function

B. Metadata

C. Method

D. Managed code

9. All C# applications begin execution by calling the _____ method.

A. Class()

B. Main()

C. Submain()

D. Namespace

10. _________ are reserved, and cannot be used as identifiers.

A. Keywords

B. literal

C. variables

D. Identifiers

11. A _____ is any valid C# variable ending with a colon.


A. goto

B. Label

C. Logical

D. Bitwise

12. C# has _______ operator, useful for making two way decisions.

A. Looping

B. Functional

C. Exponential

D. Conditional

13. C# doesnot support:

A. abstraction

B. polymorphism

C. multiple inheritance

D. inheritance

14. Different ways a method can be overloaded in C#.NET

A. Different parameter data types

B. Different order of parameters

C. Different number of parameters

D. All of above

15 Which of the following is the data members of a class by default …

a) private, public

b) protected, public

c) public

d) private

16.String mystring; Creates a(n)

A. class

B. Constructor

C. Object

D. a and b
17. An Event is

A. The result of a users action

B. result of a party

C. code to force users action

18: Which of the following box given a set of choices to the user

a) Command

b) list

c) Text

d) combo

19: Which statements are true, IDE is…

a) Integrated development environment

b) Integrated dual environment

c) Internet development environment

d) Integrated desktop environment

20: Which of the following is true that access specifier allows a class to expose its member variables
and member functions to other functions and objects?

a) private

b) public

c) internal

d) protected

21. ……………. event occurs when a key is pressed while the form has the focus.

A) Keydown

B) Keypress

C) Keyup

D) KeyEnter

22 In C#.net ……………….. keyword is used to refer to the current object.

A) Current

B) Me

C) This
D) Form

23. Form’s ………………. property is used to specify the initial position on the screen.

A) InitialPosition

B) StartPosition

C) StartScreen

D) InitialScreen

24. ………….. class is built into the .Net Framework to display messages and accept input from the user.

A) Msgbox

B) MessageBox

C) InputBox

D) DisplayBox

25. We can limit the amount of text entered into TextBox control by setting ……………… property to a
specific number of characters.

A) MaxLength

B) TotalLength

C) TextAmount

D) TextLimit

26. TextBox controls also can be used to accept password if the …………….. property is used to mask
characters.

A) PasswordChar

B) PasswordCharacter

C) MaskChar

D) PasswordControl

27. In order for the scroll bars to actually appear, the text box’s …………….. property must be True.

A) MultiLine

B) MultiText

C) Scrolling

D) MultiVisible

28. The Windows Forms __________ is a component that raises an event at regular intervals.
A.Splitter

B.delegate

C.Timer

D.None of these

29. The __________ control provides a shortcut menu that you associate with a control.
A.ContextMenuStrip

B.ToolStrip

C.ToolStripTextBox

You might also like