0% found this document useful (1 vote)
796 views7 pages

AWP MCQ TEst 1 2021-22

The document contains a 30 question multiple choice quiz on topics related to advance web programming and .NET framework. The quiz covers namespaces, components of the .NET framework, ASP.NET page events, data types, properties of validator controls, ASP.NET page lifecycle, ASP.NET tags, programming models, common language runtime, user controls, protocols, garbage collection, master pages, boxing and unboxing, output of sample C# code, properties of delegates, referring to base class constructors, and necessary conditions for implementing delegates.

Uploaded by

RamZ Skully
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 (1 vote)
796 views7 pages

AWP MCQ TEst 1 2021-22

The document contains a 30 question multiple choice quiz on topics related to advance web programming and .NET framework. The quiz covers namespaces, components of the .NET framework, ASP.NET page events, data types, properties of validator controls, ASP.NET page lifecycle, ASP.NET tags, programming models, common language runtime, user controls, protocols, garbage collection, master pages, boxing and unboxing, output of sample C# code, properties of delegates, referring to base class constructors, and necessary conditions for implementing delegates.

Uploaded by

RamZ Skully
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/ 7

MCQ TEST 1

ADVANCE WEB PROGRAMMING (AWP) TY BSC IT


MARKS 30 DURATION 45 MINUTES

1) Most of the functionality of the .NET framework classes resides in the


namespace called ________.

A) Data
B) Service
C) System
D) Drawing

2)
The .NET Framework is divided into two main components:
_______________ & __________

A) Framework Class Library &Common Language Runtime


B) Common Type System &Common Language Runtime
C) Common LanguageSpecification & Common
D) Language RuntimeFramework Class Library & GarbageCollection

3)
How do we identify that the page is Postback?

A) IsPostBack property
B) Smart Navigation property
C) AutoPostBack property
D) By using session

4)
Which of the following is not an ASP.NET page event?
A) Init
B) Load
C) Import
D) None of the above

5)
Which of the following converts a type to a signed byte type in C#?

A) ToInt64
B) ToSbyte
C) ToSingle
D) ToInt32
6)
Default access for the members of the class is _______.
A) Private
B) Public
C) Protected
D) Default

7)
C# supports multiiple inheritance - True / False?

A) TRUE
B) FALSE

8)
We can use __________ to implement multiple inheritance in C#
A) interfaces
B) inheritances
C) object
D) constructor

9)
Which of the following converts a type to a double type in C#?
A) ToDecimal
B) ToDouble
C) ToInt16
D) ToInt32
10)
HTML control runs at……………………………..side.
A) client
B) server
C) user
D) browser

11)

ASP.Net controls run at ………………………..side.


A) user
B) client
C) web
D) server

12)
Which of the following is the property of Range Validator control?
A) MaximumValue
B) ValueToCompare
C) ControlToCompare
D) Operator

13)

Which of the following is the last event of ASP.NET page life cycle
A) Page.Init
B) Page.Unload
C) Page.Load
D) Page.PreRender

14)
ASP.NET tags always begin with the prefix________.
A) input type
B) <a>
C) asp:
D) <div>

15)

Which programming model should you implement if you want to


separate your server-side code from your client-side layout code in
a Web page?
A) Single-file model
B) Code-behind model
C) Inline model
D) Client-server model

16)

Int, char, float are the examples of __________ data types


A) Reference
B) Value
C) Static
D) Virtual

17)
__________Manages the execution of .NET programs by coordinating
essential functions such as memory management, code execution, security
etc.
A) Common Language Specification
B) Common Type System
C) Common File System
D) Common Language Runtime
18)
DLL stands for __________
A) data definition library
B) Dynamic link library
C) Digital library link
D) Distributed link library

19)

……………………………….are ASP.NET user controls.


A) .aspx
B) .ascx
C) web.config
D) .cs

20)

ASP stands for?


A. Active Server Pages
B. Access Server Pages
C. Active Server Platform
D. Active Server Programming

21)

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

A. ControlToValidate
B. ControlToBind
C. ValidateControl
D. Validate
22)

Which protocol is used for requesting a web page in ASP.NET from the Web
Server?

1. HTTP
2. TCP
3. SMTP
4. None of the above.
23)
When the garbage collector runs.

a. It runs automatically
b. EveryDay
c. Every alternate day
d. When IIS restart.
24)
What is/are true about master page?
. Master page contains
A) <%@ Master %> directive instead of
the normal <%@ Page %> directive.
B)ContentPlaceHolder control can be added only on master page
C) You can add as many ContentPlaceHolders to a Master Page as you need.
D) All of the above

25)
______________method is only called under unusual situations as
normally garbage collector runs automatically.
A) GC.Collect
B) GC.Collection
C) GC.Auto
D) GC.Garbage

26)
In Boxing and Unboxing , Boxing means converting value type data to reference type
data.
A) True
B) False

27) What will be the output of the following C# code?


static void Main(string[] args)
{
int i = 2, k = 3;
switch (i - k)
{
case -1:
++i;
++k;
break;
case 2:
--i;
++k;
break;
default:
i += 3;
k += i;
break;
}
Console.WriteLine(i + "\n" + k);
Console.ReadLine();
}

a) 2 3
b) 3 2
c) 3 4
d) 5 10

28). Which of the following statements is incorrect about delegate?

A. Delegates are reference types.


B. Delegates are object-oriented.
C. Delegates are type-safe.
D. Only one can be called using a delegate.

29. Which of the following keywords is used to refer base class constructor to
subclass constructor ?

A. this
B. static
C. base
D. extend

30
To implement delegates, the necessary condition is ?
a) class declaration
b) inheritance
c) runtime polymorphism
d) exceptions

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy