SlideShare a Scribd company logo
1 of 11
Test Knowledge C# - Backend
Requirements for test:
- Visual Studio 2019 - SQL Express
- Management Studio
PART A – Basic Knowledge
1. You are creating a complex query that doesn’t require any particular order and you
want to run it in parallel. Which method should you use?
a) AsParallel
b) AsSequential
c) AsOrdered
d) WithDegreeOfParallelism
2. You need to implement cancellation for a long running task. Which object do you
pass to the task?
a) CancellationTokenSource
b) CancellationToken
c) Boolean isCancelled variable
d) Volatile
3. You need to iterate over a collection in which you know the number of items. You
need to remove certain items from the collection. Which statement do you use?
a) switch
b) foreach
c) for
d) goto
4. You have declared an event on your class, and you want outside users of your class
to raise this event. What do you do?
a) Make the event public.
b) Add a public method to your class that raises the event.
c) Use a public delegate instead of an event.
d) Use a custom event accessor to give access to outside users.
5. Your code catches an IOException when a file cannot be accessed. You want to
give more information to the caller of your code. What do you do?
a) Change the message of the exception and rethrow the exception.
b) Throw a new exception with extra information that has the IOException as
InnerException.
c) Throw a new exception with more detailed info.
d) Use throw to rethrow the exception and save the call stack.
6. Suppose you want to sort the Recipe class by any of the properties MainIngredient,
TotalTime, or CostPerPerson. In that case, which of the following interfaces would
probably be most useful?
a) IDisposable
b) IComparable
c) IComparer
d) ISortable
7. What is the final result by execute next code:
a) Error compilation
b) Return string if call contain using await
c) Return a Task and execute code synchronous
d) Can not using async for static Methods
e) C# not return Task
public static async Task<string> DownloadContent()
{
using(HttpClient client= new HttpClient())
{
string result= await client.GetStringAsync(“http://www.microsoft.com”);
return result;
} }
8. In a multithreaded application how would you increment a variable called counter in
a lock free manner? Choose all that apply.
a) lock(counter){counter++;}
b) counter++;
c) Interlocked.Add(ref counter, 1);
d) Interlocked.Increment (counter);
e) Interlocked.Increment (ref counter);
9. If I need create similar to the way a database connection pooling works but using
Task, what is a better option?
a) ThreadPool
b) TaskFactory;
c) List<Task>);
d) ITaskConcurrent;
e) Thread;
10. What is correct sentence for next code?
a) finalTask.WaitAll()
b) finalTask.WaitChild()
c) finalTask.Wait()
d) await finalTask;
e) await finalTask.WaitAll();
Task<Int32[]> parent = Task.Run(() =>
{
var results = new Int32[3];
TaskFactory tf = new TaskFactory(TaskCreationOptions.AttachedToParent,
TaskContinuationOptions.ExecuteSynchronously); tf.StartNew (() =>
results[0] =0); tf.StartNew (() =>results[1] =1); tf.StartNew (() =>
results[2] =2); return results;
});
var finalTask = parent.ContinueWith(
parentTask=> {
foreach(int iin parentTask.Result)
Console.WriteLine(i);
});
____________________________
11. Which code can create a lambda expression?
a) delegate x = x => 5 + 5;
b) delegate MySub(double x); MySub ms = delegate(double y) { y * y; }
c) x => x * x;
d) delegate MySub(); MySub ms = x * x;
12. Which collection would you use if you need to quickly find an element by its key
rather than its index?
a) Dictionary
b) List
c) SortedList
d) Queue
13. My.com is a company with kind of 20 TPS and have error for access a list, how to
improve performance and robust
a) Using lock by list
b) Controller error though try catch
c) BlockingCollection<T>
d) ConcurrentBag<T>
14. Which ADO.NET object is a fully traversable cursor and is disconnected from the
database?
a) DBDataReader
b) DataSet
c) DataTable
d) DataAdapter
15. Which clause orders the state and then the city?
a) orderby h.State orderby h.City
b) orderby h.State thenby h.City
c) orderby h.State, h.City
d) orderby h.State, thenby h.City
16. What is property correct for this sentence
a) IsCancellationRequested
b) IsCancel
c) Syntaxis is damaged
d) StatusRequested
Task task = Task.Run(() =>
{
while(!token.__________________)
{
Console.Write(“*”);
Thread.Sleep(1000);
}
}, token);
Console.WriteLine(“Press enter to stop the task”);
Console.ReadLine();
cancellationTokenSource.Cancel();
Console.WriteLine(“Press enter to end the
application”);
Console.ReadLine();
17. Which of the following regular expressions matches license plate values that must
include three uppercase letters followed by a space and three digits, or three digits
followed by a space and three uppercase letters?
a) (^d{3} [A-Z]{3}$)|(^[A-Z]{3} d{3}$)
b) ^d{3} [A-Z]{3} [A-Z]{3} d{3}$
c) ^w{3} d{3}|d{3} w{3}$
d) ^(d{3} [A-Z]{3})?$
18. You have declared an event on your class, and you want outside users of your class
to raise this event. What do you do?
a) Make the event public.
b) Add a public method to your class that raises the event.
c) Use a public delegate instead of an event.
d) Use a custom event accessor to give access to outside users.
19. What describes a strong name assembly?
a) Name
b) Version
c) Public key token
d) Culture
e) Processor Architecture
f) All the above
20. You have declared an event on your class, and you want outside users of your class
to raise this event. What do you do?
a) Make the event public
b) Add a public method to your class that raises the event.
c) Use a public delegate instead of an event.
d) Use a custom event accessor to give access to outside users.
21. The IEnumerable and IEnumerator interface in .NET helps you to implement the
iterator pattern, which enables you to access all elements in a collection without
caring about how it’s exactly implemented. You can find these interfaces in the
System.Collection and System.Collections. Generic namespaces. When using the
iterator pattern, you can just as easily iterate over the elements in an array, a list, or
a custom collection. It is never used in LINQ, which can access all kinds of
collections in a generic way without actually caring about the type of collection.
a) True
b) False
22. What is this method for?
a) Create class
b) Finalizer
c) Ignore errors
d) Execute garbage collector.
PART B – ASP NET Knowledge
23. What is the technique in which the client sends a request to the server, and the
server holds the response until it either times out or has information to send to the
client is?
a) HTTP polling.
b) HTTP long polling
c) WebSockets
d) HTTP request-response
e) HTTP2
24. What is the first request sent to start HTTP polling?
a) HTTP DELETE.
b) HTTP GET
c) HTTP CONNECT
d) Upgrade request
25. You create a LINQ query as follows. Which of the statements is correct?
a) A foreach loop is needed before this query executes against the database.
b) NavigationProperty needs to be referenced before this query executes
against the database
c) The query returns results immediately
d) It depends on whether the LazyLoadingEnabled property is set.
var query = (from acct in context.Accounts
where acct.AccountAlias == "Primary"
selectAcct).FirstOrDefault();
26. Assume you call the Add method of a context on an entity that already exists in the
database. Which of the following is true? (Choose all that apply.)
a) A duplicate entry is created in the database if there is no key violation.
b) If there is a key violation, an exception is thrown
c) The values are merged using a first-in wins approach.
d) The values are merged using a last-in wins approach.
27. What happens if you attempt to Attach an entity to a context when it already exists
in the context with an EntityState of unchanged?
a) A copy of the entity is added to the context with an EntityState of
unchanged.
b) A copy of the entity is added to the context with an EntityState of Added.
c) Nothing happens and the call is ignored.
d) The original entity is updated with the values from the new entity, but a copy
is not made. The entity has an EntityState of Unchanged.
28. The application you’re working on uses the EF to generate a specific DbContext
instance. The application enables users to edit several items in a grid and then
submit the changes. Because the database is overloaded, you frequently experience
situations that result in only partial updates. What should you do?
a) Call the SaveChanges method of the DbContext instance, specifying the
UpdateBehavior.All enumeration value for the Update behavior.
b) Use a TransactionScope class to wrap the call to update on the DbContext
instance.
c) Create a Transaction instance by calling the BeginTransaction method of the
DbContext Database property. Call the SaveChanges method; if it is
successful, call the Commit method of the transaction; if not, call the
Rollback method.
d) Use a TransactionScope class to wrap the call to SaveChanges on the
DbContext. Call Complete if SaveChanges completes without an exception.
29. The application you’re working on uses the EF. You need to ensure that operations
can be rolled back if there is a failure and you need to specify an isolation level.
Which of the following would allow you to accomplish this? (Choose all that
apply.)
a) A EntityTransaction.
b) A TransactionScope.
c) A SqlTransaction.
d) A DatabaseTransaction.
30. Which interfaces must be implemented in order for something to be queried by
LINQ? (Choose all that apply.)
a) IEnumerable.
b) IQueryable.
c) IEntityItem.
d) IDbContextItem.
31. Next code is used for:
a) Create Action Register
b) Create a Route in which the action name.
c) Create Method for configuration request
d) Create Register Website.
public static void
Register(HttpConfiguration
config)
{
config.Routes.MapHttpRout
e( name:"NamedApi",
routeTemplate:
"api/{controller}/{action}/{id}"
, defaults:new { id =
RouteParameter.Optional }
);
config.EnableSystemDiagn
osticsTracing();
}
PART C – PRACTICE
Required manage
a) .NET 5
b) SQL Server
c) C#
d) nUnit
For the practical exercise, take into account the following evaluation criteria:
a) Architecture
b) Structure
c) Documentation Code
d) Best Practices
e) Manage Performance
f) Unit Test
g) Security
A bank company requires creating an API to obtain information about properties in the
Colombia, this is in a database as shown in the image, its task is to create a set of services,
additional create a front end in react or angular (marked to *):
a) Create Property Building *
b) Add Image from property
c) Change Price
d) Update property
e) List property with filters*
Note: Complete data type depend on your criteria and add field according for your
consideration
Release
Send solution with project in zip file or upload from github or other similar site. Attach
database backup. if is necessary specify steps for run project when download.
GOOD LUCK!

