NEW
Font size
WorksheetsTEKNET KEMBET
Total questions: 38
Worksheet time: 19mins
What is ActionResult()?
It is a Concrete Class
It is an abstract Class
Both A and B
None
It is a Non Action
Fill in the empty space (...) to produce 1, 4 output
a. var squares = OneTo10.Select(x => x * x);
b. var squares = OneTo.Select(x => x + x);
c. var squares = from OneTo10.where(x => x * x);
d. var squares = from OneTo10.where (x => x * x);
e. var squares = from OneTo10.where (x => x + x);
What will the program output of the following code snippet?
a. Joshua, Jesica, Johan
b. Joshua
c. Jesica
d. Risky
e. Empty
What will the program output of the following code snippet?
a. 90
b. 60
c. 150
d. 225
e. 230
Conceptual Data Model is an Entity Data Model
True
False
The base class for all Connection objects is the Collection class.
True
False
What will the program output of the following code snippet?
a. Nothing
b. All>3: False Any>3: True
c. All>3:True Any>3: True
d. All>3:True Any>3: False
e. All>3: False Any>3: False
The literals and placeholders are located in segments of the URL which are delimited by the star (*) character.
True
False
The query process is carried out not directly to the data, but to an object from that data is the sense of LINQ to Object
True
False
______ is the name of default Viewstart Page in ASP.Net MVC.
a. ViewStart.cshtml
b. LoginStart.cshtml
c. Layout.cshtml
d. None
e. Endstart.cshtml
non-nullable types are treated as though they had a [Required] attribute.
True
False
Fill in the empty space (...) to produce 97, 92, 81 output
a. IEnumerable scoreQuery = from score in scores where score > 80 select score;
b. IEnumerable scoreQuery = from score in scores select score > 80 where score
c. IEnumerable Query = select score in scores where score > 85 select score;
d. IEnumerable Query = from score in scores where score > 80 select scor
e. IEnumerable Query = select score in scores where score > 80 from score;
Which of these data source controls do not implement Caching?
a. XmlDataSource
b. LinqDataSource
c. ObjectDataSource
d. SqlDataSource
e. All of true
A query is not executed until you iterate over the query variable
True
False
a. (i) : @model Product[] (ii) : @foreach (Product p in Model) (iii): @p.Name (iv): $@p.Price
b. (i) : @model Product (ii) : @for (Product product in Model) (iii): @p.Name (iv): $@p.Price
c. (i) : @model Product[] (ii) : @foreach (Product p in Model) (iii): @Name (iv): $@Price
(i) : @model Product (ii) : @foreach (Product product in Model) (iii): @p.Name (iv): $@p.Price
e. (i) : @model Product (ii) : @for (Product product in Model) (iii): @p.Name (iv): $@p.Harga
Which protocol is used to call a Web service?
a. HTTP Protocol
b. Controller
c. Validation Protocol
d. View Protocol
e. User Protocol
Which are not types of Server-side controls in ASP.NET :
a. PostBack controls
b. HTML server controls
c. Web Server controls
d. User controls
e. Validation controls
Which method do you invoke on the DataAdapter control to load your generated dataset with data?
a. DataList
b. Fill()
c. DataBind
d. Load()
e. Master Page
a. var rangelist = Number.where(u => (u > 2) || (u <= 6)).ToList();
b. var rangeList = Number.Where(u => (u > 2) || (u < 6)).ToList();
c. var rangeList = Number.Where (u => (u >= 2) &! (u <=6)).ToList();
d. var rangelist = Number.where (u => (u>= 2) && (u <= 6)).ToList();
e. var rangeList = Number.Where(u => (u >= 2) && (u < 6)).ToList();
SOA realization can be done in many ways, one of which is web service
True
False
REST do need to use verbose XML when sending and receiving data
True
False
"@(((DateTime)Model).ToLocalTime())" is a example Passing data with a view model
True
False
What are the various types of filters in an ASP.NET MVC application?
a. Authorization filters
b. Action filters
c. Result filters
d. A,B,C are true
e. None
a. int clock = DateTime.Now.Hour; Order = "Good Afternoon"; return View(Order);
b. int clock = DateTime.Now.Hour; Greeting = clock < 12? "Good Morning":"Good Afternoon"; return View(Greeting)
c. int clock = DateTime.Now.Hour; ViewBag.Greeting = clock < 12? "Good Morning":"Good Afternoon"; return View();
d. int clock = DateTime.Now.Hour; ViewBag.Greeting = "Good Morning":"Good Afternoon"; return View(Greeting)
e. int clock = DateTime.Now.Hour; Order = clock? "Good Morning":"Good Afternoon"; return View(Order);
Routing is responsible for matching incoming HTTP requests and dispatching those requests to the app's executable endpoints.
True
False
a. get { return strName; } set { strName = True; }
b. get { return strName; } set { strAddress = True; }
c. get { return strAddress; } set { strName = False; }
c. get { return strAddress; } set { strName = False; }
e. get { return strName; } set { strName = value; }
a. northwindDB.Products.Add(NewProduct); northwindDB.SaveChanges(NewProduct);
b. northwindDB.Products.Add(NewProduct); northwindDB.SaveChanges();
c. northwindDB.Products.Add(Products); northwindDB.Updates(Products);
d. northwindDB.Products.Add(Products); northwindDB.Updates();
e. northwindDB.Products.Add(NewProduct); nortwindDB.Updates();
built-in validation attributes [Range] is validates that two properties in a model match.
True
False
____ attributes can be used for data validation in MVC.
a. Fluent API
b. DataAnnotations
c. ViewBag
d. HtmlHelper
e. DataModel
In a URL pattern, you define placeholders by enclosing them in braces ( { and } )
True
False
Besides parameter, there are several other sources from where you can receive data. These data sources can be "User" and "Server"
True
False
What Request Processing technique follows ASP.Net?
a. Top-Down
b. ToDownTop
c. Waterfall
d. Pipeline
e. Down-Up
a. public ActionResult DisplaySummary() { return View (); }
b. public ActionResult DisplaySummary([Bind(Prefix = “AddressSummary”)] AddressSummary summary) { return View (summary); }
public ActionResult DisplaySummary(AddressSummary summary) { return View (summary); }
d. public ActionResult DisplaySummary() { return View (); }
e. public ActionResult DisplaySummary([Bind(Prefix = “HomeAddress”)] AddressSummary summary) { return View (summary);
a. Jono, Joko, Jojo, Joni, Jini
b. Jono, Jojo, Joko, Joni, Jini
c. Junu, Joni, Jojo, Jini, Joko
d. Junu, Joko, Joni, Jojo, Jini
e. Junu, Joni, Joko, Jojo, Jini
LINQ to Entities provides LINQ not support that enables developers to write queries against the Entity Framework conceptual model
True
False
the built-in validation attributes [Required]: Validates that the field is null.
True
False
The controller functions in MVC (Model View Controller), except:
a. Processing incoming requests
b. Data representation used by the user.
c. Select view that is rendered to the user.
d. Bridge between Model and View
e. Perform existing operations on model.
