You are on page 1of 29

1) The model is a _______

A. Shape of data
B. Html content
C. Collection of data
2) Which namespace is used for ASPX View Engine?
A. System.Web.Razor
B. System.Web.Mvc.WebFormViewEngine
C. Both A & B
D. None
3) What is ActionResult()?
A. It is an abstract Class
B. It is a Concrete Class
C. Both A and B
D. None
4) Which of the followings are Actionselectors?
A. ActionName
B. NonAction
C. ActionVerbs
D. All of the above
5) What are the various types of filters in an ASP.NET MVC application?
A. Authorization filters
B. Action filters
C. Result filters
D. All of these
6) What is the name of the configuration files that the App_Start folder contains?
A. BundleConfig.cs
B. FilterConfig.cs
C. RouteConfig.cs
D. All of these
7) WIF enables you to create a custom token. To be able to use the token, you must create a
custom token handler by overriding which of the following?
A. SecurityToken
B. SecurityTokenHandler
C. SWTToken
D. Saml2SecurityTokenHandler
8) What Request Processing technique follows ASP.Net?
A. Top-Down
B. Down-Up
C. Pipeline
D. Waterfall
9) Does MVC 6 was introduced new JSON project-based structure?
A. Yes
B. No
C. Both A & B
D. None

10) ______ attributes can be used for data validation in MVC.