More Related Content

Similar to Prueba de conociemientos Fullsctack NET v2.docx

Name _______________________________ Class time __________.docx
Name _______________________________    Class time __________.docxName _______________________________    Class time __________.docx
Name _______________________________ Class time __________.docx
rosemarybdodson23141
 
.NET Portfolio
.NET Portfolio.NET Portfolio
.NET Portfolio
mwillmer
 
Qtp certification questions and answers
Qtp certification questions and answersQtp certification questions and answers
Qtp certification questions and answers
Ramu Palanki
 
Qtp sample certification questions and answers
Qtp sample certification questions and answersQtp sample certification questions and answers
Qtp sample certification questions and answers
Ramu Palanki
 

Similar to Prueba de conociemientos Fullsctack NET v2.docx (20)

Java Multiple Choice Questions and Answers
Java Multiple Choice Questions and AnswersJava Multiple Choice Questions and Answers
Java Multiple Choice Questions and Answers
 
selenium_master.pdf
selenium_master.pdfselenium_master.pdf
selenium_master.pdf
 
Name _______________________________ Class time __________.docx
Name _______________________________    Class time __________.docxName _______________________________    Class time __________.docx
Name _______________________________ Class time __________.docx
 
Part - 2 Cpp programming Solved MCQ
Part - 2  Cpp programming Solved MCQ Part - 2  Cpp programming Solved MCQ
Part - 2 Cpp programming Solved MCQ
 
