0% found this document useful (0 votes)
23 views20 pages

Questions Bank

The document contains a series of multiple-choice questions and answers related to the .NET framework, covering topics such as the Common Language Runtime (CLR), Framework Class Library (FCL), mouse cursor options, and assembly types. It includes true/false statements about various components of .NET and their functionalities. The document serves as a quiz or study guide for understanding key concepts in .NET programming.

Uploaded by

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

Questions Bank

The document contains a series of multiple-choice questions and answers related to the .NET framework, covering topics such as the Common Language Runtime (CLR), Framework Class Library (FCL), mouse cursor options, and assembly types. It includes true/false statements about various components of .NET and their functionalities. The document serves as a quiz or study guide for understanding key concepts in .NET programming.

Uploaded by

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

1. The … is the execution engine for .

NET applications and servers as the interface between

.NET applications and the operating system.

A) Common Language Specifications (CLS)

B) Common Language Runtime (CLR)

C) Common Type System (CTS)

D) Framework Class Library (FCL)

2. The .NET Framework Class Library (FCL) is also known as …

A) Base Class Library (BCL)

B) Common Class Library (CCL)

C) Global Class Library (GCL)

D) Public Class Library (PCL)

3. State whether the following statements about .NET Frameworks are TRUE or FALSE.

i) The .NET FCL is object-oriented.

ii) The CLR is the platform on which applications hosted and executed.

A) i-True, ii-False

B) i-False, ii-True

C) i-True, ii-True

D) i-False, ii-False

4. The .NET … is a collection of reusable types that are integrated with the CLR.

A) Common Language Specifications (CLS)

B) Common Language Runtime (CLR)

C) Common Type System (CTS)

D) Framework Class Library (FCL)


5. … is an agreement among language designers and class library designers to use a common

subset of basic language features that all languages have to follow.

A) Common Language Specifications (CLS)

B) Common Language Runtime (CLR)

C) Common Type System (CTS)

D) Framework Class Library (FCL)

6. … describes how types are declared, used, and managed in the runtime.

A) Common Language Specifications (CLS)

B) Common Language Runtime (CLR)

C) Common Type System (CTS)

D) Framework Class Library (FCL)

7. State which of the following statements about the .NET framework are TRUE.

i) CTS helps developers to develop applications in a single language.

ii) Data and XML classes extend the FCL to support data management and XML

manipulation.

iii) XML classes support various operations on XML data like searching, translations,

modifying, etc.

A) i and ii only

B) ii and iii only

C) i and iii only

D) All i, ii and iii

8. … is a code that consists of CPU and platform-independent set of instructions, which can

be easily converted to native code.

A) JIT
B) FCL

C) DLL

D) MSIL

9. State whether the following statements about the Microsoft Intermediate Language

(MSIL) are TRUE or FALSE.

i) The MSIL code includes instructions to load, initialize and invoke methods on objects.

ii) The MSIL code is collected and assembled in the form of byte codes and is converted to a

.NET assembly.

A) i-True, ii-False

B) i-False, ii-True

C) i-True, ii-True

D) i-False, ii-False

10. The main function of … is to convert the managed code into native code and then execute

the code.

A) CLR

B) CTS

C) CLS

D) FCL

11. Which of the following is/are the modules of Common Language Runtime(CLR).

i) Thread Support

ii) Type Checker

iii) Security Engine

A) i and ii only

B) ii and iii only


C) i and iii only

D) All i, ii and iii

12. … will verify types used in the application with CTS or CLS standards supported by CLR.

A) Exception manager

B) Type checker

C) Code manager

D) Class loader

13. The … is responsible for allocating, freeing, and compacting memory.

A) garbage collector

B) type checker

C) code manager

D) memory manager

14. The … compiles the applications to Microsoft Intermediate Language (MSIL) and not the

machine code.

A) CLR

B) CTS

C) CLS

D) FCL

15. State whether the following statements about the managed and unmanaged code are

TRUE or FALSE.

i) Managed code is the code that is executed directly by the CLR.

ii) Managed code directly compiles to the machine code and runs on the machine where it

has to be compiled.

iii) Unmanaged code does not have services such as security or memory management.
A) i-True, ii-False, iii-False

B) i-False, ii-True, iii-False

C) i-True, ii-False, iii-True

D) i-False, ii-False, iii-True

16. … ensures complete interoperability among applications, regardless of the language used

to create the application.

A) CLR

B) CLS

C) CTS

D) FCL

17. State which of the following statements about the Namespace are TRUE.

i) All the classes and types of .NET FCL are organized in the namespace.

ii) Namespaces correspond to file or directory names.

iii) It is the grouping of logically related identifiers or classes.

A) i and ii only

B) ii and iii only

C) i and iii only

D) All i, ii and iii

18. The … namespace includes classes and interfaces that define the various collections of

objects such as lists, queues, hash tables, arrays, etc.

A) system.collection

B) system

C) system.data

D) system.drawing
19. The … namespace includes classes that allow us to debug our application and to step

through our code.

A) system.collection

B) system.security

C) system.diagnostics

D) system.threading

20. The … namespace includes classes and interfaces that return information about types,

