0% found this document useful (0 votes)
28 views10 pages

DNT MCQ

The document consists of a series of multiple-choice questions related to programming concepts, particularly focusing on C#, ASP.NET, and the .NET framework. Topics include HTML server controls, data types, event handling, and IDE components. It tests knowledge on various programming terms, methods, and properties within the context of .NET development.

Uploaded by

business.karsiya
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)
28 views10 pages

DNT MCQ

The document consists of a series of multiple-choice questions related to programming concepts, particularly focusing on C#, ASP.NET, and the .NET framework. Topics include HTML server controls, data types, event handling, and IDE components. It tests knowledge on various programming terms, methods, and properties within the context of .NET development.

Uploaded by

business.karsiya
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/ 10

1.

By using which of the following attribute, HTML elements are


transformed to HTML server control?
a) runat=”client” b) runat=”server”
c) runat=”brower” d) runat=”host”

2. The ____ language allows more than one method in a single class.
a) C# b) J#
c) C++ d) C

3. What Is DLL?
a) Dynamic Link Language b) Direct Link Language
c) Dynamic Link Library d) Direct Link Library

4. Code that targets the Common Language Runtime is known as


________
a) unmanaged b) distributed
c) managed d) native

5. A method _________ an exception when that method detects that a


problem has occurred.
a) trys b) catches
c) throws d) a and b

6. Which of the following is not a valid state management tool?


a) Application State b) HiddenField State
c) Query State d) Cookies

7. ____________ is not an ASP.NET page event.


a) Load b) Init
c) Import d) All of the mentioned

8. What does IDE stands for?


a) Integrated Design Environment
b) Integrated Development Environment
c) Interior Design Environment
d) Interior Development Environment

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


a) Font b) Show
c) ForeColor d) BackColor

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


a) Keywords b) Literals
c) Variables d) Identifiers

11. What Is CTS?


a) Common Type Specification b) Common Type Safe
c) Compiler Type Structure d) Common Type System

12. A variable which is declared inside a method is called a


________variable
a) local b) private
c) static d) global

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


a) Solution Explorer b) Toolbox
c) Start Menu d) Properties Box

14. JIT stands for?


a) Just-in-Type b) Just-in-Time
c) Just-in-Thread d) Just-in-Text

15. An _______ is a symbol that tells the computer to perform certain


mathematical or logical manipulations.
a) operator b) expression
c) condition d) logic

16. What Is CLR?


a) Common Language Runtime b) Compiler Language
Runtime
c) Compiler Library Runtime d) Common Library Runtime

17. The file extension of an ASP.NET web form is _________


a) .asp b) .aspx
c) .aspnet d) .aspn

18. The methods that have the same name, but different parameter
lists and different definitions is called______.
a) Method Overloading b) Method Overriding
c) Method Overwriting d) Method Overreading

19. The controls available in the tool box of them __________ is used to
create the user interface of a web based application.
a) Microsoft Visual Studio IDE b) Application Window
c) Web Forms d) None of the above
20. Which method reads the next character from the standard input
stream?
a) Console.Read() b) Console.ReadLine()
c) Console.ReadKey() d) All of these

21. What Is CLS?


a) Compiler Library Specification
b) Compiler Language Specification
c) Common Library Specification
d) Common Language Specification

22. You must assign a _________ to a variable before using it otherwise


the compiler will give an error.
a) reference b) code
c) value d) operator

23. The formal-parameter-list is always enclosed in _______.


a) square b) semicolon
c) parenthesis d) colon

24. A function is defined with the ____________ and followed by _____.


a) name of function, ( ) b) parameters, { }
c) class, [] d) arguments, { }

25. What are the Command object methods?


a) ExecuteNonQuery b) ExecuteReader
c) ExecuteScalar d) All of the above

26. If no access modifier is specified for a class, it is considered


_________.
a) public b) private
c) friend d) protected

27. ___________ is built on a disconnected data model that uses snapshots


of data that are isolated from the data source.
a)DAO b) RDO
c) ADO d) ADO.NET

28. IL stands for?


a) Internal Language b) Internet Language
c) Intermediate Language d) Interpreted Language
29. The ______________________ group classes according to their
common services.
a) objects b) inheritance
c) namespaces d) programs

30. Whenever an application is created, a __________ is added.


a) form b) class
c) property d) object

_________ is the process of finding and removing errors.


Running
Compiling
Debugging
Quick watch

When the form is first referenced in any manner by program, the triggered
event is.....
load
activate
initialize
unload

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


Solution Explorer
Tool Box
Start Menu
Designer Window

The ______________________ group classes according to their common


services.
objects
methods
namespaces
programs