Express 070 536
Express 070 536Express 070 536
Express 070 536
 
Javascript Question
Javascript QuestionJavascript Question
Javascript Question
 
200 mcq c++(Ankit dubey)
200 mcq c++(Ankit dubey)200 mcq c++(Ankit dubey)
200 mcq c++(Ankit dubey)
 
Pega 7 CSA DUMPS,pega csa dumps
Pega 7 CSA DUMPS,pega csa dumps Pega 7 CSA DUMPS,pega csa dumps
Pega 7 CSA DUMPS,pega csa dumps
 
Task Parallel Library (TPL)
Task Parallel Library (TPL)Task Parallel Library (TPL)
Task Parallel Library (TPL)
 
Csharp
CsharpCsharp
Csharp
 
Quiz test JDBC
Quiz test JDBCQuiz test JDBC
Quiz test JDBC
 
Qtp questions
Qtp questionsQtp questions
Qtp questions
 
CORE JAVA
CORE JAVACORE JAVA
CORE JAVA
 
.NET Portfolio
.NET Portfolio.NET Portfolio
.NET Portfolio
 
Qtp certification questions and answers
Qtp certification questions and answersQtp certification questions and answers
Qtp certification questions and answers
 
Qtp sample certification questions and answers
Qtp sample certification questions and answersQtp sample certification questions and answers
Qtp sample certification questions and answers
 