methods, and fields.

A) system

B) system.security

C) system.data

D) system.reflection

Answers;

1. B) Common Language Runtime (CLR)

2. A) Base Class Library (BCL)

3. C) i-True, ii-True

4. D) Framework Class Library (FCL)

5. A) Common Language Specifications (CLS)

6. C) Common Type System (CTS)

7. B) ii and iii only

8. D) MSIL

9. C) i-True, ii-True

10. A) CLR
11. D) All i, ii and iii

12. B) Type checker

13. A) garbage collector

14. A) CLR

15. C) i-True, ii-False, iii-True

16. B) CLS

17. C) i and iii only

18. A) system.collection

19. C) system.diagnostics

20. D) system.reflection
1. In mouse cursor option ………………. is a cursor for mouse wheel operations when the mouse

is moving and the window is scrolling horizontally and vertically downward to the left.

A) PanSE

B) PanSW

C) PanSouth

D) PanNW

2. In mouse cursor option …………….. is a cursor for mouse wheel operations when the mouse

is moving and the window is scrolling vertically in an upward direction.

A) PanSE

B) PanSW

C) PanSouth

D) PanNorth

3. ………………… is a signed count of the number of rotation of the mouse wheel.

A) Alfa

B) Delta

C) Wheel rotation

D) Rotation count

4. Most of the functionally of the text box control is simply inherited from the ……………..

class, which is also the a base class for the rich text box control.

A) TextBoxControl

B) RichTextBox

C) TextBoxBase

D) TextBox
5. …………….. control is generally used for editable text although it can also made read only.

A) TextBoxControl

B) RichTextBox

C) TextBoxBase

D) TextBox

6. 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

7. 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

8. Each hyperlink is a object of the ………………. class and is stored in a collection called links.

A) HyperLink.Link

B) LinkLabel.Link

C) Link.LinkLabel

D) Link.HyperLink

9. Which of the following is NOT the public properties of TextBox objects.

A) AutoSize
B) BackColor

C) BulletIndent

D) MaxLength

10. Which of the following is/are the public methods of TextBox objects.

i) Clear ii) Paste iii) LoadFile iv) Paste

A) i, ii and iii only

B) ii, iii and iv only

C) i, ii and iv only

D) All i, ii, iii and iv

11. Which of the following is NOT the public events of TextBox objects.

A) Autosize changed

B) Readonly Changed

C) Click

D) Link Clicked

12. Which of the following is/are the ways of add scroll bars to a text box using scroll bars

property.

i) None ii) Horizontal iii) Vertical iv) Both

A) i, ii and iii only

B) ii, iii and iv only

C) i, ii and iv only

D) All i, ii, iii and iv

13. 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

14. Which of the following is NOT the public property of RichTextBox Objects.

A) DetectURLs

B) DetectText

C) BulletIndent

D) RightMargin

15. Which of the following is/are the public methods of RichTextBox objects.

i) CanDelete ii) Find iii) LoadFile iv) SelectAll

A) i, ii and iii only

B) ii, iii and iv only

C) i, ii and iv only

D) All i, ii, iii and iv

16. The SaveFile method is used to save the text in a rich text box to disk, and the …………….

method to read it back.

A) LoadFile

B) ReadFile

C) ReadIt

D) ReadBack

17. Which of the following is/are the values of TextAlign property that takes from

content Alignment enumeration.


i) BottomCenter ii) MiddleTop iii) TopLeft iv) MiddleLeft

A) i, ii and iii only

B) i, iii and iv only

C) i, ii and iv only

D) All i, ii, iii and iv

18. Which of the following is/are the public properties of LinkLabel objects.

i) ActiveLinkColor ii) LinkSize iii) LinkBehavior iv) Links

A) i, ii and iii only

B) i, iii and iv only

C) i, ii and iv only

D) All i, ii, iii and iv

19. Hyperlinks can be created using the …………………………………. method in LinkClicked event

handler.

A) System.Diagnostics.Process.Start

B) System.Diagnostics.Hyperlinks.Start

C) System.Diagnostics.Link.Start

D) System.Diagnostics.Link.Event

20. In order to get the text associated with the link, ………………… method can be used.

A) e.Data.Link.ToString

B) e.Link.LinkData.ToString

C) e.LinkData.Link.ToString

D) e.Link.Data.ToString

Answers
1. B) PanSW

2. D) PanNorth

3. B) Delta

4. C) TextBoxBase

5. D) TextBox

6. A) MaxLength

7. A) PasswordChar

8. B) LinkLabel.Link

9. C) BulletIndent

10. C) i, ii and iv only

11. D) Link Clicked

12. D) All i, ii, iii and iv

13. A) MultiLine

14. B) DetectText

15. B) ii, iii and iv only

16. A) LoadFile

17. B) i, iii and iv only

18. B) i, iii and iv only

19. A) System.Diagnostics.Process.Start

20. B) e.Link.LinkData.ToString
1. The … namespace is the root of all namespaces containing all other namespaces as

subordinates.

A) System

B) System.Root

C) System.Collections

D) System.Globalization