A. DataAnnotations
B. Fluent API
C. DataModel
D. HtmlHelper
11) Which page is used to serve the common layout page for a group of views?
A. View_Start.cshtml
B. _ViewPage.cshtml
C. View_Layout.cshtml
D. _ViewStart.cshtml
12: In which version of MVC was the App_Start folder introduced?
A. MVC3
B. MVC4
C. MVC5
D. MVC2
13: Which does not require type casting among ViewData, ViewBag, TempData and
Session?
A. ViewData
B. ViewBag
C. TempData
D. TempBag
14: Which class is the base class of all action results?
A. ActionResult class
B. Action class
C. AllAction class
D.ActionMethod class
15: Which property is used to determine an error in Model State?
A. ModelState.IsValid
B. ModelState.InValid
C. ModelState1.IsValid
D. ModelStates.IsValid
16: In which version of ASP.NET MVC was bundling and minification techniques
introduced?
A. ASP.NET MVC3 and .NET Framework 4.5
B. ASP.NET MVC4 and .NET Framework 4.5
C. ASP.NET MVC4 and .NET Framework 4.3
D. ASP.NET MVC3 and .NET Framework 4.3
17: Which filter is executed when there is an unhandled exception thrown during the
execution of the ASP.NET pipeline?
A. Exception filters
B. Execute filters
C. Unhandled filters
D. Pipeline filters
18. Which is the best approach to assign a session in MVC?
A) System.Web.HttpContext.Current.Session[“LoginID”] =7;
B) Current.Session[“LoginID”] =7;
C) Session[“LoginID”] =7;
D) None
19. RedirectToActionPermanent() Method for which Status code represents?
A) 304
B) 302
C) 301
D) 300
20. RedirectToAction() Method for which Status code represents?
A) 304
B) 302
C) 301
D) 300
21. What is ActionResult() ?
A) It is an abstract Class
B) It is a Concrete Class
C) Both A and B
D) None
22. What is ViewResult() ?
A) It is an abstract Class
B) It is a Concrete Class
C) Both A and B
D) None
23. return View() works like in ASP.Net MVC C# as
A) Server.Transfer()
B) Response.Redirect()
C) Both A and B
D) None
24. RedirectToAction() works like in ASP.Net MVC C# as
A) Server.Transfer()
B) Response.Redirect()
C) Both A and B
D) None
25. In which format data can be return from XML into table ?
A) DataSet
B) Datatable
C) A and B
D) None
26. Can we use view state in MVC ?
A) Yes
B) No
C) Both A & B
D) None
27. What Request Processing technique follows ASP.Net ?
A) Top-Down
B) Down-Up
C) Pipeline
D) Water fall
28. What is DRY principle in ASP.Net ?
A) Don’t repeat yourself.
B) Don’t revise yourself.
C) both a and b
D) None
29. What is default authentication in Internet Information Services (IIS)?
A) Standard User
B) Administrator
C) Anonymous
D) None
30. What is the extension of MVC view when using C#?
A) cshtml
B) vbhtml
C) None
D) Both A & B
31. What is the extension of MVC view when using vb.net?
A) cshtml
B) vbhtml
C) None
D) Both A & B
32. How can you comment using Razor Syntax?
A) *@ Comment me *@
B) @* Comment me *@
C) @* Comment me @*
D) *@ Comment me @*
33. Which Namespace is used for Razor View Engine ?
A) System.Web.Razor
B) System.Web.Mvc.WebFormViewEngine
C) Both A & B
D) None
34. Which Namespace is used for ASPX View Engine ?
A) System.Web.Razor
B) System.Web.Mvc.WebFormViewEngine
C) Both A & B
D) None
35. The Razor View Engine uses to render server side content.
A) @
B) <%= %>
C) Both A & B
D) None
36. The ASPX View Engine uses to render server side content.
A) @
B) <%= %>
C) Both A & B
D) None
37. Which is more faster between ASPX View Engine and Razor View Engine.
A) ASPX View Engine
B) Razor View Engine
C) Both A & B
D) None
38. Does Razor Engine supports for TDD ?
A) Yes
B) No
C) None
D) Maybe
39. Does ASPX View Engine supports for TDD ?
A) Yes
B) No
C) None
D) Cannot be determined.
40. How to Print value from Controller to View in MVC ?
A) ViewBag.ECMDetail = “my message”; and in view @ViewBag.ECMDetail
B) ViewBag.ECMDetail = “my message”; and in view ViewBag.ECMDetail
B) ViewBag.ECMDetail = “my message”; and in view ViewBag.Title
D) None
41. Are MVC and Web API merged into one in MVC 6?
A) Yes
B) No
C) Both A & B
D) None
42. Does MVC 6 introduced new JSON project based structure?
A) Yes
B) No
C) Both A & B
D) None
43. Does MVC 6 allow only save change, hitting the save but then refreshing the browser to
reflect changes?
A) Yes
B) No
C) Both A & B
D) None
44. Does vNext is now Open Sourced via the .NET Foundation and open to public
contributions.
A) Yes
B) No
C) Both A & B
D) None
45. Can vNext runs on both Mac and Linux today (Mono Version)?
A) Yes
B) No
C) Both A & B
D) None
46. How does work Viewstart in MVC (ASP.Net)?
A) Viestart is used to layout of the application.
B) Viewstart is used like Masterpage in traditional forms (ASP.Net pages).
C) Viewstart render first in the views.
D) A, B and C.
47. Viewstart comes under which folder name ?
A) Views
B) Account
C) Shared
D) Home
48. Does Viewstart override all Views layout/template under “Views” folder in MVC ?
A) Yes
B) No
C) Both A & B
D) None
49. What is the name of default Viewstart Page in ASP.Net MVC ?
A) _ViewStart.cshtml
B) _Layout.cshtml
C) _Login.cshtml
D) None
50. Which is the way to render Partial View using ASP.Net MVC Razor Engine?
A) @Html.Partial(“_PartialHeader”)
B) @Html.PartialView(“_PartialHeader”)
C) @Html.PartialHtml(“_PartialHeader”)
D) B and C
51. Which Namespace is used to “Display” in Data Annotation using MVC ?
A) System.ComponentModel
B) System.ComponentModel.DataAnnotations
C) Both A and B
D) None
52. Which Namespaces are required to Data Annotation using MVC ?
A) System.ComponentModel
B) System.ComponentModel.DataAnnotations
C) Both A and B
D) None
53. Are both TempData/ViewData require typecasting in MVC?
A) Both (TempData/ViewData) requires type casting to avoid null exception.
B) No, these (TempData/ViewData) does not require type casting.
C) Both A) & B)
D) None
54. Is ViewBag slower than ViewData in MVC?
A) Yes
B) No
C) Both A) & B)
D) None
55. Is ViewData faster than ViewBag in MVC?
A) Yes
B) No
C) Both A) & B)
D) None
56. Are both TempData/ViewData property of Controller base class in MVC?
A) Yes
B) No
C) Both A) & B)
D) None
57. Does TempData used to pass data from one page to another page in MVC?
A) Yes
B) No
C) Both A) & B)
D) None
58. Can ASP.Net Web API specialize to XML or JSON ?
A) Yes
B) No
C) None
D) Both A & B
59. Does Web API (ASP.Net) supports to non SOAP based like XML or JSON ?
A) Yes
B) No
C) None
D) Both A & B
60. Does Web API (ASP.Net) supports to both version mobile apps and others ?
A) Yes
B) No
C) Both A & B
D) None
61. Can ASP.Net Web API, it works HTTP standard verbs like POST, GET, PUT, DELETE
(CRUD Operations) ?
A) Yes
B) No
C) Both A & B
D) None
62. Can ASP.Net Web API ability to both self hosting (outside of IIS) and IIS ?
A) Yes
B) No
C) None
D) Cannot be determined.
63. Can ASP.Net Web API has ability to transport non HTTP protocols like TCP, UDP,
Named Pipes etc ?
A) Yes
B) No
C) None
D) Both A & B
64. What is AuthConfig.cs in ASP.Net MVC ?
A) AuthConfig.cs is used to configure route settings
B) AuthConfig.cs is used to configure security settings including sites oAuth Login.
C) None
D) All
65. What is BundleConfig.cs in ASP.Net MVC ?
A) BundleConfig.cs in MVC is used to register filters for different purposes.
B) BundleConfig.cs in MVC is used to register bundles used by the bundling and
minification, serveral bundles are added by default like jQuery, jQueryUI, jQuery
validation, Modernizr, default CSS references.
C) All
D) None
66. What is FilterConfig.cs in ASP.Net MVC ?
A) FilterConfig.cs is used to register global MVC filters, HandleErrorAttribute is
registered by default filter. We can also register other filters.
B) FilterConfig.cs is used to register global MVC bundles.
C) None
D) All
67. What is RouteConfig.cs in ASP.Net MVC?
A) RouteConfig.cs is used to register MVC config statements, route config.
B) RouteConfig.css is used to register global MVC bundles.
C) None
D) All
68. What is the difference between HtmlTextbox and HtmlTextboxFor using ASP.Net MVC
Razor Engine?
A) @Html.TextBox is not strongly typed, @Html.TextBoxFor is strongly typed that is
why should be use @Html.TextBoxFor in MVC Razor Engine.
B) @Html.TextBox is strongly typed, @Html.TextBoxFor is not strongly typed that is why
should be use @Html.TextBox in MVC Razor Engine.
C) None
D) Both A and B
69. What is the benefits of Html.RenderPartial using ASP.Net MVC Razor Engine?
A) @Html.RenderPartial Returns response, moreover requires to create action.
B) @Html.RenderPartial Returns nothing (void), it is faster than @Html.Partial,
moreover requires not to create action.
C) None
D) Both A and B
70. What is the benefits of Html.Partial using ASP.Net MVC Razor Engine?
A) @Html.RenderPartial Returns response, moreover requires to create action.
B) @Html.RenderPartial Returns string value, it is slower than @Html.RenderPartial,
moreover requires not to create action.
C) None
D) Both A and B
71. How to check Request coming from which controller using MVC ASP.Net?
A) var _controller =
HttpContext.Current.Request.RequestContext.Values[“Controller”].ToString();
B) var _controller =
HttpContext.Current.Request.RequestContext.RouteData.Values[“Controller”].ToStri
ng();
C) var _controller = RouteData.Values[“Controller”].ToString();
D) None
72. For which ModelState.IsValid Validate ?
A) It checks for Entityframework Model state.
B) It checks for valid Model State using DataAnnotations.
C) It checks for SQL database state.
D) None
73. Which Name space is used to create chart using ASP.Net MVC?
A) using System.Web.MVC;
B) using System.Web.Helpers;
c) using System.Web.Chart;
D) All
74. How can we provide Height and Width to MVC Charts ?
A) new Chart(width – 600, height – 400)
B) new Chart(width = 600, height = 400)
C) new Chart(width: 600, height: 400)
D) All
75. How can we set theme to MVC Charts?
A) new Chart(width: 600, height: 400, theme: ChartTheme.Vanilla3D)
B) new Chart(width: 600, height: 400, theme: ChartTheme = Vanilla3D)
C) new Chart(width: 600, height: 400, theme: Vanilla3D)
D) None
76. How can we give Title to MVC Charts?
A) var chart = AddTitle(“My First Chart”)
B) .AddTitle(“My First Chart”)
C) .AddTitle(‘My First Chart’)
D) All
77. How can we add Series to MVC Charts?
A) .AddSeries(chartType: “Bar”, xValue: xValue, yValues: yValue)
B) .AddSeries(chartType: “Bar”, xValue = xValue, yValues = yValue)
C) .AddSeries(chartType: “Bar”, xValue: xValue, yValues: yValue)
D) None
78. How can we add Chart Type to MVC Charts?
A) .NewSeries(chartType: “Bar”)
B) .Series(chartType: “Bar”)
C) .AddSeries(chartType: “Bar”)
D) All
79. How can we write Chart output to MVC View?
A) .Write(bmp);
B) Write(“bmp”);
C) .Write(“bmp”);
D) All
80. Which name space using can send email in ASP.Net MVC?
A) using System.Net.Mail;
B) using System.Net;
C) using System.Mail;
D) None
81. If Razor View Engine need to add JQuery function and contain @ special character then
how we can write it in Razor View?
A) Replace @ to @@@ (tripple)
B) Replace @ to @@ (double)
C) None
D) Both (A & B)
82. How to set Default Value to Hidden Input Box using ASP.Net MVC?
A) @Html.HiddenFor(m => m.Name, “Jack”)
B) @Html.HiddenFor(m => m.Name, new { Value = “Jack”})
C) @Html.Hidden(m => m.Name, new { Value = “Jack”})
D) None
83. How to check all errors of Model using ASP.Net MVC?
A) var errors = Model.Values.SelectMany(v => v.Errors);
B) var errors = ModelState.SelectMany(v => v.Errors);
C) var errors = ModelState.Values.SelectMany(v => v.Errors);
D) None
84. AuthConfig.cs file is under in which App folder ?
A) App_Data
B) App_Start
C) Content
D) Filters
85. BundleConfig.cs file is under in which App folder ?
A) App_Data
B) App_Start
C) Content
D) Filters
86. FilterConfig.cs file is under in which App folder ?
A) App_Data
B) App_Start
C) Content
D) Filters
87. RouteConfig.cs file is under in which App folder ?
A) App_Data
B) App_Start
C) Content
D) Filters
88. WebApiConfig.cs file is under in which App folder ?
A) App_Data
B) App_Start
C) Content
D) Filters
89. Which filter will be execute at first using ASP.Net MVC?
A) Action filters
B) Authorization filters
C) Response filters
D) Exception filters
90. Which filter will be execute at last using ASP.Net MVC?
A) Action filters
B) Authorization filters
C) Exception filters
D) Response filters
91.Choose the form in which Postback occur
A. HTMLForms
B. Webforms
C. Winform
D.None
92. Web.config file is used…
A. Configures the time that the server-side codebehind module is called
B. To store the global information and variable definitions for the application
C. To configure the web server
D. To configure the web browser
Ans: To store the global information and variable definitions for the application
93. Which of the following object is not an ASP component?
A. LinkCounter
B. Counter
C. AdRotator
D. File Access
94. The first event triggers in an aspx page is.
A. Page_Init()
B. Page_Load()
C. Page_click()
D,Page_Unload()
95. Difference between Response.Write() andResponse.Output.Write().
A. Response.Output.Write() allows you to buffer output
B. Response.Output.Write() allows you to write formatted output
C. Response.Output.Write() allows you to flush output
D. Response.Output.Write() allows you to stream output
96. Which of the following method must be overridden in a custom control?
A. The Paint() method
B. The Control_Build() method
C. The default constructor
D. The Render() method
97. How do we create a FileSystemObject?
A. Server.CreateObject(“Scripting.FileSystemObject”)
B. Create(“FileSystemObject”)
C. Create Object:”Scripting.FileSystemObject”
D. Server.CreateObject(“FileSystemObject”)
98. Which of the following tool is used to manage the GAC?
A. RegSvr.exe
B. GacUtil.exe
C. GacSvr32.exe
D. GacMgr.exe
99. What class does the ASP.NET Web Form class inherit from by default?
A. System.Web.UI.Page
B. System.Web.UI.Form
C. System.Web.GUI.Page
D. System.Web.Form
100. We can manage states in asp.net application using
A. Session Objects
B. Application Objects
C. Viewstate
D. All of the above
101. Attribute must be set on a validator control for the validation to work.
A. ControlToValidate
B. ControlToBind
C. ValidateControl
D. Validate
102. Caching type supported by ASP.Net
A. Output Caching
B. DataCaching
C. a and b
D. none of the above
103. What is used to validate complex string patterns like an e-mail address?
A. Extended expressions
B. Basic expressions
C. Regular expressions
D. Irregular expressions
104. File extension used for ASP.NET files.
A. .Web
B. .ASP
C. .ASPX
D. None of the above
105. An alternative way of displaying text on web page using
A. asp:label
B. asp:listitem
C. asp:button
D.asp:textbox
106. Why is Global.asax is used?
A. Declare Global variables
B. Implement application and session level events
C. No use
D.Both A&B
107. Which of the following is not a member of ADODBCommand object?
A. ExecuteScalar
B. ExecuteStream
C. Open
D. ExecuteReader
108. Which DLL translate XML to SQL in IIS?
A. SQLISAPI.dll
B. SQLXML.dll
C. LISXML.dll
D. SQLIIS.dll
109. Default Session data is stored in ASP.Net.
A. StateServer
B. Session Object
C. InProcess
D. all of the above
110. Which LINQ statement defines the range variable in a LINQ query?
a. from
b. select
c. join
d. where
111. Choose the correct one.
int[] A = { 0, 2, 4, 5, 6, 8, 9 }; 
    int[] B = { 1, 3, 5, 7, 8 }; 
  
    IEnumerable nums = A.Except(B); 
  
    foreach (var n in nums) 
    { 
        Console.Write(n +”  “); 
    } 