Adding a modern twist to legacy web applications
Adding a modern twist to legacy web applicationsAdding a modern twist to legacy web applications
Adding a modern twist to legacy web applications
 
PEGA Training ( pegabpm99@gmail.com)
PEGA Training ( pegabpm99@gmail.com)PEGA Training ( pegabpm99@gmail.com)
PEGA Training ( pegabpm99@gmail.com)
 
SBI IT (Systems) Assistant Manager Question Paper
SBI IT (Systems) Assistant Manager Question PaperSBI IT (Systems) Assistant Manager Question Paper
SBI IT (Systems) Assistant Manager Question Paper
 
Working Effectively With Legacy Code
Working Effectively With Legacy CodeWorking Effectively With Legacy Code
Working Effectively With Legacy Code
 

Recently uploaded

一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证
一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证
一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证
wpkuukw
 
在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一
在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一
在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一
uodye
 
一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样
一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样
一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样
ayoqf
 
Buy Abortion pills in Riyadh |+966572737505 | Get Cytotec
Buy Abortion pills in Riyadh |+966572737505 | Get CytotecBuy Abortion pills in Riyadh |+966572737505 | Get Cytotec
Buy Abortion pills in Riyadh |+966572737505 | Get Cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证
一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证
一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证
wpkuukw
 
Abortion pills in Dammam +966572737505 Buy Cytotec
Abortion pills in Dammam +966572737505 Buy CytotecAbortion pills in Dammam +966572737505 Buy Cytotec
Abortion pills in Dammam +966572737505 Buy Cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
Contact +971581248768 to buy 100% original and safe abortion pills in Dubai a...
Contact +971581248768 to buy 100% original and safe abortion pills in Dubai a...Contact +971581248768 to buy 100% original and safe abortion pills in Dubai a...
Contact +971581248768 to buy 100% original and safe abortion pills in Dubai a...
DUBAI (+971)581248768 BUY ABORTION PILLS IN ABU dhabi...Qatar
 
Jual Obat Aborsi Samarinda ( No.1 ) 088980685493 Obat Penggugur Kandungan Cy...
Jual Obat Aborsi Samarinda (  No.1 ) 088980685493 Obat Penggugur Kandungan Cy...Jual Obat Aborsi Samarinda (  No.1 ) 088980685493 Obat Penggugur Kandungan Cy...
Jual Obat Aborsi Samarinda ( No.1 ) 088980685493 Obat Penggugur Kandungan Cy...
Obat Aborsi 088980685493 Jual Obat Aborsi
 
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in DammamAbortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
ahmedjiabur940
 
Abortion pills in Jeddah |+966572737505 | Get Cytotec
Abortion pills in Jeddah |+966572737505 | Get CytotecAbortion pills in Jeddah |+966572737505 | Get Cytotec
Abortion pills in Jeddah |+966572737505 | Get Cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
在线办理(scu毕业证)南十字星大学毕业证电子版学位证书注册证明信
在线办理(scu毕业证)南十字星大学毕业证电子版学位证书注册证明信在线办理(scu毕业证)南十字星大学毕业证电子版学位证书注册证明信
在线办理(scu毕业证)南十字星大学毕业证电子版学位证书注册证明信
oopacde
 
一比一原版(RMIT毕业证书)墨尔本皇家理工大学毕业证成绩单学位证靠谱定制
一比一原版(RMIT毕业证书)墨尔本皇家理工大学毕业证成绩单学位证靠谱定制一比一原版(RMIT毕业证书)墨尔本皇家理工大学毕业证成绩单学位证靠谱定制
一比一原版(RMIT毕业证书)墨尔本皇家理工大学毕业证成绩单学位证靠谱定制
ougvy
 
