Google News
logo
.Net - Quiz(MCQ)
A)
Apple
B)
IBM
C)
Microsoft
D)
Google

Correct Answer :   Microsoft


Explanation :

The .NET Framework (pronounced as "dot net") is a proprietary software framework developed by Microsoft that runs primarily on Microsoft Windows.

It was the predominant implementation of the Common Language Infrastructure (CLI) until being superseded by the cross-platform .NET project

.NET is a free, cross-platform, open source developer platform for building many different types of applications.
 
With .NET, you can use multiple languages, editors, and libraries to build for web, mobile, desktop, games, IoT, and more.

Languages :
* C# is a simple, modern, object-oriented, and type-safe programming language.
* F# is a programming language that makes it easy to write succinct, robust, and performant code.
* Visual Basic is an approachable language with a simple syntax for building type-safe, object-oriented apps.

A)
13 February 1999
B)
13 February 2002
C)
13 February 2004
D)
13 February 2005

Correct Answer :   13 February 2002


Explanation : The first version of .NET Framework was released on 13 February 2002, bringing managed code to Windows NT 4.0, 98, 2000, ME and XP. Since the first version, Microsoft has released nine more upgrades for . NET Framework, seven of which have been released along with a new version of Visual Studio.

A)
Local
B)
Static
C)
Serial
D)
Private

Correct Answer :   Local

A)
Webforms
B)
Winforms
C)
HTMLForms
D)
None of the Above

Correct Answer :   Webforms

A)
Page_In()
B)
Page_Load()
C)
Page_click()
D)
Page_Init()

Correct Answer :   Page_Init()

A)
FCL
B)
CLR
C)
CLS
D)
CTS

Correct Answer :   CLR

A)
Counter
B)
AdRotator
C)
LinkCounter
D)
File Access

Correct Answer :   LinkCounter

8 .
Which of the following is NOT an Assignment operator in C#.NET?
A)
+=
B)
*=
C)
/=
D)
\=

Correct Answer :   \=

10 .
Which set of symbols are used to signify the presence of ASP.NET code?
A)
<%
B)
<@
C)
<$
D)
<#

Correct Answer :   <%

A)
type checker
B)
garbage collector
C)
code manager
D)
memory manager

Correct Answer :   garbage collector

A)
C++
B)
VB
C)
C-sharp
D)
Both (A) and (B)

Correct Answer :   Both (A) and (B)

A)
A ref
B)
A href
C)
An ref
D)
An href

Correct Answer :   A href

A)
The Boolean data type
B)
is unsigne has two states
C)
is displayed by the program as yes or no.
D)
Both (A) and (B)

Correct Answer :   Both (A) and (B)

A)
Common Type System (CTS)
B)
Framework Class Library (FCL)
C)
Common Language Runtime (CLR)
D)
Common Language Specifications (CLS)

Correct Answer :   Common Type System (CTS)

A)
Framework Class Library (FCL)
B)
Common Type System (CTS)
C)
Common Language Runtime (CLR)
D)
Common Language Specifications (CLS)

Correct Answer :   Common Language Runtime (CLR)

A)
Common Class Library (CCL)
B)
Public Class Library (PCL)
C)
Base Class Library (BCL)
D)
Global Class Library (GCL)

Correct Answer :   Base Class Library (BCL)

19 .
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-True, ii-True
C)
i-False, ii-True
D)
i-False, ii-False

Correct Answer :   i-True, ii-True

A)
system
B)
system.reflection
C)
system.data
D)
system.security

Correct Answer :   system.reflection

A)
system.security
B)
system.collection
C)
system.threading
D)
system.diagnostics

Correct Answer :   system.diagnostics

A)
system
B)
system.data
C)
system.drawing
D)
system.collection

Correct Answer :   system.collection

23 .
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 iii only
B)
i and ii only
C)
ii and iii only
D)
None of the Above

Correct Answer :   i and iii only

24 .
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-True, ii- True, iii-False
C)
i-False, ii-True, iii-True
D)
i-True, ii-False, iii-True

Correct Answer :   i-True, ii- True, iii-False

A)
System
B)
System.Root
C)
System.Collections
D)
System.Globalization

Correct Answer :   System

A)
CLS
B)
CLR
C)
Assembly
D)
Namespace

Correct Answer :   Assembly

A)
JSP
B)
XML
C)
WML
D)
HTML

Correct Answer :   HTML

A)
Web page
B)
Server script
C)
Both (A) and (B)
D)
Client browser

Correct Answer :   Both (A) and (B)

A)
asp:button
B)
asp:label
C)
asp:listitem
D)
None of the Above

Correct Answer :   asp:label

A)
.aspx
B)
.asp
C)
.asp.vb
D)
.aspx.vb

Correct Answer :   .aspx

A)
Open
B)
ExecuteScalar
C)
ExecuteReader
D)
ExecuteStream

Correct Answer :   Open

32 .
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-False, ii-True, iii-False
B)
i-False, ii-False, iii-True
C)
i-True, ii-False, iii-True
D)
i-True, ii-False, iii-False

Correct Answer :   i-True, ii-False, iii-True

A)
FCL
B)
CTS
C)
CLS
D)
CLR

Correct Answer :   CLR

A)
Class loader
B)
Code manager
C)
Type checker
D)
Exception manager

Correct Answer :   Type checker

35 .
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)
i and iii only
C)
ii and iii only
D)
All i, ii and iii

Correct Answer :   All i, ii and iii

