wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

TEKNET KEMBET

Total questions: 38

Worksheet time: 19mins

Name
Class
Date
1.

What is ActionResult()?

a)

It is a Concrete Class

b)

It is an abstract Class

c)

Both A and B

d)

None

e)

It is a Non Action

2.

Fill in the empty space (...) to produce 1, 4 output

a)

a. var squares = OneTo10.Select(x => x * x);

b)

b. var squares = OneTo.Select(x => x + x);

c)

c. var squares = from OneTo10.where(x => x * x);

d)

d. var squares = from OneTo10.where (x => x * x);

e)

e. var squares = from OneTo10.where (x => x + x);

3.

What will the program output of the following code snippet?

a)

a. Joshua, Jesica, Johan

b)

b. Joshua

c)

c. Jesica

d)

d. Risky

e)

e. Empty

4.

What will the program output of the following code snippet?

a)

a. 90

b)

b. 60

c)

c. 150

d)

d. 225

e)

e. 230

5.

Conceptual Data Model is an Entity Data Model

a)

True

b)

False

6.

The base class for all Connection objects is the Collection class.

a)

True

b)

False

7.

What will the program output of the following code snippet?

a)

a. Nothing

b)

b. All>3: False Any>3: True

c)

c. All>3:True Any>3: True

d)

d. All>3:True Any>3: False

e)

e. All>3: False Any>3: False

8.

The literals and placeholders are located in segments of the URL which are delimited by the star (*) character.

a)

True

b)

False

9.

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

a)

True

b)

False

10.

[Knowledge Net 5.0] An MVC.Net application has a controller Home and has a method Index on the server localhost: 24353. Routing configuration as follow.




To access routing in code above, the url in browser is:

11.

______ is the name of default Viewstart Page in ASP.Net MVC.

a)

a. ViewStart.cshtml

b)

b. LoginStart.cshtml

c)

c. Layout.cshtml

d)

d. None

e)

e. Endstart.cshtml

12.

non-nullable types are treated as though they had a [Required] attribute.

a)

True

b)

False

13.

Fill in the empty space (...) to produce 97, 92, 81 output

a)

a. IEnumerable scoreQuery = from score in scores where score > 80 select score;

b)

b. IEnumerable scoreQuery = from score in scores select score > 80 where score

c)

c. IEnumerable Query = select score in scores where score > 85 select score;

d)

d. IEnumerable Query = from score in scores where score > 80 select scor

e)

e. IEnumerable Query = select score in scores where score > 80 from score;

14.

Which of these data source controls do not implement Caching?

a)

a. XmlDataSource

b)

b. LinqDataSource

c)

c. ObjectDataSource

d)

d. SqlDataSource

e)

e. All of true

15.

A query is not executed until you iterate over the query variable

a)

True

b)

False

16.
a)

a. (i) : @model Product[] (ii) : @foreach (Product p in Model) (iii): @p.Name (iv): $@p.Price

b)

b. (i) : @model Product (ii) : @for (Product product in Model) (iii): @p.Name (iv): $@p.Price

c)

c. (i) : @model Product[] (ii) : @foreach (Product p in Model) (iii): @Name (iv): $@Price

d)

(i) : @model Product (ii) : @foreach (Product product in Model) (iii): @p.Name (iv): $@p.Price

e)

e. (i) : @model Product (ii) : @for (Product product in Model) (iii): @p.Name (iv): $@p.Harga

17.

Which protocol is used to call a Web service?

a)

a. HTTP Protocol

b)

b. Controller

c)

c. Validation Protocol

d)

d. View Protocol

e)

e. User Protocol

18.

Which are not types of Server-side controls in ASP.NET :

a)

a. PostBack controls

b)

b. HTML server controls

c)

c. Web Server controls

d)

d. User controls

e)

e. Validation controls

19.

Which method do you invoke on the DataAdapter control to load your generated dataset with data?

a)

a. DataList

b)

b. Fill()

c)

c. DataBind

d)

d. Load()

e)

e. Master Page

20.
a)

a. var rangelist = Number.where(u => (u > 2) || (u <= 6)).ToList();

b)

b. var rangeList = Number.Where(u => (u > 2) || (u < 6)).ToList();

c)

c. var rangeList = Number.Where (u => (u >= 2) &! (u <=6)).ToList();