The name of the IDE window that allows you to see the hierarchical
arrangement of the files in your project is _________.
Server Explorer
Project Explorer
Solution Explorer
Property Explorer
In C#, 'using' is a _________.
class
directive
function
keyword

___________ is not an access modifier.


public
private
protect
internal

Boxing converts a value type on the stack to an _____ on the heap.


Value Type
Object Type
Interface Type
Instance Type

Which keyword is used to include a predefined namespace in C#.NET?


package
include
import
using

Attribute must be set on a validator control for the validation to work is


____________
ControlToValidate
ControlToBind
ValidateToControl
ControlTo Validator

What is the last event of web page life cycle?


Page_UnloadComplete
Page_LoadComplete
Page_Finish
Page_Unload

_________ object represents all information sent form a server to a browser


Response
Request
Session
Application
4. The first event triggers in an aspx page is.
A. Page_Init()
B. Page_Load()
C. Page_click()
Ans: Page_Init()

Which of the following control is used to validate that two fields are equal?
A. RegularExpressionValidator
B. CompareValidator
C. equals() method
D. RequiredFieldValidator
Ans: CompareValidator

How many classes can a single .NET DLL contain?


A. One
B. Two
C. None
D. Many
Ans: Many

What is Metadata?
(A) It stores name, version, culture, public key of an Assembly
(B) It describes every data type and member defined in the code
(C) It is sharable among applications
(D) All of these

Which property determines whether a control is displayed to the user?


a.) Hide
b.) Show
c.) Visible
d.) Enabled

An event has _________ as default return type?


a) no return type
b) double
c) integer
d) string

The RangeValidator control supports the following data types?


a) integer
b) date, integer & string
c) string
d) date & integer

Which web server is developed by Microsoft?


a) Apache Tomcat
b) Caudium
c) Internet Information Services(IIS)
d) WEBrick

In .NET, value types are stored on _________.


a) heap
b) stack
c) queue
d) linked list

CLR is responsible for _________ .


a) Garbage Collection
b) Code Access Security
c) Code Verification
d) All of these

The default value for a boolean variable is _________


a) 0
b) -1
c) NULL
d) False

_________control specifies the progress of an operation based on some time


limits.
a) Status bar
b) Progress bar
c) Grid
d) Time bar

_________ method loads the form into memory and displays it on screen.
a) Load
b) Show
c) Display
d) All of these

Every server control must have _________ property.


a) ID
b) Text
c) Name
d)Color

ASP page life cycle starts with _________.


a) Start
b) Page request
c) Initialization
d) Load

Choose the option from starting phase of page life cycle.


a) Start, Load, Initialization, Page Request
b) Start, Load, Page Request, Initialization
c) Page Request, Start, Initialization, Load
d) Page Request, Load, Start, Initialization

ASP.NET validation control works at _________.


a) client side
b) server side
c) both client side and server side
d) none of these

Which is the following is not a component of the CLR?


a) Class Loader
b) Garbage Collector
c) .NET Framework
d) JIT Compiler

Which datatype should be more preferred for storing a simple number like
35 to improve execution speed of a program?
A. sbyte
B. short
C. int
D. long

Type of Conversion in which compiler is unable to convert the datatype


implicitly is ?
A. ushort to long
B. int to uint
C. ushort to long
D. byte to decimal
Which of the following is NOT an Integer?
A. Char
B. Byte
C. Integer
D. Short

Which does the solution explorer not display?


a.) Form Properties
b.) Reference Folder
c.) Form File
d.) Assemble File

Where does a web application reside?


a.) Web client
b.) Web server
c.) Visual Studio .NET
d.) Both a and b.

A postback occurs when:


a.) a browser posts a form to the server.
b.) a user’s action activates the handing of a server event.
c.) a server posts a form to the client.
d.) Both a and b

Which set of symbols are used to signify the presence of ASP.NET code?
a.) <#
b) #@
c) <%
d) <$

What is the extension for a Visual Basic web form code file?
a.) .asp
b.) .aspx
c.) .asp.vb
d.) .aspx.vb

web.config file is used to _____________

A. configures the time that the server-side code behind module is called
B. store the global information and variable definitions for the application
C. configure the web server
D. configure the web browser
Which is the first event of the ASP.NET page, when the user requests a web
page?
PreLoad
Load
PreInit
Init

What is used to validate complex string patterns like an e-mail address?


CustomValidator
RegularExpressionValidator
RangeValidator
RequiredFieldValidator

The .NET framework which provides automatic memory management using a


technique called ______________
A. Serialization
B. Garbage Collection
C. Assemblies
D. Overriding

You might also like