Search Header Logo
.NET Core Microservices - Demo - Synchronous Communication and Alerts Display

.NET Core Microservices - Demo - Synchronous Communication and Alerts Display

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

The video tutorial covers the process of validating coupon codes during checkout in a web application. It explains how to handle errors using view bags and temp data, and demonstrates debugging techniques for issues in the shopping cart. The tutorial also delves into the logic within controllers and repositories for updating cart details, and tests the integration of a coupon API to ensure correct discount application. The video concludes with a demonstration of the checkout process, highlighting the importance of synchronizing data between services.

Read more

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the CART service return if a coupon code is invalid?

An error code

A success message

A response with a value of true

A response with a value of false

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How is an error message stored when a coupon code is invalid?

In a database table

In a view bag

In a cookie

In a session variable

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What issue arises when trying to add the same product to the shopping cart?

A new product entry is created

The count is not updated

The product is removed from the cart

The application crashes

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What was missing in the card details during the update operation?

Product name

Card details ID and card header ID

Product price

User ID

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is used instead of a view bag for alerts in the checkout process?

Temp data

Session data

Local storage

Cookies

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How is a change in coupon discount handled during checkout?

By applying a default discount

By updating the order total and discount

By ignoring the change

By canceling the order

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What message is displayed when a coupon price changes during checkout?

Coupon expired

Coupon price has changed. Please confirm.

Invalid coupon code

Discount applied successfully

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?