d)

d. var rangelist = Number.where (u => (u>= 2) && (u <= 6)).ToList();

e)

e. var rangeList = Number.Where(u => (u >= 2) && (u < 6)).ToList();

21.

SOA realization can be done in many ways, one of which is web service

a)

True

b)

False

22.

REST do need to use verbose XML when sending and receiving data

a)

True

b)

False

23.

"@(((DateTime)Model).ToLocalTime())" is a example Passing data with a view model

a)

True

b)

False

24.

What are the various types of filters in an ASP.NET MVC application?

a)

a. Authorization filters

b)

b. Action filters

c)

c. Result filters

d)

d. A,B,C are true

e)

e. None

25.
a)

a. int clock = DateTime.Now.Hour; Order = "Good Afternoon"; return View(Order);

b)

b. int clock = DateTime.Now.Hour; Greeting = clock < 12? "Good Morning":"Good Afternoon"; return View(Greeting)

c)

c. int clock = DateTime.Now.Hour; ViewBag.Greeting = clock < 12? "Good Morning":"Good Afternoon"; return View();

d)

d. int clock = DateTime.Now.Hour; ViewBag.Greeting = "Good Morning":"Good Afternoon"; return View(Greeting)

e)

e. int clock = DateTime.Now.Hour; Order = clock? "Good Morning":"Good Afternoon"; return View(Order);

26.

Routing is responsible for matching incoming HTTP requests and dispatching those requests to the app's executable endpoints.

a)

True

b)

False

27.
a)

a. get { return strName; } set { strName = True; }

b)

b. get { return strName; } set { strAddress = True; }

c)

c. get { return strAddress; } set { strName = False; }

d)

c. get { return strAddress; } set { strName = False; }

e)

e. get { return strName; } set { strName = value; }

28.
a)

a. northwindDB.Products.Add(NewProduct); northwindDB.SaveChanges(NewProduct);

b)

b. northwindDB.Products.Add(NewProduct); northwindDB.SaveChanges();

c)

c. northwindDB.Products.Add(Products); northwindDB.Updates(Products);

d)

d. northwindDB.Products.Add(Products); northwindDB.Updates();

e)

e. northwindDB.Products.Add(NewProduct); nortwindDB.Updates();

29.

built-in validation attributes [Range] is validates that two properties in a model match.

a)

True

b)

False

30.

____ attributes can be used for data validation in MVC.

a)

a. Fluent API

b)

b. DataAnnotations

c)

c. ViewBag

d)

d. HtmlHelper

e)

e. DataModel

31.

In a URL pattern, you define placeholders by enclosing them in braces ( { and } )

a)

True

b)

False

32.

Besides parameter, there are several other sources from where you can receive data. These data sources can be "User" and "Server"

a)

True

b)

False

33.

What Request Processing technique follows ASP.Net?

a)

a. Top-Down

b)

b. ToDownTop

c)

c. Waterfall

d)

d. Pipeline

e)

e. Down-Up

34.
a)

a. public ActionResult DisplaySummary() { return View (); }

b)

b. public ActionResult DisplaySummary([Bind(Prefix = “AddressSummary”)] AddressSummary summary) { return View (summary); }

c)

public ActionResult DisplaySummary(AddressSummary summary) { return View (summary); }

d)

d. public ActionResult DisplaySummary() { return View (); }

e)

e. public ActionResult DisplaySummary([Bind(Prefix = “HomeAddress”)] AddressSummary summary) { return View (summary);

35.
a)

a. Jono, Joko, Jojo, Joni, Jini

b)

b. Jono, Jojo, Joko, Joni, Jini

c)

c. Junu, Joni, Jojo, Jini, Joko

d)

d. Junu, Joko, Joni, Jojo, Jini

e)

e. Junu, Joni, Joko, Jojo, Jini

36.

LINQ to Entities provides LINQ not support that enables developers to write queries against the Entity Framework conceptual model

a)

True

b)

False

37.

the built-in validation attributes [Required]: Validates that the field is null.

a)

True

b)

False

38.

The controller functions in MVC (Model View Controller), except:

a)

a. Processing incoming requests

b)

b. Data representation used by the user. 

c)

c. Select view that is rendered to the user.

d)

d. Bridge between Model and View

e)

e. Perform existing operations on model.