A)
Tool Box
B)
Start Menu
C)
Designer Window
D)
Solution Explorer

Correct Answer :   Start Menu

A)
Lock()
B)
ThreadLock
C)
Synchronize
D)
Synchronize()

Correct Answer :   Synchronize()

A)
CLR
B)
CTS
C)
CLS
D)
FCL

Correct Answer :   CLR

39 .
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-True
B)
i-True, ii-False
C)
i-False, ii-True
D)
i-False, ii-False

Correct Answer :   i-True, ii-True

A)
Item
B)
LCID
C)
Key
D)
SessionId

Correct Answer :   Key

A)
Order
B)
Sort
C)
Arrange
D)
Assemble

Correct Answer :   Sort

A)
A, a, Z, z
B)
a, A, z, Z
C)
a, z, A, Z
D)
A, Z, a, z

Correct Answer :   A, Z, a, z

A)
CompareValidator
B)
equals() method
C)
RequiredFieldValidator
D)
RegularExpressionValidator

Correct Answer :   CompareValidator

A)
1
B)
10
C)
20
D)
More than 30

Correct Answer :   1

A)
Datagrid
B)
Datalist
C)
Repeater
D)
DropdownList

Correct Answer :   Repeater

A)
To configure the web server
B)
To configure the web browser
C)
Configures the time that the server-side codebehind module is called
D)
To store the global information and variable definitions for the application

Correct Answer :   To store the global information and variable definitions for the application

47 .
Where do we include the user lists for Form authentication?
A)
<Identity>
B)
<credential>
C)
<authorization>
D)
<authentication>

Correct Answer :   <credential>

A)
Include the deny element.
B)
Include the identity element.
C)
Include the authorization element.
D)
Include the authentication element.

Correct Answer :   Include the authorization element.

A)
Shared assembly
B)
Static assembly
C)
Dynamic assembly
D)
Satellite assembly

Correct Answer :   Shared assembly

A)
Shared assembly
B)
Satellite assembly
C)
Static assembly
D)
Dynamic assembly

Correct Answer :   Satellite assembly

51 .
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)
i and iii only
C)
ii and iii only
D)
All i, ii and iii

Correct Answer :   All i, ii and iii

54 .
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)
i and iii only
C)
ii and iii only
D)
All i, ii and iii

Correct Answer :   All i, ii and iii

55 .
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-False, iii-True
B)
i-True, ii-True, iii-True
C)
i-True, ii- True, iii-False
D)
i-False, ii-True, iii-True

Correct Answer :   i-True, ii-False, iii-True

A)
Metadata
B)
Garbage Collector
C)
Common type System
D)
Global assembly cache

Correct Answer :   Garbage Collector

57 .
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-False, iii-True
B)
i-True, ii-True, iii-True
C)
i-True, ii- True, iii-False
D)
i-False, ii-True, iii-True

Correct Answer :   i-True, ii- True, iii-False

58 .
Metadata describes which of the following information.

i) Attributes
ii) Description of the assembly
iii) Description of types
A)
i and ii only
B)
i and iii only
C)
ii and iii only
D)
All i, ii and iii

Correct Answer :   All i, ii and iii

59 .
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)
i and iii only
C)
ii and iii only
D)
All i, ii and iii

Correct Answer :   All i, ii and iii

A)
It is an environment for development and execution of Windows applications.
B)
It is an environment for developing, building, deploying and executing only Web Applications.
C)
It is an environment for developing, building, deploying and executing Distributed Applications.
D)
It is an environment for developing, building, deploying and executing Desktop Applications, Web Applications and Web Services.

Correct Answer :   It is an environment for developing, building, deploying and executing Desktop Applications, Web Applications and Web Services.

A)
CLR
B)
Class Loader
C)
Garbage Collector
D)
None of the Above

Correct Answer :   Garbage Collector

A)
.NET Framework is built on the DCOM technology.
B)
.NET Framework uses DCOM for creating unmanaged applications.
C)
.NET Framework uses COM+ services while creating Distributed Applications.
D)
.NET Framework uses DCOM for making transition between managed and unmanaged code.

Correct Answer :   .NET Framework uses DCOM for making transition between managed and unmanaged code.

A)
System.Type
B)
System.Object
C)
System.Base
D)
System.Parent

Correct Answer :   System.Object

64 .
Which of the following benefits do we get on running managed code under CLR?
 
1. Type safety of the code running under CLR is assured.
2. It is ensured that an application would not access the memory that it is not authorized to access.
3. It launches separate process for every application running under it.
4. The resources are Garbage collected.
A)
Only 1 and 2
B)
Only 2, 3 and 4
C)
Only 1, 2 and 4
D)
All of the Above.

Correct Answer :   All of the Above.

65 .
Which of the following statements are correct about a .NET Assembly?
 
1. It is the smallest deployable unit.
2. Each assembly has only one entry point - Main(), WinMain() or DLLMain().
3. An assembly can be a Shared assembly or a Private assembly.
4. An assembly can contain only code and data.
5. An assembly is always in the form of an EXE file.
A)
1, 2
B)
1, 2, 3
C)
2, 4, 5
D)
1, 3, 5

Correct Answer :   1, 2, 3

66 .
Which of the following security features can .NET applications avail?
 
1. PIN Security
2. Code Access Security
3. Role Based Security
4. Authentication Security
5. Biorhythm Security
A)
2, 5
B)
3, 4
C)
2, 3
D)
1, 4, 5

Correct Answer :   2, 3