a. 0, 2, 4, 5, 6, 8, 9
b. 1, 3, 5, 7, 8
c. 0 2 4 6 9
d. All of the above
112. Choose the correct one.
int[] A = { 0, 2, 4, 5, 6, 8 }; 
        int[] B = { 1, 3, 5, 7, 8 }; 
  
        var nums = A.Union(B);   
   
    foreach (var n in nums) 
    { 
        Console.Write(n+”  “); 
    } 
a. 0 24568 13578
b. 0 2 4 5 6 8 1 3 7
c. 0 1 2 3 4 5 6 7 8
d. None of the above
113. Choose the correct one.  

int[] numbers = { 5, 4, 11, 3, 9, 8, 6, 7, 2, 0 };  


  
    var nums = numbers.Skip(4);    
  
    foreach (var n in nums)   
    {   
        Console.Write(n+”  “);   
    } 
a. 9867 2 0
b. 5411398
c. 54113
d. None of the above
114. Choose the correct one. 

int[] numbers = { 9, 4, 1, 3, 8, 6, 7, 2,1 }; 


  
    var nums = numbers.Take(3);  
  
    foreach (var n in nums)   
    { 
  
        Console.WriteLine(n); 
  
    }  
a.7 

1
b. 9 

1
c. 3 

6
d. 1