一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证
一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证
一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证
wpkuukw
 
办理(uw学位证书)美国华盛顿大学毕业证续费收据一模一样
办理(uw学位证书)美国华盛顿大学毕业证续费收据一模一样办理(uw学位证书)美国华盛顿大学毕业证续费收据一模一样
办理(uw学位证书)美国华盛顿大学毕业证续费收据一模一样
vwymvu
 
在线制作(ANU毕业证书)澳大利亚国立大学毕业证成绩单原版一比一
在线制作(ANU毕业证书)澳大利亚国立大学毕业证成绩单原版一比一在线制作(ANU毕业证书)澳大利亚国立大学毕业证成绩单原版一比一
在线制作(ANU毕业证书)澳大利亚国立大学毕业证成绩单原版一比一
ougvy
 
£ HAMIL 5 BULAN £ CARA MENGGUGURKAN KANDUNGAN USIA 5 BULAN ((087776558899))
£ HAMIL 5 BULAN £ CARA MENGGUGURKAN KANDUNGAN USIA 5 BULAN ((087776558899))£ HAMIL 5 BULAN £ CARA MENGGUGURKAN KANDUNGAN USIA 5 BULAN ((087776558899))
£ HAMIL 5 BULAN £ CARA MENGGUGURKAN KANDUNGAN USIA 5 BULAN ((087776558899))
Obat Cytotec
 

Recently uploaded (20)

一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证
一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证
一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证
 
在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一
在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一
在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一
 
一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样
一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样
一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样
 
NON INVASIVE GLUCOSE BLODD MONITORING SYSTEM (1) (2) (1).pptx
NON INVASIVE GLUCOSE BLODD MONITORING SYSTEM (1) (2) (1).pptxNON INVASIVE GLUCOSE BLODD MONITORING SYSTEM (1) (2) (1).pptx
NON INVASIVE GLUCOSE BLODD MONITORING SYSTEM (1) (2) (1).pptx
 
Dell Inspiron 15 5567 BAL20 LA-D801P Rev 1.0 (A00) Schematics.pdf
Dell Inspiron 15 5567 BAL20 LA-D801P Rev 1.0 (A00) Schematics.pdfDell Inspiron 15 5567 BAL20 LA-D801P Rev 1.0 (A00) Schematics.pdf
Dell Inspiron 15 5567 BAL20 LA-D801P Rev 1.0 (A00) Schematics.pdf
 
Buy Abortion pills in Riyadh |+966572737505 | Get Cytotec
Buy Abortion pills in Riyadh |+966572737505 | Get CytotecBuy Abortion pills in Riyadh |+966572737505 | Get Cytotec
Buy Abortion pills in Riyadh |+966572737505 | Get Cytotec
 
一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证
一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证
一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证
 
Abortion pills in Dammam +966572737505 Buy Cytotec
Abortion pills in Dammam +966572737505 Buy CytotecAbortion pills in Dammam +966572737505 Buy Cytotec
Abortion pills in Dammam +966572737505 Buy Cytotec
 
Contact +971581248768 to buy 100% original and safe abortion pills in Dubai a...
Contact +971581248768 to buy 100% original and safe abortion pills in Dubai a...Contact +971581248768 to buy 100% original and safe abortion pills in Dubai a...
Contact +971581248768 to buy 100% original and safe abortion pills in Dubai a...
 
Jual Obat Aborsi Samarinda ( No.1 ) 088980685493 Obat Penggugur Kandungan Cy...
Jual Obat Aborsi Samarinda (  No.1 ) 088980685493 Obat Penggugur Kandungan Cy...Jual Obat Aborsi Samarinda (  No.1 ) 088980685493 Obat Penggugur Kandungan Cy...
Jual Obat Aborsi Samarinda ( No.1 ) 088980685493 Obat Penggugur Kandungan Cy...
 
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in DammamAbortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
 
Test bank for consumer behaviour buying having and being eighth canadian edit...
Test bank for consumer behaviour buying having and being eighth canadian edit...Test bank for consumer behaviour buying having and being eighth canadian edit...
Test bank for consumer behaviour buying having and being eighth canadian edit...
 