2. … is a collection of types and resources that are built to work together and form a logical

unit of functionality.

A) Namespace

B) Assembly

C) CLS

D) CLR

3. State whether the following statements about .NET assembly are True or False.

i) Assembly physically exists as DLLs or EXEs.

ii) Assembly can include any file types like image files, text files, etc. along with DLLs or

EXEs.

iii) One assembly can contain only one file.

A) i-True, ii-True, iii-True

B) i-False, ii-True, iii-True

C) i-True, ii-False, iii-True

D) i-True, ii- True, iii-False

4. .NET assembly can contain which of the following parts.

i) Manifest

ii) MSIL code


iii) Type metadata

A) i and ii only

B) ii and iii only

C) i and iii only

D) All i, ii and iii

5. The assembly … includes version information, a list of files packed, and a definition of

types, security permissions, version control, and metadata.

A) Manifest

B) MSIL code

C) Type metadata

D) Set of resource

6. … are first stored on disk in portable executable (PE) files then run.

A) Shared assemblies

B) Satellite assemblies

C) Static assemblies

D) Dynamic assemblies

7. … run directly from memory and are not saved to disk before execution.

A) Shared assemblies

B) Satellite assemblies

C) Static assemblies

D) Dynamic assemblies

8. State whether the following statements about the single-file assembly and multi-file

assembly are True or False.

i) A single file assembly implements version checking.


ii) You should use command line compilers to create multi-file assemblies.

A) i-True, ii-True

B) i-False, ii-True

C) i-True, ii-False

D) i-False, ii- False

9. A … is stored in the global assembly cache(GAC), which is a repository assembly

maintained by .NET runtime.

A) Shared assembly

B) Satellite assembly

C) Static assembly

D) Dynamic assembly

10. A … is an assembly that contains language-specific resources.

A) Shared assembly

B) Satellite assembly

C) Static assembly

D) Dynamic assembly

11. Which of the following steps required in order to convert a private assembly to a global

assembly.

i) Creating a strong name

ii) Associate the strong name with the assembly

iii) Place assembly in GAC

A) i and ii only

B) ii and iii only


C) i and iii only

D) All i, ii and iii

12. An assembly performs which of the following functions.

i) It forms a security boundary.

ii) It contains code that the CLR executes.

iii) It forms a reference scope boundary.

A) i and ii only

B) ii and iii only

C) i and iii only

D) All i, ii and iii

13. … provides a virtual execution environment that uses a compiler to convert the source

code of a program in the form of executable code, called bytecode.

A) CLI

B) CTS

C) CLS

D) CLR

14. The … defines how types are declared, used, and managed in the runtime and is also an

important part of the runtime’s support for cross-language integration.

A) CLI

B) CTS

C) CLS

D) CLR

15. State whether the following statements about the metadata are True or False.

i) It is binary code that contains the self-description of your program.


ii) It is the information that describes the types used in your code.

iii) It includes the need for Interface Definition Language (IDL) files, header files, or any

external method of component reference.

A) i-True, ii-True, iii-True

B) i-False, ii-True, iii-True

C) i-True, ii-False, iii-True

D) i-True, ii- True, iii-False

16. Metadata describes which of the following information.

i) Description of the assembly

ii) Description of types

iii) Attributes

A) i and ii only

B) ii and iii only

C) i and iii only

D) All i, ii and iii

17. The releasing of unreferenced objects is happening automatically .NET language by the …

A) Metadata

B) Common type System

C) Garbage Collector

D) Global assembly cache

18. Which of the following are the advantages of Garbage Collector?

i) Allow us to develop an application without having worry to about free memory.

ii) Allocates memory for objects efficiently on the managed heap.

iii) Provides memory safety by making sure that an object cannot use the content of another
object.

A) i and ii only

B) ii and iii only

C) i and iii only

D) All i, ii and iii

19. State whether the following statements about the side-by-side execution are True or

False.

i) Side-by-side execution is the ability to run multiple versions of an application or

component on the same computer.

ii) Isolation is an optional component of side-by-side execution.

iii) It uses strong-named assemblies to bind type information to a specific version of an

assembly.

A) i-True, ii-True, iii-True

B) i-False, ii-True, iii-True

C) i-True, ii-False, iii-True

D) i-True, ii- True, iii-False

20. Which of the following are the benefits of side-by-side execution.

i) Strong-named assemblies

ii) Version-aware code storage

iii) Isolation

A) i and ii only

B) ii and iii only

C) i and iii only

D) All i, ii and iii


Answers:

1. A) System

2. B) Assembly

3. D) i-True, ii- True, iii-False

4. D) All i, ii and iii

5. A) Manifest

6. C) Static assemblies

7. D) Dynamic assemblies

8. B) i-False, ii-True

9. A) Shared assembly

10. B) Satellite assembly

11. D) All i, ii and iii

12. D) All i, ii and iii

13. A) CLI

14. B) CTS

15. D) i-True, ii- True, iii-False

16. D) All i, ii and iii

17. C) Garbage Collector

18. D) All i, ii and iii

19. C) i-True, ii-False, iii-True

20. D) All i, ii and iii

You might also like