1.to parse a string that might contain a currency value

Project Description:

1.to parse a string that might contain a currency value such as $1,234.56, you should pass the parse or tryparse method which of the following values? a.numberstyles.allowcurrencysymbol b.numberstyles.allowthousands c.numberstyles.currency d.a combination of all numberstyles values 2.which of the following statements is true for widening conversions? a.any value in the source type can fit into the destination type. b.the conversion will not result in loss of magnitude but may result is some loss of precision. c.an explicit cast is optional. d.all of the above. 3.which of the following statements is true for narrowing conversions? a.the conversion will not result in loss of magnitude but may result is some loss of precision. b.the source and destination types must be compatible. c.an explicit cast is optional. d.a cast can convert a string into an int if the string holds numeric text. 4.assuming total is a decimal variable holding the value 1234.56, which of the following statements displays total with the currency format $1,234.56? a.console.writeline(total.tostring()); b.console.writeline(total.tocurrencystring()); c.console.writeline(total.tostring("c")); d.console.writeline(format("{0:c}", total); 5.which of the following statements generates a string containing the text "veni, vidi, vici"? a.string.format("{0}, {1}, {2}", veni, vidi, vici) b.string.format("{1}, {2}, {3}", "veni", "vidi", "vici") c.string.format("{2}, {0}, {3}", "vidi", "venti", "veni", "vici") d.string.format("{veni, vidi, vici}")6.if i is an int and l is a long, which of the following statements is true? a.i = (int)l is a narrowing conversion. b.l = (long)i is a narrowing conversion. c.l = (long)i could cause an integer overflow. d.the correct way to copy i’s value into l is l = long.parse(1).
Skills Required:
Project Stats:

Price Type: Negotiable

Expired
Total Proposals: 10
1 Current viewersl
88 Total views
Project posted by:

Proposals

Proposals Reputation Price offered
  • 4.8
    290 Jobs 208 Reviews
    $0 in 0 Day
  • 3.8
    30 Jobs 19 Reviews
    $0 in 0 Day
  • 4.5
    355 Jobs 236 Reviews
    $0 in 0 Day
  • 4.0
    72 Jobs 31 Reviews
    $0 in 0 Day
  • 4.9
    95 Jobs 45 Reviews
    $0 in 0 Day
  • 4.6
    647 Jobs 468 Reviews
    $0 in 0 Day
  • 4.6
    8 Jobs 5 Reviews
    $0 in 0 Day
  • 4.6
    16 Jobs 9 Reviews
    $0 in 0 Day
  • 0.0
    0 Jobs 0 Reviews
    $0 in 0 Day