9
115. Choose the correct one.  

int[] numbers = { 9, 10, 0, 11 }; 


  
        var nums = 
        from n in numbers 
        select n + 1; 
  
    foreach (var i in nums) 
    { 
        Console. Write (i+”,”); 
    } 
a. 10, 11, 1, 12
b. 10, 11, 12, 13
c. 9, 10, 0, 11
d. None of these
116. What LINQ expressions are used to shape results in a query?
1. where
2. select
3. join
4. Group
a. 2, 4
b. 1, 2
c. 3, 4
d. None
117. Which interface defines the basic extension methods for LINQ?
a. IComparable<T>
b. IList
c. IEnumerable
d. IQueryable<T>
118. 1. JSON name/value pair is written as
A. name’ : ‘value’
B. name = ‘value’
C. name = “value”
D. “name” : “value”
119.  JSON strings have to be in
A. single quote
B. double quote
C. single quote or double quote
120. Default scripting language in ASP.
A. EcmaScript
B. VBScript
C. PERL
D. JavaScript
121. How do you get information from a form that is submitted using the “post” method?
A. Request.QueryString
B. Request.Form
C. Response.write
D. Response.writeln
122. Which object can help you maintain data across users?
A. Application object
B. Session object
C. Response object
D. Server object
123. Which of the following ASP.NET object encapsulates the state of the client?
A. Session object
B. Application object
C. Response object
D. Server object
124. Which of the following object is used along with application object in order to ensure
that only one process accesses a variable at a time?
A. Synchronize
B. Synchronize()
C. ThreadLock
D. Lock()
125. Which of the following control is used to validate that two fields are equal?
A. RegularExpressionValidator
B. CompareValidator
C. equals() method
D. RequiredFieldValidator

