Two Typos in Store and retrieve data using literal and variable values in C# Question #4

Wade Woo 0 Reputation points
2024-03-08T17:34:18.7266667+00:00

Under 'Check your knowledge' in https://learn.microsoft.com/en-us/training/modules/csharp-literals-variables/8-knowledge-check

Question #4:

Which of the following lines of code creates a variable correctly?

int x = 12.3 m;

decimal x = 12.3 m;

bool x = 'False';

There are two typos:

int x = 12.3 m;

should be:

int x = 12.3m;

and

decimal x = 12.3 m;

should be:

decimal x = 12.3m;

Azure Training
Azure Training
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Training: Instruction to develop new skills.
2,058 questions
{count} votes

1 answer

Sort by: Most helpful
  1. VarunTha 12,500 Reputation points Microsoft Vendor
    2024-03-26T10:46:15.77+00:00

    Hi Wade Woo,
    Thank you for your understanding and patience.

    We have contacted the content author regarding your concerns, and they have assured us that the Learn paths will be reviewed and updated in the upcoming major update, which will be implemented shortly.

    We trust that this information has been beneficial to you! If it has, kindly acknowledge the answer by clicking on "Accept Answer" and "Upvote" on the post.

    Thank you.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.