Abortion pills in Jeddah |+966572737505 | Get Cytotec
Abortion pills in Jeddah |+966572737505 | Get CytotecAbortion pills in Jeddah |+966572737505 | Get Cytotec
Abortion pills in Jeddah |+966572737505 | Get Cytotec
 
在线办理(scu毕业证)南十字星大学毕业证电子版学位证书注册证明信
在线办理(scu毕业证)南十字星大学毕业证电子版学位证书注册证明信在线办理(scu毕业证)南十字星大学毕业证电子版学位证书注册证明信
在线办理(scu毕业证)南十字星大学毕业证电子版学位证书注册证明信
 
一比一原版(RMIT毕业证书)墨尔本皇家理工大学毕业证成绩单学位证靠谱定制
一比一原版(RMIT毕业证书)墨尔本皇家理工大学毕业证成绩单学位证靠谱定制一比一原版(RMIT毕业证书)墨尔本皇家理工大学毕业证成绩单学位证靠谱定制
一比一原版(RMIT毕业证书)墨尔本皇家理工大学毕业证成绩单学位证靠谱定制
 
一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证
一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证
一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证
 
办理(uw学位证书)美国华盛顿大学毕业证续费收据一模一样
办理(uw学位证书)美国华盛顿大学毕业证续费收据一模一样办理(uw学位证书)美国华盛顿大学毕业证续费收据一模一样
办理(uw学位证书)美国华盛顿大学毕业证续费收据一模一样
 
在线制作(ANU毕业证书)澳大利亚国立大学毕业证成绩单原版一比一
在线制作(ANU毕业证书)澳大利亚国立大学毕业证成绩单原版一比一在线制作(ANU毕业证书)澳大利亚国立大学毕业证成绩单原版一比一
在线制作(ANU毕业证书)澳大利亚国立大学毕业证成绩单原版一比一
 
Best CPU for gaming Intel Core i9-14900K 14th Gen Desktop CPU
Best CPU for gaming  Intel Core i9-14900K 14th Gen Desktop CPUBest CPU for gaming  Intel Core i9-14900K 14th Gen Desktop CPU
Best CPU for gaming Intel Core i9-14900K 14th Gen Desktop CPU
 
£ HAMIL 5 BULAN £ CARA MENGGUGURKAN KANDUNGAN USIA 5 BULAN ((087776558899))
£ HAMIL 5 BULAN £ CARA MENGGUGURKAN KANDUNGAN USIA 5 BULAN ((087776558899))£ HAMIL 5 BULAN £ CARA MENGGUGURKAN KANDUNGAN USIA 5 BULAN ((087776558899))
£ HAMIL 5 BULAN £ CARA MENGGUGURKAN KANDUNGAN USIA 5 BULAN ((087776558899))
 