126. Mode of storing ASP.NET session


A. InProc
B. StateServer
C. SQL Server
D. All of the above
127. Which of the following is not the way to maintain state?
A. View state
B. Cookies
C. Hidden fields
D. Request object
128. You can have only one Global.asax file per project.
A. Yes
B. No
C.Depends on the project
D.Differ sometimes
129. ______________ element in the web.config file to run code using the permissions of a
specific user
A. < credential> element
B. < authentication> element
C. < authorization> element
D. < identity> element
130. __________ is a special subfolder within the windows folder that stores the shared .NET
component.
A. /bin
B. GAC
C. Root
D.None
131. Which of the following is the performance attributes of processModel?
A. requestQueue limit
B. maxWorkerThreads
C. maxIdThreads
D. All
132. Which of the following is faster and consume lesser memory?
A. SQLDataReader
B. Data Set
C.Both the above
D.None
133. Which of the following is the way to monitor the web application?
A. MMC Event viewers
B. Performance logs
C. Alerts Snap-ins
D. ALL
134. The ________________ property affects how the .Net Framework handles dates,
currencies, sorting and formatting issues.
A. CurrentUICulture
B. CurrentCulture
C. CurrencyCulture
D. CurrencyUICulture
135. Where do we include the user lists for windows authentication?
A. < Credential>
B. < authorization>
C. < identity>
D. < authentiation>
136. Where do we include the user lists for Form authentication?
A. < credential>
B. < authorization>
C. < Identity>
D. < authentication>
137. Which of the following authentication is best suited for a corporate network?
A. Windows
B. Form
C. User
D. All
138. What attributes do you use to hide a public .Net class from COM?
A. DLLImport Attributes
B. ComVisible attributes
C. COM Interop
D. All
139. By default, code written with the Debug class is stripped out of release builds.
A. Yes
B. No
C.Yes,but not all the time
D.No,but not all the time
140. _________ tests make sure that new code does not break existing code.
A. Regression tests
B. Integration tests
C. Unit tests
D. Load test
141. The .NET Framework provides a runtime environment called….. ?
A. RMT
B. CLR
C. RCT
D. RC
142. In ASP.NET in form page the object which contains the user name is ______ ?
A. Page.User.Identity
B. Page.User.IsInRole
C. Page.User.Name
D. None of the Above
143. Find the term: The .NET framework which provides automatic memory management
using a technique called ______________ ?
A. Serialization
B. Garbage Collection
C. Assemblies
D. Overriding
144. Which of the following denote ways to manage state in an ASP.Net Application?
A. Session objects
B. Application objects
C. ViewState
D. All the Above
145. What is the base class from which all Web forms inherit?
A. Master Page
B. Page Class
C. Session Class
D. None of the Above
146. WSDL stands for ___________ ?
A. Web Server Description Language
B. Web Server Descriptor Language
C. Web Services Description Language
D. Web Services Descriptor Language
147. Which of the following must be done in order to connect data from some data resource
to Repeater control?
A. Set the DataSource property
B. Call the DataBind method
C. Both A. and B.
D. None of the Above
148. Which of the following is FALSE?
A. ASP.NET applications run without a Web Server
B. ASP+ and ASP.NET refer to the same thing
C. ASP.NET is a major upgrade over ASP
D. None of the Above
149. Which of the following transfer execution directly to another page?
A. Server.Transfer
B. Response.Redirect
C. Both A. and B.
D. None of the Above
150. If one has two different web form controls in a application and if one wanted to know
whether the values in the above two different web form control match what control must be
used?
A. DataList
B. GridView
C. CompareValidator
D. Listview
151. How can you get the total number of arguments passed to a function?
A) Using args.length property
B) Using arguments.length property
C) Both of the above.
D) None of the above.
152. Which built-in method reverses the order of the elements of an array?
A) changeOrder(order)
B) reverse()
C) sort(order)
D) None of the above.
153. Which built-in method returns the characters in a string beginning at the specified
location?
A) substr()
B) getSubstring()
C) slice()
D) None of the above.
154. Which of the following jQuery method apply a style on an element?
A) addStyle(classes)
B) addClass( classes )
C) addCSSClass(classes)
D) None of the above.
155. Which of the following jQuery method set the value of an element?
A) setContent( val )
B) val( val )
C) setValue( val )
D) None of the above.
156. Which of the following jQuery method reverts the most recent 'destructive' operation,
changing the set of matched elements to its previous state?
A) revert( )
B) end( )
C) undo( )
D) None of the above.
157. Which of the following jQuery method gets the style property of an element?
A) getClass( name )
B) getStyle( name)
C) css( name )
D) None of the above.
158. Which of the following jQuery method returns a jQuery collection with the positioned
parent of the first matched element?
A - offset( )
B - offsetParent( )
C - position( )
D - None of the above.
159. Which of the following jQuery method binds a handler to one or more events (like click)
for an element?
A) bind( type, [data], fn )
B) load(type, [data], fn )
C) attach(type, [data], fn )
D) None of the above.
160. Which of the following jQuery method loads a JSON data using an HTTP GET request?
A) jQuery.get( url, [data], [callback], [type] )
B) jQuery.getJSON( url, [data], [callback] )
C) jQuery.getScript( url, [callback] )
D) jQuery.post( url, [data], [callback], [type] )
161. An organization has developed a web service in which the values of the forms are
validated using ASP.NET application. Suppose this web service is got and used by a
customer then in such a scenario which of the following is TRUE 
 a) Such a situation cannot happen at all  
 b) The customer must be having technology that run ASP.    
 c) The customer can run on any platform. (ANS)   
 d) None of the Above
