Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
123 views
19 pages
Final Asa
Uploaded by
Fatima Pereira
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download
Save
Save FINAL ASA For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
123 views
19 pages
Final Asa
Uploaded by
Fatima Pereira
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save FINAL ASA For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 19
Search
Fullscreen
Scenario 1 ACC Corp is a leading software services vendor with a global presence the company currentiy offers insurance schemes for its employees which include insurance coverage for the employee their spouse and children as an additional benefit ACC Corp has decided to offer its employees the chance to nominate their parents our parents in law also as their dependents for insurance coverage the employees can also opt to increase their insurance coverage for a nominal additional amount deducted from their salary an employee can nominate many relations as dependents but they can have only a single coverage amount the fixed coverage amount is used to cover all the dependents for instance ‘+ employee 2 has a coverage amount of 100000 and their nominations his wife mother and ‘© employee B has @ coverage amount of 50,000 for his wife and daughter Acc corp wants to deploy a web app using asp.net MVC for allowing employees to log in with their corporate ID view dependent information view insurance coverage amount and deductions add dependent information increase insurance coverage Questions Q. Which of the following options can be used to implement the post functionality of the login action ? assume that employee model is a model class created to map with the employee entity class ‘Ans: Public actionresult login(employeemodel employee) Q. The developer has created a class library with a repository class for the database operations the model was generated using entity framework for many classes will be generated automatically by the entity framework for the current database structure ‘Ans: 3 entity class and 1 context class Q. which view-scaffolding template will be best suited to create the view for the employee to view their coverage information Employee name: Rahul Ajay employee ID: 1241 coverage: rs 200000 valid till: 30 May 2022Ans: Details Q. Which entity class generated by entity framework must be specified to bind with the view shown in the image click on the link to view the image ‘employee ID: 1241 coverage: rs 200000 valid til: 30 May 2022 ‘Ans: Employeeinsurance Q. The developer has to retrieve the employee name in case the employee login is successful and display a welcome message with the name of the logged in employee the developer stores the ‘employee name in the view bag so that the welcome message can be displayed on all the view of the app which of the following options best describes this approach ‘Ans: described approach is wrong because view bag lifetime is for the current request only use session instead Q. For the MVC app the developer has to ensure that during execution the default landing view displayed is from the login action in the logincontroller class how can this be done ‘Ans: by changing the defaults in the app_start/routeconfig.cs file Q. The MVC app requires a common look and feel so that all the view pages have the same logo folder image background and font a file named master.csHTML contains the | did footer and CSS references how will the file be used by all other views as their template Ans: in the _layout.CSHTML file set the layout property to the path of the master.CSHTML file Q. To redirect user to error view(error.cshtml) on any exception during the login process which of the below attribute should be added to the login action method Ans: [handleerror(view="error”)] Q. The image shows the navigation in the NBC app for the home new coverage and update coverage new pages based on the navigation shown in the image identify the action methods which must be written ‘Ans: For hone/vies 1 public.actionresult home() For coverage/view coverage: 1L public actionresult viewcoverage(string empid) For coverage/updatecoverage: 1 public actionresult update(string empid) Q. Which of the following classes will be best match the class generated by entity framework for the employee table Ans: Option DScenario 2 Holiday planners hotel is planning to create a web based application which helps customers to book the hotel .search the customer based on name or contact number and many more the app also supports edit and delete operations for customers Questions Q Choose the correct EF query to search customer having address as Mumbai assumption........ ‘Ans: option A ( c.customeraddress “mumbai” select c) Q. Consider the action method remove customer as shown in below screenshot choose the appropriate controller attribute to be returned for the post action at line one Ans: option A ( [Httppost_Actionname(“Removecustomer”}];)) Q. Observe the following error screenshot and choose the most appropriate option to resolve The request has been blocked because sensitive information could be disclosed to third party while that is used ina get request ‘Ans: option C- Jsonrequestbehaviourallowget Q. Which line is used to get common layout across all the views choose the appropriate option ‘Ans: Viewstart.cshtml Q. The email address property of the ad minmodelclass.CS the developer needs to ensure the value cannot be empty and it must satisfy the email format choose two most appropriate options Ans: AB {required}, [datatype(datatype:emailaddress)] Q. For the given scenario choose the most appropriate approach to be selected from the below screenshot choose model contents ‘Ans: EF desgigner from database Q. As shown in the below screenshot to perform update operation which view scaffolding template should be the developer choose Update profile Ans: Edit Q. With reference to the below screenshot after successful registration by clicking on create button developer needs to redirect to login action choose most appropriate option to achieve this Register Admin ‘Ans: Redirecttoaction(“login”)Q. With reference to below screen choose the correct data annotation to be used in model class for masking the password Admin login Ans; (datatype.password) . Choose the correct syntax to create admin details table for the given table structure admin table:- admin details ‘Ans: Option A Create rable AdminDetails(AdminiD int Identity(10,1) Primary key; Scenario 3 Techsoft an online education company that offers a variety of video training courses techsoft is planning to create an € learning application that enables users to learn anywhere and at any time Using this application user can register themselves and log in with the credentials to access the training coursesIV. TechSoft(e-learning) 1. On submitting the register page validation error must be : B. [Required (Error message= “Full name is Mandatory”)] 2. Login link on the Register view redirect user to the login view of Login Controller: Html.ActionLink(“Login”, “Login”) 3. Select correct attribute to be added to the Email Property of Model class: D. [DataType (Data Type. EmailAddress, ErrorMessage = “Invalid Email”)] 4, Login Screenshot is available (2 options are available): public ActionResult Login (UserModel user) 5. To redirect user to Error view (Error.cshtml)...: A. [Handle error (View = “Error”)) 6. Successful registration, the user must be redirected to Login Page with Username. TempDatal“username”] = moduser. Email 7. When user login is successful the user must be redirected to Course List view which lists out all the courses and on failed login a message must be displayed to the user on the and C. ViewResult and ActionResult 8, Create Login Page Template: B. Create 9.class Repository (Program): Band C B. (from i in db.€Users where i.Email C. db.£Users Where (i=> i.Emai email && i.Password email &&i.Password = pass select i) ass). Select(j=> j); 10, Login action method: C. routes. MapRoute( name : “Default”, url: “{controller}/{action)/{id)", defaults: new {controller = “Login” , action = “Login” ,id = UrlParameter.Optional} h10. I. 11" Jan (Covidshield) Validated for 0,1,2 ("Member Details”): 8. [Range(0,2)] Developers want to display Date and Time.....: B. RedirectResult Covishield: A var customer m.Gender == “Male” select m; ShowAllDetails() : C. MemberID is set as Primary Key in the table. MemberDetails table: A CREATE TABLE MemberVaccinationDetails( Memberid int IDENTITY (102,1) PRIMARY KEY, MemberName varchar (250) Not NULL, Gender varchar (6) Not Null CHECK (Gender in (‘Female’, ‘Male’, ‘Other’)) VaccinatedDate date Not NULL DoseCount in Not NULL VacacineName varchar (50) Not Null, CHECK(VaccinanName in(‘Covishield’, ‘Covaxine')); VaccineCenter varchar (50) Not NULL. ‘AmountPaid int NULL) Application should have same look and feel with outline as well Modify Member Detai 1.Controller code ViewBag SaveMessag 2.View Code @ViewBag SaveMessage To handle error... in MVC application : A and C A. Controller code [Handletrror(View= “Error”)] C. Web.Config code
AmountPaid Property: B. public Nullablecint> AmountPaid {getsset;) Data from controller to View no type casting required: A. ViewBag |: D. All of the given choicesae V. Holiday Planners Hotel(pdf3) Login action method: C. routes.MapRoute{ name : "Default”, url: “{controller}/{action)/{id)”", defaults: new (controller = “Login” , action = “Login” jid = UrlParameter.Optional} Successful registration, the user must be redirected to Login Page with Username... TempData [“username”|=moduser.Email; Login: B. public ActionResult Login(UserModel user) Select the correct attribute to be Email property of Model class to validate the correct email format and display the error message, (Register): D. [DataType(DataType.EmailAddress.ErrorMessage = “Invalid Email”)} ‘When user login is successful the user must be redirected to Course List view which lists out all the courses and on failed login a message must be displayed to the user on the ‘same Login view.: B and C. ViewResult and ActionResult class Repository (Program): Band C B. (from jin db.EUsers where i.Email . db.£Users Where (i=> i,Email == email && i.Password mail && i.Password == pass select i); pass). Select|j=>j) ;Before moving on to next section to view the MCQ questions, please record your declaration (Yes or No) in the text box that you have completely read the scenario, ‘An ADV adventure company provides travel experience and solutions for the customer around the world. Its objective is to provide more enhanced support for the interest. For this to happen, company want to provide ¢ more interactive end easy methods of selecting the available option through an automated application. ‘The application should be built with the following business scenarios: 1) 2) 3) 4) Customer performs a purchase by selecting a package Discount offers are provided based on each packege Once the purchase is made, an intimation mail is sent to the agency for confirmation The agency will approve the request by verifying the customer and package details based on the availability The following requirements must be implemented for developing the application: 1) 2) 3) 4) 5) Create a Data model with appropriate relationship to capture: Customer details Package tour details Booking for a package by @ customer Trip details Create appropriate profiles, users by understanding the scenario and define the permissions and settings of OWD. Create a workflow or process builder to send an email to the agency once the purchase record is created. Create a vf page to display all the bookings of a customer using standard controller Create an apex class which should return all bookings of customer. ‘Questions: 1) 2) A visualforce page uses the booking object as a standard controller. Customer object is a parent of booking object. How can a developer display the name field rule of parent customer record on the page? ‘A. Use the SOO syntax to find the related customer field B._ Use additional apex logic when the controller to query for the name field D. Use an additional standard controller for customer In the company there are various levels of users according to their functional role. How the admin should be able to create users with levels?3) 4) 5) 6) ‘A. Organization wide default C. Profile D. Sharing rule After booking a travel package by a customer, the customized package has to be observed and approved by the seniors of the company. How this could implemented? ‘A. Workflow B. Profile C. Approval process D, Flow builder A developer is tasked with creating a scheme to track customer, package and booking details a single customer can have many bookings and single package can have many bookings. Each booking is owned and managed by a single user. Which scheme builder should be created to enable users to easily manage the bookings they own, without requiring the access to the customer of the package records? A. Alookup relationship to the customer object and a lookup relationship to the package object B. Alookup relationship to the customer object and a master detailed relationship to the package object. LTE D. Amaster detailed relationship to the customer object and a lookup relationship to the package object Which type of controller should a developer use to display all the records for a custom object booking on a visualforce page? A. Standard controller C. Custom list controller D. No controller required A developer wants to apply custom styling in a visualforce page? which of the three options can be used? A B C.
tag7) Aunit testis written by a developer for an apex class methad which returns all the Atlanta city customer records. What are the 2 ways for a developer to execute tests in an org (choose 2)? ‘A. Bulk API 8. Developer console . Setup menu D. Metadata API 8) A developer wants to override a new button using visualforce page which created booking ‘object records. What should be used in the vf page to implement this? [BORO] ‘A. The object record must be ...controller B, The standard controller attribute must be set to the booking object C. The action attribute must be set to a controller method, D. The controller or extension must have a pageReference method 9) Acustomer will book a travel package.an email notification will be send to a system admin after booking. Which feature of automation should be used to implement this functionality? A. Ennailalert 8. Profile . Approval process D. Permission set 10) The OWD of booking object is private. After booking a travel package by a customer, the company assigns one tour guide to every booking. How admin make sure that a booking record should be accessible to appropriate guide? ‘A. Grant read permission on booking object to profile of a guide B. create permission set with read permission on booking object and assign this permissions set to a guide C._grant read, create permission on booking object of a profile of a guideBefore moving on to next section to view the MCQ questions, please record your declaration (Yes or No) in the text box that you have completely read the scenario. Cloud 99 is the one of the famous hospital chains. The management of the cloud 99 asked Accenture to develop an application to ease the process of taking an appointment for a doctor. The users of this app are receptionist at hospital. An appointment can be taken over phone or face to face. Functional requirements of the application. Create a data model using following objects and field details, Doctor- ‘* First-Name, Last-Name, Degree, Specialty, Email Patient- ‘* First-Name, Last-Name, Address, Phone, Age, Email Appointment '* Doctor, Patient, Date-of-Appointment, Time-of-Appointment. Case paper- ‘+ Appointment, DoctorName(FirstName LastName), PatientName(FirstName +LastName), Patient-Age, Charges. Create formula fields for DoctorName and PatientName. Create appropriate relationship between objects Doctor object should contain field to display total number of appointments of a doctor by creating appropriate field, Create a profile RECEPTIONIST. A user in this profile should be able Read, Create, Edit and Delete records of Patient and Appointment. Another object records a user should only be Read. Design a process to create a Case paper automatically when an Appointment is taken Create a workflow Rule to send an email to Patient and Doctor. Create a VF page to display Doctor detailed and all his/her appointments (Hint: Pass an ID of any Doctor record to VF page} Create Reports and Dashboard for the following cases: a) Number of appoints per doctor. b) Number of patients per doctor.‘Questions: 1, Identify the correct SOQL from the following to get all the appointments of all Doctors? (need to be corrected) A B. SELECT Name, (SELECT Name, Appointments_c from App C. SELECT Name, (SELECT Name, Appointments_c from Appointments_c D. SELECT Name, (SELECT Name, Appointments_c from Appointments_c 2. While configuring a process using process builder tool, select the valid options for executing actions when adding criteria? A B c D. Execute all actions 3, The DoctorName formulae field created in the case paper object is what type of formulae? D. Inherited 4, Once the appointment is taken by a patient, a notification should be sent to the Doctor and Patient by an email. An administrator should select which action in workflow to implement this, functionally? A. Task B. Field update D. Outbound message 5. Asan admin which type of report you will create to display number of appointments for every doctor? A. Join 8. Saminiaty Cc. Tabular D. Join table10, As an admin what type of field you will create in Doctor object to show all total number of Appointments of every doctor? A. Formula 8. ROIIUpSURRASHy C. Picklst D. Picklst (multiselect) ‘Auser in the RECEPTIONIST should be able to only read the records of the doctor object. What should be be the value of organization wide default for doctor object? A. Transfer B. Private C. PUIBIEESE BAY D. Public write only. To create a case paper record automatically when an appointment is taken, which action as admin you will select in process builder? A. Post to chatter B. Update records C. Processes o. By using which type of controller for VF page the functionality to display Doctor details and all the appointments could by implemented [select 3]? A. List controller As a developer you wrote following apex xode Public class HospitalController{ Public static List
getDoctorDetails (String docld){ Return (SELECT Id, Name, Specialty.c, Email.c FROM Doctor_¢ WHERE Id=dociD; ) ) But this class show error. Debug the code and suggest the solution ‘A. Change the parameter as id docld B. Remove the static keyword from the method C. Change the return type of the method as List
result=new List« Birthinfo>(); result=(from lin db.Birthinfoes select i); return result; iUsing (BirthControlSystemDBEntities db=new BirthControlSystemDBEntities()) { Birthinfo result=new Birthinfo(); result=(from | in db.Birthinfoes select i) ToList« Birthinfo >(); return result; } The User needs to add the birth details to DB, Identity the correct repository class code that fulfils the requirement. ‘Assumption :- BirthControlSystemDBEntities is DBcontext class , Birthinfo is an entity class and Birthinfoes is DBSet type. public void AdcEntry(Birthinfo obj) ( Using (BirthControiSystemDBEntities db-new BirthControlSystemDBEntities()) { db Birthinfoes.Add(obj); public void AdcEntry(Birchinfo obj) ( Using (BirthControisystemDBEntities db=new BirthControlsystemOBEntities() ( db.irthinfoes.Add(obj); Obj SaveChanges();~os | 3 3 5. Developers wants to set the below page to be executed as the default page. Identify the correct code from the following, Routes. MapRoute( Name:"Default”, url:*{eontroller)/faction¥/fid)", defaults:new {controller="Home”, action="Index’, id=UrlParameter Optional) Routes.MapRoute( Name:"Default”, url:"{controlleri/{acti defaults:new (controller="Create”, action="Home", id=UrlParameter. Optional}Routes. MapRoute{ Name:"Default”, -ontroller}/{action)/{id)
You might also like
Pega CSA Questions
PDF
100% (2)
Pega CSA Questions
53 pages
MVC - Entity Framework - SQL Server PDF
PDF
No ratings yet
MVC - Entity Framework - SQL Server PDF
59 pages
Outsystems Associate Reactive Developer Sample Exam
PDF
0% (2)
Outsystems Associate Reactive Developer Sample Exam
16 pages
Pega Csa Test
PDF
No ratings yet
Pega Csa Test
44 pages
ASA All Scenarios
PDF
No ratings yet
ASA All Scenarios
15 pages
Birth Registration System
PDF
No ratings yet
Birth Registration System
6 pages
Pass 4 Test
PDF
No ratings yet
Pass 4 Test
16 pages
How To Create ASP - NET MVC Application
PDF
No ratings yet
How To Create ASP - NET MVC Application
16 pages
Dot Net Tricks
PDF
No ratings yet
Dot Net Tricks
101 pages
Exam ICF 6 Final
PDF
No ratings yet
Exam ICF 6 Final
6 pages
Dot Net MCQ4 Se Ad
PDF
No ratings yet
Dot Net MCQ4 Se Ad
114 pages
Understanding Form Validation Validation Using Dataannotations in Mvc5 Custom Validations Using Data Annotation Fetching Data From Database
PDF
No ratings yet
Understanding Form Validation Validation Using Dataannotations in Mvc5 Custom Validations Using Data Annotation Fetching Data From Database
19 pages
MVC Material
PDF
No ratings yet
MVC Material
58 pages
Software Engineering
PDF
No ratings yet
Software Engineering
6 pages
MVC Exercise: o o o o o o
PDF
No ratings yet
MVC Exercise: o o o o o o
2 pages
Attendance Form: Required MVC Application Configuration
PDF
No ratings yet
Attendance Form: Required MVC Application Configuration
2 pages
Core MVC Session Management
PDF
No ratings yet
Core MVC Session Management
5 pages
Final Theory Paper
PDF
No ratings yet
Final Theory Paper
13 pages
MVC Cheat Sheet PDF
PDF
No ratings yet
MVC Cheat Sheet PDF
5 pages
Entity Framework / Validation Model: (Key) Databasegeneratedoption - Identity) )
PDF
No ratings yet
Entity Framework / Validation Model: (Key) Databasegeneratedoption - Identity) )
5 pages
MCQ 4 Final
PDF
No ratings yet
MCQ 4 Final
106 pages
Expected Answer
PDF
No ratings yet
Expected Answer
8 pages
OS Reactive
PDF
No ratings yet
OS Reactive
32 pages
MCQ 3
PDF
No ratings yet
MCQ 3
8 pages
MVC - Entity Framework - SQL Server-1
PDF
No ratings yet
MVC - Entity Framework - SQL Server-1
56 pages
CSA Ques
PDF
No ratings yet
CSA Ques
12 pages
Maruthupandi (06.09.2022)
PDF
No ratings yet
Maruthupandi (06.09.2022)
5 pages
CSA Recap Part2
PDF
No ratings yet
CSA Recap Part2
27 pages
Final
PDF
No ratings yet
Final
42 pages
CRUD Using EF Core
PDF
No ratings yet
CRUD Using EF Core
6 pages
Visual Programming 3rd Assignment
PDF
No ratings yet
Visual Programming 3rd Assignment
38 pages
MVC
PDF
No ratings yet
MVC
6 pages
Backend
PDF
No ratings yet
Backend
31 pages
Consume Web API in ASP - Net MVC With Crud Actions
PDF
No ratings yet
Consume Web API in ASP - Net MVC With Crud Actions
19 pages
Mock Asp
PDF
No ratings yet
Mock Asp
78 pages
Microsoft 70 486 Dumps PDF Offer PDF
PDF
No ratings yet
Microsoft 70 486 Dumps PDF Offer PDF
5 pages
Pratial View With Mvc3
PDF
No ratings yet
Pratial View With Mvc3
7 pages
MVC 8
PDF
No ratings yet
MVC 8
23 pages
The Safer, Easier Way To Help You Pass Any IT Exams
PDF
No ratings yet
The Safer, Easier Way To Help You Pass Any IT Exams
6 pages
Dot Net Questions
PDF
No ratings yet
Dot Net Questions
9 pages
CSA Recap Notes Part-1
PDF
No ratings yet
CSA Recap Notes Part-1
5 pages
U3 QB Solution
PDF
No ratings yet
U3 QB Solution
18 pages
CRUD Operation in ASP
PDF
No ratings yet
CRUD Operation in ASP
26 pages
Developing MVC Controllers
PDF
No ratings yet
Developing MVC Controllers
16 pages
Loginandregistration
PDF
No ratings yet
Loginandregistration
22 pages
Dotnetpdf 4
PDF
No ratings yet
Dotnetpdf 4
20 pages
Unit-3 (Model Validation and Annotation)
PDF
No ratings yet
Unit-3 (Model Validation and Annotation)
41 pages
TTG Web Programming Mock Assessment
PDF
No ratings yet
TTG Web Programming Mock Assessment
6 pages
Question Text: Complete Mark 0 Out of 2 Flag Question
PDF
No ratings yet
Question Text: Complete Mark 0 Out of 2 Flag Question
15 pages
PHP Task Timesheet
PDF
No ratings yet
PHP Task Timesheet
8 pages
MVC 8 Validation
PDF
No ratings yet
MVC 8 Validation
11 pages
Week 2 Lecture 4 Lab
PDF
No ratings yet
Week 2 Lecture 4 Lab
12 pages
Itcerttest: It Exam Study Guide / Simulations
PDF
No ratings yet
Itcerttest: It Exam Study Guide / Simulations
11 pages
Employee Management System
PDF
No ratings yet
Employee Management System
21 pages
Exam Blanc 3 Certif 8.6 8.5 Approved
PDF
No ratings yet
Exam Blanc 3 Certif 8.6 8.5 Approved
8 pages
Microsoft: EXAM 70-519
PDF
100% (1)
Microsoft: EXAM 70-519
32 pages
Learning MVCPart 2 Creating MVC Application Amp Perform CRUD Operations Using LINQ To SQL
PDF
No ratings yet
Learning MVCPart 2 Creating MVC Application Amp Perform CRUD Operations Using LINQ To SQL
27 pages
Chapter 3 Views in ASP - NET Core
PDF
No ratings yet
Chapter 3 Views in ASP - NET Core
23 pages
Viva 230223 003935
PDF
No ratings yet
Viva 230223 003935
22 pages
Phase2 Hall
PDF
No ratings yet
Phase2 Hall
1 page
Viva Dotnet Ad
PDF
No ratings yet
Viva Dotnet Ad
38 pages
Az 900 1
PDF
100% (2)
Az 900 1
342 pages
SI Primer Academy-Sugar Daddy
PDF
No ratings yet
SI Primer Academy-Sugar Daddy
9 pages
Knowledge Check3
PDF
No ratings yet
Knowledge Check3
10 pages