Prueba de conociemientos Fullsctack NET v2.docx

  • 1. Test Knowledge C# - Backend Requirements for test: - Visual Studio 2019 - SQL Express - Management Studio PART A – Basic Knowledge 1. You are creating a complex query that doesn’t require any particular order and you want to run it in parallel. Which method should you use? a) AsParallel b) AsSequential c) AsOrdered d) WithDegreeOfParallelism 2. You need to implement cancellation for a long running task. Which object do you pass to the task? a) CancellationTokenSource b) CancellationToken c) Boolean isCancelled variable d) Volatile 3. You need to iterate over a collection in which you know the number of items. You need to remove certain items from the collection. Which statement do you use? a) switch b) foreach c) for d) goto 4. You have declared an event on your class, and you want outside users of your class to raise this event. What do you do? a) Make the event public. b) Add a public method to your class that raises the event. c) Use a public delegate instead of an event. d) Use a custom event accessor to give access to outside users. 5. Your code catches an IOException when a file cannot be accessed. You want to give more information to the caller of your code. What do you do? a) Change the message of the exception and rethrow the exception.
  • 2. b) Throw a new exception with extra information that has the IOException as InnerException. c) Throw a new exception with more detailed info. d) Use throw to rethrow the exception and save the call stack. 6. Suppose you want to sort the Recipe class by any of the properties MainIngredient, TotalTime, or CostPerPerson. In that case, which of the following interfaces would probably be most useful? a) IDisposable b) IComparable c) IComparer d) ISortable 7. What is the final result by execute next code: a) Error compilation b) Return string if call contain using await c) Return a Task and execute code synchronous d) Can not using async for static Methods e) C# not return Task public static async Task<string> DownloadContent() { using(HttpClient client= new HttpClient()) { string result= await client.GetStringAsync(“http://www.microsoft.com”); return result; } } 8. In a multithreaded application how would you increment a variable called counter in a lock free manner? Choose all that apply. a) lock(counter){counter++;} b) counter++; c) Interlocked.Add(ref counter, 1); d) Interlocked.Increment (counter); e) Interlocked.Increment (ref counter); 9. If I need create similar to the way a database connection pooling works but using Task, what is a better option? a) ThreadPool b) TaskFactory;
  • 3. c) List<Task>); d) ITaskConcurrent; e) Thread; 10. What is correct sentence for next code? a) finalTask.WaitAll() b) finalTask.WaitChild() c) finalTask.Wait() d) await finalTask; e) await finalTask.WaitAll(); Task<Int32[]> parent = Task.Run(() => { var results = new Int32[3]; TaskFactory tf = new TaskFactory(TaskCreationOptions.AttachedToParent, TaskContinuationOptions.ExecuteSynchronously); tf.StartNew (() => results[0] =0); tf.StartNew (() =>results[1] =1); tf.StartNew (() => results[2] =2); return results; }); var finalTask = parent.ContinueWith( parentTask=> { foreach(int iin parentTask.Result) Console.WriteLine(i); }); ____________________________ 11. Which code can create a lambda expression? a) delegate x = x => 5 + 5; b) delegate MySub(double x); MySub ms = delegate(double y) { y * y; } c) x => x * x; d) delegate MySub(); MySub ms = x * x; 12. Which collection would you use if you need to quickly find an element by its key rather than its index?
  • 4. a) Dictionary b) List c) SortedList d) Queue 13. My.com is a company with kind of 20 TPS and have error for access a list, how to improve performance and robust a) Using lock by list b) Controller error though try catch c) BlockingCollection<T> d) ConcurrentBag<T> 14. Which ADO.NET object is a fully traversable cursor and is disconnected from the database? a) DBDataReader b) DataSet c) DataTable d) DataAdapter 15. Which clause orders the state and then the city? a) orderby h.State orderby h.City b) orderby h.State thenby h.City c) orderby h.State, h.City d) orderby h.State, thenby h.City 16. What is property correct for this sentence a) IsCancellationRequested b) IsCancel c) Syntaxis is damaged d) StatusRequested Task task = Task.Run(() => { while(!token.__________________) { Console.Write(“*”); Thread.Sleep(1000); }
  • 5. }, token); Console.WriteLine(“Press enter to stop the task”); Console.ReadLine(); cancellationTokenSource.Cancel(); Console.WriteLine(“Press enter to end the application”); Console.ReadLine(); 17. Which of the following regular expressions matches license plate values that must include three uppercase letters followed by a space and three digits, or three digits followed by a space and three uppercase letters? a) (^d{3} [A-Z]{3}$)|(^[A-Z]{3} d{3}$) b) ^d{3} [A-Z]{3} [A-Z]{3} d{3}$ c) ^w{3} d{3}|d{3} w{3}$ d) ^(d{3} [A-Z]{3})?$ 18. You have declared an event on your class, and you want outside users of your class to raise this event. What do you do? a) Make the event public. b) Add a public method to your class that raises the event. c) Use a public delegate instead of an event. d) Use a custom event accessor to give access to outside users. 19. What describes a strong name assembly? a) Name b) Version c) Public key token d) Culture e) Processor Architecture f) All the above 20. You have declared an event on your class, and you want outside users of your class to raise this event. What do you do? a) Make the event public b) Add a public method to your class that raises the event. c) Use a public delegate instead of an event. d) Use a custom event accessor to give access to outside users.
  • 6. 21. The IEnumerable and IEnumerator interface in .NET helps you to implement the iterator pattern, which enables you to access all elements in a collection without caring about how it’s exactly implemented. You can find these interfaces in the System.Collection and System.Collections. Generic namespaces. When using the iterator pattern, you can just as easily iterate over the elements in an array, a list, or a custom collection. It is never used in LINQ, which can access all kinds of collections in a generic way without actually caring about the type of collection. a) True b) False 22. What is this method for? a) Create class b) Finalizer c) Ignore errors d) Execute garbage collector.
  • 7. PART B – ASP NET Knowledge 23. What is the technique in which the client sends a request to the server, and the server holds the response until it either times out or has information to send to the client is? a) HTTP polling. b) HTTP long polling c) WebSockets d) HTTP request-response e) HTTP2 24. What is the first request sent to start HTTP polling? a) HTTP DELETE. b) HTTP GET c) HTTP CONNECT d) Upgrade request 25. You create a LINQ query as follows. Which of the statements is correct? a) A foreach loop is needed before this query executes against the database. b) NavigationProperty needs to be referenced before this query executes against the database c) The query returns results immediately d) It depends on whether the LazyLoadingEnabled property is set. var query = (from acct in context.Accounts where acct.AccountAlias == "Primary" selectAcct).FirstOrDefault(); 26. Assume you call the Add method of a context on an entity that already exists in the database. Which of the following is true? (Choose all that apply.) a) A duplicate entry is created in the database if there is no key violation. b) If there is a key violation, an exception is thrown c) The values are merged using a first-in wins approach. d) The values are merged using a last-in wins approach. 27. What happens if you attempt to Attach an entity to a context when it already exists in the context with an EntityState of unchanged? a) A copy of the entity is added to the context with an EntityState of unchanged. b) A copy of the entity is added to the context with an EntityState of Added. c) Nothing happens and the call is ignored.
  • 8. d) The original entity is updated with the values from the new entity, but a copy is not made. The entity has an EntityState of Unchanged. 28. The application you’re working on uses the EF to generate a specific DbContext instance. The application enables users to edit several items in a grid and then submit the changes. Because the database is overloaded, you frequently experience situations that result in only partial updates. What should you do? a) Call the SaveChanges method of the DbContext instance, specifying the UpdateBehavior.All enumeration value for the Update behavior. b) Use a TransactionScope class to wrap the call to update on the DbContext instance. c) Create a Transaction instance by calling the BeginTransaction method of the DbContext Database property. Call the SaveChanges method; if it is successful, call the Commit method of the transaction; if not, call the Rollback method. d) Use a TransactionScope class to wrap the call to SaveChanges on the DbContext. Call Complete if SaveChanges completes without an exception. 29. The application you’re working on uses the EF. You need to ensure that operations can be rolled back if there is a failure and you need to specify an isolation level. Which of the following would allow you to accomplish this? (Choose all that apply.) a) A EntityTransaction. b) A TransactionScope. c) A SqlTransaction. d) A DatabaseTransaction. 30. Which interfaces must be implemented in order for something to be queried by LINQ? (Choose all that apply.) a) IEnumerable. b) IQueryable. c) IEntityItem. d) IDbContextItem.
  • 9. 31. Next code is used for: a) Create Action Register b) Create a Route in which the action name. c) Create Method for configuration request d) Create Register Website. public static void Register(HttpConfiguration config) { config.Routes.MapHttpRout e( name:"NamedApi", routeTemplate: "api/{controller}/{action}/{id}" , defaults:new { id = RouteParameter.Optional } ); config.EnableSystemDiagn osticsTracing(); }
  • 10. PART C – PRACTICE Required manage a) .NET 5 b) SQL Server c) C# d) nUnit For the practical exercise, take into account the following evaluation criteria: a) Architecture b) Structure c) Documentation Code d) Best Practices e) Manage Performance f) Unit Test g) Security A bank company requires creating an API to obtain information about properties in the Colombia, this is in a database as shown in the image, its task is to create a set of services, additional create a front end in react or angular (marked to *): a) Create Property Building * b) Add Image from property c) Change Price d) Update property e) List property with filters* Note: Complete data type depend on your criteria and add field according for your consideration
  • 11. Release Send solution with project in zip file or upload from github or other similar site. Attach database backup. if is necessary specify steps for run project when download. GOOD LUCK!