162.MVC is composed of three components:
a) Member Vertical Controller
b)Model View Control
c)Model View Controller
d)Model View Centered
163.For which ModelState.IsValid Validate?
a)It checks for Entity framework Model state
b)It checks for valid Model state using DataAnnotations
c)It checks for SQL database state
d)None
164. In ASP.NET the < authorization > section contain which of the following elements?
a) < deny >
b) < allow >
c) Both A. and B.
d) None of the Above
165. Which of these data source controls do not implement Caching?
a) LinqDataSource
b) ObjectDataSource
c) SqlDataSource
d) XmlDataSource
166. Which name space using can send email in ASP.Net MVC?
a) using System.Net.Mail;
b) using System.Net;
c) using System.Mail;
d) None
167. How to check all errors of Model using ASP.Net MVC?
a) var errors = Model.Values.SelectMany(v => v.Errors);
b) var errors = ModelState.SelectMany(v => v.Errors);
c) var errors = ModelState.Values.SelectMany(v => v.Errors);
d) None
168. Model class holds data in __________ properties.
a) public
b)private
c)protected
d)Local
169. The namespace for dataannotation is _________.
a) System.ComponentModel.DataAnnotations
b) System.Component.DataAnnotations
c) System.Model.DataAnnotations
d)System.Component.Model.DataAnnotations
170.Data Annotations is used to configure ___________.
a)Model
b)View
c)Controller
d)Bundle.config
171. System.ComponentModel.DataAnnotations will not includes the attributes that impacts
the nullability or size of the column.
a)Key
b)Timestamp
c)ConcurrencyCheck
d)MaximumLength
172. What are the various types of filters is an ASP.NET MVC application?
a)Authorization filters
b) Action filters
c) Result filters
d)All of these
173. WIF enables you to create a custom token. To be able to use the token, you must create
a custom token handler by overriding which of the following?
a) SecurityToken
b) SecurityTokenHandler
c) SWTToken
d) Saml2SecurityTokenHandler
174. _____________ attributes can be used for data validation in MVC
a) DataAnnotations
b) Fluent API
c) DataModel
d) HtmlHelper
175. You are globalizing an application and are compiling a list of items that need to be
translated. Which items should be included on the list?
a) Images that are used as part of the menu structure
b) Server error-logging messages
c) Button tooltips
d) Both a and c
176. Which filter will be execute at last using ASP.NET MVC?
a) Action filters
b) Authorization filters
c) Exception filters
d) Response filters
177. Which of the following is TRUE?
a) Action method can be static method in a controller class
b) Action method can be private method in a controller class
c) Action method can be protected method in a controller class
d) Action method must be public method in a controller class
178. For which ModelState.IsValid Validate?
a) It checks for Entityframework Model state
b) It checks for valid Model State using DataAnnotations
c) It checks for SQL database state
d) None
179. Explain what are the steps for the execution of an MVC project?
a) Receive first request for the application
b) Performs routing
c) Creates MVC request handler
d) All of the above
180. What is default authentication in Internet Information Services(IIS)?
a) Standard User
b) Administrator
c) Anonymous
d) None
181.  Does Web API (ASP.Net) supports to both version mobile apps and others ?
a) Yes
b) No
c) Both A & B
d) None
182. How to set Default Value to Hidden Input Box using ASP.Net MVC? 
a) @Html.HiddenFor(m => m.Name, "Jack")
b) @Html.HiddenFor(m => m.Name, new { Value = "Jack"}) 
c) @Html.Hidden(m => m.Name, new { Value = "Jack"})
d) None
183. How to check all errors of Model using ASP.Net MVC?
a) var errors = Model.Values.SelectMany(v => v.Errors);
b) var errors = ModelState.SelectMany(v => v.Errors);
c) var errors = ModelState.Values.SelectMany(v => v.Errors);
d) None
184.  What is the file extension of JSON?
A. .jn
B. .js
C. .jsn
D. .json
185. jQuery is a 
A. JavaScript Library.
B.JavaScript Language
C.JavaScript Method
D. PHP Method
186. jQuery uses CSS selectors to select elements?
A. False
B. True
C.Neither True nor False
D. Either True or False
187. Which sign does jQuery use as a shortcut for jQuery?
A. the % sign
B. the ? Sign
C. the $ sign
D. the & sign
188. With jQuery, look at the following selector: $("div"). What does it select?
A. All div elements
B. The first div element
C. The last div element
 D. The Middle div element
189. Is jQuery a library for client scripting or server scripting?
A. Server scripting
B. Client scripting
C. Both a and b
D. Either a or b
190. Is it possible to use jQuery together with AJAX?
A. No
B. Yes
C. None
D. Either a nor b
191. The jQuery html() method works for both HTML and XML documents
A. False
B. True
C.Neither True nor False
D. Either True or False
192. What is the correct jQuery code to set the background color of all p elements to red?
A. $("p").layout("background-color","red");
B. $("p").manipulate("background-color","red");
C. $("p").css("background-color","red");
D. $("p").style("background-color","red");
193. With jQuery, look at the following selector: $("div.intro"). What does it select?
A. The first div element with class="intro"
B. The first div element with id="intro"
C. All div elements with class="intro"
D. All div elements with id="intro"
194. Which jQuery method is used to hide selected elements?
A. hidden()
B. hide()
C. visible(false)
D. display(none)
195. What are the features of AJAX?
A. Live data binding
B. Client-side template rendering
C. Declarative instantiation of client components
D. All of the above
196. What is AJAX?
A. is a program
B. is a country name
C. is a football club name
D. All of these
197. AJAX is based on ______
A. JavaScript and XML
B. VBScript and XML
C. JavaScript and Java
D. JavaScript and HTTP requests
198. What are the advantages of AJAX ________
A. Bandwidth utilization
B. More interactive
C. Speeder retrieval of data
D. All of these
199. What makes AJAX unique?
A. It works as a stand-alone Web-development tool
B. It works the same with all Web browsers
C. It uses C++ as its programming language
D. It makes data requests asynchronously
200. What are the controls of AJAX?
A. ScriptManager
B. ScriptManagerProxy
C. UpdatePanel
D. All of these
201. How can you test a Ajax code?
A. JSU
B. JSUnit
C. AjaxJSU
D. JSUnitAjax
202. AJAX was made popular by,
A. Microsoft
B. Google
C. Sun Microsystemwrong
D. IBM
203. _______ javascript is also called as server-side javascript.
A. Microsoft
B. Navigator
C. LiveWire
D. None
204.What property and method of the Page object do you use to register client script
dynamically from code? 
A. ScriptManager control is used to dynamically register client script from code.
B. The Page.ClientScript.RegisterClientScriptBlock is used to dynamically register client
script from code.
C. ScriptManagerProxy control is used to dynamically register client script from code.
D. None of the above.
205.  Is jQuery a W3C standard?
A. No
B. Yes
C.None
D. Either a or b
206.  jQuery's main focus is..
A. AJAX
B. DOM Manipulation
C. Animations
D. All of the above
207. The method that provides AJAX functionality within jQuery is named..
A. ajax
B. easyAJAX
C. jQueryajax
D. jQajax
208. AJAX comes in _______.
A. 2003
B. 2004
C. 2005
D. 2006
209. ____________ javascript is also known as client side javascript.
A. Microsoft
B. Navigator
C. Linewire
D. Native
210. What server support AJAX?
A. SMTP
B. WWW
C. HTTP
D. none of the above.
211. ActiveX can be disabled via browser settings?
A. True
B. False
C.None
D. Either a or b
212. Sending a AJAX request to web server.
A. Push & Pop
B. Open & send
C. Demand & get
D. Req & receive
213. In AJAX how the request will be processed?
A. HttpXml Request
B. Http Request
C. XmlHttp Request
D. None of these.
214. JavaScript/DOM is used to display/interact with the information. True or False?
A. True
B. False
C.None
D. Either a or b
215. AJAX uses XML for coding and transferring formatted information between server and
client. True or False?
A. True
B. False
C.None
D. Either a or b
216. Control that group of server control and monitored their post back and rendering
process.
A. update control
B. update panel
C. update control panel
D. Iframe
217. The ______ property holds the status of the XmlHttprequest.
A. onreadystatechange
B. readystate
C. status
D. done
218. Which of the following has AJAX is a built in functionality?
A. .NET Framework 3.5
B. .NET Framework 2.0
C. .NET Framework 3.0
D. .NET Framework 4.0
219. Which of the following is not a valid javascript variable name?
A. 21abc
B. abc21
C. _abc
D. none of the above
220. Which of the following attribute can hold the javascript version?
A. Script
B. Language
C. Version
D. none of the above
221. Which of the following is correct?
A. jQuery is a JavaScript Library
B. jQuery is a JSON Library
C.None
D. Both a and b
222.  Is jQuery a W3C standard?
A. Yes
B. No
C.None
D. Either a or b
223.  jQuery code to set the background color of all span elements to blue?
A. $(“span”).style(“background-color”,”blue”);
B. $(“span”).manipulate(“background-color”,”blue”);
C. $(“span”).css(“background-color”,”blue”);
D. $(“span”).layout(“background-color”,”blue”);
224. jQuery method to hide selected elements?
A. visible(false)
B. hidden()
C. display(none)
D. hide()
225. AJAX stands for __________________.
A. Asynchronous JavaScript and XML
B. Abstract JSON and XML
C. Another Java Abstraction for X-Windows
D. Another Java and XML library
226. What makes AJAX unique?
A. It works as a stand alone web development tool.
B. It works the same with all web browsers.
C. It uses C++ as its programming language.
D. It makes data request asynchronously.
227. AJAX stands for Synchronous JayaScript and XML.
A. True
B. False
C.None
D. Either a or b
228. Which of these technologies is NOT used in AJAX?
A. CSS
B. DOM
C. DHTML
D. Flash
229. Using AJAX we can make our web page
A. more interactive and faster
B. more dynamic
C. easy to connect web page with server
D. easy to write coding
230. ________ javascript is also called server-side programming.
A. Microsoft
B. Livewire
C. Navigator
D. Apple
231.  jQuery method to set one or more style properties for selected elements?
A. style()
B. css()
C. html()
D.body()
232. What scripting language is jQuery written in?
A. VBScript
B. C++
C. JavaScript
D. C#
233. An interface can contain declaration of?
a. Methods, properties, events, indexers
b. Methods
c. Static members
d. All of the above
234. Which of the following statement / s is / are true? 
a. CommitChanges is a method of SqlDataContext.
b. CommitChanges is a method of DataContext.
c. CommitChanges is a method of DbDataContext.
d. CommitChanges is a method of OleDbData Context
235. When do LINQ queries actually run? 
a. When they are iterated over in a foreachloop
b. When calling the ToArray() method on the range variable
c. When calling the ToList() method on the range variable
d. All of the above
236. What types of Objects can you query using LINQ?
a. DataTables and DataSets
b. Any .NET Framework collection that implements IEnumerable(T)
c. Collections that implement interfaces that inherit from IEnumerable(T)
d. All of the above
237. Which of the following statement is correct?
a. Anonymous types are class types that derive directly from object.
b. Anonymous types are not class types that derive directly from object.
c. Anonymous types are class types that derive directly from System.Class.
d. None of the above
238.  Choose the correct option
a. Dynamic type is non - static type.
b. Dynamic type is static type.
c. Implicit conversion does not work with type dynamic.
d. None of the above
239. Choose the correct one
a. Variables introduced within a lambda expression are not visible in the outer method.
b. Variables introduced within a lambda expression are visible in the outer method.
c. The lambda should not contain the same number of parameters as the delegate type.
d. None of the above
240.  Choose the correct one. 
a. The return value of the lambda (if any) must be explicitly convertible to the delegate's return type
b. Each input parameter in the lambda must be implicitly convertible to its corresponding
delegate parameter.
c. Lamda expression does not work with LINQ.
d. None of the above
241. Choose the correct one 
a. The lambda must contain the same number of parameters as the delegate type.
b. The lambda should not contain the same number of parameters as the delegate type.
c. The return value of the lambda (if any) must be explicitly convertible to the delegate's return type
d. None of the above
242. What is lamda expression?
1. Anonymous function
2. Can  be used to create delegates
3. Named function
4. None
a. 1, 2
b. 1, 2, 3
c. 1, 3
d. 4
243. Which of the following objects represents a LINQ to SQL O / R map? 
a. DataSet
b. XElement
c. ObjectContext
d. DataContext
244. How you can merge the results from two separate LINQ queries into a single result set. 
a. Use the ToList method.
b. Use the DataContractJsonSerializer class.
c. Use the XElement class.
d. Use the Concat method.
245.  LINQ query can work with? 
a. DataSet
b. List<T>
c. Array
d. All of the above
246. Which of the following statements is true? 
a. LINQ to SQL works with any database.
b. LINQ to SQL works with SQL Server.
c. LINQ to SQL is a CLR feature.
d. LINQ to SQL is a SQL Server feature.
247. Which LINQ keyword is used to categorize results in a query?
a. where
b. select
c. join
d. group
248. Which LINQ statement is used to merge two data sources to perform queries?
a. where
b. select
c. join
d. group
249. What types of shapes can LINQ query results be shaped into?
1.Collections of primitive types
2.Collections of complex types
3.Single types
4.Collections of anonymous types
a. 1, 2, 4
b. 1,2,3
c. 1,3,4
d. None of the above
250. Which query expression is used to limit the number of results?
a. Skip
b. Take
c. Where
d. Select

You might also like